=============================================================================== 0200ada4 : { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; switch( node->type ) { 200ada4: c4 02 00 00 ld [ %o0 ], %g2 ) { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; 200ada8: c2 02 20 10 ld [ %o0 + 0x10 ], %g1 switch( node->type ) { 200adac: c4 00 a0 4c ld [ %g2 + 0x4c ], %g2 200adb0: 84 00 bf ff add %g2, -1, %g2 200adb4: 80 a0 a0 06 cmp %g2, 6 200adb8: 18 80 00 15 bgu 200ae0c <== NEVER TAKEN 200adbc: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 200adc0: 85 28 a0 02 sll %g2, 2, %g2 200adc4: 07 00 80 2b sethi %hi(0x200ac00), %g3 200adc8: 86 10 e1 88 or %g3, 0x188, %g3 ! 200ad88 200adcc: c4 00 c0 02 ld [ %g3 + %g2 ], %g2 200add0: 81 c0 80 00 jmp %g2 200add4: 01 00 00 00 nop case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; 200add8: 10 80 00 0c b 200ae08 200addc: c2 00 60 0c ld [ %g1 + 0xc ], %g1 break; case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; 200ade0: 03 00 80 72 sethi %hi(0x201c800), %g1 200ade4: 10 80 00 09 b 200ae08 200ade8: 82 10 60 48 or %g1, 0x48, %g1 ! 201c848 break; case IMFS_SYM_LINK: case IMFS_HARD_LINK: loc->handlers = &IMFS_link_handlers; 200adec: 03 00 80 72 sethi %hi(0x201c800), %g1 200adf0: 10 80 00 06 b 200ae08 200adf4: 82 10 60 b8 or %g1, 0xb8, %g1 ! 201c8b8 break; case IMFS_LINEAR_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; 200adf8: 10 80 00 04 b 200ae08 200adfc: c2 00 60 08 ld [ %g1 + 8 ], %g1 break; case IMFS_FIFO: loc->handlers = &IMFS_fifo_handlers; 200ae00: 03 00 80 71 sethi %hi(0x201c400), %g1 200ae04: 82 10 63 70 or %g1, 0x370, %g1 ! 201c770 200ae08: c2 22 20 08 st %g1, [ %o0 + 8 ] break; } return 0; } 200ae0c: 81 c3 e0 08 retl 200ae10: 90 10 20 00 clr %o0 =============================================================================== 0200abc8 : IMFS_jnode_t *IMFS_allocate_node( IMFS_jnode_types_t type, const char *name, mode_t mode ) { 200abc8: 9d e3 bf 98 save %sp, -104, %sp struct timeval tv; /* * Allocate an IMFS jnode */ node = calloc( 1, sizeof( IMFS_jnode_t ) ); 200abcc: 92 10 20 68 mov 0x68, %o1 200abd0: 7f ff df 39 call 20028b4 200abd4: 90 10 20 01 mov 1, %o0 IMFS_jnode_t *IMFS_allocate_node( IMFS_jnode_types_t type, const char *name, mode_t mode ) { 200abd8: 92 10 00 19 mov %i1, %o1 /* * Allocate an IMFS jnode */ node = calloc( 1, sizeof( IMFS_jnode_t ) ); if ( !node ) 200abdc: 80 a2 20 00 cmp %o0, 0 200abe0: 02 80 00 14 be 200ac30 <== NEVER TAKEN 200abe4: a0 10 00 08 mov %o0, %l0 return NULL; /* * Fill in the basic information */ node->st_nlink = 1; 200abe8: 82 10 20 01 mov 1, %g1 node->type = type; strncpy( node->name, name, IMFS_NAME_MAX ); 200abec: 94 10 20 20 mov 0x20, %o2 return NULL; /* * Fill in the basic information */ node->st_nlink = 1; 200abf0: c2 32 20 34 sth %g1, [ %o0 + 0x34 ] node->type = type; 200abf4: f0 22 20 4c st %i0, [ %o0 + 0x4c ] strncpy( node->name, name, IMFS_NAME_MAX ); 200abf8: 40 00 1b 56 call 2011950 200abfc: 90 02 20 0c add %o0, 0xc, %o0 /* * Fill in the mode and permission information for the jnode structure. */ node->st_mode = mode; #if defined(RTEMS_POSIX_API) node->st_uid = geteuid(); 200ac00: 40 00 04 da call 200bf68 200ac04: f4 24 20 30 st %i2, [ %l0 + 0x30 ] node->st_gid = getegid(); 200ac08: 40 00 04 d4 call 200bf58 200ac0c: d0 34 20 3c sth %o0, [ %l0 + 0x3c ] #endif /* * Now set all the times. */ gettimeofday( &tv, 0 ); 200ac10: 92 10 20 00 clr %o1 * Fill in the mode and permission information for the jnode structure. */ node->st_mode = mode; #if defined(RTEMS_POSIX_API) node->st_uid = geteuid(); node->st_gid = getegid(); 200ac14: d0 34 20 3e sth %o0, [ %l0 + 0x3e ] #endif /* * Now set all the times. */ gettimeofday( &tv, 0 ); 200ac18: 7f ff df e3 call 2002ba4 200ac1c: 90 07 bf f8 add %fp, -8, %o0 node->stat_atime = (time_t) tv.tv_sec; 200ac20: c2 07 bf f8 ld [ %fp + -8 ], %g1 node->stat_mtime = (time_t) tv.tv_sec; node->stat_ctime = (time_t) tv.tv_sec; 200ac24: c2 24 20 48 st %g1, [ %l0 + 0x48 ] /* * Now set all the times. */ gettimeofday( &tv, 0 ); node->stat_atime = (time_t) tv.tv_sec; 200ac28: c2 24 20 40 st %g1, [ %l0 + 0x40 ] node->stat_mtime = (time_t) tv.tv_sec; 200ac2c: c2 24 20 44 st %g1, [ %l0 + 0x44 ] node->stat_ctime = (time_t) tv.tv_sec; return node; } 200ac30: 81 c7 e0 08 ret 200ac34: 91 e8 00 10 restore %g0, %l0, %o0 =============================================================================== 0200ab44 : int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { 200ab44: 9d e3 bf 98 save %sp, -104, %sp /* * Verify I am the owner of the node or the super user. */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); 200ab48: 40 00 05 08 call 200bf68 200ab4c: e0 06 00 00 ld [ %i0 ], %l0 if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) 200ab50: 91 2a 20 10 sll %o0, 0x10, %o0 200ab54: 91 32 20 10 srl %o0, 0x10, %o0 200ab58: 80 a2 20 00 cmp %o0, 0 200ab5c: 22 80 00 0c be,a 200ab8c <== ALWAYS TAKEN 200ab60: f2 34 20 3c sth %i1, [ %l0 + 0x3c ] 200ab64: c2 14 20 3c lduh [ %l0 + 0x3c ], %g1 <== NOT EXECUTED 200ab68: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED 200ab6c: 22 80 00 08 be,a 200ab8c <== NOT EXECUTED 200ab70: f2 34 20 3c sth %i1, [ %l0 + 0x3c ] <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EPERM ); 200ab74: 40 00 17 75 call 2010948 <__errno> <== NOT EXECUTED 200ab78: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200ab7c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 200ab80: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200ab84: 81 c7 e0 08 ret <== NOT EXECUTED 200ab88: 81 e8 00 00 restore <== NOT EXECUTED #endif jnode->st_uid = owner; jnode->st_gid = group; 200ab8c: f4 34 20 3e sth %i2, [ %l0 + 0x3e ] IMFS_update_ctime( jnode ); 200ab90: 90 07 bf f8 add %fp, -8, %o0 200ab94: 7f ff e0 04 call 2002ba4 200ab98: 92 10 20 00 clr %o1 200ab9c: c2 07 bf f8 ld [ %fp + -8 ], %g1 200aba0: c2 24 20 48 st %g1, [ %l0 + 0x48 ] return 0; } 200aba4: 81 c7 e0 08 ret 200aba8: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 0200ac78 : IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 200ac78: 9d e3 bf a0 save %sp, -96, %sp 200ac7c: 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 ) 200ac80: 80 a6 20 00 cmp %i0, 0 IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 200ac84: 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 ) 200ac88: 02 80 00 3e be 200ad80 <== NEVER TAKEN 200ac8c: 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 ); 200ac90: 03 00 80 76 sethi %hi(0x201d800), %g1 200ac94: c2 00 60 70 ld [ %g1 + 0x70 ], %g1 ! 201d870 200ac98: 90 10 00 19 mov %i1, %o0 200ac9c: d4 00 60 2c ld [ %g1 + 0x2c ], %o2 200aca0: 7f ff ff ca call 200abc8 200aca4: 94 2e c0 0a andn %i3, %o2, %o2 if ( !node ) 200aca8: b0 92 20 00 orcc %o0, 0, %i0 200acac: 02 80 00 35 be 200ad80 <== NEVER TAKEN 200acb0: b2 06 7f ff add %i1, -1, %i1 return NULL; /* * Set the type specific information */ switch (type) { 200acb4: 80 a6 60 06 cmp %i1, 6 200acb8: 38 80 00 20 bgu,a 200ad38 <== NEVER TAKEN 200acbc: 11 00 80 71 sethi %hi(0x201c400), %o0 <== NOT EXECUTED 200acc0: b3 2e 60 02 sll %i1, 2, %i1 200acc4: 03 00 80 2a sethi %hi(0x200a800), %g1 200acc8: 82 10 63 ac or %g1, 0x3ac, %g1 ! 200abac 200accc: c2 00 40 19 ld [ %g1 + %i1 ], %g1 200acd0: 81 c0 40 00 jmp %g1 200acd4: 01 00 00 00 nop */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 200acd8: 82 06 20 54 add %i0, 0x54, %g1 the_chain->permanent_null = NULL; 200acdc: 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); 200ace0: c2 26 20 50 st %g1, [ %i0 + 0x50 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 200ace4: 82 06 20 50 add %i0, 0x50, %g1 200ace8: 10 80 00 1b b 200ad54 200acec: 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; 200acf0: 10 80 00 05 b 200ad04 200acf4: 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; 200acf8: 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; 200acfc: c2 07 00 00 ld [ %i4 ], %g1 node->info.device.minor = info->device.minor; 200ad00: c4 26 20 54 st %g2, [ %i0 + 0x54 ] break; 200ad04: 10 80 00 14 b 200ad54 200ad08: c2 26 20 50 st %g1, [ %i0 + 0x50 ] case IMFS_LINEAR_FILE: node->info.linearfile.size = 0; 200ad0c: c0 26 20 50 clr [ %i0 + 0x50 ] <== NOT EXECUTED 200ad10: c0 26 20 54 clr [ %i0 + 0x54 ] <== NOT EXECUTED node->info.linearfile.direct = 0; 200ad14: c0 26 20 58 clr [ %i0 + 0x58 ] <== NOT EXECUTED case IMFS_MEMORY_FILE: node->info.file.size = 0; 200ad18: c0 26 20 50 clr [ %i0 + 0x50 ] 200ad1c: c0 26 20 54 clr [ %i0 + 0x54 ] node->info.file.indirect = 0; 200ad20: c0 26 20 58 clr [ %i0 + 0x58 ] node->info.file.doubly_indirect = 0; 200ad24: c0 26 20 5c clr [ %i0 + 0x5c ] node->info.file.triply_indirect = 0; break; 200ad28: 10 80 00 0b b 200ad54 200ad2c: c0 26 20 60 clr [ %i0 + 0x60 ] case IMFS_FIFO: node->info.fifo.pipe = NULL; break; 200ad30: 10 80 00 09 b 200ad54 200ad34: c0 26 20 50 clr [ %i0 + 0x50 ] default: assert(0); 200ad38: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED 200ad3c: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED 200ad40: 90 12 22 98 or %o0, 0x298, %o0 <== NOT EXECUTED 200ad44: 94 12 a2 f0 or %o2, 0x2f0, %o2 <== NOT EXECUTED 200ad48: 96 12 e2 e8 or %o3, 0x2e8, %o3 <== NOT EXECUTED 200ad4c: 40 00 04 05 call 200bd60 <__assert_func> <== NOT EXECUTED 200ad50: 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; 200ad54: 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; 200ad58: d0 04 00 00 ld [ %l0 ], %o0 fs_info = parent_loc->mt_entry->fs_info; 200ad5c: c4 00 60 34 ld [ %g1 + 0x34 ], %g2 node->Parent = parent; 200ad60: d0 26 20 08 st %o0, [ %i0 + 8 ] node->st_ino = ++fs_info->ino_count; 200ad64: c2 00 a0 04 ld [ %g2 + 4 ], %g1 200ad68: 90 02 20 50 add %o0, 0x50, %o0 200ad6c: 82 00 60 01 inc %g1 200ad70: c2 20 a0 04 st %g1, [ %g2 + 4 ] 200ad74: c2 26 20 38 st %g1, [ %i0 + 0x38 ] 200ad78: 7f ff ef e9 call 2006d1c <_Chain_Append> 200ad7c: 92 10 00 18 mov %i0, %o1 rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; } 200ad80: 81 c7 e0 08 ret 200ad84: 81 e8 00 00 restore =============================================================================== 0200ac38 : IMFS_jnode_t *IMFS_create_root_node(void) { 200ac38: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *node; /* * Allocate filesystem node and fill in basic information */ node = IMFS_allocate_node( IMFS_DIRECTORY, "", (S_IFDIR | 0755) ); 200ac3c: 90 10 20 01 mov 1, %o0 200ac40: 13 00 80 71 sethi %hi(0x201c400), %o1 200ac44: 15 00 00 10 sethi %hi(0x4000), %o2 200ac48: 92 12 62 90 or %o1, 0x290, %o1 200ac4c: 7f ff ff df call 200abc8 200ac50: 94 12 a1 ed or %o2, 0x1ed, %o2 if ( !node ) 200ac54: 80 a2 20 00 cmp %o0, 0 200ac58: 02 80 00 06 be 200ac70 <== NEVER TAKEN 200ac5c: 82 02 20 54 add %o0, 0x54, %g1 RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 200ac60: c0 22 20 54 clr [ %o0 + 0x54 ] */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 200ac64: c2 22 20 50 st %g1, [ %o0 + 0x50 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 200ac68: 82 02 20 50 add %o0, 0x50, %g1 200ac6c: c2 22 20 58 st %g1, [ %o0 + 0x58 ] * NOTE: Root node is always a directory. */ rtems_chain_initialize_empty(&node->info.directory.Entries); return node; } 200ac70: 81 c7 e0 08 ret 200ac74: 91 e8 00 08 restore %g0, %o0, %o0 =============================================================================== 02004948 : void IMFS_dump_directory( IMFS_jnode_t *the_directory, int level ) { 2004948: 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 ); 200494c: 80 a6 20 00 cmp %i0, 0 2004950: 12 80 00 0a bne 2004978 <== ALWAYS TAKEN 2004954: 80 a6 60 00 cmp %i1, 0 2004958: 11 00 80 93 sethi %hi(0x2024c00), %o0 <== NOT EXECUTED 200495c: 15 00 80 94 sethi %hi(0x2025000), %o2 <== NOT EXECUTED 2004960: 17 00 80 94 sethi %hi(0x2025000), %o3 <== NOT EXECUTED 2004964: 90 12 23 a0 or %o0, 0x3a0, %o0 <== NOT EXECUTED 2004968: 94 12 a1 98 or %o2, 0x198, %o2 <== NOT EXECUTED 200496c: 96 12 e0 88 or %o3, 0x88, %o3 <== NOT EXECUTED 2004970: 10 80 00 0b b 200499c <== NOT EXECUTED 2004974: 92 10 20 84 mov 0x84, %o1 <== NOT EXECUTED assert( level >= 0 ); 2004978: 36 80 00 0b bge,a 20049a4 <== ALWAYS TAKEN 200497c: c2 06 20 4c ld [ %i0 + 0x4c ], %g1 2004980: 11 00 80 93 sethi %hi(0x2024c00), %o0 <== NOT EXECUTED 2004984: 15 00 80 94 sethi %hi(0x2025000), %o2 <== NOT EXECUTED 2004988: 17 00 80 94 sethi %hi(0x2025000), %o3 <== NOT EXECUTED 200498c: 90 12 23 a0 or %o0, 0x3a0, %o0 <== NOT EXECUTED 2004990: 94 12 a1 98 or %o2, 0x198, %o2 <== NOT EXECUTED 2004994: 96 12 e0 98 or %o3, 0x98, %o3 <== NOT EXECUTED 2004998: 92 10 20 86 mov 0x86, %o1 <== NOT EXECUTED 200499c: 40 00 02 29 call 2005240 <__assert_func> <== NOT EXECUTED 20049a0: 01 00 00 00 nop <== NOT EXECUTED assert( the_directory->type == IMFS_DIRECTORY ); 20049a4: 80 a0 60 01 cmp %g1, 1 20049a8: 02 80 00 0a be 20049d0 <== ALWAYS TAKEN 20049ac: 29 00 80 9c sethi %hi(0x2027000), %l4 20049b0: 11 00 80 93 sethi %hi(0x2024c00), %o0 <== NOT EXECUTED 20049b4: 15 00 80 94 sethi %hi(0x2025000), %o2 <== NOT EXECUTED 20049b8: 17 00 80 94 sethi %hi(0x2025000), %o3 <== NOT EXECUTED 20049bc: 90 12 23 a0 or %o0, 0x3a0, %o0 <== NOT EXECUTED 20049c0: 94 12 a1 98 or %o2, 0x198, %o2 <== NOT EXECUTED 20049c4: 96 12 e0 a8 or %o3, 0xa8, %o3 <== NOT EXECUTED 20049c8: 10 bf ff f5 b 200499c <== NOT EXECUTED 20049cc: 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, "...." ); 20049d0: 27 00 80 94 sethi %hi(0x2025000), %l3 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 20049d4: aa 06 20 54 add %i0, 0x54, %l5 20049d8: a8 15 20 70 or %l4, 0x70, %l4 20049dc: a6 14 e0 d0 or %l3, 0xd0, %l3 assert( the_directory->type == IMFS_DIRECTORY ); the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; 20049e0: e0 06 20 50 ld [ %i0 + 0x50 ], %l0 20049e4: 10 80 00 14 b 2004a34 20049e8: 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, "...." ); 20049ec: c2 05 00 00 ld [ %l4 ], %g1 20049f0: 90 10 00 13 mov %l3, %o0 20049f4: d2 00 60 08 ld [ %g1 + 8 ], %o1 20049f8: 40 00 41 d0 call 2015138 20049fc: 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++ ) 2004a00: 80 a4 40 19 cmp %l1, %i1 2004a04: 24 bf ff fb ble,a 20049f0 2004a08: c2 05 00 00 ld [ %l4 ], %g1 fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); 2004a0c: 7f ff ff 71 call 20047d0 2004a10: 90 10 00 10 mov %l0, %o0 if ( the_jnode->type == IMFS_DIRECTORY ) 2004a14: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 2004a18: 80 a0 60 01 cmp %g1, 1 2004a1c: 32 80 00 06 bne,a 2004a34 2004a20: e0 04 00 00 ld [ %l0 ], %l0 IMFS_dump_directory( the_jnode, level + 1 ); 2004a24: 90 10 00 10 mov %l0, %o0 2004a28: 7f ff ff c8 call 2004948 2004a2c: 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 ) { 2004a30: 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; 2004a34: 80 a4 00 15 cmp %l0, %l5 2004a38: 12 bf ff ed bne 20049ec 2004a3c: 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 ); } } 2004a40: 81 c7 e0 08 ret 2004a44: 81 e8 00 00 restore =============================================================================== 0200afa4 : const char *pathname, /* IN */ size_t pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 200afa4: 9d e3 bf 78 save %sp, -136, %sp IMFS_token_types type = IMFS_CURRENT_DIR; char token[ IMFS_NAME_MAX + 1 ]; IMFS_jnode_t *node; int result; if ( !rtems_libio_is_valid_perms( flags ) ) { 200afa8: 80 8e bf f8 btst -8, %i2 200afac: 02 80 00 0a be 200afd4 <== ALWAYS TAKEN 200afb0: a0 10 00 18 mov %i0, %l0 assert( 0 ); 200afb4: 11 00 80 71 sethi %hi(0x201c400), %o0 <== NOT EXECUTED 200afb8: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED 200afbc: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED 200afc0: 90 12 23 18 or %o0, 0x318, %o0 <== NOT EXECUTED 200afc4: 94 12 a3 08 or %o2, 0x308, %o2 <== NOT EXECUTED 200afc8: 96 12 e3 68 or %o3, 0x368, %o3 <== NOT EXECUTED 200afcc: 40 00 03 65 call 200bd60 <__assert_func> <== NOT EXECUTED 200afd0: 92 10 22 08 mov 0x208, %o1 <== NOT EXECUTED case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 200afd4: 2b 00 80 76 sethi %hi(0x201d800), %l5 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 200afd8: e2 06 c0 00 ld [ %i3 ], %l1 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 200afdc: aa 15 60 70 or %l5, 0x70, %l5 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 200afe0: a4 10 20 00 clr %l2 200afe4: ac 10 20 01 mov 1, %l6 * 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 ); 200afe8: a6 07 bf d8 add %fp, -40, %l3 /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { 200afec: 10 80 00 94 b 200b23c 200aff0: a8 07 bf fc add %fp, -4, %l4 type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); 200aff4: 90 04 00 12 add %l0, %l2, %o0 200aff8: 92 10 00 19 mov %i1, %o1 200affc: 94 10 00 13 mov %l3, %o2 200b000: 40 00 02 b4 call 200bad0 200b004: 96 10 00 14 mov %l4, %o3 pathnamelen -= len; i += len; if ( !pathloc->node_access ) 200b008: 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 ); 200b00c: ac 10 00 08 mov %o0, %l6 pathnamelen -= len; i += len; if ( !pathloc->node_access ) 200b010: 80 a0 60 00 cmp %g1, 0 200b014: 02 80 00 52 be 200b15c <== NEVER TAKEN 200b018: f0 07 bf fc ld [ %fp + -4 ], %i0 rtems_set_errno_and_return_minus_one( ENOENT ); /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 200b01c: 80 a2 20 00 cmp %o0, 0 200b020: 22 80 00 10 be,a 200b060 200b024: a4 04 80 18 add %l2, %i0, %l2 if ( node->type == IMFS_DIRECTORY ) 200b028: c2 04 60 4c ld [ %l1 + 0x4c ], %g1 200b02c: 80 a0 60 01 cmp %g1, 1 200b030: 32 80 00 0c bne,a 200b060 200b034: a4 04 80 18 add %l2, %i0, %l2 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) 200b038: 90 10 00 1b mov %i3, %o0 200b03c: 7f ff ff 76 call 200ae14 200b040: 92 10 20 01 mov 1, %o1 200b044: 80 a2 20 00 cmp %o0, 0 200b048: 32 80 00 06 bne,a 200b060 200b04c: a4 04 80 18 add %l2, %i0, %l2 rtems_set_errno_and_return_minus_one( EACCES ); 200b050: 40 00 16 3e call 2010948 <__errno> 200b054: b0 10 3f ff mov -1, %i0 200b058: 10 80 00 76 b 200b230 200b05c: 82 10 20 0d mov 0xd, %g1 */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); pathnamelen -= len; 200b060: b2 26 40 18 sub %i1, %i0, %i1 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { 200b064: 80 a5 a0 03 cmp %l6, 3 200b068: 02 80 00 1b be 200b0d4 200b06c: e2 06 c0 00 ld [ %i3 ], %l1 200b070: 80 a5 a0 04 cmp %l6, 4 200b074: 02 80 00 6c be 200b224 200b078: 80 a5 a0 02 cmp %l6, 2 200b07c: 12 80 00 71 bne 200b240 200b080: 80 a5 a0 04 cmp %l6, 4 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 200b084: c2 05 40 00 ld [ %l5 ], %g1 200b088: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 200b08c: 80 a4 40 01 cmp %l1, %g1 200b090: 02 bf ff da be 200aff8 200b094: 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) { 200b098: d2 06 e0 10 ld [ %i3 + 0x10 ], %o1 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == 200b09c: c2 02 60 1c ld [ %o1 + 0x1c ], %g1 200b0a0: 80 a4 40 01 cmp %l1, %g1 200b0a4: 32 80 00 04 bne,a 200b0b4 200b0a8: e2 04 60 08 ld [ %l1 + 8 ], %l1 */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { *pathloc = pathloc->mt_entry->mt_point_node; 200b0ac: 10 80 00 71 b 200b270 200b0b0: 92 02 60 08 add %o1, 8, %o1 return (*pathloc->ops->evalpath_h)(&(pathname[i-len]), pathnamelen+len, flags,pathloc); } } else { if ( !node->Parent ) 200b0b4: 80 a4 60 00 cmp %l1, 0 200b0b8: 32 bf ff cf bne,a 200aff4 200b0bc: e2 26 c0 00 st %l1, [ %i3 ] rtems_set_errno_and_return_minus_one( ENOENT ); 200b0c0: 40 00 16 22 call 2010948 <__errno> 200b0c4: b0 10 3f ff mov -1, %i0 200b0c8: ec 22 00 00 st %l6, [ %o0 ] 200b0cc: 81 c7 e0 08 ret 200b0d0: 81 e8 00 00 restore case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { 200b0d4: c2 04 60 4c ld [ %l1 + 0x4c ], %g1 200b0d8: 80 a0 60 03 cmp %g1, 3 200b0dc: 12 80 00 0a bne 200b104 200b0e0: 80 a0 60 04 cmp %g1, 4 IMFS_evaluate_hard_link( pathloc, 0 ); 200b0e4: 90 10 00 1b mov %i3, %o0 200b0e8: 7f ff ff 6c call 200ae98 200b0ec: 92 10 20 00 clr %o1 node = pathloc->node_access; 200b0f0: e2 06 c0 00 ld [ %i3 ], %l1 if ( !node ) 200b0f4: 80 a4 60 00 cmp %l1, 0 200b0f8: 32 80 00 0d bne,a 200b12c <== ALWAYS TAKEN 200b0fc: c2 04 60 4c ld [ %l1 + 0x4c ], %g1 200b100: 30 80 00 0e b,a 200b138 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { 200b104: 32 80 00 0a bne,a 200b12c 200b108: c2 04 60 4c ld [ %l1 + 0x4c ], %g1 result = IMFS_evaluate_sym_link( pathloc, 0 ); 200b10c: 90 10 00 1b mov %i3, %o0 200b110: 7f ff ff 7a call 200aef8 200b114: 92 10 20 00 clr %o1 node = pathloc->node_access; 200b118: e2 06 c0 00 ld [ %i3 ], %l1 if ( result == -1 ) 200b11c: 80 a2 3f ff cmp %o0, -1 200b120: 02 bf ff eb be 200b0cc <== NEVER TAKEN 200b124: b0 10 00 08 mov %o0, %i0 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 200b128: c2 04 60 4c ld [ %l1 + 0x4c ], %g1 200b12c: 80 a0 60 01 cmp %g1, 1 200b130: 22 80 00 06 be,a 200b148 200b134: 90 10 00 11 mov %l1, %o0 rtems_set_errno_and_return_minus_one( ENOTDIR ); 200b138: 40 00 16 04 call 2010948 <__errno> 200b13c: b0 10 3f ff mov -1, %i0 200b140: 10 80 00 3c b 200b230 200b144: 82 10 20 14 mov 0x14, %g1 /* * Find the token name in the current node. */ node = IMFS_find_match_in_dir( node, token ); 200b148: 40 00 02 37 call 200ba24 200b14c: 92 10 00 13 mov %l3, %o1 if ( !node ) 200b150: a2 92 20 00 orcc %o0, 0, %l1 200b154: 32 80 00 06 bne,a 200b16c 200b158: c2 04 60 4c ld [ %l1 + 0x4c ], %g1 rtems_set_errno_and_return_minus_one( ENOENT ); 200b15c: 40 00 15 fb call 2010948 <__errno> 200b160: b0 10 3f ff mov -1, %i0 200b164: 10 80 00 33 b 200b230 200b168: 82 10 20 02 mov 2, %g1 * file system and not the IMFS. For example the IMFS length is * limited. If the token is a parent directory move back up otherwise * set loc to the new fs root node and let them finish evaluating the * path. */ if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) { 200b16c: 80 a0 60 01 cmp %g1, 1 200b170: 32 bf ff a1 bne,a 200aff4 200b174: e2 26 c0 00 st %l1, [ %i3 ] 200b178: c2 04 60 5c ld [ %l1 + 0x5c ], %g1 200b17c: 80 a0 60 00 cmp %g1, 0 200b180: 12 80 00 06 bne 200b198 200b184: b0 04 00 12 add %l0, %l2, %i0 /* * Set the node access to the point we have found. */ pathloc->node_access = node; 200b188: 10 bf ff 9b b 200aff4 200b18c: e2 26 c0 00 st %l1, [ %i3 ] size_t *len, /* IN/OUT */ int *index /* IN/OUT */ ) { while ( IMFS_is_separator( path[*index] ) && path[*index] && *len ) { ++(*index); 200b190: a4 04 a0 01 inc %l2 --(*len); 200b194: b2 06 7f ff add %i1, -1, %i1 const char *path, /* IN */ size_t *len, /* IN/OUT */ int *index /* IN/OUT */ ) { while ( IMFS_is_separator( path[*index] ) && path[*index] && *len ) { 200b198: d0 4e 00 00 ldsb [ %i0 ], %o0 200b19c: 7f ff e2 4d call 2003ad0 200b1a0: ac 10 00 18 mov %i0, %l6 200b1a4: 80 a2 20 00 cmp %o0, 0 200b1a8: 22 80 00 09 be,a 200b1cc 200b1ac: c2 4d 80 00 ldsb [ %l6 ], %g1 200b1b0: c2 4e 00 00 ldsb [ %i0 ], %g1 200b1b4: 80 a0 60 00 cmp %g1, 0 200b1b8: 02 80 00 04 be 200b1c8 200b1bc: 80 a6 60 00 cmp %i1, 0 200b1c0: 12 bf ff f4 bne 200b190 <== ALWAYS TAKEN 200b1c4: b0 06 20 01 inc %i0 * set loc to the new fs root node and let them finish evaluating the * path. */ if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) { IMFS_skip_separator( pathname, &pathnamelen, &i); if ((pathname[i] != '.') || (pathname[i + 1] != '.')) { 200b1c8: c2 4d 80 00 ldsb [ %l6 ], %g1 200b1cc: 80 a0 60 2e cmp %g1, 0x2e 200b1d0: 32 80 00 08 bne,a 200b1f0 200b1d4: d2 04 60 5c ld [ %l1 + 0x5c ], %o1 200b1d8: 82 04 00 12 add %l0, %l2, %g1 200b1dc: c2 48 60 01 ldsb [ %g1 + 1 ], %g1 200b1e0: 80 a0 60 2e cmp %g1, 0x2e 200b1e4: 22 80 00 0c be,a 200b214 200b1e8: e2 04 60 08 ld [ %l1 + 8 ], %l1 *pathloc = node->info.directory.mt_fs->mt_fs_root; 200b1ec: d2 04 60 5c ld [ %l1 + 0x5c ], %o1 200b1f0: 94 10 20 14 mov 0x14, %o2 200b1f4: 92 02 60 1c add %o1, 0x1c, %o1 200b1f8: 40 00 18 10 call 2011238 200b1fc: 90 10 00 1b mov %i3, %o0 return (*pathloc->ops->evalpath_h)( &pathname[i], 200b200: c2 06 e0 0c ld [ %i3 + 0xc ], %g1 200b204: 90 10 00 16 mov %l6, %o0 200b208: c2 00 40 00 ld [ %g1 ], %g1 200b20c: 10 80 00 22 b 200b294 200b210: 92 10 00 19 mov %i1, %o1 pathnamelen, flags, pathloc ); } i += 2; 200b214: a4 04 a0 02 add %l2, 2, %l2 pathnamelen -= 2; 200b218: b2 06 7f fe add %i1, -2, %i1 /* * Set the node access to the point we have found. */ pathloc->node_access = node; 200b21c: 10 bf ff 76 b 200aff4 200b220: e2 26 c0 00 st %l1, [ %i3 ] case IMFS_NO_MORE_PATH: case IMFS_CURRENT_DIR: break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 200b224: 40 00 15 c9 call 2010948 <__errno> 200b228: b0 10 3f ff mov -1, %i0 200b22c: 82 10 20 5b mov 0x5b, %g1 200b230: c2 22 00 00 st %g1, [ %o0 ] 200b234: 81 c7 e0 08 ret 200b238: 81 e8 00 00 restore /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { 200b23c: 80 a5 a0 04 cmp %l6, 4 200b240: 02 80 00 04 be 200b250 <== NEVER TAKEN 200b244: 80 a5 a0 00 cmp %l6, 0 200b248: 12 bf ff 6c bne 200aff8 200b24c: 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 ) { 200b250: c2 04 60 4c ld [ %l1 + 0x4c ], %g1 200b254: 80 a0 60 01 cmp %g1, 1 200b258: 12 80 00 14 bne 200b2a8 200b25c: 01 00 00 00 nop if ( node->info.directory.mt_fs != NULL ) { 200b260: d2 04 60 5c ld [ %l1 + 0x5c ], %o1 200b264: 80 a2 60 00 cmp %o1, 0 200b268: 02 80 00 10 be 200b2a8 <== ALWAYS TAKEN 200b26c: 92 02 60 1c add %o1, 0x1c, %o1 *pathloc = node->info.directory.mt_fs->mt_fs_root; 200b270: 94 10 20 14 mov 0x14, %o2 200b274: 40 00 17 f1 call 2011238 200b278: 90 10 00 1b mov %i3, %o0 return (*pathloc->ops->evalpath_h)( &pathname[i-len], 200b27c: c2 06 e0 0c ld [ %i3 + 0xc ], %g1 200b280: d0 07 bf fc ld [ %fp + -4 ], %o0 200b284: c2 00 40 00 ld [ %g1 ], %g1 200b288: 92 06 40 08 add %i1, %o0, %o1 200b28c: 90 24 80 08 sub %l2, %o0, %o0 200b290: 90 04 00 08 add %l0, %o0, %o0 200b294: 94 10 00 1a mov %i2, %o2 200b298: 9f c0 40 00 call %g1 200b29c: 96 10 00 1b mov %i3, %o3 200b2a0: 81 c7 e0 08 ret 200b2a4: 91 e8 00 08 restore %g0, %o0, %o0 flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 200b2a8: 7f ff fe bf call 200ada4 200b2ac: 90 10 00 1b mov %i3, %o0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) 200b2b0: 92 10 00 1a mov %i2, %o1 flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 200b2b4: b0 10 00 08 mov %o0, %i0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) 200b2b8: 7f ff fe d7 call 200ae14 200b2bc: 90 10 00 1b mov %i3, %o0 200b2c0: 80 a2 20 00 cmp %o0, 0 200b2c4: 12 80 00 06 bne 200b2dc 200b2c8: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EACCES ); 200b2cc: 40 00 15 9f call 2010948 <__errno> 200b2d0: b0 10 3f ff mov -1, %i0 ! ffffffff 200b2d4: 82 10 20 0d mov 0xd, %g1 200b2d8: c2 22 00 00 st %g1, [ %o0 ] return result; } 200b2dc: 81 c7 e0 08 ret 200b2e0: 81 e8 00 00 restore =============================================================================== 0200b3a0 : int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 200b3a0: 9d e3 bf 78 save %sp, -136, %sp /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 200b3a4: e0 06 40 00 ld [ %i1 ], %l0 /* * Get the path length. */ pathlen = strlen( path ); 200b3a8: 90 10 00 18 mov %i0, %o0 200b3ac: 40 00 19 34 call 201187c 200b3b0: 2b 00 80 76 sethi %hi(0x201d800), %l5 int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 200b3b4: a2 10 00 18 mov %i0, %l1 node = pathloc->node_access; /* * Get the path length. */ pathlen = strlen( path ); 200b3b8: a4 10 20 00 clr %l2 * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); 200b3bc: a8 07 bf d8 add %fp, -40, %l4 200b3c0: ac 07 bf fc add %fp, -4, %l6 node = pathloc->node_access; /* * Get the path length. */ pathlen = strlen( path ); 200b3c4: a6 10 00 08 mov %o0, %l3 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 200b3c8: aa 15 60 70 or %l5, 0x70, %l5 * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); 200b3cc: 90 04 40 12 add %l1, %l2, %o0 200b3d0: 92 10 00 13 mov %l3, %o1 200b3d4: 94 10 00 14 mov %l4, %o2 200b3d8: 40 00 01 be call 200bad0 200b3dc: 96 10 00 16 mov %l6, %o3 pathlen -= len; i += len; if ( !pathloc->node_access ) 200b3e0: c2 06 40 00 ld [ %i1 ], %g1 * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); 200b3e4: ae 10 00 08 mov %o0, %l7 pathlen -= len; i += len; if ( !pathloc->node_access ) 200b3e8: 80 a0 60 00 cmp %g1, 0 200b3ec: 02 80 00 a4 be 200b67c <== NEVER TAKEN 200b3f0: f0 07 bf fc ld [ %fp + -4 ], %i0 /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 200b3f4: 80 a2 20 00 cmp %o0, 0 200b3f8: 22 80 00 10 be,a 200b438 200b3fc: a4 04 80 18 add %l2, %i0, %l2 if ( node->type == IMFS_DIRECTORY ) 200b400: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 200b404: 80 a0 60 01 cmp %g1, 1 200b408: 32 80 00 0c bne,a 200b438 200b40c: a4 04 80 18 add %l2, %i0, %l2 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) 200b410: 90 10 00 19 mov %i1, %o0 200b414: 7f ff fe 80 call 200ae14 200b418: 92 10 20 01 mov 1, %o1 200b41c: 80 a2 20 00 cmp %o0, 0 200b420: 32 80 00 06 bne,a 200b438 200b424: a4 04 80 18 add %l2, %i0, %l2 rtems_set_errno_and_return_minus_one( EACCES ); 200b428: 40 00 15 48 call 2010948 <__errno> 200b42c: b0 10 3f ff mov -1, %i0 200b430: 10 80 00 a5 b 200b6c4 200b434: 82 10 20 0d mov 0xd, %g1 */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; 200b438: a6 24 c0 18 sub %l3, %i0, %l3 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { 200b43c: 80 a5 e0 02 cmp %l7, 2 200b440: 02 80 00 0f be 200b47c 200b444: e0 06 40 00 ld [ %i1 ], %l0 200b448: 80 a5 e0 02 cmp %l7, 2 200b44c: 18 80 00 07 bgu 200b468 200b450: 80 a5 e0 03 cmp %l7, 3 200b454: 80 a5 e0 00 cmp %l7, 0 200b458: 02 80 00 77 be 200b634 200b45c: 01 00 00 00 nop * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); 200b460: 10 bf ff dc b 200b3d0 200b464: 90 04 40 12 add %l1, %l2, %o0 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { 200b468: 02 80 00 21 be 200b4ec 200b46c: 80 a5 e0 04 cmp %l7, 4 200b470: 32 bf ff d8 bne,a 200b3d0 <== NEVER TAKEN 200b474: 90 04 40 12 add %l1, %l2, %o0 <== NOT EXECUTED 200b478: 30 80 00 73 b,a 200b644 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 200b47c: c2 05 40 00 ld [ %l5 ], %g1 200b480: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 200b484: 80 a4 00 01 cmp %l0, %g1 200b488: 02 bf ff d2 be 200b3d0 200b48c: 90 04 40 12 add %l1, %l2, %o0 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){ 200b490: d2 06 60 10 ld [ %i1 + 0x10 ], %o1 200b494: c2 02 60 1c ld [ %o1 + 0x1c ], %g1 200b498: 80 a4 00 01 cmp %l0, %g1 200b49c: 32 80 00 0c bne,a 200b4cc 200b4a0: e0 04 20 08 ld [ %l0 + 8 ], %l0 if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { *pathloc = pathloc->mt_entry->mt_point_node; 200b4a4: 92 02 60 08 add %o1, 8, %o1 200b4a8: 94 10 20 14 mov 0x14, %o2 200b4ac: 40 00 17 63 call 2011238 200b4b0: 90 10 00 19 mov %i1, %o0 return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 200b4b4: c2 06 60 0c ld [ %i1 + 0xc ], %g1 200b4b8: c4 07 bf fc ld [ %fp + -4 ], %g2 200b4bc: c2 00 60 04 ld [ %g1 + 4 ], %g1 200b4c0: a4 24 80 02 sub %l2, %g2, %l2 200b4c4: 10 80 00 53 b 200b610 200b4c8: 90 04 40 12 add %l1, %l2, %o0 } } else { if ( !node->Parent ) 200b4cc: 80 a4 20 00 cmp %l0, 0 200b4d0: 32 bf ff bf bne,a 200b3cc 200b4d4: e0 26 40 00 st %l0, [ %i1 ] rtems_set_errno_and_return_minus_one( ENOENT ); 200b4d8: 40 00 15 1c call 2010948 <__errno> 200b4dc: b0 10 3f ff mov -1, %i0 200b4e0: ee 22 00 00 st %l7, [ %o0 ] 200b4e4: 81 c7 e0 08 ret 200b4e8: 81 e8 00 00 restore case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { 200b4ec: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 200b4f0: 80 a0 60 03 cmp %g1, 3 200b4f4: 12 80 00 0a bne 200b51c 200b4f8: 80 a0 60 04 cmp %g1, 4 result = IMFS_evaluate_link( pathloc, 0 ); 200b4fc: 90 10 00 19 mov %i1, %o0 200b500: 7f ff ff 79 call 200b2e4 200b504: 92 10 20 00 clr %o1 if ( result == -1 ) 200b508: 80 a2 3f ff cmp %o0, -1 200b50c: 12 80 00 0c bne 200b53c <== ALWAYS TAKEN 200b510: b0 10 00 08 mov %o0, %i0 200b514: 81 c7 e0 08 ret <== NOT EXECUTED 200b518: 81 e8 00 00 restore <== NOT EXECUTED return -1; } else if ( node->type == IMFS_SYM_LINK ) { 200b51c: 32 80 00 09 bne,a 200b540 200b520: d0 06 40 00 ld [ %i1 ], %o0 result = IMFS_evaluate_link( pathloc, 0 ); 200b524: 90 10 00 19 mov %i1, %o0 200b528: 7f ff ff 6f call 200b2e4 200b52c: 92 10 20 00 clr %o1 if ( result == -1 ) 200b530: 80 a2 3f ff cmp %o0, -1 200b534: 02 bf ff ec be 200b4e4 <== NEVER TAKEN 200b538: b0 10 00 08 mov %o0, %i0 return -1; } node = pathloc->node_access; 200b53c: d0 06 40 00 ld [ %i1 ], %o0 if ( !node ) 200b540: 80 a2 20 00 cmp %o0, 0 200b544: 02 80 00 5d be 200b6b8 <== NEVER TAKEN 200b548: 01 00 00 00 nop /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 200b54c: c2 02 20 4c ld [ %o0 + 0x4c ], %g1 200b550: 80 a0 60 01 cmp %g1, 1 200b554: 12 80 00 59 bne 200b6b8 200b558: 01 00 00 00 nop /* * Find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 200b55c: 40 00 01 32 call 200ba24 200b560: 92 10 00 14 mov %l4, %o1 /* * If there is no node we have found the name of the node we * wish to create. */ if ( ! node ) 200b564: a0 92 20 00 orcc %o0, 0, %l0 200b568: 02 80 00 3b be 200b654 200b56c: c2 07 bf fc ld [ %fp + -4 ], %g1 done = true; else { if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) { 200b570: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 200b574: 80 a0 60 01 cmp %g1, 1 200b578: 32 bf ff 95 bne,a 200b3cc 200b57c: e0 26 40 00 st %l0, [ %i1 ] 200b580: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 200b584: 80 a0 60 00 cmp %g1, 0 200b588: 12 80 00 05 bne 200b59c 200b58c: b0 04 40 12 add %l1, %l2, %i0 i += 2; pathlen -= 2; node = node->Parent; } pathloc->node_access = node; 200b590: 10 bf ff 8f b 200b3cc 200b594: e0 26 40 00 st %l0, [ %i1 ] int *index /* IN/OUT */ ) { while ( IMFS_is_separator( path[*index] ) && path[*index] && *len ) { ++(*index); --(*len); 200b598: a6 04 ff ff add %l3, -1, %l3 const char *path, /* IN */ size_t *len, /* IN/OUT */ int *index /* IN/OUT */ ) { while ( IMFS_is_separator( path[*index] ) && path[*index] && *len ) { 200b59c: d0 4e 00 00 ldsb [ %i0 ], %o0 200b5a0: 7f ff e1 4c call 2003ad0 200b5a4: ae 10 00 18 mov %i0, %l7 200b5a8: 80 a2 20 00 cmp %o0, 0 200b5ac: 22 80 00 0a be,a 200b5d4 200b5b0: c2 4d c0 00 ldsb [ %l7 ], %g1 200b5b4: c2 4e 00 00 ldsb [ %i0 ], %g1 200b5b8: 80 a0 60 00 cmp %g1, 0 200b5bc: 02 80 00 05 be 200b5d0 <== NEVER TAKEN 200b5c0: b0 06 20 01 inc %i0 200b5c4: 80 a4 e0 00 cmp %l3, 0 200b5c8: 32 bf ff f4 bne,a 200b598 <== ALWAYS TAKEN 200b5cc: a4 04 a0 01 inc %l2 if ( ! node ) done = true; else { if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) { IMFS_skip_separator( path, &pathlen, &i); if ((path[i] != '.') || (path[i + 1] != '.')) { 200b5d0: c2 4d c0 00 ldsb [ %l7 ], %g1 <== NOT EXECUTED 200b5d4: 80 a0 60 2e cmp %g1, 0x2e 200b5d8: 12 80 00 06 bne 200b5f0 200b5dc: 82 04 40 12 add %l1, %l2, %g1 200b5e0: c2 48 60 01 ldsb [ %g1 + 1 ], %g1 200b5e4: 80 a0 60 2e cmp %g1, 0x2e 200b5e8: 22 80 00 0f be,a 200b624 <== ALWAYS TAKEN 200b5ec: e0 04 20 08 ld [ %l0 + 8 ], %l0 *pathloc = node->info.directory.mt_fs->mt_fs_root; 200b5f0: d2 04 20 5c ld [ %l0 + 0x5c ], %o1 200b5f4: 94 10 20 14 mov 0x14, %o2 200b5f8: 92 02 60 1c add %o1, 0x1c, %o1 200b5fc: 40 00 17 0f call 2011238 200b600: 90 10 00 19 mov %i1, %o0 return (*pathloc->ops->evalformake_h)( &path[i], 200b604: c2 06 60 0c ld [ %i1 + 0xc ], %g1 200b608: 90 10 00 17 mov %l7, %o0 200b60c: c2 00 60 04 ld [ %g1 + 4 ], %g1 200b610: 92 10 00 19 mov %i1, %o1 200b614: 9f c0 40 00 call %g1 200b618: 94 10 00 1a mov %i2, %o2 200b61c: 81 c7 e0 08 ret 200b620: 91 e8 00 08 restore %g0, %o0, %o0 pathloc, name ); } i += 2; 200b624: a4 04 a0 02 add %l2, 2, %l2 pathlen -= 2; 200b628: a6 04 ff fe add %l3, -2, %l3 node = node->Parent; } pathloc->node_access = node; 200b62c: 10 bf ff 68 b 200b3cc 200b630: e0 26 40 00 st %l0, [ %i1 ] } break; case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); 200b634: 40 00 14 c5 call 2010948 <__errno> 200b638: b0 10 3f ff mov -1, %i0 200b63c: 10 80 00 22 b 200b6c4 200b640: 82 10 20 11 mov 0x11, %g1 break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 200b644: 40 00 14 c1 call 2010948 <__errno> 200b648: b0 10 3f ff mov -1, %i0 200b64c: 10 80 00 1e b 200b6c4 200b650: 82 10 20 5b mov 0x5b, %g1 case IMFS_CURRENT_DIR: break; } } *name = &path[ i - len ]; 200b654: a0 04 40 12 add %l1, %l2, %l0 200b658: a4 24 80 01 sub %l2, %g1, %l2 200b65c: a2 04 40 12 add %l1, %l2, %l1 /* * We have evaluated the path as far as we can. * Verify there is not any invalid stuff at the end of the name. */ for( ; path[i] != '\0'; i++) { 200b660: 10 80 00 0b b 200b68c 200b664: e2 26 80 00 st %l1, [ %i2 ] if ( !IMFS_is_separator( path[ i ] ) ) 200b668: 7f ff e1 1a call 2003ad0 200b66c: 01 00 00 00 nop 200b670: 80 a2 20 00 cmp %o0, 0 200b674: 32 80 00 07 bne,a 200b690 200b678: d0 4c 00 00 ldsb [ %l0 ], %o0 rtems_set_errno_and_return_minus_one( ENOENT ); 200b67c: 40 00 14 b3 call 2010948 <__errno> 200b680: b0 10 3f ff mov -1, %i0 200b684: 10 80 00 10 b 200b6c4 200b688: 82 10 20 02 mov 2, %g1 /* * We have evaluated the path as far as we can. * Verify there is not any invalid stuff at the end of the name. */ for( ; path[i] != '\0'; i++) { 200b68c: d0 4c 00 00 ldsb [ %l0 ], %o0 200b690: 80 a2 20 00 cmp %o0, 0 200b694: 12 bf ff f5 bne 200b668 200b698: a0 04 20 01 inc %l0 /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); 200b69c: 7f ff fd c2 call 200ada4 200b6a0: 90 10 00 19 mov %i1, %o0 /* * The returned node must be a directory */ node = pathloc->node_access; 200b6a4: c2 06 40 00 ld [ %i1 ], %g1 200b6a8: c2 00 60 4c ld [ %g1 + 0x4c ], %g1 200b6ac: 80 a0 60 01 cmp %g1, 1 200b6b0: 02 80 00 08 be 200b6d0 <== ALWAYS TAKEN 200b6b4: b0 10 00 08 mov %o0, %i0 if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 200b6b8: 40 00 14 a4 call 2010948 <__errno> 200b6bc: b0 10 3f ff mov -1, %i0 200b6c0: 82 10 20 14 mov 0x14, %g1 200b6c4: c2 22 00 00 st %g1, [ %o0 ] 200b6c8: 81 c7 e0 08 ret 200b6cc: 81 e8 00 00 restore /* * We must have Write and execute permission on the returned node. */ if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) 200b6d0: 90 10 00 19 mov %i1, %o0 200b6d4: 7f ff fd d0 call 200ae14 200b6d8: 92 10 20 03 mov 3, %o1 200b6dc: 80 a2 20 00 cmp %o0, 0 200b6e0: 12 80 00 06 bne 200b6f8 200b6e4: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EACCES ); 200b6e8: 40 00 14 98 call 2010948 <__errno> 200b6ec: b0 10 3f ff mov -1, %i0 ! ffffffff 200b6f0: 82 10 20 0d mov 0xd, %g1 200b6f4: c2 22 00 00 st %g1, [ %o0 ] return result; } 200b6f8: 81 c7 e0 08 ret 200b6fc: 81 e8 00 00 restore =============================================================================== 0200ae98 : int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 200ae98: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *jnode = node->node_access; 200ae9c: c2 06 00 00 ld [ %i0 ], %g1 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 200aea0: c4 00 60 4c ld [ %g1 + 0x4c ], %g2 200aea4: 80 a0 a0 03 cmp %g2, 3 200aea8: 22 80 00 04 be,a 200aeb8 <== ALWAYS TAKEN 200aeac: c2 00 60 50 ld [ %g1 + 0x50 ], %g1 rtems_fatal_error_occurred (0xABCD0000); 200aeb0: 7f ff ee c0 call 20069b0 <== NOT EXECUTED 200aeb4: 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 ); 200aeb8: 90 10 00 18 mov %i0, %o0 200aebc: 7f ff ff ba call 200ada4 200aec0: c2 26 00 00 st %g1, [ %i0 ] /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) 200aec4: 90 10 00 18 mov %i0, %o0 200aec8: 92 10 00 19 mov %i1, %o1 200aecc: 7f ff ff d2 call 200ae14 200aed0: b0 10 20 00 clr %i0 200aed4: 80 a2 20 00 cmp %o0, 0 200aed8: 12 80 00 06 bne 200aef0 <== ALWAYS TAKEN 200aedc: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EACCES ); 200aee0: 40 00 16 9a call 2010948 <__errno> <== NOT EXECUTED 200aee4: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 200aee8: 82 10 20 0d mov 0xd, %g1 <== NOT EXECUTED 200aeec: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return result; } 200aef0: 81 c7 e0 08 ret 200aef4: 81 e8 00 00 restore =============================================================================== 0200ae14 : int IMFS_evaluate_permission( rtems_filesystem_location_info_t *node, int flags ) { 200ae14: 9d e3 bf a0 save %sp, -96, %sp uid_t st_uid; gid_t st_gid; IMFS_jnode_t *jnode; int flags_to_test; if ( !rtems_libio_is_valid_perms( flags ) ) 200ae18: 80 8e 7f f8 btst -8, %i1 200ae1c: 02 80 00 08 be 200ae3c <== ALWAYS TAKEN 200ae20: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EPERM ); 200ae24: 40 00 16 c9 call 2010948 <__errno> <== NOT EXECUTED 200ae28: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 200ae2c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 200ae30: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200ae34: 81 c7 e0 08 ret <== NOT EXECUTED 200ae38: 81 e8 00 00 restore <== NOT EXECUTED jnode = node->node_access; #if defined(RTEMS_POSIX_API) st_uid = geteuid(); 200ae3c: 40 00 04 4b call 200bf68 200ae40: e0 06 00 00 ld [ %i0 ], %l0 st_gid = getegid(); 200ae44: 40 00 04 45 call 200bf58 200ae48: a2 10 00 08 mov %o0, %l1 * Check if I am owner or a group member or someone else. */ flags_to_test = flags; if ( st_uid == jnode->st_uid ) 200ae4c: c2 14 20 3c lduh [ %l0 + 0x3c ], %g1 200ae50: a3 2c 60 10 sll %l1, 0x10, %l1 200ae54: a3 34 60 10 srl %l1, 0x10, %l1 200ae58: 80 a4 40 01 cmp %l1, %g1 200ae5c: 02 80 00 09 be 200ae80 200ae60: 83 2e 60 06 sll %i1, 6, %g1 flags_to_test <<= 6; else if ( st_gid == jnode->st_gid ) 200ae64: c2 14 20 3e lduh [ %l0 + 0x3e ], %g1 200ae68: 91 2a 20 10 sll %o0, 0x10, %o0 200ae6c: 91 32 20 10 srl %o0, 0x10, %o0 200ae70: 80 a2 00 01 cmp %o0, %g1 200ae74: 02 80 00 03 be 200ae80 <== ALWAYS TAKEN 200ae78: 83 2e 60 03 sll %i1, 3, %g1 200ae7c: 82 10 00 19 mov %i1, %g1 <== NOT EXECUTED /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 200ae80: c4 04 20 30 ld [ %l0 + 0x30 ], %g2 200ae84: 82 28 40 02 andn %g1, %g2, %g1 200ae88: 80 a0 00 01 cmp %g0, %g1 200ae8c: b0 60 3f ff subx %g0, -1, %i0 return 1; return 0; } 200ae90: 81 c7 e0 08 ret 200ae94: 81 e8 00 00 restore =============================================================================== 0200aef8 : int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 200aef8: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *jnode = node->node_access; 200aefc: e2 06 00 00 ld [ %i0 ], %l1 int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 200af00: a0 10 00 18 mov %i0, %l0 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 200af04: c2 04 60 4c ld [ %l1 + 0x4c ], %g1 200af08: 80 a0 60 04 cmp %g1, 4 200af0c: 12 80 00 07 bne 200af28 <== NEVER TAKEN 200af10: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) 200af14: c2 04 60 08 ld [ %l1 + 8 ], %g1 200af18: 80 a0 60 00 cmp %g1, 0 200af1c: 32 80 00 05 bne,a 200af30 <== ALWAYS TAKEN 200af20: c2 26 00 00 st %g1, [ %i0 ] rtems_fatal_error_occurred( 0xBAD00000 ); 200af24: 11 2e b4 00 sethi %hi(0xbad00000), %o0 <== NOT EXECUTED 200af28: 7f ff ee a2 call 20069b0 <== NOT EXECUTED 200af2c: 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( 200af30: d0 04 60 50 ld [ %l1 + 0x50 ], %o0 200af34: 94 10 00 18 mov %i0, %o2 200af38: 40 00 05 69 call 200c4dc 200af3c: 92 07 bf fc add %fp, -4, %o1 /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 200af40: c2 07 bf fc ld [ %fp + -4 ], %g1 200af44: e2 04 60 50 ld [ %l1 + 0x50 ], %l1 200af48: a2 04 40 01 add %l1, %g1, %l1 200af4c: 40 00 1a 4c call 201187c 200af50: 90 10 00 11 mov %l1, %o0 200af54: 96 10 00 18 mov %i0, %o3 200af58: 92 10 00 08 mov %o0, %o1 200af5c: 94 10 00 19 mov %i1, %o2 200af60: 40 00 00 11 call 200afa4 200af64: 90 10 00 11 mov %l1, %o0 200af68: b0 10 00 08 mov %o0, %i0 strlen( &jnode->info.sym_link.name[i] ), flags, node ); IMFS_Set_handlers( node ); 200af6c: 7f ff ff 8e call 200ada4 200af70: 90 10 00 10 mov %l0, %o0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) 200af74: 90 10 00 10 mov %l0, %o0 200af78: 7f ff ff a7 call 200ae14 200af7c: 92 10 00 19 mov %i1, %o1 200af80: 80 a2 20 00 cmp %o0, 0 200af84: 12 80 00 06 bne 200af9c <== ALWAYS TAKEN 200af88: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EACCES ); 200af8c: 40 00 16 6f call 2010948 <__errno> <== NOT EXECUTED 200af90: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 200af94: 82 10 20 0d mov 0xd, %g1 <== NOT EXECUTED 200af98: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return result; } 200af9c: 81 c7 e0 08 ret 200afa0: 81 e8 00 00 restore =============================================================================== 0200f5bc : int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { 200f5bc: 9d e3 bf 98 save %sp, -104, %sp /* * Verify I am the owner of the node or the super user. */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); 200f5c0: 7f ff f2 6a call 200bf68 200f5c4: e0 06 00 00 ld [ %i0 ], %l0 if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) 200f5c8: 91 2a 20 10 sll %o0, 0x10, %o0 200f5cc: 91 32 20 10 srl %o0, 0x10, %o0 200f5d0: 80 a2 20 00 cmp %o0, 0 200f5d4: 22 80 00 0c be,a 200f604 <== ALWAYS TAKEN 200f5d8: c2 04 20 30 ld [ %l0 + 0x30 ], %g1 200f5dc: c2 14 20 3c lduh [ %l0 + 0x3c ], %g1 <== NOT EXECUTED 200f5e0: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED 200f5e4: 22 80 00 08 be,a 200f604 <== NOT EXECUTED 200f5e8: c2 04 20 30 ld [ %l0 + 0x30 ], %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EPERM ); 200f5ec: 40 00 04 d7 call 2010948 <__errno> <== NOT EXECUTED 200f5f0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200f5f4: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 200f5f8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200f5fc: 81 c7 e0 08 ret <== NOT EXECUTED 200f600: 81 e8 00 00 restore <== NOT EXECUTED */ jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); IMFS_update_ctime( jnode ); 200f604: 90 07 bf f8 add %fp, -8, %o0 /* * Change only the RWX permissions on the jnode to mode. */ jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); 200f608: 82 08 70 00 and %g1, -4096, %g1 IMFS_update_ctime( jnode ); 200f60c: 92 10 20 00 clr %o1 /* * Change only the RWX permissions on the jnode to mode. */ jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); 200f610: b2 0e 6f ff and %i1, 0xfff, %i1 200f614: b2 16 40 01 or %i1, %g1, %i1 IMFS_update_ctime( jnode ); 200f618: 7f ff cd 63 call 2002ba4 200f61c: f2 24 20 30 st %i1, [ %l0 + 0x30 ] 200f620: c2 07 bf f8 ld [ %fp + -8 ], %g1 200f624: c2 24 20 48 st %g1, [ %l0 + 0x48 ] return 0; } 200f628: 81 c7 e0 08 ret 200f62c: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 0200b8a8 : } int IMFS_fifo_close( rtems_libio_t *iop ) { 200b8a8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 200b8ac: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 <== NOT EXECUTED int err = pipe_release(&JNODE2PIPE(jnode), iop); 200b8b0: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED } int IMFS_fifo_close( rtems_libio_t *iop ) { 200b8b4: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); 200b8b8: 7f ff fb 67 call 200a654 <== NOT EXECUTED 200b8bc: 90 04 20 50 add %l0, 0x50, %o0 <== NOT EXECUTED if (! err) { 200b8c0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 200b8c4: 12 80 00 12 bne 200b90c <== NOT EXECUTED 200b8c8: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_OPEN; 200b8cc: 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) 200b8d0: 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; 200b8d4: 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) 200b8d8: 40 00 01 c1 call 200bfdc <== NOT EXECUTED 200b8dc: c2 24 60 18 st %g1, [ %l1 + 0x18 ] <== NOT EXECUTED 200b8e0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200b8e4: 12 80 00 10 bne 200b924 <== NOT EXECUTED 200b8e8: 01 00 00 00 nop <== NOT EXECUTED 200b8ec: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 <== NOT EXECUTED 200b8f0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200b8f4: 12 80 00 0c bne 200b924 <== NOT EXECUTED 200b8f8: 01 00 00 00 nop <== NOT EXECUTED free(jnode); 200b8fc: 7f ff dc 80 call 2002afc <== NOT EXECUTED 200b900: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 200b904: 81 c7 e0 08 ret <== NOT EXECUTED 200b908: 81 e8 00 00 restore <== NOT EXECUTED } IMFS_FIFO_RETURN(err); 200b90c: 16 80 00 06 bge 200b924 <== NOT EXECUTED 200b910: 01 00 00 00 nop <== NOT EXECUTED 200b914: 40 00 14 0d call 2010948 <__errno> <== NOT EXECUTED 200b918: b0 20 00 18 neg %i0 <== NOT EXECUTED 200b91c: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED 200b920: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED } 200b924: 81 c7 e0 08 ret <== NOT EXECUTED 200b928: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0200b758 : int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 200b758: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED int err; if (command == FIONBIO) { 200b75c: 03 20 01 19 sethi %hi(0x80046400), %g1 <== NOT EXECUTED int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 200b760: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED int err; if (command == FIONBIO) { 200b764: 82 10 62 7e or %g1, 0x27e, %g1 <== NOT EXECUTED int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 200b768: 96 10 00 18 mov %i0, %o3 <== NOT EXECUTED int err; if (command == FIONBIO) { 200b76c: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 200b770: 12 80 00 0f bne 200b7ac <== NOT EXECUTED 200b774: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED if (buffer == NULL) 200b778: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 200b77c: 02 80 00 12 be 200b7c4 <== NOT EXECUTED 200b780: b0 10 3f f2 mov -14, %i0 <== NOT EXECUTED err = -EFAULT; else { if (*(int *)buffer) 200b784: c4 06 80 00 ld [ %i2 ], %g2 <== NOT EXECUTED 200b788: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 200b78c: 02 80 00 04 be 200b79c <== NOT EXECUTED 200b790: c2 02 e0 18 ld [ %o3 + 0x18 ], %g1 <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_NO_DELAY; 200b794: 10 80 00 03 b 200b7a0 <== NOT EXECUTED 200b798: 82 10 60 01 or %g1, 1, %g1 <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 200b79c: 82 08 7f fe and %g1, -2, %g1 <== NOT EXECUTED 200b7a0: c2 22 e0 18 st %g1, [ %o3 + 0x18 ] <== NOT EXECUTED 200b7a4: 81 c7 e0 08 ret <== NOT EXECUTED 200b7a8: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED return 0; } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); 200b7ac: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED 200b7b0: 7f ff fa a6 call 200a248 <== NOT EXECUTED 200b7b4: d0 00 60 50 ld [ %g1 + 0x50 ], %o0 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 200b7b8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 200b7bc: 16 80 00 06 bge 200b7d4 <== NOT EXECUTED 200b7c0: 01 00 00 00 nop <== NOT EXECUTED 200b7c4: 40 00 14 61 call 2010948 <__errno> <== NOT EXECUTED 200b7c8: b0 20 00 18 neg %i0 <== NOT EXECUTED 200b7cc: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED 200b7d0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED } 200b7d4: 81 c7 e0 08 ret <== NOT EXECUTED 200b7d8: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0200b700 : rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 200b700: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); 200b704: 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 ) { 200b708: 98 10 00 18 mov %i0, %o4 <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); 200b70c: d0 00 60 50 ld [ %g1 + 0x50 ], %o0 <== NOT EXECUTED 200b710: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED 200b714: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200b718: 7f ff fa af call 200a1d4 <== NOT EXECUTED 200b71c: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED 200b720: 85 3a 20 1f sra %o0, 0x1f, %g2 <== NOT EXECUTED 200b724: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 200b728: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 200b72c: 16 80 00 08 bge 200b74c <== NOT EXECUTED 200b730: 86 10 00 08 mov %o0, %g3 <== NOT EXECUTED 200b734: 40 00 14 85 call 2010948 <__errno> <== NOT EXECUTED 200b738: a0 20 00 10 neg %l0 <== NOT EXECUTED 200b73c: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED 200b740: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED 200b744: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED 200b748: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED } 200b74c: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED 200b750: 81 c7 e0 08 ret <== NOT EXECUTED 200b754: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED =============================================================================== 0200b92c : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 200b92c: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *jnode = iop->file_info; int err = fifo_open(&JNODE2PIPE(jnode), iop); 200b930: d0 06 20 3c ld [ %i0 + 0x3c ], %o0 rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 200b934: 92 10 00 18 mov %i0, %o1 IMFS_jnode_t *jnode = iop->file_info; int err = fifo_open(&JNODE2PIPE(jnode), iop); 200b938: 7f ff fb 8b call 200a764 200b93c: 90 02 20 50 add %o0, 0x50, %o0 IMFS_FIFO_RETURN(err); 200b940: b0 92 20 00 orcc %o0, 0, %i0 200b944: 16 80 00 06 bge 200b95c <== NEVER TAKEN 200b948: 01 00 00 00 nop 200b94c: 40 00 13 ff call 2010948 <__errno> 200b950: b0 20 00 18 neg %i0 200b954: f0 22 00 00 st %i0, [ %o0 ] 200b958: b0 10 3f ff mov -1, %i0 } 200b95c: 81 c7 e0 08 ret 200b960: 81 e8 00 00 restore =============================================================================== 0200b844 : ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { 200b844: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 200b848: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 <== NOT EXECUTED ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { 200b84c: 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); 200b850: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 <== NOT EXECUTED 200b854: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200b858: 7f ff fa 95 call 200a2ac <== NOT EXECUTED 200b85c: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED if (err > 0) 200b860: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 200b864: 04 80 00 08 ble 200b884 <== NOT EXECUTED 200b868: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED IMFS_update_atime(jnode); 200b86c: 7f ff dc ce call 2002ba4 <== NOT EXECUTED 200b870: 92 10 20 00 clr %o1 <== NOT EXECUTED 200b874: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 200b878: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED 200b87c: 81 c7 e0 08 ret <== NOT EXECUTED 200b880: 81 e8 00 00 restore <== NOT EXECUTED IMFS_FIFO_RETURN(err); 200b884: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200b888: 02 80 00 06 be 200b8a0 <== NOT EXECUTED 200b88c: 01 00 00 00 nop <== NOT EXECUTED 200b890: 40 00 14 2e call 2010948 <__errno> <== NOT EXECUTED 200b894: b0 20 00 18 neg %i0 <== NOT EXECUTED 200b898: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED 200b89c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED } 200b8a0: 81 c7 e0 08 ret <== NOT EXECUTED 200b8a4: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0200b7dc : ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 200b7dc: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 200b7e0: 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 ) { 200b7e4: 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); 200b7e8: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 <== NOT EXECUTED 200b7ec: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200b7f0: 7f ff fb 16 call 200a448 <== NOT EXECUTED 200b7f4: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED if (err > 0) { 200b7f8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 200b7fc: 04 80 00 09 ble 200b820 <== NOT EXECUTED 200b800: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED IMFS_mtime_ctime_update(jnode); 200b804: 7f ff dc e8 call 2002ba4 <== NOT EXECUTED 200b808: 92 10 20 00 clr %o1 <== NOT EXECUTED 200b80c: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 200b810: c2 24 20 48 st %g1, [ %l0 + 0x48 ] <== NOT EXECUTED 200b814: c2 24 20 44 st %g1, [ %l0 + 0x44 ] <== NOT EXECUTED 200b818: 81 c7 e0 08 ret <== NOT EXECUTED 200b81c: 81 e8 00 00 restore <== NOT EXECUTED } IMFS_FIFO_RETURN(err); 200b820: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200b824: 02 80 00 06 be 200b83c <== NOT EXECUTED 200b828: 01 00 00 00 nop <== NOT EXECUTED 200b82c: 40 00 14 47 call 2010948 <__errno> <== NOT EXECUTED 200b830: b0 20 00 18 neg %i0 <== NOT EXECUTED 200b834: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED 200b838: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED } 200b83c: 81 c7 e0 08 ret <== NOT EXECUTED 200b840: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0200ba24 : IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { 200ba24: 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 ); 200ba28: 80 a6 20 00 cmp %i0, 0 200ba2c: 12 80 00 0a bne 200ba54 <== ALWAYS TAKEN 200ba30: 80 a6 60 00 cmp %i1, 0 200ba34: 11 00 80 71 sethi %hi(0x201c400), %o0 <== NOT EXECUTED 200ba38: 15 00 80 72 sethi %hi(0x201c800), %o2 <== NOT EXECUTED 200ba3c: 17 00 80 72 sethi %hi(0x201c800), %o3 <== NOT EXECUTED 200ba40: 90 12 23 a8 or %o0, 0x3a8, %o0 <== NOT EXECUTED 200ba44: 94 12 a0 20 or %o2, 0x20, %o2 <== NOT EXECUTED 200ba48: 96 12 e0 00 mov %o3, %o3 <== NOT EXECUTED 200ba4c: 40 00 00 c5 call 200bd60 <__assert_func> <== NOT EXECUTED 200ba50: 92 10 20 2a mov 0x2a, %o1 <== NOT EXECUTED if ( !name ) 200ba54: 02 80 00 1c be 200bac4 <== NEVER TAKEN 200ba58: 90 10 00 19 mov %i1, %o0 /* * Check for "." and ".." */ if ( !strcmp( name, dotname ) ) 200ba5c: 13 00 80 72 sethi %hi(0x201c800), %o1 200ba60: 40 00 17 21 call 20116e4 200ba64: 92 12 60 10 or %o1, 0x10, %o1 ! 201c810 200ba68: 80 a2 20 00 cmp %o0, 0 200ba6c: 02 80 00 09 be 200ba90 <== NEVER TAKEN 200ba70: 90 10 00 19 mov %i1, %o0 return directory; if ( !strcmp( name, dotdotname ) ) 200ba74: 13 00 80 72 sethi %hi(0x201c800), %o1 200ba78: 40 00 17 1b call 20116e4 200ba7c: 92 12 60 18 or %o1, 0x18, %o1 ! 201c818 200ba80: 80 a2 20 00 cmp %o0, 0 200ba84: 12 80 00 05 bne 200ba98 <== ALWAYS TAKEN 200ba88: a0 06 20 54 add %i0, 0x54, %l0 return directory->Parent; 200ba8c: f0 06 20 08 ld [ %i0 + 8 ], %i0 <== NOT EXECUTED 200ba90: 81 c7 e0 08 ret <== NOT EXECUTED 200ba94: 81 e8 00 00 restore <== NOT EXECUTED the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; 200ba98: 10 80 00 08 b 200bab8 200ba9c: 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 ) ) 200baa0: 40 00 17 11 call 20116e4 200baa4: 92 06 20 0c add %i0, 0xc, %o1 200baa8: 80 a2 20 00 cmp %o0, 0 200baac: 02 80 00 07 be 200bac8 200bab0: 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 ) { 200bab4: 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; 200bab8: 80 a6 00 10 cmp %i0, %l0 200babc: 12 bf ff f9 bne 200baa0 200bac0: 90 10 00 19 mov %i1, %o0 200bac4: b0 10 20 00 clr %i0 if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } 200bac8: 81 c7 e0 08 ret 200bacc: 81 e8 00 00 restore =============================================================================== 0200b96c : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 200b96c: 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; 200b970: 94 10 20 14 mov 0x14, %o2 200b974: 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; 200b978: 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 ); 200b97c: 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; 200b980: 40 00 16 2e call 2011238 200b984: 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; 200b988: c0 26 20 1c clr [ %i0 + 0x1c ] do { next = jnode->Parent; loc.node_access = (void *)jnode; 200b98c: e0 27 bf ec st %l0, [ %fp + -20 ] */ temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; 200b990: f0 04 20 08 ld [ %l0 + 8 ], %i0 loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); 200b994: 7f ff fd 04 call 200ada4 200b998: 90 10 00 11 mov %l1, %o0 if ( jnode->type != IMFS_DIRECTORY ) { 200b99c: c4 04 20 4c ld [ %l0 + 0x4c ], %g2 200b9a0: 80 a0 a0 01 cmp %g2, 1 200b9a4: 12 80 00 06 bne 200b9bc 200b9a8: 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; 200b9ac: c4 04 20 50 ld [ %l0 + 0x50 ], %g2 200b9b0: 80 a0 80 01 cmp %g2, %g1 200b9b4: 12 80 00 09 bne 200b9d8 200b9b8: 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 ); 200b9bc: 90 10 20 00 clr %o0 200b9c0: 7f ff da de call 2002538 200b9c4: 92 10 00 11 mov %l1, %o1 if (result != 0) 200b9c8: 80 a2 20 00 cmp %o0, 0 200b9cc: 12 80 00 13 bne 200ba18 <== NEVER TAKEN 200b9d0: a0 10 00 18 mov %i0, %l0 return -1; jnode = next; } if ( jnode != NULL ) { 200b9d4: 80 a4 20 00 cmp %l0, 0 200b9d8: 22 80 00 11 be,a 200ba1c 200b9dc: b0 10 20 00 clr %i0 if ( jnode->type == IMFS_DIRECTORY ) { 200b9e0: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 200b9e4: 80 a0 60 01 cmp %g1, 1 200b9e8: 32 bf ff ea bne,a 200b990 <== NEVER TAKEN 200b9ec: e0 27 bf ec st %l0, [ %fp + -20 ] <== NOT EXECUTED 200b9f0: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 200b9f4: 84 04 20 54 add %l0, 0x54, %g2 200b9f8: 80 a0 40 02 cmp %g1, %g2 200b9fc: 22 bf ff e5 be,a 200b990 200ba00: e0 27 bf ec st %l0, [ %fp + -20 ] if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); 200ba04: a0 90 60 00 orcc %g1, 0, %l0 200ba08: 32 bf ff e2 bne,a 200b990 <== ALWAYS TAKEN 200ba0c: e0 27 bf ec st %l0, [ %fp + -20 ] 200ba10: 81 c7 e0 08 ret <== NOT EXECUTED 200ba14: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 200ba18: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return 0; } 200ba1c: 81 c7 e0 08 ret 200ba20: 81 e8 00 00 restore =============================================================================== 0200bad0 : const char *path, int pathlen, char *token, int *token_len ) { 200bad0: 9d e3 bf a0 save %sp, -96, %sp register char c; /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; 200bad4: a0 10 20 00 clr %l0 while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) { 200bad8: 10 80 00 08 b 200baf8 200badc: e2 0e 00 00 ldub [ %i0 ], %l1 token[i] = c; if ( i == IMFS_NAME_MAX ) 200bae0: 80 a4 20 20 cmp %l0, 0x20 200bae4: 12 80 00 04 bne 200baf4 200bae8: a0 04 20 01 inc %l0 200baec: 81 c7 e0 08 ret 200baf0: 91 e8 20 04 restore %g0, 4, %o0 return IMFS_INVALID_TOKEN; if ( !IMFS_is_valid_name_char(c) ) type = IMFS_INVALID_TOKEN; c = path [++i]; 200baf4: e2 0e 00 10 ldub [ %i0 + %l0 ], %l1 /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) { 200baf8: 91 2c 60 18 sll %l1, 0x18, %o0 200bafc: 7f ff df f5 call 2003ad0 200bb00: 91 3a 20 18 sra %o0, 0x18, %o0 200bb04: 80 a2 20 00 cmp %o0, 0 200bb08: 12 80 00 04 bne 200bb18 200bb0c: 80 a4 00 19 cmp %l0, %i1 200bb10: 26 bf ff f4 bl,a 200bae0 200bb14: e2 2e 80 10 stb %l1, [ %i2 + %l0 ] /* * Copy a seperator into token. */ if ( i == 0 ) { 200bb18: 80 a4 20 00 cmp %l0, 0 200bb1c: 12 80 00 0d bne 200bb50 200bb20: 82 06 80 10 add %i2, %l0, %g1 token[i] = c; 200bb24: e2 2e 80 00 stb %l1, [ %i2 ] if ( (token[i] != '\0') && pathlen ) { 200bb28: a3 2c 60 18 sll %l1, 0x18, %l1 200bb2c: 80 a4 60 00 cmp %l1, 0 200bb30: 02 80 00 0d be 200bb64 200bb34: b0 10 20 00 clr %i0 200bb38: 80 a6 60 00 cmp %i1, 0 200bb3c: 02 80 00 0b be 200bb68 200bb40: 80 a6 20 03 cmp %i0, 3 200bb44: b0 10 20 01 mov 1, %i0 200bb48: 10 80 00 07 b 200bb64 200bb4c: a0 10 20 01 mov 1, %l0 i++; type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { 200bb50: c2 48 7f ff ldsb [ %g1 + -1 ], %g1 200bb54: 80 a0 60 00 cmp %g1, 0 200bb58: 02 80 00 03 be 200bb64 <== NEVER TAKEN 200bb5c: b0 10 20 03 mov 3, %i0 token[i] = '\0'; 200bb60: c0 2e 80 10 clrb [ %i2 + %l0 ] /* * If we copied something that was not a seperator see if * it was a special name. */ if ( type == IMFS_NAME ) { 200bb64: 80 a6 20 03 cmp %i0, 3 200bb68: 12 80 00 11 bne 200bbac 200bb6c: e0 26 c0 00 st %l0, [ %i3 ] if ( strcmp( token, "..") == 0 ) 200bb70: 90 10 00 1a mov %i2, %o0 200bb74: 13 00 80 72 sethi %hi(0x201c800), %o1 200bb78: 40 00 16 db call 20116e4 200bb7c: 92 12 60 38 or %o1, 0x38, %o1 ! 201c838 <__FUNCTION__.5518+0x18> 200bb80: 80 a2 20 00 cmp %o0, 0 200bb84: 12 80 00 04 bne 200bb94 200bb88: 90 10 00 1a mov %i2, %o0 200bb8c: 81 c7 e0 08 ret 200bb90: 91 e8 20 02 restore %g0, 2, %o0 type = IMFS_UP_DIR; else if ( strcmp( token, "." ) == 0 ) 200bb94: 13 00 80 72 sethi %hi(0x201c800), %o1 200bb98: 40 00 16 d3 call 20116e4 200bb9c: 92 12 60 40 or %o1, 0x40, %o1 ! 201c840 <__FUNCTION__.5518+0x20> 200bba0: 80 a2 20 00 cmp %o0, 0 200bba4: 22 80 00 02 be,a 200bbac 200bba8: b0 10 20 01 mov 1, %i0 type = IMFS_CURRENT_DIR; } return type; } 200bbac: 81 c7 e0 08 ret 200bbb0: 81 e8 00 00 restore =============================================================================== 0200213c : 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 ) { 200213c: 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, 2002140: 03 00 80 75 sethi %hi(0x201d400), %g1 2002144: c2 00 62 a8 ld [ %g1 + 0x2a8 ], %g1 ! 201d6a8 2002148: 86 10 20 00 clr %g3 200214c: 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) { 2002150: 80 a0 80 01 cmp %g2, %g1 2002154: 02 80 00 06 be 200216c 2002158: 86 00 e0 01 inc %g3 200215c: 80 a0 e0 06 cmp %g3, 6 2002160: 12 bf ff fc bne 2002150 <== ALWAYS TAKEN 2002164: 85 28 a0 01 sll %g2, 1, %g2 2002168: 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) 200216c: 03 00 80 77 sethi %hi(0x201dc00), %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(); 2002170: 40 00 22 b2 call 200ac38 2002174: c4 20 62 28 st %g2, [ %g1 + 0x228 ] ! 201de28 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; 2002178: 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(); 200217c: 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; 2002180: 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; 2002184: 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; 2002188: 13 00 80 71 sethi %hi(0x201c400), %o1 200218c: 90 06 20 38 add %i0, 0x38, %o0 2002190: 40 00 3c 2a call 2011238 2002194: 92 12 62 5c or %o1, 0x25c, %o1 /* * Create custom file system data. */ fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); 2002198: 90 10 20 01 mov 1, %o0 200219c: 40 00 01 c6 call 20028b4 20021a0: 92 10 20 10 mov 0x10, %o1 if ( !fs_info ) { 20021a4: 82 92 20 00 orcc %o0, 0, %g1 20021a8: 12 80 00 0a bne 20021d0 <== ALWAYS TAKEN 20021ac: d0 06 20 1c ld [ %i0 + 0x1c ], %o0 free(temp_mt_entry->mt_fs_root.node_access); 20021b0: 40 00 02 53 call 2002afc <== NOT EXECUTED 20021b4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 20021b8: 40 00 39 e4 call 2010948 <__errno> <== NOT EXECUTED 20021bc: 01 00 00 00 nop <== NOT EXECUTED 20021c0: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 20021c4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20021c8: 81 c7 e0 08 ret <== NOT EXECUTED 20021cc: 81 e8 00 00 restore <== NOT EXECUTED /* * Set st_ino for the root to 1. */ fs_info->instance = imfs_instance++; 20021d0: 07 00 80 77 sethi %hi(0x201dc00), %g3 20021d4: c4 00 e2 2c ld [ %g3 + 0x22c ], %g2 ! 201de2c fs_info->ino_count = 1; 20021d8: 88 10 20 01 mov 1, %g4 20021dc: c8 20 60 04 st %g4, [ %g1 + 4 ] fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; 20021e0: c8 22 20 38 st %g4, [ %o0 + 0x38 ] /* * Set st_ino for the root to 1. */ fs_info->instance = imfs_instance++; 20021e4: 88 00 a0 01 add %g2, 1, %g4 20021e8: c8 20 e2 2c st %g4, [ %g3 + 0x22c ] 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; 20021ec: c2 26 20 34 st %g1, [ %i0 + 0x34 ] */ fs_info->instance = imfs_instance++; fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; 20021f0: f6 20 60 0c st %i3, [ %g1 + 0xc ] * Set st_ino for the root to 1. */ fs_info->instance = imfs_instance++; fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; 20021f4: f4 20 60 08 st %i2, [ %g1 + 8 ] /* * Set st_ino for the root to 1. */ fs_info->instance = imfs_instance++; 20021f8: c4 20 40 00 st %g2, [ %g1 ] jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; /* Initialize POSIX FIFO/pipe module */ rtems_pipe_initialize(); 20021fc: 40 00 1f f8 call 200a1dc 2002200: b0 10 20 00 clr %i0 return 0; } 2002204: 81 c7 e0 08 ret 2002208: 81 e8 00 00 restore =============================================================================== 0200220c : int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { 200220c: 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; 2002210: c2 06 00 00 ld [ %i0 ], %g1 2002214: c2 27 bf d8 st %g1, [ %fp + -40 ] if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) 2002218: c2 10 60 34 lduh [ %g1 + 0x34 ], %g1 200221c: 80 a0 60 07 cmp %g1, 7 2002220: 08 80 00 06 bleu 2002238 2002224: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EMLINK ); 2002228: 40 00 39 c8 call 2010948 <__errno> 200222c: 01 00 00 00 nop 2002230: 10 80 00 17 b 200228c 2002234: 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 ); 2002238: 40 00 3d 91 call 201187c 200223c: 90 10 00 1a mov %i2, %o0 2002240: a0 07 bf b0 add %fp, -80, %l0 2002244: 92 10 00 08 mov %o0, %o1 2002248: 96 07 bf fc add %fp, -4, %o3 200224c: 94 10 00 10 mov %l0, %o2 2002250: 40 00 26 20 call 200bad0 2002254: 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( 2002258: 90 10 00 19 mov %i1, %o0 200225c: 94 10 00 10 mov %l0, %o2 2002260: 92 10 20 03 mov 3, %o1 2002264: 17 00 00 28 sethi %hi(0xa000), %o3 2002268: 98 07 bf d8 add %fp, -40, %o4 200226c: 40 00 22 83 call 200ac78 2002270: 96 12 e1 ff or %o3, 0x1ff, %o3 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) 2002274: 80 a2 20 00 cmp %o0, 0 2002278: 12 80 00 08 bne 2002298 <== ALWAYS TAKEN 200227c: c2 07 bf d8 ld [ %fp + -40 ], %g1 rtems_set_errno_and_return_minus_one( ENOMEM ); 2002280: 40 00 39 b2 call 2010948 <__errno> <== NOT EXECUTED 2002284: 01 00 00 00 nop <== NOT EXECUTED 2002288: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 200228c: c2 22 00 00 st %g1, [ %o0 ] 2002290: 81 c7 e0 08 ret 2002294: 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 ); 2002298: 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++; 200229c: c4 10 60 34 lduh [ %g1 + 0x34 ], %g2 IMFS_update_ctime( info.hard_link.link_node ); 20022a0: 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++; 20022a4: 84 00 a0 01 inc %g2 IMFS_update_ctime( info.hard_link.link_node ); 20022a8: 40 00 02 3f call 2002ba4 20022ac: c4 30 60 34 sth %g2, [ %g1 + 0x34 ] 20022b0: c4 07 bf f4 ld [ %fp + -12 ], %g2 20022b4: c2 07 bf d8 ld [ %fp + -40 ], %g1 20022b8: c4 20 60 48 st %g2, [ %g1 + 0x48 ] return 0; } 20022bc: 81 c7 e0 08 ret 20022c0: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 0200e570 : MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) { 200e570: 9d e3 bf a0 save %sp, -96, %sp 200e574: 90 10 00 18 mov %i0, %o0 block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 200e578: 80 a6 20 00 cmp %i0, 0 200e57c: 12 80 00 0a bne 200e5a4 <== ALWAYS TAKEN 200e580: 92 10 00 19 mov %i1, %o1 200e584: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED 200e588: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED 200e58c: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED 200e590: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED 200e594: 94 12 a1 c0 or %o2, 0x1c0, %o2 <== NOT EXECUTED 200e598: 96 12 e0 30 or %o3, 0x30, %o3 <== NOT EXECUTED 200e59c: 10 80 00 0c b 200e5cc <== NOT EXECUTED 200e5a0: 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 ); 200e5a4: c2 06 20 4c ld [ %i0 + 0x4c ], %g1 200e5a8: 80 a0 60 05 cmp %g1, 5 200e5ac: 02 80 00 0a be 200e5d4 <== ALWAYS TAKEN 200e5b0: 15 00 80 73 sethi %hi(0x201cc00), %o2 200e5b4: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED 200e5b8: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED 200e5bc: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED 200e5c0: 94 12 a1 c0 or %o2, 0x1c0, %o2 <== NOT EXECUTED 200e5c4: 96 12 e0 40 or %o3, 0x40, %o3 <== NOT EXECUTED 200e5c8: 92 10 21 6d mov 0x16d, %o1 <== NOT EXECUTED 200e5cc: 7f ff f5 e5 call 200bd60 <__assert_func> <== NOT EXECUTED 200e5d0: 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 ); 200e5d4: 7f ff fe 6d call 200df88 200e5d8: 94 10 20 01 mov 1, %o2 ! 1 if ( *block_entry_ptr ) 200e5dc: 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 ); 200e5e0: a0 10 00 08 mov %o0, %l0 if ( *block_entry_ptr ) 200e5e4: 80 a0 60 00 cmp %g1, 0 200e5e8: 12 80 00 09 bne 200e60c 200e5ec: b0 10 20 00 clr %i0 #if 0 fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); 200e5f0: 7f ff fe 59 call 200df54 200e5f4: b0 10 20 01 mov 1, %i0 if ( !memory ) 200e5f8: 80 a2 20 00 cmp %o0, 0 200e5fc: 02 80 00 04 be 200e60c <== NEVER TAKEN 200e600: 01 00 00 00 nop return 1; *block_entry_ptr = memory; 200e604: d0 24 00 00 st %o0, [ %l0 ] 200e608: b0 10 20 00 clr %i0 return 0; } 200e60c: 81 c7 e0 08 ret 200e610: 81 e8 00 00 restore =============================================================================== 0200e614 : MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 200e614: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 200e618: 80 a6 20 00 cmp %i0, 0 200e61c: 32 80 00 0a bne,a 200e644 <== ALWAYS TAKEN 200e620: c2 06 20 4c ld [ %i0 + 0x4c ], %g1 200e624: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED 200e628: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED 200e62c: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED 200e630: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED 200e634: 94 12 a1 d8 or %o2, 0x1d8, %o2 <== NOT EXECUTED 200e638: 96 12 e0 30 or %o3, 0x30, %o3 <== NOT EXECUTED 200e63c: 10 80 00 0c b 200e66c <== NOT EXECUTED 200e640: 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 ); 200e644: 80 a0 60 05 cmp %g1, 5 200e648: 02 80 00 0b be 200e674 <== ALWAYS TAKEN 200e64c: 03 00 80 77 sethi %hi(0x201dc00), %g1 200e650: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED 200e654: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED 200e658: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED 200e65c: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED 200e660: 94 12 a1 d8 or %o2, 0x1d8, %o2 <== NOT EXECUTED 200e664: 96 12 e0 40 or %o3, 0x40, %o3 <== NOT EXECUTED 200e668: 92 10 21 35 mov 0x135, %o1 <== NOT EXECUTED 200e66c: 7f ff f5 bd call 200bd60 <__assert_func> <== NOT EXECUTED 200e670: 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 ) 200e674: e0 00 62 28 ld [ %g1 + 0x228 ], %l0 200e678: a3 34 20 02 srl %l0, 2, %l1 200e67c: 92 10 00 11 mov %l1, %o1 200e680: 40 00 2d cb call 2019dac <.umul> 200e684: 90 04 60 01 add %l1, 1, %o0 200e688: 92 10 00 11 mov %l1, %o1 200e68c: 40 00 2d c8 call 2019dac <.umul> 200e690: 90 02 20 01 inc %o0 200e694: 92 10 00 10 mov %l0, %o1 200e698: 40 00 2d c5 call 2019dac <.umul> 200e69c: 90 02 3f ff add %o0, -1, %o0 200e6a0: 82 10 20 00 clr %g1 200e6a4: 80 a0 40 19 cmp %g1, %i1 200e6a8: 34 80 00 0b bg,a 200e6d4 <== NEVER TAKEN 200e6ac: e2 06 20 50 ld [ %i0 + 0x50 ], %l1 <== NOT EXECUTED 200e6b0: 80 a0 40 19 cmp %g1, %i1 200e6b4: 12 80 00 04 bne 200e6c4 <== NEVER TAKEN 200e6b8: 80 a2 00 1a cmp %o0, %i2 200e6bc: 38 80 00 06 bgu,a 200e6d4 <== ALWAYS TAKEN 200e6c0: e2 06 20 50 ld [ %i0 + 0x50 ], %l1 rtems_set_errno_and_return_minus_one( EINVAL ); 200e6c4: 40 00 08 a1 call 2010948 <__errno> <== NOT EXECUTED 200e6c8: 01 00 00 00 nop <== NOT EXECUTED 200e6cc: 10 80 00 2b b 200e778 <== NOT EXECUTED 200e6d0: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED if ( new_length <= the_jnode->info.file.size ) 200e6d4: 80 a6 40 11 cmp %i1, %l1 200e6d8: 14 80 00 09 bg 200e6fc <== NEVER TAKEN 200e6dc: e6 06 20 54 ld [ %i0 + 0x54 ], %l3 200e6e0: 80 a6 40 11 cmp %i1, %l1 200e6e4: 12 80 00 04 bne 200e6f4 <== NEVER TAKEN 200e6e8: 80 a6 80 13 cmp %i2, %l3 200e6ec: 18 80 00 05 bgu 200e700 200e6f0: a5 3c 20 1f sra %l0, 0x1f, %l2 200e6f4: 81 c7 e0 08 ret 200e6f8: 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; 200e6fc: a5 3c 20 1f sra %l0, 0x1f, %l2 <== NOT EXECUTED 200e700: 96 10 00 10 mov %l0, %o3 200e704: 94 10 00 12 mov %l2, %o2 200e708: 90 10 00 19 mov %i1, %o0 200e70c: 40 00 2f 3a call 201a3f4 <__divdi3> 200e710: 92 10 00 1a mov %i2, %o1 old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 200e714: 90 10 00 11 mov %l1, %o0 200e718: 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; 200e71c: a8 10 00 09 mov %o1, %l4 old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 200e720: 94 10 00 12 mov %l2, %o2 200e724: 40 00 2f 34 call 201a3f4 <__divdi3> 200e728: 92 10 00 13 mov %l3, %o1 200e72c: a2 10 00 09 mov %o1, %l1 /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 200e730: 10 80 00 15 b 200e784 200e734: a0 10 00 09 mov %o1, %l0 if ( IMFS_memfile_addblock( the_jnode, block ) ) { 200e738: 7f ff ff 8e call 200e570 200e73c: 92 10 00 10 mov %l0, %o1 200e740: 80 a2 20 00 cmp %o0, 0 200e744: 22 80 00 10 be,a 200e784 <== ALWAYS TAKEN 200e748: a0 04 20 01 inc %l0 for ( ; block>=old_blocks ; block-- ) { 200e74c: 10 80 00 06 b 200e764 <== NOT EXECUTED 200e750: 80 a4 00 11 cmp %l0, %l1 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); 200e754: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 200e758: 7f ff fe d7 call 200e2b4 <== NOT EXECUTED 200e75c: 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-- ) { 200e760: 80 a4 00 11 cmp %l0, %l1 <== NOT EXECUTED 200e764: 1a bf ff fc bcc 200e754 <== NOT EXECUTED 200e768: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); 200e76c: 40 00 08 77 call 2010948 <__errno> <== NOT EXECUTED 200e770: 01 00 00 00 nop <== NOT EXECUTED 200e774: 82 10 20 1c mov 0x1c, %g1 ! 1c <== NOT EXECUTED 200e778: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200e77c: 81 c7 e0 08 ret <== NOT EXECUTED 200e780: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 200e784: 80 a4 00 14 cmp %l0, %l4 200e788: 08 bf ff ec bleu 200e738 200e78c: 90 10 00 18 mov %i0, %o0 /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; 200e790: f4 26 20 54 st %i2, [ %i0 + 0x54 ] 200e794: f2 26 20 50 st %i1, [ %i0 + 0x50 ] return 0; } 200e798: 81 c7 e0 08 ret 200e79c: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 0200df88 : #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 200df88: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 200df8c: 80 a6 20 00 cmp %i0, 0 200df90: 32 80 00 0a bne,a 200dfb8 <== ALWAYS TAKEN 200df94: c2 06 20 4c ld [ %i0 + 0x4c ], %g1 200df98: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED 200df9c: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED 200dfa0: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED 200dfa4: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED 200dfa8: 94 12 a1 18 or %o2, 0x118, %o2 <== NOT EXECUTED 200dfac: 96 12 e0 30 or %o3, 0x30, %o3 <== NOT EXECUTED 200dfb0: 10 80 00 0c b 200dfe0 <== NOT EXECUTED 200dfb4: 92 10 23 88 mov 0x388, %o1 <== NOT EXECUTED if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 200dfb8: 80 a0 60 05 cmp %g1, 5 200dfbc: 02 80 00 0b be 200dfe8 <== ALWAYS TAKEN 200dfc0: 03 00 80 77 sethi %hi(0x201dc00), %g1 200dfc4: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED 200dfc8: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED 200dfcc: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED 200dfd0: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED 200dfd4: 94 12 a1 18 or %o2, 0x118, %o2 <== NOT EXECUTED 200dfd8: 96 12 e0 40 or %o3, 0x40, %o3 <== NOT EXECUTED 200dfdc: 92 10 23 8c mov 0x38c, %o1 <== NOT EXECUTED 200dfe0: 7f ff f7 60 call 200bd60 <__assert_func> <== NOT EXECUTED 200dfe4: 01 00 00 00 nop <== NOT EXECUTED /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { 200dfe8: e0 00 62 28 ld [ %g1 + 0x228 ], %l0 200dfec: a1 34 20 02 srl %l0, 2, %l0 200dff0: 82 04 3f ff add %l0, -1, %g1 200dff4: 80 a6 40 01 cmp %i1, %g1 200dff8: 18 80 00 16 bgu 200e050 <== NEVER TAKEN 200dffc: 90 04 20 01 add %l0, 1, %o0 fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; if ( malloc_it ) { 200e000: 80 a6 a0 00 cmp %i2, 0 200e004: 02 80 00 0f be 200e040 200e008: c2 06 20 58 ld [ %i0 + 0x58 ], %g1 if ( !p ) { 200e00c: 80 a0 60 00 cmp %g1, 0 200e010: 32 80 00 09 bne,a 200e034 200e014: f0 06 20 58 ld [ %i0 + 0x58 ], %i0 p = memfile_alloc_block(); 200e018: 7f ff ff cf call 200df54 200e01c: 01 00 00 00 nop if ( !p ) 200e020: 80 a2 20 00 cmp %o0, 0 200e024: 22 80 00 85 be,a 200e238 <== NEVER TAKEN 200e028: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; info->indirect = p; 200e02c: d0 26 20 58 st %o0, [ %i0 + 0x58 ] } return &info->indirect[ my_block ]; 200e030: f0 06 20 58 ld [ %i0 + 0x58 ], %i0 200e034: b3 2e 60 02 sll %i1, 2, %i1 200e038: 81 c7 e0 08 ret 200e03c: 91 ee 00 19 restore %i0, %i1, %o0 } if ( !p ) return 0; return &info->indirect[ my_block ]; 200e040: b3 2e 60 02 sll %i1, 2, %i1 info->indirect = p; } return &info->indirect[ my_block ]; } if ( !p ) 200e044: 80 a0 60 00 cmp %g1, 0 return 0; return &info->indirect[ my_block ]; 200e048: 10 80 00 79 b 200e22c 200e04c: b0 00 40 19 add %g1, %i1, %i0 /* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { 200e050: 40 00 2f 57 call 2019dac <.umul> <== NOT EXECUTED 200e054: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 200e058: 82 02 3f ff add %o0, -1, %g1 <== NOT EXECUTED 200e05c: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 200e060: 18 80 00 2d bgu 200e114 <== NOT EXECUTED 200e064: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d) ", block ); fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; 200e068: b2 26 40 10 sub %i1, %l0, %i1 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 200e06c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 200e070: 40 00 30 35 call 201a144 <.urem> <== NOT EXECUTED 200e074: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 200e078: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 200e07c: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 200e080: 40 00 2f 85 call 2019e94 <.udiv> <== NOT EXECUTED 200e084: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { 200e088: 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; 200e08c: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { 200e090: 02 80 00 18 be 200e0f0 <== NOT EXECUTED 200e094: c2 06 20 5c ld [ %i0 + 0x5c ], %g1 <== NOT EXECUTED if ( !p ) { 200e098: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200e09c: 12 80 00 08 bne 200e0bc <== NOT EXECUTED 200e0a0: a1 2c 20 02 sll %l0, 2, %l0 <== NOT EXECUTED p = memfile_alloc_block(); 200e0a4: 7f ff ff ac call 200df54 <== NOT EXECUTED 200e0a8: 01 00 00 00 nop <== NOT EXECUTED if ( !p ) 200e0ac: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 200e0b0: 22 80 00 62 be,a 200e238 <== NOT EXECUTED 200e0b4: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; info->doubly_indirect = p; 200e0b8: c2 26 20 5c st %g1, [ %i0 + 0x5c ] <== NOT EXECUTED } p1 = (block_p *)p[ doubly ]; 200e0bc: d0 00 40 10 ld [ %g1 + %l0 ], %o0 <== NOT EXECUTED if ( !p1 ) { 200e0c0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200e0c4: 12 80 00 08 bne 200e0e4 <== NOT EXECUTED 200e0c8: a0 00 40 10 add %g1, %l0, %l0 <== NOT EXECUTED p1 = memfile_alloc_block(); 200e0cc: 7f ff ff a2 call 200df54 <== NOT EXECUTED 200e0d0: 01 00 00 00 nop <== NOT EXECUTED if ( !p1 ) 200e0d4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200e0d8: 22 80 00 58 be,a 200e238 <== NOT EXECUTED 200e0dc: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p[ doubly ] = (block_p) p1; 200e0e0: d0 24 00 00 st %o0, [ %l0 ] <== NOT EXECUTED } return (block_p *)&p1[ singly ]; 200e0e4: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED 200e0e8: 81 c7 e0 08 ret <== NOT EXECUTED 200e0ec: 91 ea 00 11 restore %o0, %l1, %o0 <== NOT EXECUTED } if ( !p ) 200e0f0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200e0f4: 22 80 00 51 be,a 200e238 <== NOT EXECUTED 200e0f8: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p = (block_p *)p[ doubly ]; 200e0fc: a1 2a 20 02 sll %o0, 2, %l0 <== NOT EXECUTED 200e100: 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 ]; 200e104: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED if ( !p ) return 0; p = (block_p *)p[ doubly ]; if ( !p ) 200e108: 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 ]; 200e10c: 10 80 00 48 b 200e22c <== NOT EXECUTED 200e110: b0 00 40 11 add %g1, %l1, %i0 <== NOT EXECUTED #endif /* * Is the block number in the triply indirect portion? */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { 200e114: 90 02 20 01 inc %o0 <== NOT EXECUTED 200e118: 40 00 2f 25 call 2019dac <.umul> <== NOT EXECUTED 200e11c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 200e120: 90 02 3f ff add %o0, -1, %o0 <== NOT EXECUTED 200e124: 80 a6 40 08 cmp %i1, %o0 <== NOT EXECUTED 200e128: 18 80 00 43 bgu 200e234 <== NOT EXECUTED 200e12c: b2 26 40 11 sub %i1, %l1, %i1 <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 200e130: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 200e134: 40 00 30 04 call 201a144 <.urem> <== NOT EXECUTED 200e138: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 200e13c: 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; 200e140: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 200e144: 40 00 2f 54 call 2019e94 <.udiv> <== NOT EXECUTED 200e148: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; 200e14c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 200e150: 40 00 2f 51 call 2019e94 <.udiv> <== NOT EXECUTED 200e154: b2 10 00 08 mov %o0, %i1 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 200e158: 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; 200e15c: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 200e160: 40 00 2f f9 call 201a144 <.urem> <== NOT EXECUTED 200e164: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { 200e168: 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; 200e16c: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { 200e170: 02 80 00 23 be 200e1fc <== NOT EXECUTED 200e174: c2 06 20 60 ld [ %i0 + 0x60 ], %g1 <== NOT EXECUTED if ( !p ) { 200e178: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200e17c: 12 80 00 08 bne 200e19c <== NOT EXECUTED 200e180: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED p = memfile_alloc_block(); 200e184: 7f ff ff 74 call 200df54 <== NOT EXECUTED 200e188: 01 00 00 00 nop <== NOT EXECUTED if ( !p ) 200e18c: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 200e190: 22 80 00 2a be,a 200e238 <== NOT EXECUTED 200e194: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; info->triply_indirect = p; 200e198: c2 26 20 60 st %g1, [ %i0 + 0x60 ] <== NOT EXECUTED } p1 = (block_p *) p[ triply ]; 200e19c: c4 00 40 11 ld [ %g1 + %l1 ], %g2 <== NOT EXECUTED if ( !p1 ) { 200e1a0: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 200e1a4: 12 80 00 08 bne 200e1c4 <== NOT EXECUTED 200e1a8: a2 00 40 11 add %g1, %l1, %l1 <== NOT EXECUTED p1 = memfile_alloc_block(); 200e1ac: 7f ff ff 6a call 200df54 <== NOT EXECUTED 200e1b0: 01 00 00 00 nop <== NOT EXECUTED if ( !p1 ) 200e1b4: 84 92 20 00 orcc %o0, 0, %g2 <== NOT EXECUTED 200e1b8: 02 80 00 20 be 200e238 <== NOT EXECUTED 200e1bc: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; 200e1c0: c4 24 40 00 st %g2, [ %l1 ] <== NOT EXECUTED } p2 = (block_p *)p1[ doubly ]; 200e1c4: a1 2c 20 02 sll %l0, 2, %l0 <== NOT EXECUTED 200e1c8: d0 00 80 10 ld [ %g2 + %l0 ], %o0 <== NOT EXECUTED if ( !p2 ) { 200e1cc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200e1d0: 12 80 00 08 bne 200e1f0 <== NOT EXECUTED 200e1d4: a0 00 80 10 add %g2, %l0, %l0 <== NOT EXECUTED p2 = memfile_alloc_block(); 200e1d8: 7f ff ff 5f call 200df54 <== NOT EXECUTED 200e1dc: 01 00 00 00 nop <== NOT EXECUTED if ( !p2 ) 200e1e0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200e1e4: 22 80 00 15 be,a 200e238 <== NOT EXECUTED 200e1e8: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; 200e1ec: d0 24 00 00 st %o0, [ %l0 ] <== NOT EXECUTED } return (block_p *)&p2[ singly ]; 200e1f0: a5 2c a0 02 sll %l2, 2, %l2 <== NOT EXECUTED 200e1f4: 81 c7 e0 08 ret <== NOT EXECUTED 200e1f8: 91 ea 00 12 restore %o0, %l2, %o0 <== NOT EXECUTED } if ( !p ) 200e1fc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200e200: 02 80 00 0e be 200e238 <== NOT EXECUTED 200e204: 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 ]; 200e208: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED 200e20c: c2 00 40 11 ld [ %g1 + %l1 ], %g1 <== NOT EXECUTED if ( !p1 ) 200e210: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200e214: 02 80 00 09 be 200e238 <== NOT EXECUTED 200e218: a1 2a 20 02 sll %o0, 2, %l0 <== NOT EXECUTED return 0; p2 = (block_p *)p1[ doubly ]; 200e21c: c2 00 40 10 ld [ %g1 + %l0 ], %g1 <== NOT EXECUTED if ( !p2 ) return 0; return (block_p *)&p2[ singly ]; 200e220: a5 2c a0 02 sll %l2, 2, %l2 <== NOT EXECUTED p1 = (block_p *) p[ triply ]; if ( !p1 ) return 0; p2 = (block_p *)p1[ doubly ]; if ( !p2 ) 200e224: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED return 0; return (block_p *)&p2[ singly ]; 200e228: b0 00 40 12 add %g1, %l2, %i0 <== NOT EXECUTED p1 = (block_p *) p[ triply ]; if ( !p1 ) return 0; p2 = (block_p *)p1[ doubly ]; if ( !p2 ) 200e22c: 12 80 00 03 bne 200e238 <== ALWAYS TAKEN 200e230: 01 00 00 00 nop return 0; return (block_p *)&p2[ singly ]; 200e234: b0 10 20 00 clr %i0 ! 0 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 200e238: 81 c7 e0 08 ret 200e23c: 81 e8 00 00 restore =============================================================================== 0200ec20 : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 200ec20: 9d e3 bf 98 save %sp, -104, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 200ec24: a0 96 20 00 orcc %i0, 0, %l0 IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 200ec28: a4 10 00 19 mov %i1, %l2 /* * Perform internal consistency checks */ assert( the_jnode ); 200ec2c: 12 80 00 0a bne 200ec54 <== ALWAYS TAKEN 200ec30: a6 10 00 1a mov %i2, %l3 200ec34: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED 200ec38: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED 200ec3c: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED 200ec40: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED 200ec44: 94 12 a1 50 or %o2, 0x150, %o2 <== NOT EXECUTED 200ec48: 96 12 e0 30 or %o3, 0x30, %o3 <== NOT EXECUTED 200ec4c: 10 80 00 0e b 200ec84 <== NOT EXECUTED 200ec50: 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 || 200ec54: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 200ec58: 84 00 7f fb add %g1, -5, %g2 200ec5c: 80 a0 a0 01 cmp %g2, 1 200ec60: 08 80 00 0b bleu 200ec8c <== ALWAYS TAKEN 200ec64: 80 a6 e0 00 cmp %i3, 0 200ec68: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED 200ec6c: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED 200ec70: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED 200ec74: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED 200ec78: 94 12 a1 50 or %o2, 0x150, %o2 <== NOT EXECUTED 200ec7c: 96 12 e0 c0 or %o3, 0xc0, %o3 <== NOT EXECUTED 200ec80: 92 10 22 51 mov 0x251, %o1 <== NOT EXECUTED 200ec84: 7f ff f4 37 call 200bd60 <__assert_func> <== NOT EXECUTED 200ec88: 01 00 00 00 nop <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); 200ec8c: 32 80 00 0a bne,a 200ecb4 <== ALWAYS TAKEN 200ec90: 80 a7 20 00 cmp %i4, 0 200ec94: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED 200ec98: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED 200ec9c: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED 200eca0: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED 200eca4: 94 12 a1 50 or %o2, 0x150, %o2 <== NOT EXECUTED 200eca8: 96 12 e1 10 or %o3, 0x110, %o3 <== NOT EXECUTED 200ecac: 10 bf ff f6 b 200ec84 <== NOT EXECUTED 200ecb0: 92 10 22 5a mov 0x25a, %o1 <== NOT EXECUTED /* * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) 200ecb4: 12 80 00 08 bne 200ecd4 <== ALWAYS TAKEN 200ecb8: 80 a0 60 06 cmp %g1, 6 rtems_set_errno_and_return_minus_one( EINVAL ); 200ecbc: 40 00 07 23 call 2010948 <__errno> <== NOT EXECUTED 200ecc0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200ecc4: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 200ecc8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200eccc: 81 c7 e0 08 ret <== NOT EXECUTED 200ecd0: 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) { 200ecd4: 32 80 00 1c bne,a 200ed44 <== ALWAYS TAKEN 200ecd8: 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)) 200ecdc: d8 1c 20 50 ldd [ %l0 + 0x50 ], %o4 <== NOT EXECUTED 200ece0: 82 10 20 00 clr %g1 <== NOT EXECUTED 200ece4: 86 a3 40 1a subcc %o5, %i2, %g3 <== NOT EXECUTED 200ece8: 84 63 00 19 subx %o4, %i1, %g2 <== NOT EXECUTED 200ecec: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 200ecf0: 14 80 00 09 bg 200ed14 <== NOT EXECUTED 200ecf4: d2 04 20 58 ld [ %l0 + 0x58 ], %o1 <== NOT EXECUTED 200ecf8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 200ecfc: 12 80 00 04 bne 200ed0c <== NOT EXECUTED 200ed00: 80 a7 00 03 cmp %i4, %g3 <== NOT EXECUTED 200ed04: 38 80 00 05 bgu,a 200ed18 <== NOT EXECUTED 200ed08: b0 23 40 13 sub %o5, %l3, %i0 <== NOT EXECUTED 200ed0c: 10 80 00 03 b 200ed18 <== NOT EXECUTED 200ed10: b0 10 00 1c mov %i4, %i0 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; 200ed14: b0 23 40 13 sub %o5, %l3, %i0 <== NOT EXECUTED memcpy(dest, &file_ptr[start], my_length); 200ed18: 92 02 40 13 add %o1, %l3, %o1 <== NOT EXECUTED 200ed1c: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED 200ed20: 40 00 09 46 call 2011238 <== NOT EXECUTED 200ed24: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED IMFS_update_atime( the_jnode ); 200ed28: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED 200ed2c: 7f ff cf 9e call 2002ba4 <== NOT EXECUTED 200ed30: 92 10 20 00 clr %o1 <== NOT EXECUTED 200ed34: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 200ed38: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED return my_length; 200ed3c: 81 c7 e0 08 ret <== NOT EXECUTED 200ed40: 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 ) 200ed44: 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; 200ed48: 82 10 00 1a mov %i2, %g1 if ( last_byte > the_jnode->info.file.size ) 200ed4c: 80 a1 00 03 cmp %g4, %g3 200ed50: c4 04 20 54 ld [ %l0 + 0x54 ], %g2 200ed54: 14 80 00 08 bg 200ed74 <== NEVER TAKEN 200ed58: 9a 07 00 1a add %i4, %i2, %o5 200ed5c: 80 a1 00 03 cmp %g4, %g3 200ed60: 32 80 00 07 bne,a 200ed7c <== NEVER TAKEN 200ed64: 03 00 80 77 sethi %hi(0x201dc00), %g1 <== NOT EXECUTED 200ed68: 80 a3 40 02 cmp %o5, %g2 200ed6c: 28 80 00 04 bleu,a 200ed7c 200ed70: 03 00 80 77 sethi %hi(0x201dc00), %g1 my_length = the_jnode->info.file.size - start; 200ed74: 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; 200ed78: 03 00 80 77 sethi %hi(0x201dc00), %g1 200ed7c: e2 00 62 28 ld [ %g1 + 0x228 ], %l1 ! 201de28 200ed80: 90 10 00 12 mov %l2, %o0 200ed84: ab 3c 60 1f sra %l1, 0x1f, %l5 200ed88: 96 10 00 11 mov %l1, %o3 200ed8c: 94 10 00 15 mov %l5, %o2 200ed90: 40 00 2e 80 call 201a790 <__moddi3> 200ed94: 92 10 00 13 mov %l3, %o1 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 200ed98: 90 10 00 12 mov %l2, %o0 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 200ed9c: a8 10 00 09 mov %o1, %l4 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 200eda0: 94 10 00 15 mov %l5, %o2 200eda4: 92 10 00 13 mov %l3, %o1 200eda8: 40 00 2d 93 call 201a3f4 <__divdi3> 200edac: 96 10 00 11 mov %l1, %o3 if ( start_offset ) { 200edb0: 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; 200edb4: a4 10 00 09 mov %o1, %l2 if ( start_offset ) { 200edb8: aa 10 00 1b mov %i3, %l5 200edbc: 02 80 00 1c be 200ee2c 200edc0: 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 ); 200edc4: 90 10 00 10 mov %l0, %o0 200edc8: 7f ff fc 70 call 200df88 200edcc: 94 10 20 00 clr %o2 assert( block_ptr ); 200edd0: 80 a2 20 00 cmp %o0, 0 200edd4: 32 80 00 0a bne,a 200edfc <== ALWAYS TAKEN 200edd8: a2 24 40 14 sub %l1, %l4, %l1 200eddc: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED 200ede0: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED 200ede4: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED 200ede8: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED 200edec: 94 12 a1 50 or %o2, 0x150, %o2 <== NOT EXECUTED 200edf0: 96 12 e0 78 or %o3, 0x78, %o3 <== NOT EXECUTED 200edf4: 10 bf ff a4 b 200ec84 <== NOT EXECUTED 200edf8: 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; 200edfc: 80 a7 00 11 cmp %i4, %l1 200ee00: 08 80 00 03 bleu 200ee0c 200ee04: 94 10 00 1c mov %i4, %o2 200ee08: 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 ); 200ee0c: d2 02 00 00 ld [ %o0 ], %o1 dest += to_copy; 200ee10: aa 06 c0 0a add %i3, %o2, %l5 to_copy = my_length; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ start_offset ], to_copy ); 200ee14: 92 02 40 14 add %o1, %l4, %o1 dest += to_copy; block++; 200ee18: a4 04 a0 01 inc %l2 my_length -= to_copy; 200ee1c: b8 27 00 0a sub %i4, %o2, %i4 200ee20: b0 10 00 0a mov %o2, %i0 to_copy = my_length; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ start_offset ], to_copy ); 200ee24: 40 00 09 05 call 2011238 200ee28: 90 10 00 1b mov %i3, %o0 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 200ee2c: 03 00 80 77 sethi %hi(0x201dc00), %g1 while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 200ee30: a8 10 62 28 or %g1, 0x228, %l4 ! 201de28 200ee34: 10 80 00 17 b 200ee90 200ee38: e2 00 62 28 ld [ %g1 + 0x228 ], %l1 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 200ee3c: 92 10 00 12 mov %l2, %o1 200ee40: 7f ff fc 52 call 200df88 200ee44: 94 10 20 00 clr %o2 assert( block_ptr ); 200ee48: 80 a2 20 00 cmp %o0, 0 200ee4c: 32 80 00 0a bne,a 200ee74 <== ALWAYS TAKEN 200ee50: d2 02 00 00 ld [ %o0 ], %o1 200ee54: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED 200ee58: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED 200ee5c: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED 200ee60: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED 200ee64: 94 12 a1 50 or %o2, 0x150, %o2 <== NOT EXECUTED 200ee68: 96 12 e0 78 or %o3, 0x78, %o3 <== NOT EXECUTED 200ee6c: 10 bf ff 86 b 200ec84 <== NOT EXECUTED 200ee70: 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++; 200ee74: 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 ); 200ee78: 90 10 00 15 mov %l5, %o0 dest += to_copy; block++; my_length -= to_copy; 200ee7c: b8 27 00 11 sub %i4, %l1, %i4 copied += to_copy; 200ee80: b0 06 00 11 add %i0, %l1, %i0 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); dest += to_copy; 200ee84: aa 05 40 11 add %l5, %l1, %l5 while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); 200ee88: 40 00 08 ec call 2011238 200ee8c: 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 ) { 200ee90: c2 05 00 00 ld [ %l4 ], %g1 200ee94: 80 a7 00 01 cmp %i4, %g1 200ee98: 1a bf ff e9 bcc 200ee3c 200ee9c: 90 10 00 10 mov %l0, %o0 * Phase 3: possibly the first part of one block */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { 200eea0: 80 a7 20 00 cmp %i4, 0 200eea4: 02 80 00 16 be 200eefc 200eea8: 90 07 bf f8 add %fp, -8, %o0 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 200eeac: 92 10 00 12 mov %l2, %o1 200eeb0: 90 10 00 10 mov %l0, %o0 200eeb4: 7f ff fc 35 call 200df88 200eeb8: 94 10 20 00 clr %o2 assert( block_ptr ); 200eebc: 80 a2 20 00 cmp %o0, 0 200eec0: 32 80 00 0a bne,a 200eee8 <== ALWAYS TAKEN 200eec4: d2 02 00 00 ld [ %o0 ], %o1 200eec8: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED 200eecc: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED 200eed0: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED 200eed4: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED 200eed8: 94 12 a1 50 or %o2, 0x150, %o2 <== NOT EXECUTED 200eedc: 96 12 e0 78 or %o3, 0x78, %o3 <== NOT EXECUTED 200eee0: 10 bf ff 69 b 200ec84 <== NOT EXECUTED 200eee4: 92 10 22 b9 mov 0x2b9, %o1 <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); copied += my_length; 200eee8: 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 ); 200eeec: 90 10 00 15 mov %l5, %o0 200eef0: 40 00 08 d2 call 2011238 200eef4: 94 10 00 1c mov %i4, %o2 copied += my_length; } IMFS_update_atime( the_jnode ); 200eef8: 90 07 bf f8 add %fp, -8, %o0 200eefc: 7f ff cf 2a call 2002ba4 200ef00: 92 10 20 00 clr %o1 200ef04: c2 07 bf f8 ld [ %fp + -8 ], %g1 200ef08: c2 24 20 40 st %g1, [ %l0 + 0x40 ] return copied; } 200ef0c: 81 c7 e0 08 ret 200ef10: 81 e8 00 00 restore =============================================================================== 0200e308 : */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { 200e308: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 200e30c: 80 a6 20 00 cmp %i0, 0 200e310: 32 80 00 0a bne,a 200e338 <== ALWAYS TAKEN 200e314: c2 06 20 4c ld [ %i0 + 0x4c ], %g1 200e318: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED 200e31c: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED 200e320: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED 200e324: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED 200e328: 94 12 a1 68 or %o2, 0x168, %o2 <== NOT EXECUTED 200e32c: 96 12 e0 30 or %o3, 0x30, %o3 <== NOT EXECUTED 200e330: 10 80 00 0c b 200e360 <== NOT EXECUTED 200e334: 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 ); 200e338: 80 a0 60 05 cmp %g1, 5 200e33c: 02 80 00 0b be 200e368 <== ALWAYS TAKEN 200e340: 03 00 80 77 sethi %hi(0x201dc00), %g1 200e344: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED 200e348: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED 200e34c: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED 200e350: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED 200e354: 94 12 a1 68 or %o2, 0x168, %o2 <== NOT EXECUTED 200e358: 96 12 e0 40 or %o3, 0x40, %o3 <== NOT EXECUTED 200e35c: 92 10 21 f2 mov 0x1f2, %o1 <== NOT EXECUTED 200e360: 7f ff f6 80 call 200bd60 <__assert_func> <== NOT EXECUTED 200e364: 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; 200e368: e0 00 62 28 ld [ %g1 + 0x228 ], %l0 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 200e36c: c2 06 20 58 ld [ %i0 + 0x58 ], %g1 200e370: 80 a0 60 00 cmp %g1, 0 200e374: 02 80 00 05 be 200e388 200e378: a1 34 20 02 srl %l0, 2, %l0 if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free ); 200e37c: 90 06 20 58 add %i0, 0x58, %o0 200e380: 7f ff ff b0 call 200e240 200e384: 92 10 00 10 mov %l0, %o1 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 200e388: c2 06 20 5c ld [ %i0 + 0x5c ], %g1 200e38c: 80 a0 60 00 cmp %g1, 0 200e390: 22 80 00 17 be,a 200e3ec <== ALWAYS TAKEN 200e394: 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; 200e39c: 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 200e3a4: a4 14 a2 28 or %l2, 0x228, %l2 <== NOT EXECUTED if ( info->doubly_indirect[i] ) { 200e3a8: 83 2c 60 02 sll %l1, 2, %g1 <== NOT EXECUTED 200e3ac: c4 02 00 01 ld [ %o0 + %g1 ], %g2 <== NOT EXECUTED 200e3b0: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 200e3b4: 02 80 00 04 be 200e3c4 <== NOT EXECUTED 200e3b8: 90 02 00 01 add %o0, %g1, %o0 <== NOT EXECUTED memfile_free_blocks_in_table( 200e3bc: 7f ff ff a1 call 200e240 <== NOT EXECUTED 200e3c0: 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 200e3d8: 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 ); 200e3dc: 90 06 20 5c add %i0, 0x5c, %o0 <== NOT EXECUTED 200e3e0: 7f ff ff 98 call 200e240 <== NOT EXECUTED 200e3e4: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 200e3e8: c2 06 20 60 ld [ %i0 + 0x60 ], %g1 <== NOT EXECUTED 200e3ec: 80 a0 60 00 cmp %g1, 0 200e3f0: 02 80 00 25 be 200e484 <== ALWAYS TAKEN 200e3f4: 29 00 80 77 sethi %hi(0x201dc00), %l4 200e3f8: 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 200e400: a8 15 22 28 or %l4, 0x228, %l4 <== NOT EXECUTED * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 200e404: ab 2c 60 02 sll %l1, 2, %l5 <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; 200e408: e4 00 40 15 ld [ %g1 + %l5 ], %l2 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 200e40c: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED 200e410: 02 80 00 1b be 200e47c <== NOT EXECUTED 200e414: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED 200e418: 10 80 00 09 b 200e43c <== NOT EXECUTED 200e41c: a6 10 20 00 clr %l3 <== NOT EXECUTED break; for ( j=0 ; j <== NOT EXECUTED 200e428: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED memfile_free_blocks_in_table( (block_p **)&p[j], to_free); 200e42c: 7f ff ff 85 call 200e240 <== NOT EXECUTED 200e430: 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 200e44c: 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( 200e450: 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 200e460: 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 200e474: 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( 200e478: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED 200e47c: 7f ff ff 71 call 200e240 <== NOT EXECUTED 200e480: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } 200e484: 81 c7 e0 08 ret 200e488: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 0200e2b4 : MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { 200e2b4: 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 ); 200e2b8: 94 10 20 00 clr %o2 <== NOT EXECUTED 200e2bc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 200e2c0: 7f ff ff 32 call 200df88 <== NOT EXECUTED 200e2c4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED assert( block_ptr ); 200e2c8: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 200e2cc: 32 80 00 0a bne,a 200e2f4 <== NOT EXECUTED 200e2d0: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED 200e2d4: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED 200e2d8: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED 200e2dc: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED 200e2e0: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED 200e2e4: 94 12 a1 a0 or %o2, 0x1a0, %o2 <== NOT EXECUTED 200e2e8: 96 12 e0 78 or %o3, 0x78, %o3 <== NOT EXECUTED 200e2ec: 7f ff f6 9d call 200bd60 <__assert_func> <== NOT EXECUTED 200e2f0: 92 10 21 96 mov 0x196, %o1 <== NOT EXECUTED *block_ptr = 0; memfile_free_block( ptr ); } return 1; } 200e2f4: 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 ); 200e2f8: 7f ff ff 0e call 200df30 <== NOT EXECUTED 200e2fc: c0 20 40 00 clr [ %g1 ] <== NOT EXECUTED } return 1; } 200e300: 81 c7 e0 08 ret <== NOT EXECUTED 200e304: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0200e8bc : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 200e8bc: 9d e3 bf 98 save %sp, -104, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 200e8c0: a0 96 20 00 orcc %i0, 0, %l0 200e8c4: 32 80 00 0a bne,a 200e8ec <== ALWAYS TAKEN 200e8c8: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 200e8cc: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED 200e8d0: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED 200e8d4: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED 200e8d8: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED 200e8dc: 94 12 a1 38 or %o2, 0x138, %o2 <== NOT EXECUTED 200e8e0: 96 12 e0 30 or %o3, 0x30, %o3 <== NOT EXECUTED 200e8e4: 10 80 00 8c b 200eb14 <== NOT EXECUTED 200e8e8: 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 ); 200e8ec: 80 a0 60 05 cmp %g1, 5 200e8f0: 02 80 00 0a be 200e918 <== ALWAYS TAKEN 200e8f4: 80 a6 e0 00 cmp %i3, 0 200e8f8: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED 200e8fc: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED 200e900: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED 200e904: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED 200e908: 94 12 a1 38 or %o2, 0x138, %o2 <== NOT EXECUTED 200e90c: 96 12 e0 40 or %o3, 0x40, %o3 <== NOT EXECUTED 200e910: 10 80 00 81 b 200eb14 <== NOT EXECUTED 200e914: 92 10 22 e7 mov 0x2e7, %o1 <== NOT EXECUTED /* * Error check arguments */ assert( source ); 200e918: 12 80 00 0a bne 200e940 <== ALWAYS TAKEN 200e91c: 80 a7 20 00 cmp %i4, 0 200e920: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED 200e924: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED 200e928: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED 200e92c: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED 200e930: 94 12 a1 38 or %o2, 0x138, %o2 <== NOT EXECUTED 200e934: 96 12 e0 88 or %o3, 0x88, %o3 <== NOT EXECUTED 200e938: 10 80 00 77 b 200eb14 <== NOT EXECUTED 200e93c: 92 10 22 ef mov 0x2ef, %o1 <== NOT EXECUTED /* * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) 200e940: 32 80 00 06 bne,a 200e958 <== ALWAYS TAKEN 200e944: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 rtems_set_errno_and_return_minus_one( EINVAL ); 200e948: 40 00 08 00 call 2010948 <__errno> <== NOT EXECUTED 200e94c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200e950: 10 80 00 15 b 200e9a4 <== NOT EXECUTED 200e954: 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 ) { 200e958: 80 a0 60 00 cmp %g1, 0 200e95c: 06 80 00 09 bl 200e980 <== NEVER TAKEN 200e960: 94 07 00 1a add %i4, %i2, %o2 200e964: 80 a0 60 00 cmp %g1, 0 200e968: 12 80 00 12 bne 200e9b0 <== NEVER TAKEN 200e96c: 03 00 80 77 sethi %hi(0x201dc00), %g1 200e970: c2 04 20 54 ld [ %l0 + 0x54 ], %g1 200e974: 80 a0 40 0a cmp %g1, %o2 200e978: 1a 80 00 0e bcc 200e9b0 <== NEVER TAKEN 200e97c: 03 00 80 77 sethi %hi(0x201dc00), %g1 status = IMFS_memfile_extend( the_jnode, last_byte ); 200e980: 90 10 00 10 mov %l0, %o0 200e984: 7f ff ff 24 call 200e614 200e988: 92 10 20 00 clr %o1 if ( status ) 200e98c: 80 a2 20 00 cmp %o0, 0 200e990: 02 80 00 08 be 200e9b0 <== ALWAYS TAKEN 200e994: 03 00 80 77 sethi %hi(0x201dc00), %g1 rtems_set_errno_and_return_minus_one( ENOSPC ); 200e998: 40 00 07 ec call 2010948 <__errno> <== NOT EXECUTED 200e99c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200e9a0: 82 10 20 1c mov 0x1c, %g1 <== NOT EXECUTED 200e9a4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200e9a8: 81 c7 e0 08 ret <== NOT EXECUTED 200e9ac: 81 e8 00 00 restore <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 200e9b0: e2 00 62 28 ld [ %g1 + 0x228 ], %l1 200e9b4: 92 10 00 1a mov %i2, %o1 200e9b8: a7 3c 60 1f sra %l1, 0x1f, %l3 200e9bc: 96 10 00 11 mov %l1, %o3 200e9c0: 94 10 00 13 mov %l3, %o2 200e9c4: 40 00 2f 73 call 201a790 <__moddi3> 200e9c8: 90 10 00 19 mov %i1, %o0 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 200e9cc: 94 10 00 13 mov %l3, %o2 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 200e9d0: a4 10 00 09 mov %o1, %l2 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 200e9d4: 90 10 00 19 mov %i1, %o0 200e9d8: 92 10 00 1a mov %i2, %o1 200e9dc: 40 00 2e 86 call 201a3f4 <__divdi3> 200e9e0: 96 10 00 11 mov %l1, %o3 if ( start_offset ) { 200e9e4: 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; 200e9e8: a6 10 00 09 mov %o1, %l3 if ( start_offset ) { 200e9ec: 80 a4 a0 00 cmp %l2, 0 200e9f0: 02 80 00 1b be 200ea5c 200e9f4: 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 ); 200e9f8: 90 10 00 10 mov %l0, %o0 200e9fc: 7f ff fd 63 call 200df88 200ea00: 94 10 20 00 clr %o2 assert( block_ptr ); 200ea04: 80 a2 20 00 cmp %o0, 0 200ea08: 32 80 00 0a bne,a 200ea30 <== ALWAYS TAKEN 200ea0c: 94 24 40 12 sub %l1, %l2, %o2 200ea10: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED 200ea14: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED 200ea18: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED 200ea1c: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED 200ea20: 94 12 a1 38 or %o2, 0x138, %o2 <== NOT EXECUTED 200ea24: 96 12 e0 78 or %o3, 0x78, %o3 <== NOT EXECUTED 200ea28: 10 80 00 3b b 200eb14 <== NOT EXECUTED 200ea2c: 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; 200ea30: 80 a2 80 1c cmp %o2, %i4 200ea34: 38 80 00 02 bgu,a 200ea3c 200ea38: 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 ); 200ea3c: d0 02 00 00 ld [ %o0 ], %o0 src += to_copy; 200ea40: 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 ); 200ea44: 90 02 00 12 add %o0, %l2, %o0 src += to_copy; block++; 200ea48: a6 04 e0 01 inc %l3 my_length -= to_copy; 200ea4c: b8 27 00 0a sub %i4, %o2, %i4 copied += to_copy; 200ea50: 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 ); 200ea54: 40 00 09 f9 call 2011238 200ea58: 92 10 00 1b mov %i3, %o1 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 200ea5c: 03 00 80 77 sethi %hi(0x201dc00), %g1 while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 200ea60: a4 10 62 28 or %g1, 0x228, %l2 ! 201de28 200ea64: 10 80 00 17 b 200eac0 200ea68: e2 00 62 28 ld [ %g1 + 0x228 ], %l1 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 200ea6c: 92 10 00 13 mov %l3, %o1 200ea70: 7f ff fd 46 call 200df88 200ea74: 94 10 20 00 clr %o2 assert( block_ptr ); 200ea78: 80 a2 20 00 cmp %o0, 0 200ea7c: 32 80 00 0a bne,a 200eaa4 <== ALWAYS TAKEN 200ea80: d0 02 00 00 ld [ %o0 ], %o0 200ea84: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED 200ea88: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED 200ea8c: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED 200ea90: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED 200ea94: 94 12 a1 38 or %o2, 0x138, %o2 <== NOT EXECUTED 200ea98: 96 12 e0 78 or %o3, 0x78, %o3 <== NOT EXECUTED 200ea9c: 10 80 00 1e b 200eb14 <== NOT EXECUTED 200eaa0: 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 ); 200eaa4: 92 10 00 1a mov %i2, %o1 src += to_copy; block++; 200eaa8: a6 04 e0 01 inc %l3 my_length -= to_copy; 200eaac: 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( 200eab0: 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; 200eab4: 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 ); 200eab8: 40 00 09 e0 call 2011238 200eabc: 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 ) { 200eac0: c2 04 80 00 ld [ %l2 ], %g1 200eac4: 80 a7 00 01 cmp %i4, %g1 200eac8: 1a bf ff e9 bcc 200ea6c 200eacc: 90 10 00 10 mov %l0, %o0 */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { 200ead0: 80 a7 20 00 cmp %i4, 0 200ead4: 02 80 00 17 be 200eb30 200ead8: 90 07 bf f8 add %fp, -8, %o0 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 200eadc: 92 10 00 13 mov %l3, %o1 200eae0: 90 10 00 10 mov %l0, %o0 200eae4: 7f ff fd 29 call 200df88 200eae8: 94 10 20 00 clr %o2 assert( block_ptr ); 200eaec: 80 a2 20 00 cmp %o0, 0 200eaf0: 32 80 00 0b bne,a 200eb1c <== ALWAYS TAKEN 200eaf4: d0 02 00 00 ld [ %o0 ], %o0 200eaf8: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED 200eafc: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED 200eb00: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED 200eb04: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED 200eb08: 94 12 a1 38 or %o2, 0x138, %o2 <== NOT EXECUTED 200eb0c: 96 12 e0 78 or %o3, 0x78, %o3 <== NOT EXECUTED 200eb10: 92 10 23 46 mov 0x346, %o1 <== NOT EXECUTED 200eb14: 7f ff f4 93 call 200bd60 <__assert_func> <== NOT EXECUTED 200eb18: 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; 200eb1c: 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 ); 200eb20: 92 10 00 1a mov %i2, %o1 200eb24: 40 00 09 c5 call 2011238 200eb28: 94 10 00 1c mov %i4, %o2 my_length = 0; copied += to_copy; } IMFS_mtime_ctime_update( the_jnode ); 200eb2c: 90 07 bf f8 add %fp, -8, %o0 200eb30: 7f ff d0 1d call 2002ba4 200eb34: 92 10 20 00 clr %o1 200eb38: c2 07 bf f8 ld [ %fp + -8 ], %g1 200eb3c: c2 24 20 48 st %g1, [ %l0 + 0x48 ] 200eb40: c2 24 20 44 st %g1, [ %l0 + 0x44 ] return copied; } 200eb44: 81 c7 e0 08 ret 200eb48: 81 e8 00 00 restore =============================================================================== 020022c4 : const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 20022c4: 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 ); 20022c8: 40 00 3d 6d call 201187c 20022cc: 90 10 00 18 mov %i0, %o0 20022d0: 96 07 bf fc add %fp, -4, %o3 20022d4: 92 10 00 08 mov %o0, %o1 20022d8: 94 07 bf b8 add %fp, -72, %o2 20022dc: 40 00 25 fd call 200bad0 20022e0: 90 10 00 18 mov %i0, %o0 /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) 20022e4: 03 00 00 3c sethi %hi(0xf000), %g1 20022e8: 05 00 00 10 sethi %hi(0x4000), %g2 20022ec: 82 0e 40 01 and %i1, %g1, %g1 const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 20022f0: 96 10 00 19 mov %i1, %o3 IMFS_get_token( token, strlen( token ), new_name, &result ); /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) 20022f4: 80 a0 40 02 cmp %g1, %g2 20022f8: 02 80 00 1a be 2002360 20022fc: 90 10 00 1c mov %i4, %o0 type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) 2002300: 05 00 00 20 sethi %hi(0x8000), %g2 2002304: 80 a0 40 02 cmp %g1, %g2 2002308: 02 80 00 17 be 2002364 200230c: 92 10 20 05 mov 5, %o1 type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { 2002310: 05 00 00 08 sethi %hi(0x2000), %g2 2002314: 80 a0 40 02 cmp %g1, %g2 2002318: 22 80 00 07 be,a 2002334 200231c: f4 3f bf e0 std %i2, [ %fp + -32 ] 2002320: 05 00 00 18 sethi %hi(0x6000), %g2 2002324: 80 a0 40 02 cmp %g1, %g2 2002328: 12 80 00 05 bne 200233c 200232c: 05 00 00 04 sethi %hi(0x1000), %g2 type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); 2002330: f4 3f bf e0 std %i2, [ %fp + -32 ] 2002334: 10 80 00 0c b 2002364 2002338: 92 10 20 02 mov 2, %o1 } else if (S_ISFIFO(mode)) 200233c: 80 a0 40 02 cmp %g1, %g2 2002340: 02 80 00 09 be 2002364 <== ALWAYS TAKEN 2002344: 92 10 20 07 mov 7, %o1 type = IMFS_FIFO; else { rtems_set_errno_and_return_minus_one( EINVAL ); 2002348: 40 00 39 80 call 2010948 <__errno> <== NOT EXECUTED 200234c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2002350: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2002354: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2002358: 81 c7 e0 08 ret <== NOT EXECUTED 200235c: 81 e8 00 00 restore <== NOT EXECUTED 2002360: 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( 2002364: 94 07 bf b8 add %fp, -72, %o2 2002368: 98 07 bf e0 add %fp, -32, %o4 200236c: 40 00 22 43 call 200ac78 2002370: b0 10 20 00 clr %i0 new_name, mode, &info ); if ( !new_node ) 2002374: 80 a2 20 00 cmp %o0, 0 2002378: 12 80 00 06 bne 2002390 <== ALWAYS TAKEN 200237c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOMEM ); 2002380: 40 00 39 72 call 2010948 <__errno> <== NOT EXECUTED 2002384: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 2002388: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 200238c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return 0; } 2002390: 81 c7 e0 08 ret 2002394: 81 e8 00 00 restore =============================================================================== 02002398 : #include int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 2002398: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 200239c: c2 06 20 08 ld [ %i0 + 8 ], %g1 /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 20023a0: c4 00 60 4c ld [ %g1 + 0x4c ], %g2 20023a4: 80 a0 a0 01 cmp %g2, 1 20023a8: 22 80 00 08 be,a 20023c8 <== ALWAYS TAKEN 20023ac: f0 20 60 5c st %i0, [ %g1 + 0x5c ] rtems_set_errno_and_return_minus_one( ENOTDIR ); 20023b0: 40 00 39 66 call 2010948 <__errno> <== NOT EXECUTED 20023b4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20023b8: 82 10 20 14 mov 0x14, %g1 <== NOT EXECUTED 20023bc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20023c0: 81 c7 e0 08 ret <== NOT EXECUTED 20023c4: 81 e8 00 00 restore <== NOT EXECUTED * the mounted file system. */ node->info.directory.mt_fs = mt_entry; return 0; } 20023c8: 81 c7 e0 08 ret 20023cc: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 020047d0 : */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { 20047d0: 9d e3 bf a0 save %sp, -96, %sp assert( the_jnode ); 20047d4: 80 a6 20 00 cmp %i0, 0 20047d8: 12 80 00 0a bne 2004800 <== ALWAYS TAKEN 20047dc: 21 00 80 9c sethi %hi(0x2027000), %l0 20047e0: 11 00 80 93 sethi %hi(0x2024c00), %o0 <== NOT EXECUTED 20047e4: 15 00 80 94 sethi %hi(0x2025000), %o2 <== NOT EXECUTED 20047e8: 17 00 80 93 sethi %hi(0x2024c00), %o3 <== NOT EXECUTED 20047ec: 90 12 23 a0 or %o0, 0x3a0, %o0 <== NOT EXECUTED 20047f0: 94 12 a1 b0 or %o2, 0x1b0, %o2 <== NOT EXECUTED 20047f4: 96 12 e3 f0 or %o3, 0x3f0, %o3 <== NOT EXECUTED 20047f8: 10 80 00 3b b 20048e4 <== NOT EXECUTED 20047fc: 92 10 20 38 mov 0x38, %o1 <== NOT EXECUTED fprintf(stdout, "%s", the_jnode->name ); 2004800: c2 04 20 70 ld [ %l0 + 0x70 ], %g1 2004804: 90 06 20 0c add %i0, 0xc, %o0 2004808: 40 00 42 4c call 2015138 200480c: d2 00 60 08 ld [ %g1 + 8 ], %o1 switch( the_jnode->type ) { 2004810: d4 06 20 4c ld [ %i0 + 0x4c ], %o2 2004814: 82 02 bf ff add %o2, -1, %g1 2004818: 80 a0 60 06 cmp %g1, 6 200481c: 38 80 00 42 bgu,a 2004924 <== NEVER TAKEN 2004820: c2 04 20 70 ld [ %l0 + 0x70 ], %g1 <== NOT EXECUTED 2004824: 83 28 60 02 sll %g1, 2, %g1 2004828: 05 00 80 11 sethi %hi(0x2004400), %g2 200482c: 84 10 a3 78 or %g2, 0x378, %g2 ! 2004778 2004830: c2 00 80 01 ld [ %g2 + %g1 ], %g1 2004834: 81 c0 40 00 jmp %g1 2004838: 01 00 00 00 nop case IMFS_DIRECTORY: fprintf(stdout, "/" ); 200483c: c2 04 20 70 ld [ %l0 + 0x70 ], %g1 2004840: 90 10 20 2f mov 0x2f, %o0 2004844: 40 00 41 f9 call 2015028 2004848: d2 00 60 08 ld [ %g1 + 8 ], %o1 break; 200484c: 10 80 00 3c b 200493c 2004850: 31 00 80 94 sethi %hi(0x2025000), %i0 case IMFS_DEVICE: fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")", 2004854: c2 04 20 70 ld [ %l0 + 0x70 ], %g1 2004858: 13 00 80 94 sethi %hi(0x2025000), %o1 200485c: d6 06 20 54 ld [ %i0 + 0x54 ], %o3 2004860: d0 00 60 08 ld [ %g1 + 8 ], %o0 2004864: d4 06 20 50 ld [ %i0 + 0x50 ], %o2 2004868: 10 80 00 08 b 2004888 200486c: 92 12 60 00 mov %o1, %o1 the_jnode->info.device.major, the_jnode->info.device.minor ); break; case IMFS_LINEAR_FILE: fprintf(stdout, " (file %" PRId32 " %p)", 2004870: c2 04 20 70 ld [ %l0 + 0x70 ], %g1 <== NOT EXECUTED 2004874: d6 06 20 58 ld [ %i0 + 0x58 ], %o3 <== NOT EXECUTED 2004878: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED 200487c: d4 06 20 54 ld [ %i0 + 0x54 ], %o2 <== NOT EXECUTED 2004880: 13 00 80 94 sethi %hi(0x2025000), %o1 <== NOT EXECUTED 2004884: 92 12 60 18 or %o1, 0x18, %o1 ! 2025018 <== NOT EXECUTED 2004888: 40 00 41 ce call 2014fc0 200488c: 31 00 80 94 sethi %hi(0x2025000), %i0 (uint32_t)the_jnode->info.linearfile.size, the_jnode->info.linearfile.direct ); break; 2004890: 30 80 00 2b b,a 200493c the_jnode->info.file.indirect, the_jnode->info.file.doubly_indirect, the_jnode->info.file.triply_indirect ); #else fprintf(stdout, " (file %" PRId32 ")", 2004894: c2 04 20 70 ld [ %l0 + 0x70 ], %g1 2004898: d4 06 20 54 ld [ %i0 + 0x54 ], %o2 200489c: d0 00 60 08 ld [ %g1 + 8 ], %o0 20048a0: 13 00 80 94 sethi %hi(0x2025000), %o1 20048a4: 40 00 41 c7 call 2014fc0 20048a8: 92 12 60 28 or %o1, 0x28, %o1 ! 2025028 (uint32_t)the_jnode->info.file.size ); #endif break; 20048ac: 10 80 00 24 b 200493c 20048b0: 31 00 80 94 sethi %hi(0x2025000), %i0 case IMFS_HARD_LINK: fprintf(stdout, " links not printed\n" ); 20048b4: c2 04 20 70 ld [ %l0 + 0x70 ], %g1 <== NOT EXECUTED 20048b8: 11 00 80 94 sethi %hi(0x2025000), %o0 <== NOT EXECUTED 20048bc: d2 00 60 08 ld [ %g1 + 8 ], %o1 <== NOT EXECUTED 20048c0: 40 00 42 1e call 2015138 <== NOT EXECUTED 20048c4: 90 12 20 38 or %o0, 0x38, %o0 <== NOT EXECUTED assert(0); 20048c8: 92 10 20 5d mov 0x5d, %o1 <== NOT EXECUTED 20048cc: 11 00 80 93 sethi %hi(0x2024c00), %o0 <== NOT EXECUTED 20048d0: 15 00 80 94 sethi %hi(0x2025000), %o2 <== NOT EXECUTED 20048d4: 17 00 80 94 sethi %hi(0x2025000), %o3 <== NOT EXECUTED 20048d8: 90 12 23 a0 or %o0, 0x3a0, %o0 <== NOT EXECUTED 20048dc: 94 12 a1 b0 or %o2, 0x1b0, %o2 <== NOT EXECUTED 20048e0: 96 12 e0 50 or %o3, 0x50, %o3 <== NOT EXECUTED 20048e4: 40 00 02 57 call 2005240 <__assert_func> <== NOT EXECUTED 20048e8: 01 00 00 00 nop <== NOT EXECUTED break; case IMFS_SYM_LINK: fprintf(stdout, " links not printed\n" ); 20048ec: c2 04 20 70 ld [ %l0 + 0x70 ], %g1 <== NOT EXECUTED 20048f0: 11 00 80 94 sethi %hi(0x2025000), %o0 <== NOT EXECUTED 20048f4: d2 00 60 08 ld [ %g1 + 8 ], %o1 <== NOT EXECUTED 20048f8: 40 00 42 10 call 2015138 <== NOT EXECUTED 20048fc: 90 12 20 38 or %o0, 0x38, %o0 <== NOT EXECUTED assert(0); 2004900: 10 bf ff f3 b 20048cc <== NOT EXECUTED 2004904: 92 10 20 62 mov 0x62, %o1 <== NOT EXECUTED break; case IMFS_FIFO: fprintf(stdout, " FIFO not printed\n" ); 2004908: c2 04 20 70 ld [ %l0 + 0x70 ], %g1 <== NOT EXECUTED 200490c: 11 00 80 94 sethi %hi(0x2025000), %o0 <== NOT EXECUTED 2004910: d2 00 60 08 ld [ %g1 + 8 ], %o1 <== NOT EXECUTED 2004914: 40 00 42 09 call 2015138 <== NOT EXECUTED 2004918: 90 12 20 58 or %o0, 0x58, %o0 <== NOT EXECUTED assert(0); 200491c: 10 bf ff ec b 20048cc <== NOT EXECUTED 2004920: 92 10 20 67 mov 0x67, %o1 <== NOT EXECUTED break; default: fprintf(stdout, " bad type %d\n", the_jnode->type ); 2004924: 13 00 80 94 sethi %hi(0x2025000), %o1 <== NOT EXECUTED 2004928: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED 200492c: 40 00 41 a5 call 2014fc0 <== NOT EXECUTED 2004930: 92 12 60 70 or %o1, 0x70, %o1 <== NOT EXECUTED assert(0); 2004934: 10 bf ff e6 b 20048cc <== NOT EXECUTED 2004938: 92 10 20 6c mov 0x6c, %o1 <== NOT EXECUTED break; } puts(""); 200493c: 40 00 48 ef call 2016cf8 2004940: 91 ee 20 80 restore %i0, 0x80, %o0 =============================================================================== 020023dc : int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { 20023dc: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *node; int i; node = loc->node_access; 20023e0: c2 06 00 00 ld [ %i0 ], %g1 if ( node->type != IMFS_SYM_LINK ) 20023e4: c4 00 60 4c ld [ %g1 + 0x4c ], %g2 20023e8: 80 a0 a0 04 cmp %g2, 4 20023ec: 02 80 00 0a be 2002414 <== ALWAYS TAKEN 20023f0: b0 10 20 00 clr %i0 rtems_set_errno_and_return_minus_one( EINVAL ); 20023f4: 40 00 39 55 call 2010948 <__errno> <== NOT EXECUTED 20023f8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20023fc: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2002400: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2002404: 81 c7 e0 08 ret <== NOT EXECUTED 2002408: 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]; 200240c: 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++ ) 2002410: b0 06 20 01 inc %i0 2002414: 80 a6 00 1a cmp %i0, %i2 2002418: 1a 80 00 07 bcc 2002434 200241c: 01 00 00 00 nop 2002420: c4 00 60 50 ld [ %g1 + 0x50 ], %g2 2002424: c6 48 80 18 ldsb [ %g2 + %i0 ], %g3 2002428: 80 a0 e0 00 cmp %g3, 0 200242c: 12 bf ff f8 bne 200240c 2002430: c4 08 80 18 ldub [ %g2 + %i0 ], %g2 buf[i] = node->info.sym_link.name[i]; return i; } 2002434: 81 c7 e0 08 ret 2002438: 81 e8 00 00 restore =============================================================================== 0200243c : 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 */ ) { 200243c: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; IMFS_jnode_t *new_parent; the_jnode = old_loc->node_access; 2002440: e0 06 40 00 ld [ %i1 ], %l0 strncpy( the_jnode->name, new_name, IMFS_NAME_MAX ); 2002444: 92 10 00 1b mov %i3, %o1 2002448: 90 04 20 0c add %l0, 0xc, %o0 200244c: 40 00 3d 41 call 2011950 2002450: 94 10 20 20 mov 0x20, %o2 if ( the_jnode->Parent != NULL ) 2002454: c2 04 20 08 ld [ %l0 + 8 ], %g1 2002458: 80 a0 60 00 cmp %g1, 0 200245c: 22 80 00 05 be,a 2002470 <== NEVER TAKEN 2002460: 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 ); 2002464: 40 00 12 3a call 2006d4c <_Chain_Extract> 2002468: 90 10 00 10 mov %l0, %o0 rtems_chain_extract( (rtems_chain_node *) the_jnode ); new_parent = new_parent_loc->node_access; 200246c: c2 06 80 00 ld [ %i2 ], %g1 RTEMS_INLINE_ROUTINE void rtems_chain_append( rtems_chain_control *the_chain, rtems_chain_node *the_node ) { _Chain_Append( the_chain, the_node ); 2002470: 92 10 00 10 mov %l0, %o1 2002474: 90 00 60 50 add %g1, 0x50, %o0 2002478: 40 00 12 29 call 2006d1c <_Chain_Append> 200247c: c2 24 20 08 st %g1, [ %l0 + 8 ] rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node ); /* * Update the time. */ IMFS_update_ctime( the_jnode ); 2002480: 90 07 bf f8 add %fp, -8, %o0 2002484: 40 00 01 c8 call 2002ba4 2002488: 92 10 20 00 clr %o1 200248c: c2 07 bf f8 ld [ %fp + -8 ], %g1 2002490: c2 24 20 48 st %g1, [ %l0 + 0x48 ] return 0; } 2002494: 81 c7 e0 08 ret 2002498: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 0200bbb4 : int IMFS_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 200bbb4: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 200bbb8: 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 ) { 200bbbc: c2 04 20 08 ld [ %l0 + 8 ], %g1 200bbc0: 80 a0 60 00 cmp %g1, 0 200bbc4: 22 80 00 06 be,a 200bbdc <== NEVER TAKEN 200bbc8: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 200bbcc: 7f ff ec 60 call 2006d4c <_Chain_Extract> 200bbd0: 90 10 00 10 mov %l0, %o0 rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 200bbd4: c0 24 20 08 clr [ %l0 + 8 ] /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 200bbd8: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 IMFS_update_ctime( the_jnode ); 200bbdc: 92 10 20 00 clr %o1 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 200bbe0: 82 00 7f ff add %g1, -1, %g1 IMFS_update_ctime( the_jnode ); 200bbe4: 90 07 bf f8 add %fp, -8, %o0 200bbe8: 7f ff db ef call 2002ba4 200bbec: c2 34 20 34 sth %g1, [ %l0 + 0x34 ] 200bbf0: 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) ) { 200bbf4: 90 10 00 10 mov %l0, %o0 200bbf8: 40 00 00 f9 call 200bfdc 200bbfc: c2 24 20 48 st %g1, [ %l0 + 0x48 ] 200bc00: 80 a2 20 00 cmp %o0, 0 200bc04: 12 80 00 18 bne 200bc64 <== NEVER TAKEN 200bc08: 01 00 00 00 nop 200bc0c: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 200bc10: 80 a0 60 00 cmp %g1, 0 200bc14: 12 80 00 14 bne 200bc64 <== NEVER TAKEN 200bc18: 03 00 80 76 sethi %hi(0x201d800), %g1 /* * Is rtems_filesystem_current this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 200bc1c: c2 00 60 70 ld [ %g1 + 0x70 ], %g1 ! 201d870 200bc20: c4 06 40 00 ld [ %i1 ], %g2 200bc24: c6 00 60 04 ld [ %g1 + 4 ], %g3 200bc28: 80 a0 c0 02 cmp %g3, %g2 200bc2c: 22 80 00 02 be,a 200bc34 <== NEVER TAKEN 200bc30: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { 200bc34: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 200bc38: 80 a0 60 04 cmp %g1, 4 200bc3c: 12 80 00 08 bne 200bc5c 200bc40: 01 00 00 00 nop if ( the_jnode->info.sym_link.name ) 200bc44: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 200bc48: 80 a2 20 00 cmp %o0, 0 200bc4c: 02 80 00 04 be 200bc5c <== NEVER TAKEN 200bc50: 01 00 00 00 nop free( (void*) the_jnode->info.sym_link.name ); 200bc54: 7f ff db aa call 2002afc 200bc58: 01 00 00 00 nop } free( the_jnode ); 200bc5c: 7f ff db a8 call 2002afc 200bc60: 90 10 00 10 mov %l0, %o0 } return 0; } 200bc64: 81 c7 e0 08 ret 200bc68: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 0200bc84 : int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 200bc84: 9d e3 bf a0 save %sp, -96, %sp IMFS_fs_info_t *fs_info; IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access; 200bc88: c2 06 00 00 ld [ %i0 ], %g1 switch ( the_jnode->type ) { 200bc8c: c4 00 60 4c ld [ %g1 + 0x4c ], %g2 200bc90: 84 00 bf fe add %g2, -2, %g2 200bc94: 80 a0 a0 05 cmp %g2, 5 200bc98: 18 80 00 10 bgu 200bcd8 <== NEVER TAKEN 200bc9c: 85 28 a0 02 sll %g2, 2, %g2 200bca0: 07 00 80 2f sethi %hi(0x200bc00), %g3 200bca4: 86 10 e0 6c or %g3, 0x6c, %g3 ! 200bc6c 200bca8: c4 00 c0 02 ld [ %g3 + %g2 ], %g2 200bcac: 81 c0 80 00 jmp %g2 200bcb0: 01 00 00 00 nop rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; 200bcb4: 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; 200bcb8: 10 80 00 0e b 200bcf0 200bcbc: c4 3e 60 18 std %g2, [ %i1 + 0x18 ] case IMFS_LINEAR_FILE: case IMFS_MEMORY_FILE: buf->st_size = the_jnode->info.file.size; 200bcc0: c4 18 60 50 ldd [ %g1 + 0x50 ], %g2 break; 200bcc4: 10 80 00 0b b 200bcf0 200bcc8: c4 3e 60 20 std %g2, [ %i1 + 0x20 ] case IMFS_SYM_LINK: buf->st_size = 0; break; case IMFS_FIFO: buf->st_size = 0; 200bccc: c0 26 60 20 clr [ %i1 + 0x20 ] <== NOT EXECUTED break; 200bcd0: 10 80 00 08 b 200bcf0 <== NOT EXECUTED 200bcd4: c0 26 60 24 clr [ %i1 + 0x24 ] <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 200bcd8: 40 00 13 1c call 2010948 <__errno> <== NOT EXECUTED 200bcdc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200bce0: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 200bce4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200bce8: 81 c7 e0 08 ret <== NOT EXECUTED 200bcec: 81 e8 00 00 restore <== NOT EXECUTED */ fs_info = loc->mt_entry->fs_info; buf->st_dev = rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); buf->st_mode = the_jnode->st_mode; 200bcf0: c6 00 60 30 ld [ %g1 + 0x30 ], %g3 buf->st_nlink = the_jnode->st_nlink; 200bcf4: c8 10 60 34 lduh [ %g1 + 0x34 ], %g4 */ fs_info = loc->mt_entry->fs_info; buf->st_dev = rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); buf->st_mode = the_jnode->st_mode; 200bcf8: c6 26 60 0c st %g3, [ %i1 + 0xc ] buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; 200bcfc: c6 00 60 38 ld [ %g1 + 0x38 ], %g3 * The device number of the IMFS is the major number and the minor is the * instance. */ fs_info = loc->mt_entry->fs_info; buf->st_dev = rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); 200bd00: c4 06 20 10 ld [ %i0 + 0x10 ], %g2 buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; 200bd04: c6 26 60 08 st %g3, [ %i1 + 8 ] buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; 200bd08: c6 00 60 40 ld [ %g1 + 0x40 ], %g3 fs_info = loc->mt_entry->fs_info; buf->st_dev = rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; 200bd0c: c8 36 60 10 sth %g4, [ %i1 + 0x10 ] 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; 200bd10: c6 26 60 28 st %g3, [ %i1 + 0x28 ] * The device number of the IMFS is the major number and the minor is the * instance. */ fs_info = loc->mt_entry->fs_info; buf->st_dev = rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); 200bd14: c6 00 a0 34 ld [ %g2 + 0x34 ], %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; buf->st_mtime = the_jnode->stat_mtime; 200bd18: c8 00 60 44 ld [ %g1 + 0x44 ], %g4 rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); 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; 200bd1c: c4 10 60 3c lduh [ %g1 + 0x3c ], %g2 buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; 200bd20: c8 26 60 30 st %g4, [ %i1 + 0x30 ] rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); 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; 200bd24: c4 36 60 12 sth %g2, [ %i1 + 0x12 ] * The device number of the IMFS is the major number and the minor is the * instance. */ fs_info = loc->mt_entry->fs_info; buf->st_dev = rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); 200bd28: c8 00 c0 00 ld [ %g3 ], %g4 buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; 200bd2c: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 buf->st_blksize = imfs_rq_memfile_bytes_per_block; 200bd30: 07 00 80 75 sethi %hi(0x201d400), %g3 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; 200bd34: c2 10 60 3e lduh [ %g1 + 0x3e ], %g1 buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; buf->st_blksize = imfs_rq_memfile_bytes_per_block; 200bd38: c6 00 e2 a8 ld [ %g3 + 0x2a8 ], %g3 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; 200bd3c: c2 36 60 14 sth %g1, [ %i1 + 0x14 ] /* * The device number of the IMFS is the major number and the minor is the * instance. */ fs_info = loc->mt_entry->fs_info; buf->st_dev = 200bd40: c8 26 60 04 st %g4, [ %i1 + 4 ] buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; buf->st_blksize = imfs_rq_memfile_bytes_per_block; 200bd44: c6 26 60 40 st %g3, [ %i1 + 0x40 ] buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; 200bd48: c4 26 60 38 st %g2, [ %i1 + 0x38 ] 200bd4c: 03 00 00 3f sethi %hi(0xfc00), %g1 200bd50: 82 10 63 fe or %g1, 0x3fe, %g1 ! fffe /* * The device number of the IMFS is the major number and the minor is the * instance. */ fs_info = loc->mt_entry->fs_info; buf->st_dev = 200bd54: c2 26 40 00 st %g1, [ %i1 ] buf->st_ctime = the_jnode->stat_ctime; buf->st_blksize = imfs_rq_memfile_bytes_per_block; return 0; } 200bd58: 81 c7 e0 08 ret 200bd5c: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 0200249c : int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { 200249c: 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 ); 20024a0: 40 00 3c f7 call 201187c 20024a4: 90 10 00 1a mov %i2, %o0 20024a8: 96 07 bf fc add %fp, -4, %o3 20024ac: 92 10 00 08 mov %o0, %o1 20024b0: a0 07 bf b8 add %fp, -72, %l0 20024b4: 90 10 00 1a mov %i2, %o0 20024b8: 40 00 25 86 call 200bad0 20024bc: 94 10 00 10 mov %l0, %o2 /* * Duplicate link name */ info.sym_link.name = strdup(link_name); 20024c0: 40 00 3c da call 2011828 20024c4: 90 10 00 19 mov %i1, %o0 20024c8: d0 27 bf e0 st %o0, [ %fp + -32 ] if (info.sym_link.name == NULL) { 20024cc: 80 a2 20 00 cmp %o0, 0 20024d0: 12 80 00 08 bne 20024f0 <== ALWAYS TAKEN 20024d4: 90 10 00 18 mov %i0, %o0 rtems_set_errno_and_return_minus_one(ENOMEM); 20024d8: 40 00 39 1c call 2010948 <__errno> <== NOT EXECUTED 20024dc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20024e0: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 20024e4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20024e8: 81 c7 e0 08 ret 20024ec: 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( 20024f0: 94 10 00 10 mov %l0, %o2 20024f4: 92 10 20 04 mov 4, %o1 20024f8: 17 00 00 28 sethi %hi(0xa000), %o3 20024fc: 98 07 bf e0 add %fp, -32, %o4 2002500: 96 12 e1 ff or %o3, 0x1ff, %o3 2002504: 40 00 21 dd call 200ac78 2002508: b0 10 20 00 clr %i0 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { 200250c: 80 a2 20 00 cmp %o0, 0 2002510: 12 bf ff f6 bne 20024e8 <== ALWAYS TAKEN 2002514: d0 07 bf e0 ld [ %fp + -32 ], %o0 free(info.sym_link.name); 2002518: 40 00 01 79 call 2002afc <== NOT EXECUTED 200251c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 2002520: 40 00 39 0a call 2010948 <__errno> <== NOT EXECUTED 2002524: 01 00 00 00 nop <== NOT EXECUTED 2002528: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 200252c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED } return 0; } 2002530: 81 c7 e0 08 ret <== NOT EXECUTED 2002534: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02002538 : int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { 2002538: 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; 200253c: 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 ) { 2002540: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 2002544: 80 a0 60 03 cmp %g1, 3 2002548: 12 80 00 29 bne 20025ec 200254c: a4 10 00 18 mov %i0, %l2 if ( !node->info.hard_link.link_node ) 2002550: e6 04 20 50 ld [ %l0 + 0x50 ], %l3 2002554: 80 a4 e0 00 cmp %l3, 0 2002558: 12 80 00 08 bne 2002578 <== ALWAYS TAKEN 200255c: a2 07 bf e4 add %fp, -28, %l1 rtems_set_errno_and_return_minus_one( EINVAL ); 2002560: 40 00 38 fa call 2010948 <__errno> <== NOT EXECUTED 2002564: 01 00 00 00 nop <== NOT EXECUTED 2002568: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED 200256c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2002570: 10 80 00 24 b 2002600 <== NOT EXECUTED 2002574: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED the_link = *loc; 2002578: 92 10 00 19 mov %i1, %o1 200257c: 94 10 20 14 mov 0x14, %o2 2002580: 40 00 3b 2e call 2011238 2002584: 90 10 00 11 mov %l1, %o0 the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); 2002588: 90 10 00 11 mov %l1, %o0 200258c: 40 00 22 06 call 200ada4 2002590: 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) 2002594: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 2002598: c6 10 60 34 lduh [ %g1 + 0x34 ], %g3 200259c: 80 a0 e0 01 cmp %g3, 1 20025a0: 12 80 00 0c bne 20025d0 20025a4: 84 00 ff ff add %g3, -1, %g2 { result = (*the_link.handlers->rmnod_h)( parentloc, &the_link ); 20025a8: c2 07 bf ec ld [ %fp + -20 ], %g1 20025ac: 92 10 00 11 mov %l1, %o1 20025b0: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 20025b4: 9f c0 40 00 call %g1 20025b8: 90 10 00 18 mov %i0, %o0 if ( result != 0 ) 20025bc: 80 a2 20 00 cmp %o0, 0 20025c0: 02 80 00 0b be 20025ec 20025c4: 90 10 3f ff mov -1, %o0 */ result = (*loc->handlers->rmnod_h)( parentloc, loc ); return result; } 20025c8: 81 c7 e0 08 ret 20025cc: 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 ); 20025d0: 90 07 bf f8 add %fp, -8, %o0 if ( result != 0 ) return -1; } else { node->info.hard_link.link_node->st_nlink --; 20025d4: c4 30 60 34 sth %g2, [ %g1 + 0x34 ] IMFS_update_ctime( node->info.hard_link.link_node ); 20025d8: 40 00 01 73 call 2002ba4 20025dc: 92 10 20 00 clr %o1 20025e0: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 20025e4: c4 07 bf f8 ld [ %fp + -8 ], %g2 20025e8: c4 20 60 48 st %g2, [ %g1 + 0x48 ] /* * Now actually free the node we were asked to free. */ result = (*loc->handlers->rmnod_h)( parentloc, loc ); 20025ec: c2 06 60 08 ld [ %i1 + 8 ], %g1 20025f0: 90 10 00 12 mov %l2, %o0 20025f4: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 20025f8: 9f c0 40 00 call %g1 20025fc: 92 10 00 19 mov %i1, %o1 return result; } 2002600: b0 10 00 08 mov %o0, %i0 2002604: 81 c7 e0 08 ret 2002608: 81 e8 00 00 restore =============================================================================== 0200260c : #include int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 200260c: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 2002610: c2 06 20 08 ld [ %i0 + 8 ], %g1 /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 2002614: c4 00 60 4c ld [ %g1 + 0x4c ], %g2 2002618: 80 a0 a0 01 cmp %g2, 1 200261c: 22 80 00 06 be,a 2002634 <== ALWAYS TAKEN 2002620: c4 00 60 5c ld [ %g1 + 0x5c ], %g2 rtems_set_errno_and_return_minus_one( ENOTDIR ); 2002624: 40 00 38 c9 call 2010948 <__errno> <== NOT EXECUTED 2002628: 01 00 00 00 nop <== NOT EXECUTED 200262c: 10 80 00 08 b 200264c <== NOT EXECUTED 2002630: 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 ) 2002634: 80 a0 a0 00 cmp %g2, 0 2002638: 32 80 00 08 bne,a 2002658 <== ALWAYS TAKEN 200263c: c0 20 60 5c clr [ %g1 + 0x5c ] rtems_set_errno_and_return_minus_one( EINVAL ); /* XXX */ 2002640: 40 00 38 c2 call 2010948 <__errno> <== NOT EXECUTED 2002644: 01 00 00 00 nop <== NOT EXECUTED 2002648: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED 200264c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2002650: 81 c7 e0 08 ret <== NOT EXECUTED 2002654: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED */ node->info.directory.mt_fs = NULL; return 0; } 2002658: 81 c7 e0 08 ret 200265c: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 02002d88 : void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) { 2002d88: 9d e3 bf a0 save %sp, -96, %sp #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { 2002d8c: 03 00 80 77 sethi %hi(0x201dc00), %g1 2002d90: c2 00 61 d8 ld [ %g1 + 0x1d8 ], %g1 ! 201ddd8 2002d94: 80 a0 60 00 cmp %g1, 0 2002d98: 02 80 00 05 be 2002dac 2002d9c: 01 00 00 00 nop (*rtems_malloc_statistics_helpers->initialize)(); 2002da0: c2 00 40 00 ld [ %g1 ], %g1 2002da4: 9f c0 40 00 call %g1 2002da8: 01 00 00 00 nop } /* * Initialize the garbage collection list to start with nothing on it. */ malloc_deferred_frees_initialize(); 2002dac: 7f ff ff dc call 2002d1c 2002db0: 01 00 00 00 nop /* * Initialize the optional sbrk support for extending the heap */ if ( rtems_malloc_sbrk_helpers != NULL ) { 2002db4: 03 00 80 77 sethi %hi(0x201dc00), %g1 2002db8: c2 00 61 dc ld [ %g1 + 0x1dc ], %g1 ! 201dddc 2002dbc: 80 a0 60 00 cmp %g1, 0 2002dc0: 02 80 00 08 be 2002de0 <== ALWAYS TAKEN 2002dc4: 90 10 00 18 mov %i0, %o0 void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)( 2002dc8: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED heap_begin, sbrk_amount ); heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin; 2002dcc: 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)( 2002dd0: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002dd4: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED heap_begin, sbrk_amount ); heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin; 2002dd8: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 2002ddc: 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 ( 2002de0: 03 00 80 77 sethi %hi(0x201dc00), %g1 2002de4: c2 08 61 d5 ldub [ %g1 + 0x1d5 ], %g1 ! 201ddd5 2002de8: 80 a0 60 00 cmp %g1, 0 2002dec: 12 80 00 0c bne 2002e1c 2002df0: 03 00 80 77 sethi %hi(0x201dc00), %g1 !rtems_unified_work_area && rtems_configuration_get_do_zero_of_workspace() 2002df4: 03 00 80 75 sethi %hi(0x201d400), %g1 2002df8: c2 08 63 80 ldub [ %g1 + 0x380 ], %g1 ! 201d780 2002dfc: 80 a0 60 00 cmp %g1, 0 2002e00: 02 80 00 07 be 2002e1c 2002e04: 03 00 80 77 sethi %hi(0x201dc00), %g1 ) { memset( heap_begin, 0, heap_size ); 2002e08: 90 10 00 18 mov %i0, %o0 2002e0c: 92 10 20 00 clr %o1 2002e10: 40 00 39 49 call 2011334 2002e14: 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 ) { 2002e18: 03 00 80 77 sethi %hi(0x201dc00), %g1 2002e1c: c2 08 61 d5 ldub [ %g1 + 0x1d5 ], %g1 ! 201ddd5 2002e20: 80 a0 60 00 cmp %g1, 0 2002e24: 12 80 00 0c bne 2002e54 2002e28: 03 00 80 75 sethi %hi(0x201d400), %g1 void *area_begin, uintptr_t area_size, uintptr_t page_size ) { return _Heap_Initialize( heap, area_begin, area_size, page_size ); 2002e2c: d0 00 62 b0 ld [ %g1 + 0x2b0 ], %o0 ! 201d6b0 2002e30: 92 10 00 18 mov %i0, %o1 2002e34: 94 10 00 19 mov %i1, %o2 2002e38: 40 00 11 26 call 20072d0 <_Heap_Initialize> 2002e3c: 96 10 20 08 mov 8, %o3 RTEMS_Malloc_Heap, heap_begin, heap_size, CPU_HEAP_ALIGNMENT ); if ( status == 0 ) { 2002e40: 80 a2 20 00 cmp %o0, 0 2002e44: 12 80 00 05 bne 2002e58 <== ALWAYS TAKEN 2002e48: 33 00 80 78 sethi %hi(0x201e000), %i1 rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); 2002e4c: 40 00 0e d9 call 20069b0 <== NOT EXECUTED 2002e50: 90 10 20 1a mov 0x1a, %o0 <== NOT EXECUTED } } MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) ); 2002e54: 33 00 80 78 sethi %hi(0x201e000), %i1 2002e58: 03 00 80 75 sethi %hi(0x201d400), %g1 2002e5c: f0 06 60 d0 ld [ %i1 + 0xd0 ], %i0 2002e60: 40 00 14 4f call 2007f9c <_Protected_heap_Get_size> 2002e64: d0 00 62 b0 ld [ %g1 + 0x2b0 ], %o0 2002e68: 90 02 00 18 add %o0, %i0, %o0 2002e6c: d0 26 60 d0 st %o0, [ %i1 + 0xd0 ] printk( "\n" ); rtems_print_buffer( (heap_begin + heap_size) - 48, 48 ); rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } #endif } 2002e70: 81 c7 e0 08 ret 2002e74: 81 e8 00 00 restore =============================================================================== 02006570 : static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) { 2006570: 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 ) 2006574: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 2006578: 02 80 00 49 be 200669c <== NOT EXECUTED 200657c: 03 00 81 b0 sethi %hi(0x206c000), %g1 <== NOT EXECUTED return; if ( !print_handler ) 2006580: e4 00 60 30 ld [ %g1 + 0x30 ], %l2 ! 206c030 <== NOT EXECUTED 2006584: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED 2006588: 02 80 00 45 be 200669c <== NOT EXECUTED 200658c: 80 a6 3f ff cmp %i0, -1 <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { 2006590: 32 80 00 0a bne,a 20065b8 <== NOT EXECUTED 2006594: e8 06 21 50 ld [ %i0 + 0x150 ], %l4 <== NOT EXECUTED if (Stack_check_Interrupt_stack.area) { 2006598: 23 00 81 ba sethi %hi(0x206e800), %l1 <== NOT EXECUTED 200659c: a2 14 63 98 or %l1, 0x398, %l1 ! 206eb98 <== NOT EXECUTED 20065a0: c2 04 60 04 ld [ %l1 + 4 ], %g1 <== NOT EXECUTED 20065a4: a8 10 20 00 clr %l4 <== NOT EXECUTED 20065a8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20065ac: 12 80 00 04 bne 20065bc <== NOT EXECUTED 20065b0: b0 10 20 00 clr %i0 <== NOT EXECUTED 20065b4: 30 80 00 41 b,a 20066b8 <== NOT EXECUTED current = 0; } else return; } else { stack = &the_thread->Start.Initial_stack; 20065b8: a2 06 20 c4 add %i0, 0xc4, %l1 <== NOT EXECUTED current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); } low = Stack_check_usable_stack_start(stack); 20065bc: ea 04 60 04 ld [ %l1 + 4 ], %l5 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); 20065c0: 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); 20065c4: aa 05 60 10 add %l5, 0x10, %l5 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); 20065c8: a6 04 ff f0 add %l3, -16, %l3 <== NOT EXECUTED high_water_mark = Stack_check_find_high_water_mark(low, size); 20065cc: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED 20065d0: 7f ff ff d8 call 2006530 <== NOT EXECUTED 20065d4: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED if ( high_water_mark ) 20065d8: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED 20065dc: 82 60 20 00 subx %g0, 0, %g1 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); 20065e0: a0 05 40 13 add %l5, %l3, %l0 <== NOT EXECUTED else used = 0; if ( the_thread ) { 20065e4: 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 ); 20065e8: 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 ) 20065ec: 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 ) { 20065f0: 02 80 00 10 be 2006630 <== NOT EXECUTED 20065f4: 03 00 81 b0 sethi %hi(0x206c000), %g1 <== NOT EXECUTED (*print_handler)( 20065f8: ea 06 20 08 ld [ %i0 + 8 ], %l5 <== NOT EXECUTED 20065fc: ec 00 60 2c ld [ %g1 + 0x2c ], %l6 <== NOT EXECUTED 2006600: 94 07 bf f8 add %fp, -8, %o2 <== NOT EXECUTED 2006604: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED 2006608: 40 00 18 7b call 200c7f4 <== NOT EXECUTED 200660c: 92 10 20 05 mov 5, %o1 <== NOT EXECUTED 2006610: 94 10 00 15 mov %l5, %o2 <== NOT EXECUTED 2006614: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED 2006618: 13 00 81 7e sethi %hi(0x205f800), %o1 <== NOT EXECUTED 200661c: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED 2006620: 9f c4 80 00 call %l2 <== NOT EXECUTED 2006624: 92 12 61 58 or %o1, 0x158, %o1 <== NOT EXECUTED ); } else { (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); } (*print_handler)( 2006628: 10 80 00 08 b 2006648 <== NOT EXECUTED 200662c: 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 ); 2006630: d0 00 60 2c ld [ %g1 + 0x2c ], %o0 <== NOT EXECUTED 2006634: 13 00 81 7e sethi %hi(0x205f800), %o1 <== NOT EXECUTED 2006638: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED 200663c: 9f c4 80 00 call %l2 <== NOT EXECUTED 2006640: 92 12 61 68 or %o1, 0x168, %o1 <== NOT EXECUTED } (*print_handler)( 2006644: d6 04 40 00 ld [ %l1 ], %o3 <== NOT EXECUTED 2006648: d4 04 60 04 ld [ %l1 + 4 ], %o2 <== NOT EXECUTED 200664c: 25 00 81 b0 sethi %hi(0x206c000), %l2 <== NOT EXECUTED 2006650: 23 00 81 b0 sethi %hi(0x206c000), %l1 <== NOT EXECUTED 2006654: c2 04 a0 30 ld [ %l2 + 0x30 ], %g1 <== NOT EXECUTED 2006658: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED 200665c: 96 02 ff ff add %o3, -1, %o3 <== NOT EXECUTED 2006660: 98 10 00 14 mov %l4, %o4 <== NOT EXECUTED 2006664: 96 02 80 0b add %o2, %o3, %o3 <== NOT EXECUTED 2006668: 9a 10 00 13 mov %l3, %o5 <== NOT EXECUTED 200666c: 13 00 81 7e sethi %hi(0x205f800), %o1 <== NOT EXECUTED 2006670: 9f c0 40 00 call %g1 <== NOT EXECUTED 2006674: 92 12 61 78 or %o1, 0x178, %o1 ! 205f978 <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { 2006678: 03 00 81 b0 sethi %hi(0x206c000), %g1 <== NOT EXECUTED 200667c: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 ! 206c028 <== NOT EXECUTED 2006680: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2006684: 12 80 00 08 bne 20066a4 <== NOT EXECUTED 2006688: c2 04 a0 30 ld [ %l2 + 0x30 ], %g1 <== NOT EXECUTED (*print_handler)( print_context, "Unavailable\n" ); 200668c: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED 2006690: 13 00 81 7e sethi %hi(0x205f800), %o1 <== NOT EXECUTED 2006694: 9f c0 40 00 call %g1 <== NOT EXECUTED 2006698: 92 12 61 98 or %o1, 0x198, %o1 ! 205f998 <== NOT EXECUTED 200669c: 81 c7 e0 08 ret <== NOT EXECUTED 20066a0: 81 e8 00 00 restore <== NOT EXECUTED } else { (*print_handler)( print_context, "%8" PRId32 "\n", used ); 20066a4: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED 20066a8: 13 00 81 7e sethi %hi(0x205f800), %o1 <== NOT EXECUTED 20066ac: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 20066b0: 9f c0 40 00 call %g1 <== NOT EXECUTED 20066b4: 92 12 61 a8 or %o1, 0x1a8, %o1 <== NOT EXECUTED 20066b8: 81 c7 e0 08 ret <== NOT EXECUTED 20066bc: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 020068d0 : /* * Stack_check_Initialize */ void Stack_check_Initialize( void ) { 20068d0: 9d e3 bf a0 save %sp, -96, %sp static uint32_t pattern[ 4 ] = { 0xFEEDF00D, 0x0BAD0D06, /* FEED FOOD to BAD DOG */ 0xDEADF00D, 0x600D0D06 /* DEAD FOOD but GOOD DOG */ }; if (Stack_check_Initialized) 20068d4: 03 00 81 b0 sethi %hi(0x206c000), %g1 20068d8: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 ! 206c028 20068dc: 80 a0 60 00 cmp %g1, 0 20068e0: 12 80 00 21 bne 2006964 20068e4: 07 00 81 ba sethi %hi(0x206e800), %g3 /* * Dope the pattern and fill areas */ p = Stack_check_Pattern.pattern; for ( i = 0; i < PATTERN_SIZE_WORDS; i++ ) { p[i] = pattern[ i%4 ]; 20068e8: 05 00 81 7e sethi %hi(0x205f800), %g2 20068ec: 86 10 e3 88 or %g3, 0x388, %g3 20068f0: 84 10 a3 00 or %g2, 0x300, %g2 20068f4: 88 08 60 03 and %g1, 3, %g4 20068f8: 89 29 20 02 sll %g4, 2, %g4 20068fc: da 00 80 04 ld [ %g2 + %g4 ], %o5 2006900: 89 28 60 02 sll %g1, 2, %g4 /* * Dope the pattern and fill areas */ p = Stack_check_Pattern.pattern; for ( i = 0; i < PATTERN_SIZE_WORDS; i++ ) { 2006904: 82 00 60 01 inc %g1 2006908: 80 a0 60 04 cmp %g1, 4 200690c: 12 bf ff fa bne 20068f4 2006910: da 20 c0 04 st %o5, [ %g3 + %g4 ] /* * If appropriate, setup the interrupt stack for high water testing * also. */ #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE) if (_CPU_Interrupt_stack_low && _CPU_Interrupt_stack_high) { 2006914: 03 00 81 bb sethi %hi(0x206ec00), %g1 2006918: c2 00 61 90 ld [ %g1 + 0x190 ], %g1 ! 206ed90 <_CPU_Interrupt_stack_low> 200691c: 80 a0 60 00 cmp %g1, 0 2006920: 02 80 00 0e be 2006958 <== NEVER TAKEN 2006924: 05 00 81 bb sethi %hi(0x206ec00), %g2 2006928: c6 00 a0 dc ld [ %g2 + 0xdc ], %g3 ! 206ecdc <_CPU_Interrupt_stack_high> 200692c: 80 a0 e0 00 cmp %g3, 0 2006930: 02 80 00 0a be 2006958 <== NEVER TAKEN 2006934: 86 20 c0 01 sub %g3, %g1, %g3 Stack_check_Interrupt_stack.area = _CPU_Interrupt_stack_low; 2006938: 05 00 81 ba sethi %hi(0x206e800), %g2 Stack_check_Interrupt_stack.size = (char *) _CPU_Interrupt_stack_high - 200693c: c6 20 a3 98 st %g3, [ %g2 + 0x398 ] ! 206eb98 * If appropriate, setup the interrupt stack for high water testing * also. */ #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE) if (_CPU_Interrupt_stack_low && _CPU_Interrupt_stack_high) { Stack_check_Interrupt_stack.area = _CPU_Interrupt_stack_low; 2006940: 84 10 a3 98 or %g2, 0x398, %g2 Stack_check_Interrupt_stack.size = (char *) _CPU_Interrupt_stack_high - (char *) _CPU_Interrupt_stack_low; Stack_check_Dope_stack(&Stack_check_Interrupt_stack); 2006944: 90 10 00 01 mov %g1, %o0 2006948: 94 10 00 03 mov %g3, %o2 * If appropriate, setup the interrupt stack for high water testing * also. */ #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE) if (_CPU_Interrupt_stack_low && _CPU_Interrupt_stack_high) { Stack_check_Interrupt_stack.area = _CPU_Interrupt_stack_low; 200694c: c2 20 a0 04 st %g1, [ %g2 + 4 ] Stack_check_Interrupt_stack.size = (char *) _CPU_Interrupt_stack_high - (char *) _CPU_Interrupt_stack_low; Stack_check_Dope_stack(&Stack_check_Interrupt_stack); 2006950: 40 01 04 30 call 2047a10 2006954: 92 10 20 a5 mov 0xa5, %o1 } #endif Stack_check_Initialized = 1; 2006958: 84 10 20 01 mov 1, %g2 200695c: 03 00 81 b0 sethi %hi(0x206c000), %g1 2006960: c4 20 60 28 st %g2, [ %g1 + 0x28 ] ! 206c028 2006964: 81 c7 e0 08 ret 2006968: 81 e8 00 00 restore =============================================================================== 02006530 : /* * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; 2006530: 90 02 20 10 add %o0, 0x10, %o0 <== NOT EXECUTED for (ebase = base + length; base < ebase; base++) 2006534: 84 0a 7f fc and %o1, -4, %g2 <== NOT EXECUTED if (*base != U32_PATTERN) 2006538: 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++) 200653c: 84 02 00 02 add %o0, %g2, %g2 <== NOT EXECUTED 2006540: 10 80 00 06 b 2006558 <== NOT EXECUTED 2006544: 82 10 61 a5 or %g1, 0x1a5, %g1 <== NOT EXECUTED if (*base != U32_PATTERN) 2006548: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 200654c: 12 80 00 07 bne 2006568 <== NOT EXECUTED 2006550: 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++) 2006554: 90 02 20 04 add %o0, 4, %o0 <== NOT EXECUTED 2006558: 80 a2 00 02 cmp %o0, %g2 <== NOT EXECUTED 200655c: 2a bf ff fb bcs,a 2006548 <== NOT EXECUTED 2006560: c6 02 00 00 ld [ %o0 ], %g3 <== NOT EXECUTED 2006564: 90 10 20 00 clr %o0 <== NOT EXECUTED if (*base != U32_PATTERN) return (void *) base; #endif return (void *)0; } 2006568: 81 c3 e0 08 retl <== NOT EXECUTED =============================================================================== 02006734 : * * 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) { 2006734: 9d e3 bf 80 save %sp, -128, %sp Stack_Control *stack = &running->Start.Initial_stack; void *pattern_area = Stack_check_Get_pattern_area(stack); char name [32]; printk("BLOWN STACK!!!\n"); 2006738: 11 00 81 7e sethi %hi(0x205f800), %o0 * 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); 200673c: e0 06 20 c8 ld [ %i0 + 0xc8 ], %l0 char name [32]; printk("BLOWN STACK!!!\n"); 2006740: 40 00 0b d6 call 2009698 2006744: 90 12 22 18 or %o0, 0x218, %o0 printk("task control block: 0x%08" PRIxPTR "\n", running); 2006748: 92 10 00 18 mov %i0, %o1 200674c: 11 00 81 7e sethi %hi(0x205f800), %o0 2006750: 40 00 0b d2 call 2009698 2006754: 90 12 22 28 or %o0, 0x228, %o0 ! 205fa28 printk("task ID: 0x%08lx\n", (unsigned long) running->Object.id); 2006758: d2 06 20 08 ld [ %i0 + 8 ], %o1 200675c: 11 00 81 7e sethi %hi(0x205f800), %o0 2006760: 40 00 0b ce call 2009698 2006764: 90 12 22 48 or %o0, 0x248, %o0 ! 205fa48 printk( 2006768: d2 06 20 0c ld [ %i0 + 0xc ], %o1 200676c: 11 00 81 7e sethi %hi(0x205f800), %o0 2006770: 40 00 0b ca call 2009698 2006774: 90 12 22 60 or %o0, 0x260, %o0 ! 205fa60 "task name: 0x%08" PRIx32 "\n", running->Object.name.name_u32 ); printk( 2006778: d0 06 20 08 ld [ %i0 + 8 ], %o0 200677c: 94 07 bf e0 add %fp, -32, %o2 2006780: 40 00 18 1d call 200c7f4 2006784: 92 10 20 20 mov 0x20, %o1 2006788: 92 10 00 08 mov %o0, %o1 200678c: 11 00 81 7e sethi %hi(0x205f800), %o0 2006790: 40 00 0b c2 call 2009698 2006794: 90 12 22 78 or %o0, 0x278, %o0 ! 205fa78 "task name string: %s\n", rtems_object_get_name(running->Object.id, sizeof(name), name) ); printk( 2006798: d2 06 20 c4 ld [ %i0 + 0xc4 ], %o1 200679c: d4 06 20 c8 ld [ %i0 + 0xc8 ], %o2 20067a0: 11 00 81 7e sethi %hi(0x205f800), %o0 20067a4: 96 02 80 09 add %o2, %o1, %o3 20067a8: 40 00 0b bc call 2009698 20067ac: 90 12 22 90 or %o0, 0x290, %o0 "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) { 20067b0: 80 8e 60 ff btst 0xff, %i1 20067b4: 12 80 00 07 bne 20067d0 <== NEVER TAKEN 20067b8: 11 00 81 7e sethi %hi(0x205f800), %o0 printk( 20067bc: 96 04 20 18 add %l0, 0x18, %o3 20067c0: 90 12 22 c8 or %o0, 0x2c8, %o0 20067c4: 92 10 20 10 mov 0x10, %o1 20067c8: 40 00 0b b4 call 2009698 20067cc: 94 04 20 08 add %l0, 8, %o2 rtems_configuration_get_user_multiprocessing_table()->node ); } #endif rtems_fatal_error_occurred(0x81); 20067d0: 40 00 1a b4 call 200d2a0 20067d4: 90 10 20 81 mov 0x81, %o0 =============================================================================== 02043784 : return 0; } static int rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control, 2043784: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED rtems_rfs_bitmap_element* map_bits; int map_index; int map_offset; int rc; *found = false; 2043788: c0 2e 80 00 clrb [ %i2 ] <== NOT EXECUTED /* * Load the bitmap. */ rc = rtems_rfs_bitmap_load_map (control, &map); 204378c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2043790: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED 2043794: 7f ff fe f2 call 204335c <== NOT EXECUTED 2043798: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED if (rc > 0) 204379c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20437a0: 14 80 00 7a bg 2043988 <== NOT EXECUTED 20437a4: a5 2e e0 0b sll %i3, 0xb, %l2 <== NOT EXECUTED return rc; /* * Calculate the bit we are testing plus the end point we search over. */ test_bit = *bit; 20437a8: e2 06 40 00 ld [ %i1 ], %l1 <== NOT EXECUTED end_bit = test_bit + (window * direction); if (end_bit < 0) 20437ac: a4 84 80 11 addcc %l2, %l1, %l2 <== NOT EXECUTED 20437b0: 3c 80 00 04 bpos,a 20437c0 <== NOT EXECUTED 20437b4: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED 20437b8: 10 80 00 05 b 20437cc <== NOT EXECUTED 20437bc: a4 10 20 00 clr %l2 <== NOT EXECUTED end_bit = 0; else if (end_bit >= control->size) 20437c0: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED 20437c4: 3a 80 00 02 bcc,a 20437cc <== NOT EXECUTED 20437c8: a4 00 7f ff add %g1, -1, %l2 <== NOT EXECUTED map_index = rtems_rfs_bitmap_map_index (test_bit); map_offset = rtems_rfs_bitmap_map_offset (test_bit); search_index = rtems_rfs_bitmap_map_index (map_index); search_offset = rtems_rfs_bitmap_map_offset (map_index); search_bits = &control->search_bits[search_index]; 20437cc: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED map_bits = &map[map_index]; 20437d0: ea 07 bf fc ld [ %fp + -4 ], %l5 <== NOT EXECUTED if (end_bit < 0) end_bit = 0; else if (end_bit >= control->size) end_bit = control->size - 1; map_index = rtems_rfs_bitmap_map_index (test_bit); 20437d4: a7 3c 60 05 sra %l1, 5, %l3 <== NOT EXECUTED map_offset = rtems_rfs_bitmap_map_offset (test_bit); search_index = rtems_rfs_bitmap_map_index (map_index); search_offset = rtems_rfs_bitmap_map_offset (map_index); search_bits = &control->search_bits[search_index]; 20437d8: ad 3c 60 0a sra %l1, 0xa, %l6 <== NOT EXECUTED 20437dc: ad 2d a0 02 sll %l6, 2, %l6 <== NOT EXECUTED 20437e0: ac 00 40 16 add %g1, %l6, %l6 <== NOT EXECUTED map_bits = &map[map_index]; 20437e4: 83 2c e0 02 sll %l3, 2, %g1 <== NOT EXECUTED } } map_bits += direction; map_index += direction; map_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1; 20437e8: af 3e e0 1f sra %i3, 0x1f, %l7 <== NOT EXECUTED map_offset = rtems_rfs_bitmap_map_offset (test_bit); search_index = rtems_rfs_bitmap_map_index (map_index); search_offset = rtems_rfs_bitmap_map_offset (map_index); search_bits = &control->search_bits[search_index]; map_bits = &map[map_index]; 20437ec: aa 05 40 01 add %l5, %g1, %l5 <== NOT EXECUTED } } map_bits += direction; map_index += direction; map_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1; 20437f0: ae 25 c0 1b sub %l7, %i3, %l7 <== NOT EXECUTED end_bit = 0; else if (end_bit >= control->size) end_bit = control->size - 1; map_index = rtems_rfs_bitmap_map_index (test_bit); map_offset = rtems_rfs_bitmap_map_offset (test_bit); 20437f4: a8 0c 60 1f and %l1, 0x1f, %l4 <== NOT EXECUTED } } map_bits += direction; map_index += direction; map_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1; 20437f8: af 3d e0 1f sra %l7, 0x1f, %l7 <== NOT EXECUTED end_bit = control->size - 1; map_index = rtems_rfs_bitmap_map_index (test_bit); map_offset = rtems_rfs_bitmap_map_offset (test_bit); search_index = rtems_rfs_bitmap_map_index (map_index); search_offset = rtems_rfs_bitmap_map_offset (map_index); 20437fc: 90 0c e0 1f and %l3, 0x1f, %o0 <== NOT EXECUTED } } map_bits += direction; map_index += direction; map_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1; 2043800: ae 0d ff e1 and %l7, -31, %l7 <== NOT EXECUTED map_offset += direction; test_bit += direction; } } map_bits += direction; 2043804: b9 2e e0 02 sll %i3, 2, %i4 <== NOT EXECUTED map_index += direction; map_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1; 2043808: ae 05 e0 1f add %l7, 0x1f, %l7 <== NOT EXECUTED return 0; } static int rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control, 204380c: 83 2e e0 05 sll %i3, 5, %g1 <== NOT EXECUTED */ static bool rtems_rfs_bitmap_test (rtems_rfs_bitmap_element target, rtems_rfs_bitmap_bit bit) { return RTEMS_RFS_BITMAP_TEST_BIT (target, bit); 2043810: ba 10 20 01 mov 1, %i5 <== NOT EXECUTED */ rtems_rfs_bitmap_bit bits_skipped; test_bit &= ~((1 << RTEMS_RFS_ELEMENT_BITS_POWER_2) - 1); if (direction > 0) { bits_skipped = rtems_rfs_bitmap_element_bits () - search_offset; 2043814: b0 10 20 20 mov 0x20, %i0 <== NOT EXECUTED /* * If any bit is clear find that bit and then search the map element. If * all bits are set there are no map bits so move to the next search * element. */ if (!rtems_rfs_bitmap_match (*search_bits, RTEMS_RFS_BITMAP_ELEMENT_SET)) 2043818: d8 05 80 00 ld [ %l6 ], %o4 <== NOT EXECUTED return 0; } static int rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control, 204381c: 84 04 c0 1b add %l3, %i3, %g2 <== NOT EXECUTED /* * If any bit is clear find that bit and then search the map element. If * all bits are set there are no map bits so move to the next search * element. */ if (!rtems_rfs_bitmap_match (*search_bits, RTEMS_RFS_BITMAP_ELEMENT_SET)) 2043820: 80 a3 20 00 cmp %o4, 0 <== NOT EXECUTED 2043824: 12 80 00 33 bne 20438f0 <== NOT EXECUTED 2043828: 85 28 a0 05 sll %g2, 5, %g2 <== NOT EXECUTED * * Align test_bit either up or down depending on the direction to next 32 * bit boundary. */ rtems_rfs_bitmap_bit bits_skipped; test_bit &= ~((1 << RTEMS_RFS_ELEMENT_BITS_POWER_2) - 1); 204382c: 10 80 00 36 b 2043904 <== NOT EXECUTED 2043830: a2 0c 7f e0 and %l1, -32, %l1 <== NOT EXECUTED if (!rtems_rfs_bitmap_match (*search_bits, RTEMS_RFS_BITMAP_ELEMENT_SET)) { while ((search_offset >= 0) && (search_offset < rtems_rfs_bitmap_element_bits ())) { if (!rtems_rfs_bitmap_test (*search_bits, search_offset)) 2043834: 80 88 c0 0c btst %g3, %o4 <== NOT EXECUTED 2043838: 12 80 00 1c bne 20438a8 <== NOT EXECUTED 204383c: 80 a5 20 1f cmp %l4, 0x1f <== NOT EXECUTED map_bits += direction; map_index += direction; map_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1; test_bit = (map_index * rtems_rfs_bitmap_element_bits ()) + map_offset; 2043840: 10 80 00 1d b 20438b4 <== NOT EXECUTED 2043844: a2 05 c0 02 add %l7, %g2, %l1 <== NOT EXECUTED */ static bool rtems_rfs_bitmap_test (rtems_rfs_bitmap_element target, rtems_rfs_bitmap_bit bit) { return RTEMS_RFS_BITMAP_TEST_BIT (target, bit); 2043848: 9b 2f 40 14 sll %i5, %l4, %o5 <== NOT EXECUTED * found. We may find none are spare if searching up from the seed. */ while ((map_offset >= 0) && (map_offset < rtems_rfs_bitmap_element_bits ())) { if (!rtems_rfs_bitmap_test (*map_bits, map_offset)) 204384c: 80 8b 40 04 btst %o5, %g4 <== NOT EXECUTED 2043850: 02 80 00 12 be 2043898 <== NOT EXECUTED 2043854: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED */ static rtems_rfs_bitmap_element rtems_rfs_bitmap_set (rtems_rfs_bitmap_element target, rtems_rfs_bitmap_element bits) { return RTEMS_RFS_BITMAP_SET_BITS (target, bits); 2043858: 82 29 00 0d andn %g4, %o5, %g1 <== NOT EXECUTED && (map_offset < rtems_rfs_bitmap_element_bits ())) { if (!rtems_rfs_bitmap_test (*map_bits, map_offset)) { *map_bits = rtems_rfs_bitmap_set (*map_bits, 1 << map_offset); if (rtems_rfs_bitmap_match(*map_bits, 204385c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2043860: 12 80 00 05 bne 2043874 <== NOT EXECUTED 2043864: c2 25 40 00 st %g1, [ %l5 ] <== NOT EXECUTED RTEMS_RFS_BITMAP_ELEMENT_SET)) *search_bits = rtems_rfs_bitmap_set (*search_bits, 2043868: c2 05 80 00 ld [ %l6 ], %g1 <== NOT EXECUTED 204386c: 86 28 40 03 andn %g1, %g3, %g3 <== NOT EXECUTED 2043870: c6 25 80 00 st %g3, [ %l6 ] <== NOT EXECUTED 1 << search_offset); control->free--; 2043874: c4 04 20 10 ld [ %l0 + 0x10 ], %g2 <== NOT EXECUTED *bit = test_bit; *found = true; rtems_rfs_buffer_mark_dirty (control->buffer); 2043878: c6 04 00 00 ld [ %l0 ], %g3 <== NOT EXECUTED RTEMS_RFS_BITMAP_ELEMENT_SET)) *search_bits = rtems_rfs_bitmap_set (*search_bits, 1 << search_offset); control->free--; *bit = test_bit; *found = true; 204387c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 2043880: c2 2e 80 00 stb %g1, [ %i2 ] <== NOT EXECUTED rtems_rfs_buffer_mark_dirty (control->buffer); 2043884: c2 28 c0 00 stb %g1, [ %g3 ] <== NOT EXECUTED if (rtems_rfs_bitmap_match(*map_bits, RTEMS_RFS_BITMAP_ELEMENT_SET)) *search_bits = rtems_rfs_bitmap_set (*search_bits, 1 << search_offset); control->free--; *bit = test_bit; 2043888: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED *map_bits = rtems_rfs_bitmap_set (*map_bits, 1 << map_offset); if (rtems_rfs_bitmap_match(*map_bits, RTEMS_RFS_BITMAP_ELEMENT_SET)) *search_bits = rtems_rfs_bitmap_set (*search_bits, 1 << search_offset); control->free--; 204388c: 82 00 bf ff add %g2, -1, %g1 <== NOT EXECUTED 2043890: 10 80 00 3d b 2043984 <== NOT EXECUTED 2043894: c2 24 20 10 st %g1, [ %l0 + 0x10 ] <== NOT EXECUTED *found = true; rtems_rfs_buffer_mark_dirty (control->buffer); return 0; } if (test_bit == end_bit) 2043898: 02 80 00 06 be 20438b0 <== NOT EXECUTED 204389c: a8 05 00 1b add %l4, %i3, %l4 <== NOT EXECUTED return 0; } static int rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control, 20438a0: a2 04 40 1b add %l1, %i3, %l1 <== NOT EXECUTED { /* * Find the clear bit in the map. Update the search map and map if * found. We may find none are spare if searching up from the seed. */ while ((map_offset >= 0) 20438a4: 80 a5 20 1f cmp %l4, 0x1f <== NOT EXECUTED 20438a8: 28 bf ff e8 bleu,a 2043848 <== NOT EXECUTED 20438ac: c8 05 40 00 ld [ %l5 ], %g4 <== NOT EXECUTED map_bits += direction; map_index += direction; map_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1; test_bit = (map_index * rtems_rfs_bitmap_element_bits ()) + map_offset; 20438b0: a2 05 c0 02 add %l7, %g2, %l1 <== NOT EXECUTED map_offset += direction; test_bit += direction; } } map_bits += direction; 20438b4: aa 05 40 1c add %l5, %i4, %l5 <== NOT EXECUTED return 0; } static int rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control, 20438b8: a6 04 c0 1b add %l3, %i3, %l3 <== NOT EXECUTED test_bit = (map_index * rtems_rfs_bitmap_element_bits ()) + map_offset; search_offset += direction; if (((direction < 0) && (test_bit <= end_bit)) 20438bc: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED 20438c0: 14 80 00 06 bg 20438d8 <== NOT EXECUTED 20438c4: a8 10 00 17 mov %l7, %l4 <== NOT EXECUTED 20438c8: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 20438cc: 26 80 00 22 bl,a 2043954 <== NOT EXECUTED 20438d0: ac 05 80 1c add %l6, %i4, %l6 <== NOT EXECUTED 20438d4: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED 20438d8: 06 80 00 05 bl 20438ec <== NOT EXECUTED 20438dc: 84 00 80 01 add %g2, %g1, %g2 <== NOT EXECUTED 20438e0: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 20438e4: 34 80 00 1c bg,a 2043954 <== NOT EXECUTED 20438e8: ac 05 80 1c add %l6, %i4, %l6 <== NOT EXECUTED 20438ec: 90 02 00 1b add %o0, %i3, %o0 <== NOT EXECUTED * all bits are set there are no map bits so move to the next search * element. */ if (!rtems_rfs_bitmap_match (*search_bits, RTEMS_RFS_BITMAP_ELEMENT_SET)) { while ((search_offset >= 0) 20438f0: 80 a2 20 1f cmp %o0, 0x1f <== NOT EXECUTED 20438f4: 28 bf ff d0 bleu,a 2043834 <== NOT EXECUTED 20438f8: 87 2f 40 08 sll %i5, %o0, %g3 <== NOT EXECUTED } map_bits += direction * bits_skipped; map_index += direction * bits_skipped; } search_bits += direction; 20438fc: 10 80 00 16 b 2043954 <== NOT EXECUTED 2043900: ac 05 80 1c add %l6, %i4, %l6 <== NOT EXECUTED * Align test_bit either up or down depending on the direction to next 32 * bit boundary. */ rtems_rfs_bitmap_bit bits_skipped; test_bit &= ~((1 << RTEMS_RFS_ELEMENT_BITS_POWER_2) - 1); if (direction > 0) 2043904: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 2043908: 04 80 00 06 ble 2043920 <== NOT EXECUTED 204390c: a8 10 20 00 clr %l4 <== NOT EXECUTED { bits_skipped = rtems_rfs_bitmap_element_bits () - search_offset; 2043910: 90 26 00 08 sub %i0, %o0, %o0 <== NOT EXECUTED test_bit += bits_skipped * rtems_rfs_bitmap_element_bits (); 2043914: 85 2a 20 05 sll %o0, 5, %g2 <== NOT EXECUTED 2043918: 10 80 00 07 b 2043934 <== NOT EXECUTED 204391c: a2 00 80 11 add %g2, %l1, %l1 <== NOT EXECUTED bits_skipped = search_offset + 1; /* * Need to remove 1 for the rounding up. The above rounds down and * adds 1. Remember the logic is for subtraction. */ test_bit -= ((bits_skipped - 1) * rtems_rfs_bitmap_element_bits ()) + 1; 2043920: 85 2a 20 05 sll %o0, 5, %g2 <== NOT EXECUTED 2043924: a8 10 20 1f mov 0x1f, %l4 <== NOT EXECUTED 2043928: 84 38 00 02 xnor %g0, %g2, %g2 <== NOT EXECUTED test_bit += bits_skipped * rtems_rfs_bitmap_element_bits (); map_offset = 0; } else { bits_skipped = search_offset + 1; 204392c: 90 02 20 01 inc %o0 <== NOT EXECUTED /* * Need to remove 1 for the rounding up. The above rounds down and * adds 1. Remember the logic is for subtraction. */ test_bit -= ((bits_skipped - 1) * rtems_rfs_bitmap_element_bits ()) + 1; 2043930: a2 00 80 11 add %g2, %l1, %l1 <== NOT EXECUTED map_offset = rtems_rfs_bitmap_element_bits () - 1; } map_bits += direction * bits_skipped; 2043934: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED 2043938: 7f fe fc 30 call 20029f8 <.umul> <== NOT EXECUTED 204393c: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED 2043940: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED map_index += direction * bits_skipped; 2043944: a6 04 c0 08 add %l3, %o0, %l3 <== NOT EXECUTED * adds 1. Remember the logic is for subtraction. */ test_bit -= ((bits_skipped - 1) * rtems_rfs_bitmap_element_bits ()) + 1; map_offset = rtems_rfs_bitmap_element_bits () - 1; } map_bits += direction * bits_skipped; 2043948: 91 2a 20 02 sll %o0, 2, %o0 <== NOT EXECUTED 204394c: aa 05 40 08 add %l5, %o0, %l5 <== NOT EXECUTED map_index += direction * bits_skipped; } search_bits += direction; 2043950: ac 05 80 1c add %l6, %i4, %l6 <== NOT EXECUTED search_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1; } while (((direction < 0) && (test_bit >= end_bit)) || ((direction > 0) && (test_bit <= end_bit))); 2043954: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED 2043958: 06 80 00 08 bl 2043978 <== NOT EXECUTED 204395c: 90 10 00 17 mov %l7, %o0 <== NOT EXECUTED 2043960: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 2043964: 26 bf ff ae bl,a 204381c <== NOT EXECUTED 2043968: d8 05 80 00 ld [ %l6 ], %o4 <== NOT EXECUTED 204396c: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED 2043970: 34 80 00 06 bg,a 2043988 <== NOT EXECUTED 2043974: 90 10 20 00 clr %o0 <== NOT EXECUTED 2043978: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 204397c: 34 bf ff a8 bg,a 204381c <== NOT EXECUTED 2043980: d8 05 80 00 ld [ %l6 ], %o4 <== NOT EXECUTED 2043984: 90 10 20 00 clr %o0 <== NOT EXECUTED return 0; } 2043988: 81 c7 e0 08 ret <== NOT EXECUTED 204398c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED =============================================================================== 020012a8 <_Barrier_Manager_initialization>: #include #include void _Barrier_Manager_initialization(void) { } 20012a8: 81 c3 e0 08 retl =============================================================================== 020092e4 <_CORE_RWLock_Obtain_for_reading>: Objects_Id id, bool wait, Watchdog_Interval timeout, CORE_RWLock_API_mp_support_callout api_rwlock_mp_support ) { 20092e4: 9d e3 bf a0 save %sp, -96, %sp ISR_Level level; Thread_Control *executing = _Thread_Executing; 20092e8: 03 00 80 85 sethi %hi(0x2021400), %g1 * If unlocked, then OK to read. * If locked for reading and no waiters, then OK to read. * If any thread is waiting, then we wait. */ _ISR_Disable( level ); 20092ec: 7f ff e8 be call 20035e4 20092f0: e0 00 62 60 ld [ %g1 + 0x260 ], %l0 ! 2021660 <_Thread_Executing> 20092f4: a2 10 00 08 mov %o0, %l1 switch ( the_rwlock->current_state ) { 20092f8: c2 06 20 44 ld [ %i0 + 0x44 ], %g1 20092fc: 80 a0 60 00 cmp %g1, 0 2009300: 22 80 00 06 be,a 2009318 <_CORE_RWLock_Obtain_for_reading+0x34> 2009304: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 2009308: 80 a0 60 01 cmp %g1, 1 200930c: 12 80 00 16 bne 2009364 <_CORE_RWLock_Obtain_for_reading+0x80> 2009310: 80 8e a0 ff btst 0xff, %i2 2009314: 30 80 00 06 b,a 200932c <_CORE_RWLock_Obtain_for_reading+0x48> case CORE_RWLOCK_UNLOCKED: the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_READING; 2009318: 84 10 20 01 mov 1, %g2 the_rwlock->number_of_readers += 1; 200931c: 82 00 60 01 inc %g1 */ _ISR_Disable( level ); switch ( the_rwlock->current_state ) { case CORE_RWLOCK_UNLOCKED: the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_READING; 2009320: c4 26 20 44 st %g2, [ %i0 + 0x44 ] the_rwlock->number_of_readers += 1; 2009324: c2 26 20 48 st %g1, [ %i0 + 0x48 ] _ISR_Enable( level ); 2009328: 30 80 00 0a b,a 2009350 <_CORE_RWLock_Obtain_for_reading+0x6c> executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL; return; case CORE_RWLOCK_LOCKED_FOR_READING: { Thread_Control *waiter; waiter = _Thread_queue_First( &the_rwlock->Wait_queue ); 200932c: 40 00 07 f8 call 200b30c <_Thread_queue_First> 2009330: 90 10 00 18 mov %i0, %o0 if ( !waiter ) { 2009334: 80 a2 20 00 cmp %o0, 0 2009338: 12 80 00 0b bne 2009364 <_CORE_RWLock_Obtain_for_reading+0x80><== NEVER TAKEN 200933c: 80 8e a0 ff btst 0xff, %i2 the_rwlock->number_of_readers += 1; 2009340: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 2009344: 82 00 60 01 inc %g1 2009348: c2 26 20 48 st %g1, [ %i0 + 0x48 ] _ISR_Enable( level ); 200934c: 90 10 00 11 mov %l1, %o0 2009350: 7f ff e8 a9 call 20035f4 2009354: 01 00 00 00 nop executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL; 2009358: c0 24 20 34 clr [ %l0 + 0x34 ] return; 200935c: 81 c7 e0 08 ret 2009360: 81 e8 00 00 restore /* * If the thread is not willing to wait, then return immediately. */ if ( !wait ) { 2009364: 32 80 00 08 bne,a 2009384 <_CORE_RWLock_Obtain_for_reading+0xa0> 2009368: f2 24 20 20 st %i1, [ %l0 + 0x20 ] _ISR_Enable( level ); 200936c: 7f ff e8 a2 call 20035f4 2009370: 90 10 00 11 mov %l1, %o0 executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE; 2009374: 82 10 20 02 mov 2, %g1 2009378: c2 24 20 34 st %g1, [ %l0 + 0x34 ] 200937c: 81 c7 e0 08 ret 2009380: 81 e8 00 00 restore _Thread_queue_Enter_critical_section( &the_rwlock->Wait_queue ); executing->Wait.queue = &the_rwlock->Wait_queue; executing->Wait.id = id; executing->Wait.option = CORE_RWLOCK_THREAD_WAITING_FOR_READ; executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL; 2009384: c0 24 20 34 clr [ %l0 + 0x34 ] /* * We need to wait to enter this critical section */ _Thread_queue_Enter_critical_section( &the_rwlock->Wait_queue ); executing->Wait.queue = &the_rwlock->Wait_queue; 2009388: f0 24 20 44 st %i0, [ %l0 + 0x44 ] executing->Wait.id = id; executing->Wait.option = CORE_RWLOCK_THREAD_WAITING_FOR_READ; 200938c: c0 24 20 30 clr [ %l0 + 0x30 ] 2009390: 82 10 20 01 mov 1, %g1 2009394: c2 26 20 30 st %g1, [ %i0 + 0x30 ] executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL; _ISR_Enable( level ); 2009398: 90 10 00 11 mov %l1, %o0 200939c: 7f ff e8 96 call 20035f4 20093a0: 35 00 80 25 sethi %hi(0x2009400), %i2 _Thread_queue_Enqueue_with_handler( 20093a4: b2 10 00 1b mov %i3, %i1 20093a8: 40 00 06 ff call 200afa4 <_Thread_queue_Enqueue_with_handler> 20093ac: 95 ee a1 34 restore %i2, 0x134, %o2 =============================================================================== 0200943c <_CORE_RWLock_Release>: */ CORE_RWLock_Status _CORE_RWLock_Release( CORE_RWLock_Control *the_rwlock ) { 200943c: 9d e3 bf a0 save %sp, -96, %sp ISR_Level level; Thread_Control *executing = _Thread_Executing; 2009440: 03 00 80 85 sethi %hi(0x2021400), %g1 * Otherwise, we have to block. * If locked for reading and no waiters, then OK to read. * If any thread is waiting, then we wait. */ _ISR_Disable( level ); 2009444: 7f ff e8 68 call 20035e4 2009448: e0 00 62 60 ld [ %g1 + 0x260 ], %l0 ! 2021660 <_Thread_Executing> 200944c: 84 10 00 08 mov %o0, %g2 if ( the_rwlock->current_state == CORE_RWLOCK_UNLOCKED){ 2009450: c2 06 20 44 ld [ %i0 + 0x44 ], %g1 2009454: 80 a0 60 00 cmp %g1, 0 2009458: 12 80 00 08 bne 2009478 <_CORE_RWLock_Release+0x3c> 200945c: 80 a0 60 01 cmp %g1, 1 _ISR_Enable( level ); 2009460: 7f ff e8 65 call 20035f4 2009464: b0 10 20 00 clr %i0 executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE; 2009468: 82 10 20 02 mov 2, %g1 200946c: c2 24 20 34 st %g1, [ %l0 + 0x34 ] 2009470: 81 c7 e0 08 ret 2009474: 81 e8 00 00 restore return CORE_RWLOCK_SUCCESSFUL; } if ( the_rwlock->current_state == CORE_RWLOCK_LOCKED_FOR_READING ) { 2009478: 32 80 00 0b bne,a 20094a4 <_CORE_RWLock_Release+0x68> 200947c: c0 24 20 34 clr [ %l0 + 0x34 ] the_rwlock->number_of_readers -= 1; 2009480: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 2009484: 82 00 7f ff add %g1, -1, %g1 if ( the_rwlock->number_of_readers != 0 ) { 2009488: 80 a0 60 00 cmp %g1, 0 200948c: 02 80 00 05 be 20094a0 <_CORE_RWLock_Release+0x64> 2009490: c2 26 20 48 st %g1, [ %i0 + 0x48 ] /* must be unlocked again */ _ISR_Enable( level ); 2009494: 7f ff e8 58 call 20035f4 2009498: b0 10 20 00 clr %i0 return CORE_RWLOCK_SUCCESSFUL; 200949c: 30 80 00 24 b,a 200952c <_CORE_RWLock_Release+0xf0> } } /* CORE_RWLOCK_LOCKED_FOR_WRITING or READING with readers */ executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL; 20094a0: c0 24 20 34 clr [ %l0 + 0x34 ] /* * Implicitly transition to "unlocked" and find another thread interested * in obtaining this rwlock. */ the_rwlock->current_state = CORE_RWLOCK_UNLOCKED; 20094a4: c0 26 20 44 clr [ %i0 + 0x44 ] _ISR_Enable( level ); 20094a8: 7f ff e8 53 call 20035f4 20094ac: 90 10 00 02 mov %g2, %o0 next = _Thread_queue_Dequeue( &the_rwlock->Wait_queue ); 20094b0: 40 00 06 5a call 200ae18 <_Thread_queue_Dequeue> 20094b4: 90 10 00 18 mov %i0, %o0 if ( next ) { 20094b8: 80 a2 20 00 cmp %o0, 0 20094bc: 22 80 00 1c be,a 200952c <_CORE_RWLock_Release+0xf0> 20094c0: b0 10 20 00 clr %i0 if ( next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE ) { 20094c4: c2 02 20 30 ld [ %o0 + 0x30 ], %g1 20094c8: 80 a0 60 01 cmp %g1, 1 20094cc: 32 80 00 05 bne,a 20094e0 <_CORE_RWLock_Release+0xa4> 20094d0: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_WRITING; 20094d4: 82 10 20 02 mov 2, %g1 return CORE_RWLOCK_SUCCESSFUL; 20094d8: 10 80 00 14 b 2009528 <_CORE_RWLock_Release+0xec> 20094dc: c2 26 20 44 st %g1, [ %i0 + 0x44 ] /* * Must be CORE_RWLOCK_THREAD_WAITING_FOR_READING */ the_rwlock->number_of_readers += 1; the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_READING; 20094e0: 84 10 20 01 mov 1, %g2 } /* * Must be CORE_RWLOCK_THREAD_WAITING_FOR_READING */ the_rwlock->number_of_readers += 1; 20094e4: 82 00 60 01 inc %g1 the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_READING; 20094e8: c4 26 20 44 st %g2, [ %i0 + 0x44 ] } /* * Must be CORE_RWLOCK_THREAD_WAITING_FOR_READING */ the_rwlock->number_of_readers += 1; 20094ec: c2 26 20 48 st %g1, [ %i0 + 0x48 ] /* * Now see if more readers can be let go. */ while ( 1 ) { next = _Thread_queue_First( &the_rwlock->Wait_queue ); 20094f0: 40 00 07 87 call 200b30c <_Thread_queue_First> 20094f4: 90 10 00 18 mov %i0, %o0 if ( !next || 20094f8: 92 92 20 00 orcc %o0, 0, %o1 20094fc: 22 80 00 0c be,a 200952c <_CORE_RWLock_Release+0xf0> 2009500: b0 10 20 00 clr %i0 next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE ) 2009504: c2 02 60 30 ld [ %o1 + 0x30 ], %g1 2009508: 80 a0 60 01 cmp %g1, 1 200950c: 02 80 00 07 be 2009528 <_CORE_RWLock_Release+0xec> <== NEVER TAKEN 2009510: 90 10 00 18 mov %i0, %o0 return CORE_RWLOCK_SUCCESSFUL; the_rwlock->number_of_readers += 1; 2009514: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 2009518: 82 00 60 01 inc %g1 _Thread_queue_Extract( &the_rwlock->Wait_queue, next ); 200951c: 40 00 07 2d call 200b1d0 <_Thread_queue_Extract> 2009520: c2 26 20 48 st %g1, [ %i0 + 0x48 ] } 2009524: 30 bf ff f3 b,a 20094f0 <_CORE_RWLock_Release+0xb4> } /* indentation is to match _ISR_Disable at top */ return CORE_RWLOCK_SUCCESSFUL; } 2009528: b0 10 20 00 clr %i0 200952c: 81 c7 e0 08 ret 2009530: 81 e8 00 00 restore =============================================================================== 02009534 <_CORE_RWLock_Timeout>: void _CORE_RWLock_Timeout( Objects_Id id, void *ignored ) { 2009534: 9d e3 bf 98 save %sp, -104, %sp Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 2009538: 90 10 00 18 mov %i0, %o0 200953c: 40 00 05 42 call 200aa44 <_Thread_Get> 2009540: 92 07 bf fc add %fp, -4, %o1 switch ( location ) { 2009544: c2 07 bf fc ld [ %fp + -4 ], %g1 2009548: 80 a0 60 00 cmp %g1, 0 200954c: 12 80 00 08 bne 200956c <_CORE_RWLock_Timeout+0x38> <== NEVER TAKEN 2009550: 01 00 00 00 nop #if defined(RTEMS_MULTIPROCESSING) case OBJECTS_REMOTE: /* impossible */ #endif break; case OBJECTS_LOCAL: _Thread_queue_Process_timeout( the_thread ); 2009554: 40 00 07 aa call 200b3fc <_Thread_queue_Process_timeout> 2009558: 01 00 00 00 nop */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 200955c: 03 00 80 85 sethi %hi(0x2021400), %g1 2009560: c4 00 61 a0 ld [ %g1 + 0x1a0 ], %g2 ! 20215a0 <_Thread_Dispatch_disable_level> 2009564: 84 00 bf ff add %g2, -1, %g2 2009568: c4 20 61 a0 st %g2, [ %g1 + 0x1a0 ] 200956c: 81 c7 e0 08 ret 2009570: 81 e8 00 00 restore =============================================================================== 020168fc <_CORE_message_queue_Broadcast>: Objects_Id id __attribute__((unused)), CORE_message_queue_API_mp_support_callout api_message_queue_mp_support __attribute__((unused)), #endif uint32_t *count ) { 20168fc: 9d e3 bf a0 save %sp, -96, %sp Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { 2016900: c2 06 20 4c ld [ %i0 + 0x4c ], %g1 Objects_Id id __attribute__((unused)), CORE_message_queue_API_mp_support_callout api_message_queue_mp_support __attribute__((unused)), #endif uint32_t *count ) { 2016904: a0 10 00 18 mov %i0, %l0 Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { 2016908: 80 a6 80 01 cmp %i2, %g1 201690c: 18 80 00 17 bgu 2016968 <_CORE_message_queue_Broadcast+0x6c><== NEVER TAKEN 2016910: b0 10 20 01 mov 1, %i0 * NOTE: This check is critical because threads can block on * send and receive and this ensures that we are broadcasting * the message to threads waiting to receive -- not to send. */ if ( the_message_queue->number_of_pending_messages != 0 ) { 2016914: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 2016918: 80 a0 60 00 cmp %g1, 0 201691c: 02 80 00 0a be 2016944 <_CORE_message_queue_Broadcast+0x48> 2016920: a2 10 20 00 clr %l1 *count = 0; 2016924: c0 27 40 00 clr [ %i5 ] return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; 2016928: 81 c7 e0 08 ret 201692c: 91 e8 20 00 restore %g0, 0, %o0 const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 2016930: d0 04 a0 2c ld [ %l2 + 0x2c ], %o0 2016934: 40 00 2c fc call 2021d24 2016938: a2 04 60 01 inc %l1 buffer, waitp->return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; 201693c: c2 04 a0 28 ld [ %l2 + 0x28 ], %g1 2016940: f4 20 40 00 st %i2, [ %g1 ] * There must be no pending messages if there is a thread waiting to * receive a message. */ number_broadcasted = 0; while ((the_thread = _Thread_queue_Dequeue(&the_message_queue->Wait_queue))) { 2016944: 40 00 0a 74 call 2019314 <_Thread_queue_Dequeue> 2016948: 90 10 00 10 mov %l0, %o0 201694c: 92 10 00 19 mov %i1, %o1 2016950: a4 10 00 08 mov %o0, %l2 /* * There must be no pending messages if there is a thread waiting to * receive a message. */ number_broadcasted = 0; while ((the_thread = 2016954: 80 a2 20 00 cmp %o0, 0 2016958: 12 bf ff f6 bne 2016930 <_CORE_message_queue_Broadcast+0x34> 201695c: 94 10 00 1a mov %i2, %o2 if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_message_queue_mp_support) ( the_thread, id ); #endif } *count = number_broadcasted; 2016960: e2 27 40 00 st %l1, [ %i5 ] 2016964: b0 10 20 00 clr %i0 return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 2016968: 81 c7 e0 08 ret 201696c: 81 e8 00 00 restore =============================================================================== 02010170 <_CORE_message_queue_Initialize>: CORE_message_queue_Control *the_message_queue, CORE_message_queue_Attributes *the_message_queue_attributes, uint32_t maximum_pending_messages, size_t maximum_message_size ) { 2010170: 9d e3 bf a0 save %sp, -96, %sp size_t message_buffering_required; size_t allocated_message_size; the_message_queue->maximum_pending_messages = maximum_pending_messages; the_message_queue->number_of_pending_messages = 0; 2010174: c0 26 20 48 clr [ %i0 + 0x48 ] ) { size_t message_buffering_required; size_t allocated_message_size; the_message_queue->maximum_pending_messages = maximum_pending_messages; 2010178: f4 26 20 44 st %i2, [ %i0 + 0x44 ] the_message_queue->number_of_pending_messages = 0; the_message_queue->maximum_message_size = maximum_message_size; 201017c: f6 26 20 4c st %i3, [ %i0 + 0x4c ] CORE_message_queue_Control *the_message_queue, CORE_message_queue_Notify_Handler the_handler, void *the_argument ) { the_message_queue->notify_handler = the_handler; 2010180: c0 26 20 60 clr [ %i0 + 0x60 ] the_message_queue->notify_argument = the_argument; 2010184: c0 26 20 64 clr [ %i0 + 0x64 ] /* * Round size up to multiple of a pointer for chain init and * check for overflow on adding overhead to each message. */ allocated_message_size = maximum_message_size; if (allocated_message_size & (sizeof(uint32_t) - 1)) { 2010188: 80 8e e0 03 btst 3, %i3 201018c: 02 80 00 07 be 20101a8 <_CORE_message_queue_Initialize+0x38> 2010190: a2 10 00 1b mov %i3, %l1 allocated_message_size += sizeof(uint32_t); 2010194: a2 06 e0 04 add %i3, 4, %l1 allocated_message_size &= ~(sizeof(uint32_t) - 1); 2010198: a2 0c 7f fc and %l1, -4, %l1 } if (allocated_message_size < maximum_message_size) 201019c: 80 a4 40 1b cmp %l1, %i3 20101a0: 0a 80 00 23 bcs 201022c <_CORE_message_queue_Initialize+0xbc><== NEVER TAKEN 20101a4: 01 00 00 00 nop /* * Calculate how much total memory is required for message buffering and * check for overflow on the multiplication. */ message_buffering_required = (size_t) maximum_pending_messages * (allocated_message_size + sizeof(CORE_message_queue_Buffer_control)); 20101a8: a0 04 60 14 add %l1, 0x14, %l0 /* * Calculate how much total memory is required for message buffering and * check for overflow on the multiplication. */ message_buffering_required = (size_t) maximum_pending_messages * 20101ac: 92 10 00 1a mov %i2, %o1 20101b0: 40 00 56 1f call 2025a2c <.umul> 20101b4: 90 10 00 10 mov %l0, %o0 (allocated_message_size + sizeof(CORE_message_queue_Buffer_control)); if (message_buffering_required < allocated_message_size) 20101b8: 80 a2 00 11 cmp %o0, %l1 20101bc: 0a 80 00 1c bcs 201022c <_CORE_message_queue_Initialize+0xbc><== NEVER TAKEN 20101c0: 01 00 00 00 nop return false; /* * Attempt to allocate the message memory */ the_message_queue->message_buffers = (CORE_message_queue_Buffer *) 20101c4: 40 00 0c 1c call 2013234 <_Workspace_Allocate> 20101c8: 01 00 00 00 nop 20101cc: d0 26 20 5c st %o0, [ %i0 + 0x5c ] _Workspace_Allocate( message_buffering_required ); if (the_message_queue->message_buffers == 0) 20101d0: 80 a2 20 00 cmp %o0, 0 20101d4: 02 80 00 16 be 201022c <_CORE_message_queue_Initialize+0xbc> 20101d8: 92 10 00 08 mov %o0, %o1 /* * Initialize the pool of inactive messages, pending messages, * and set of waiting threads. */ _Chain_Initialize ( 20101dc: 90 06 20 68 add %i0, 0x68, %o0 20101e0: 94 10 00 1a mov %i2, %o2 20101e4: 40 00 1a a0 call 2016c64 <_Chain_Initialize> 20101e8: 96 10 00 10 mov %l0, %o3 allocated_message_size + sizeof( CORE_message_queue_Buffer_control ) ); _Chain_Initialize_empty( &the_message_queue->Pending_messages ); _Thread_queue_Initialize( 20101ec: c2 06 40 00 ld [ %i1 ], %g1 RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 20101f0: c0 26 20 54 clr [ %i0 + 0x54 ] 20101f4: 82 18 60 01 xor %g1, 1, %g1 20101f8: 80 a0 00 01 cmp %g0, %g1 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 20101fc: 82 06 20 54 add %i0, 0x54, %g1 2010200: c2 26 20 50 st %g1, [ %i0 + 0x50 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 2010204: 82 06 20 50 add %i0, 0x50, %g1 2010208: 90 10 00 18 mov %i0, %o0 201020c: c2 26 20 58 st %g1, [ %i0 + 0x58 ] 2010210: 92 60 3f ff subx %g0, -1, %o1 2010214: 94 10 20 80 mov 0x80, %o2 2010218: 96 10 20 06 mov 6, %o3 201021c: 40 00 08 e2 call 20125a4 <_Thread_queue_Initialize> 2010220: b0 10 20 01 mov 1, %i0 THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO, STATES_WAITING_FOR_MESSAGE, CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); return true; 2010224: 81 c7 e0 08 ret 2010228: 81 e8 00 00 restore } 201022c: 81 c7 e0 08 ret 2010230: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 02010234 <_CORE_message_queue_Seize>: void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { 2010234: 9d e3 bf a0 save %sp, -96, %sp ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; executing = _Thread_Executing; 2010238: 23 00 80 b2 sethi %hi(0x202c800), %l1 201023c: e0 04 61 10 ld [ %l1 + 0x110 ], %l0 ! 202c910 <_Thread_Executing> void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { 2010240: a4 10 00 19 mov %i1, %l2 ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; executing = _Thread_Executing; executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; 2010244: c0 24 20 34 clr [ %l0 + 0x34 ] _ISR_Disable( level ); 2010248: 7f ff dc c0 call 2007548 201024c: a6 10 00 18 mov %i0, %l3 2010250: 82 10 00 08 mov %o0, %g1 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 2010254: f2 06 20 50 ld [ %i0 + 0x50 ], %i1 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 2010258: 84 06 20 54 add %i0, 0x54, %g2 201025c: 80 a6 40 02 cmp %i1, %g2 2010260: 02 80 00 24 be 20102f0 <_CORE_message_queue_Seize+0xbc> 2010264: 86 06 20 50 add %i0, 0x50, %g3 { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 2010268: c4 06 40 00 ld [ %i1 ], %g2 the_chain->first = new_first; 201026c: c4 26 20 50 st %g2, [ %i0 + 0x50 ] the_message = _CORE_message_queue_Get_pending_message( the_message_queue ); if ( the_message != NULL ) { 2010270: 80 a6 60 00 cmp %i1, 0 2010274: 02 80 00 1f be 20102f0 <_CORE_message_queue_Seize+0xbc> <== NEVER TAKEN 2010278: c6 20 a0 04 st %g3, [ %g2 + 4 ] the_message_queue->number_of_pending_messages -= 1; 201027c: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 2010280: 82 00 7f ff add %g1, -1, %g1 2010284: c2 26 20 48 st %g1, [ %i0 + 0x48 ] _ISR_Enable( level ); 2010288: 7f ff dc b4 call 2007558 201028c: a0 06 60 10 add %i1, 0x10, %l0 *size_p = the_message->Contents.size; 2010290: d4 06 60 0c ld [ %i1 + 0xc ], %o2 _Thread_Executing->Wait.count = 2010294: c2 04 61 10 ld [ %l1 + 0x110 ], %g1 the_message = _CORE_message_queue_Get_pending_message( the_message_queue ); if ( the_message != NULL ) { the_message_queue->number_of_pending_messages -= 1; _ISR_Enable( level ); *size_p = the_message->Contents.size; 2010298: d4 26 c0 00 st %o2, [ %i3 ] _Thread_Executing->Wait.count = 201029c: c4 06 60 08 ld [ %i1 + 8 ], %g2 20102a0: c4 20 60 24 st %g2, [ %g1 + 0x24 ] const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 20102a4: 92 10 00 10 mov %l0, %o1 20102a8: 40 00 29 b9 call 201a98c 20102ac: 90 10 00 1a mov %i2, %o0 * is not, then we can go ahead and free the buffer. * * NOTE: If we note that the queue was not full before this receive, * then we can avoid this dequeue. */ the_thread = _Thread_queue_Dequeue( &the_message_queue->Wait_queue ); 20102b0: 40 00 07 ba call 2012198 <_Thread_queue_Dequeue> 20102b4: 90 10 00 18 mov %i0, %o0 if ( !the_thread ) { 20102b8: 80 a2 20 00 cmp %o0, 0 20102bc: 32 80 00 04 bne,a 20102cc <_CORE_message_queue_Seize+0x98> 20102c0: d4 02 20 30 ld [ %o0 + 0x30 ], %o2 RTEMS_INLINE_ROUTINE void _CORE_message_queue_Free_message_buffer ( CORE_message_queue_Control *the_message_queue, CORE_message_queue_Buffer_control *the_message ) { _Chain_Append( &the_message_queue->Inactive_messages, &the_message->Node ); 20102c4: 7f ff ff 7a call 20100ac <_Chain_Append> 20102c8: 91 ee 20 68 restore %i0, 0x68, %o0 CORE_message_queue_Buffer_control *the_message, int priority ) { #if defined(RTEMS_SCORE_COREMSG_ENABLE_MESSAGE_PRIORITY) the_message->priority = priority; 20102cc: c2 02 20 24 ld [ %o0 + 0x24 ], %g1 */ _CORE_message_queue_Set_message_priority( the_message, the_thread->Wait.count ); the_message->Contents.size = (size_t) the_thread->Wait.option; 20102d0: d4 26 60 0c st %o2, [ %i1 + 0xc ] 20102d4: c2 26 60 08 st %g1, [ %i1 + 8 ] const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 20102d8: d2 02 20 2c ld [ %o0 + 0x2c ], %o1 20102dc: 40 00 29 ac call 201a98c 20102e0: 90 10 00 10 mov %l0, %o0 the_thread->Wait.return_argument_second.immutable_object, the_message->Contents.buffer, the_message->Contents.size ); _CORE_message_queue_Insert_message( 20102e4: f4 06 60 08 ld [ %i1 + 8 ], %i2 20102e8: 40 00 1a a7 call 2016d84 <_CORE_message_queue_Insert_message> 20102ec: 81 e8 00 00 restore return; } #endif } if ( !wait ) { 20102f0: 80 8f 20 ff btst 0xff, %i4 20102f4: 12 80 00 08 bne 2010314 <_CORE_message_queue_Seize+0xe0> 20102f8: 84 10 20 01 mov 1, %g2 _ISR_Enable( level ); 20102fc: 7f ff dc 97 call 2007558 2010300: 90 10 00 01 mov %g1, %o0 executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT; 2010304: 82 10 20 04 mov 4, %g1 2010308: c2 24 20 34 st %g1, [ %l0 + 0x34 ] executing->Wait.return_argument = size_p; /* Wait.count will be filled in with the message priority */ _ISR_Enable( level ); _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } 201030c: 81 c7 e0 08 ret 2010310: 81 e8 00 00 restore RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section ( Thread_queue_Control *the_thread_queue ) { the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 2010314: c4 24 e0 30 st %g2, [ %l3 + 0x30 ] _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue ); executing->Wait.queue = &the_message_queue->Wait_queue; executing->Wait.id = id; executing->Wait.return_argument_second.mutable_object = buffer; executing->Wait.return_argument = size_p; 2010318: f6 24 20 28 st %i3, [ %l0 + 0x28 ] return; } _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue ); executing->Wait.queue = &the_message_queue->Wait_queue; executing->Wait.id = id; 201031c: e4 24 20 20 st %l2, [ %l0 + 0x20 ] executing->Wait.return_argument_second.mutable_object = buffer; 2010320: f4 24 20 2c st %i2, [ %l0 + 0x2c ] executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT; return; } _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue ); executing->Wait.queue = &the_message_queue->Wait_queue; 2010324: e6 24 20 44 st %l3, [ %l0 + 0x44 ] executing->Wait.id = id; executing->Wait.return_argument_second.mutable_object = buffer; executing->Wait.return_argument = size_p; /* Wait.count will be filled in with the message priority */ _ISR_Enable( level ); 2010328: 90 10 00 01 mov %g1, %o0 201032c: 7f ff dc 8b call 2007558 2010330: 35 00 80 49 sethi %hi(0x2012400), %i2 _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); 2010334: b0 10 00 13 mov %l3, %i0 2010338: b2 10 00 1d mov %i5, %i1 201033c: 40 00 07 fa call 2012324 <_Thread_queue_Enqueue_with_handler> 2010340: 95 ee a2 70 restore %i2, 0x270, %o2 =============================================================================== 02006edc <_CORE_mutex_Seize>: Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { 2006edc: 9d e3 bf a0 save %sp, -96, %sp _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 2006ee0: 03 00 80 78 sethi %hi(0x201e000), %g1 2006ee4: c2 00 62 90 ld [ %g1 + 0x290 ], %g1 ! 201e290 <_Thread_Dispatch_disable_level> 2006ee8: 80 a0 60 00 cmp %g1, 0 2006eec: 02 80 00 0d be 2006f20 <_CORE_mutex_Seize+0x44> 2006ef0: f8 27 a0 54 st %i4, [ %fp + 0x54 ] 2006ef4: 80 8e a0 ff btst 0xff, %i2 2006ef8: 02 80 00 0b be 2006f24 <_CORE_mutex_Seize+0x48> <== NEVER TAKEN 2006efc: 90 10 00 18 mov %i0, %o0 2006f00: 03 00 80 79 sethi %hi(0x201e400), %g1 2006f04: c2 00 60 30 ld [ %g1 + 0x30 ], %g1 ! 201e430 <_System_state_Current> 2006f08: 80 a0 60 01 cmp %g1, 1 2006f0c: 08 80 00 05 bleu 2006f20 <_CORE_mutex_Seize+0x44> 2006f10: 90 10 20 00 clr %o0 2006f14: 92 10 20 00 clr %o1 2006f18: 40 00 01 d3 call 2007664 <_Internal_error_Occurred> 2006f1c: 94 10 20 13 mov 0x13, %o2 2006f20: 90 10 00 18 mov %i0, %o0 2006f24: 40 00 19 4d call 200d458 <_CORE_mutex_Seize_interrupt_trylock> 2006f28: 92 07 a0 54 add %fp, 0x54, %o1 2006f2c: 80 a2 20 00 cmp %o0, 0 2006f30: 02 80 00 09 be 2006f54 <_CORE_mutex_Seize+0x78> 2006f34: 80 8e a0 ff btst 0xff, %i2 2006f38: 12 80 00 09 bne 2006f5c <_CORE_mutex_Seize+0x80> 2006f3c: 35 00 80 78 sethi %hi(0x201e000), %i2 2006f40: 7f ff ec 25 call 2001fd4 2006f44: d0 07 a0 54 ld [ %fp + 0x54 ], %o0 2006f48: c2 06 a3 50 ld [ %i2 + 0x350 ], %g1 2006f4c: 84 10 20 01 mov 1, %g2 2006f50: c4 20 60 34 st %g2, [ %g1 + 0x34 ] 2006f54: 81 c7 e0 08 ret 2006f58: 81 e8 00 00 restore 2006f5c: c4 06 a3 50 ld [ %i2 + 0x350 ], %g2 2006f60: 03 00 80 78 sethi %hi(0x201e000), %g1 2006f64: c6 00 62 90 ld [ %g1 + 0x290 ], %g3 ! 201e290 <_Thread_Dispatch_disable_level> 2006f68: f2 20 a0 20 st %i1, [ %g2 + 0x20 ] 2006f6c: f0 20 a0 44 st %i0, [ %g2 + 0x44 ] 2006f70: 84 00 e0 01 add %g3, 1, %g2 2006f74: c4 20 62 90 st %g2, [ %g1 + 0x290 ] RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section ( Thread_queue_Control *the_thread_queue ) { the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 2006f78: 82 10 20 01 mov 1, %g1 2006f7c: c2 26 20 30 st %g1, [ %i0 + 0x30 ] 2006f80: 7f ff ec 15 call 2001fd4 2006f84: d0 07 a0 54 ld [ %fp + 0x54 ], %o0 2006f88: 90 10 00 18 mov %i0, %o0 2006f8c: 7f ff ff bb call 2006e78 <_CORE_mutex_Seize_interrupt_blocking> 2006f90: 92 10 00 1b mov %i3, %o1 2006f94: 81 c7 e0 08 ret 2006f98: 81 e8 00 00 restore =============================================================================== 02007140 <_CORE_semaphore_Surrender>: CORE_semaphore_Status _CORE_semaphore_Surrender( CORE_semaphore_Control *the_semaphore, Objects_Id id, CORE_semaphore_API_mp_support_callout api_semaphore_mp_support ) { 2007140: 9d e3 bf a0 save %sp, -96, %sp 2007144: a0 10 00 18 mov %i0, %l0 ISR_Level level; CORE_semaphore_Status status; status = CORE_SEMAPHORE_STATUS_SUCCESSFUL; if ( (the_thread = _Thread_queue_Dequeue(&the_semaphore->Wait_queue)) ) { 2007148: b0 10 20 00 clr %i0 200714c: 40 00 06 38 call 2008a2c <_Thread_queue_Dequeue> 2007150: 90 10 00 10 mov %l0, %o0 2007154: 80 a2 20 00 cmp %o0, 0 2007158: 12 80 00 0e bne 2007190 <_CORE_semaphore_Surrender+0x50> 200715c: 01 00 00 00 nop if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_semaphore_mp_support) ( the_thread, id ); #endif } else { _ISR_Disable( level ); 2007160: 7f ff eb 99 call 2001fc4 2007164: 01 00 00 00 nop if ( the_semaphore->count < the_semaphore->Attributes.maximum_count ) 2007168: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 200716c: c4 04 20 40 ld [ %l0 + 0x40 ], %g2 2007170: 80 a0 40 02 cmp %g1, %g2 2007174: 1a 80 00 05 bcc 2007188 <_CORE_semaphore_Surrender+0x48> <== NEVER TAKEN 2007178: b0 10 20 04 mov 4, %i0 the_semaphore->count += 1; 200717c: 82 00 60 01 inc %g1 2007180: b0 10 20 00 clr %i0 2007184: c2 24 20 48 st %g1, [ %l0 + 0x48 ] else status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; _ISR_Enable( level ); 2007188: 7f ff eb 93 call 2001fd4 200718c: 01 00 00 00 nop } return status; } 2007190: 81 c7 e0 08 ret 2007194: 81 e8 00 00 restore =============================================================================== 020012b0 <_Dual_ported_memory_Manager_initialization>: #include #include void _Dual_ported_memory_Manager_initialization(void) { } 20012b0: 81 c3 e0 08 retl =============================================================================== 020012b8 <_Event_Manager_initialization>: #include #include void _Event_Manager_initialization(void) { } 20012b8: 81 c3 e0 08 retl =============================================================================== 02005d38 <_Event_Seize>: rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) { 2005d38: 9d e3 bf a0 save %sp, -96, %sp rtems_event_set pending_events; ISR_Level level; RTEMS_API_Control *api; Thread_blocking_operation_States sync_state; executing = _Thread_Executing; 2005d3c: 03 00 80 78 sethi %hi(0x201e000), %g1 2005d40: e0 00 63 50 ld [ %g1 + 0x350 ], %l0 ! 201e350 <_Thread_Executing> executing->Wait.return_code = RTEMS_SUCCESSFUL; 2005d44: c0 24 20 34 clr [ %l0 + 0x34 ] api = executing->API_Extensions[ THREAD_API_RTEMS ]; _ISR_Disable( level ); 2005d48: 7f ff f0 9f call 2001fc4 2005d4c: e4 04 21 68 ld [ %l0 + 0x168 ], %l2 pending_events = api->pending_events; 2005d50: c2 04 80 00 ld [ %l2 ], %g1 seized_events = _Event_sets_Get( pending_events, event_in ); if ( !_Event_sets_Is_empty( seized_events ) && 2005d54: a2 8e 00 01 andcc %i0, %g1, %l1 2005d58: 02 80 00 0e be 2005d90 <_Event_Seize+0x58> 2005d5c: 80 8e 60 01 btst 1, %i1 2005d60: 80 a4 40 18 cmp %l1, %i0 2005d64: 02 80 00 04 be 2005d74 <_Event_Seize+0x3c> 2005d68: 80 8e 60 02 btst 2, %i1 2005d6c: 02 80 00 09 be 2005d90 <_Event_Seize+0x58> <== NEVER TAKEN 2005d70: 80 8e 60 01 btst 1, %i1 (seized_events == event_in || _Options_Is_any( option_set )) ) { api->pending_events = 2005d74: 82 28 40 11 andn %g1, %l1, %g1 2005d78: c2 24 80 00 st %g1, [ %l2 ] _Event_sets_Clear( pending_events, seized_events ); _ISR_Enable( level ); 2005d7c: 7f ff f0 96 call 2001fd4 2005d80: 01 00 00 00 nop 2005d84: e2 26 c0 00 st %l1, [ %i3 ] 2005d88: 81 c7 e0 08 ret 2005d8c: 81 e8 00 00 restore *event_out = seized_events; return; } if ( _Options_Is_no_wait( option_set ) ) { 2005d90: 22 80 00 09 be,a 2005db4 <_Event_Seize+0x7c> 2005d94: f2 24 20 30 st %i1, [ %l0 + 0x30 ] _ISR_Enable( level ); 2005d98: 7f ff f0 8f call 2001fd4 2005d9c: 01 00 00 00 nop executing->Wait.return_code = RTEMS_UNSATISFIED; 2005da0: 82 10 20 0d mov 0xd, %g1 ! d 2005da4: c2 24 20 34 st %g1, [ %l0 + 0x34 ] *event_out = seized_events; 2005da8: e2 26 c0 00 st %l1, [ %i3 ] 2005dac: 81 c7 e0 08 ret 2005db0: 81 e8 00 00 restore * * NOTE: Since interrupts are disabled, this isn't that much of an * issue but better safe than sorry. */ executing->Wait.option = (uint32_t) option_set; executing->Wait.count = (uint32_t) event_in; 2005db4: f0 24 20 24 st %i0, [ %l0 + 0x24 ] executing->Wait.return_argument = event_out; 2005db8: f6 24 20 28 st %i3, [ %l0 + 0x28 ] _Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 2005dbc: 84 10 20 01 mov 1, %g2 2005dc0: 03 00 80 7a sethi %hi(0x201e800), %g1 2005dc4: c4 20 63 f8 st %g2, [ %g1 + 0x3f8 ] ! 201ebf8 <_Event_Sync_state> _ISR_Enable( level ); 2005dc8: 7f ff f0 83 call 2001fd4 2005dcc: 01 00 00 00 nop if ( ticks ) { 2005dd0: 80 a6 a0 00 cmp %i2, 0 2005dd4: 02 80 00 0f be 2005e10 <_Event_Seize+0xd8> 2005dd8: 90 10 00 10 mov %l0, %o0 _Watchdog_Initialize( 2005ddc: c2 04 20 08 ld [ %l0 + 8 ], %g1 ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 2005de0: 11 00 80 78 sethi %hi(0x201e000), %o0 void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; 2005de4: c2 24 20 68 st %g1, [ %l0 + 0x68 ] Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 2005de8: 03 00 80 17 sethi %hi(0x2005c00), %g1 2005dec: 82 10 63 e0 or %g1, 0x3e0, %g1 ! 2005fe0 <_Event_Timeout> Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 2005df0: f4 24 20 54 st %i2, [ %l0 + 0x54 ] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 2005df4: c0 24 20 50 clr [ %l0 + 0x50 ] the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 2005df8: c0 24 20 6c clr [ %l0 + 0x6c ] Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 2005dfc: c2 24 20 64 st %g1, [ %l0 + 0x64 ] ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 2005e00: 90 12 23 70 or %o0, 0x370, %o0 2005e04: 40 00 0e 74 call 20097d4 <_Watchdog_Insert> 2005e08: 92 04 20 48 add %l0, 0x48, %o1 NULL ); _Watchdog_Insert_ticks( &executing->Timer, ticks ); } _Thread_Set_state( executing, STATES_WAITING_FOR_EVENT ); 2005e0c: 90 10 00 10 mov %l0, %o0 2005e10: 40 00 0c 67 call 2008fac <_Thread_Set_state> 2005e14: 92 10 21 00 mov 0x100, %o1 _ISR_Disable( level ); 2005e18: 7f ff f0 6b call 2001fc4 2005e1c: 01 00 00 00 nop sync_state = _Event_Sync_state; 2005e20: 03 00 80 7a sethi %hi(0x201e800), %g1 2005e24: f0 00 63 f8 ld [ %g1 + 0x3f8 ], %i0 ! 201ebf8 <_Event_Sync_state> _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 2005e28: c0 20 63 f8 clr [ %g1 + 0x3f8 ] if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) { 2005e2c: 80 a6 20 01 cmp %i0, 1 2005e30: 12 80 00 04 bne 2005e40 <_Event_Seize+0x108> 2005e34: b2 10 00 10 mov %l0, %i1 _ISR_Enable( level ); 2005e38: 7f ff f0 67 call 2001fd4 2005e3c: 91 e8 00 08 restore %g0, %o0, %o0 * An interrupt completed the thread's blocking request. * The blocking thread was satisfied by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ _Thread_blocking_operation_Cancel( sync_state, executing, level ); 2005e40: 40 00 08 59 call 2007fa4 <_Thread_blocking_operation_Cancel> 2005e44: 95 e8 00 08 restore %g0, %o0, %o2 =============================================================================== 02005ea4 <_Event_Surrender>: */ void _Event_Surrender( Thread_Control *the_thread ) { 2005ea4: 9d e3 bf a0 save %sp, -96, %sp rtems_event_set event_condition; rtems_event_set seized_events; rtems_option option_set; RTEMS_API_Control *api; api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; 2005ea8: e2 06 21 68 ld [ %i0 + 0x168 ], %l1 option_set = (rtems_option) the_thread->Wait.option; 2005eac: e4 06 20 30 ld [ %i0 + 0x30 ], %l2 _ISR_Disable( level ); 2005eb0: 7f ff f0 45 call 2001fc4 2005eb4: a0 10 00 18 mov %i0, %l0 2005eb8: b0 10 00 08 mov %o0, %i0 pending_events = api->pending_events; 2005ebc: c4 04 40 00 ld [ %l1 ], %g2 event_condition = (rtems_event_set) the_thread->Wait.count; 2005ec0: c6 04 20 24 ld [ %l0 + 0x24 ], %g3 seized_events = _Event_sets_Get( pending_events, event_condition ); /* * No events were seized in this operation */ if ( _Event_sets_Is_empty( seized_events ) ) { 2005ec4: 82 88 c0 02 andcc %g3, %g2, %g1 2005ec8: 02 80 00 43 be 2005fd4 <_Event_Surrender+0x130> 2005ecc: 09 00 80 78 sethi %hi(0x201e000), %g4 /* * If we are in an ISR and sending to the current thread, then * we have a critical section issue to deal with. */ if ( _ISR_Is_in_progress() && 2005ed0: c8 01 23 2c ld [ %g4 + 0x32c ], %g4 ! 201e32c <_ISR_Nest_level> 2005ed4: 80 a1 20 00 cmp %g4, 0 2005ed8: 22 80 00 1e be,a 2005f50 <_Event_Surrender+0xac> 2005edc: c8 04 20 10 ld [ %l0 + 0x10 ], %g4 2005ee0: 09 00 80 78 sethi %hi(0x201e000), %g4 2005ee4: c8 01 23 50 ld [ %g4 + 0x350 ], %g4 ! 201e350 <_Thread_Executing> 2005ee8: 80 a4 00 04 cmp %l0, %g4 2005eec: 32 80 00 19 bne,a 2005f50 <_Event_Surrender+0xac> 2005ef0: c8 04 20 10 ld [ %l0 + 0x10 ], %g4 _Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || 2005ef4: 09 00 80 7a sethi %hi(0x201e800), %g4 2005ef8: da 01 23 f8 ld [ %g4 + 0x3f8 ], %o5 ! 201ebf8 <_Event_Sync_state> /* * If we are in an ISR and sending to the current thread, then * we have a critical section issue to deal with. */ if ( _ISR_Is_in_progress() && 2005efc: 80 a3 60 02 cmp %o5, 2 2005f00: 02 80 00 07 be 2005f1c <_Event_Surrender+0x78> <== NEVER TAKEN 2005f04: 80 a0 40 03 cmp %g1, %g3 _Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) { 2005f08: c8 01 23 f8 ld [ %g4 + 0x3f8 ], %g4 /* * If we are in an ISR and sending to the current thread, then * we have a critical section issue to deal with. */ if ( _ISR_Is_in_progress() && 2005f0c: 80 a1 20 01 cmp %g4, 1 2005f10: 32 80 00 10 bne,a 2005f50 <_Event_Surrender+0xac> 2005f14: c8 04 20 10 ld [ %l0 + 0x10 ], %g4 _Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) { if ( seized_events == event_condition || _Options_Is_any(option_set) ) { 2005f18: 80 a0 40 03 cmp %g1, %g3 2005f1c: 02 80 00 04 be 2005f2c <_Event_Surrender+0x88> 2005f20: 80 8c a0 02 btst 2, %l2 2005f24: 02 80 00 2c be 2005fd4 <_Event_Surrender+0x130> <== NEVER TAKEN 2005f28: 01 00 00 00 nop api->pending_events = _Event_sets_Clear( pending_events,seized_events ); 2005f2c: 84 28 80 01 andn %g2, %g1, %g2 2005f30: c4 24 40 00 st %g2, [ %l1 ] the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 2005f34: c4 04 20 28 ld [ %l0 + 0x28 ], %g2 _Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) { if ( seized_events == event_condition || _Options_Is_any(option_set) ) { api->pending_events = _Event_sets_Clear( pending_events,seized_events ); the_thread->Wait.count = 0; 2005f38: c0 24 20 24 clr [ %l0 + 0x24 ] *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 2005f3c: c2 20 80 00 st %g1, [ %g2 ] _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; 2005f40: 84 10 20 03 mov 3, %g2 2005f44: 03 00 80 7a sethi %hi(0x201e800), %g1 2005f48: c4 20 63 f8 st %g2, [ %g1 + 0x3f8 ] ! 201ebf8 <_Event_Sync_state> 2005f4c: 30 80 00 22 b,a 2005fd4 <_Event_Surrender+0x130> } /* * Otherwise, this is a normal send to another thread */ if ( _States_Is_waiting_for_event( the_thread->current_state ) ) { 2005f50: 80 89 21 00 btst 0x100, %g4 2005f54: 02 80 00 20 be 2005fd4 <_Event_Surrender+0x130> 2005f58: 80 a0 40 03 cmp %g1, %g3 if ( seized_events == event_condition || _Options_Is_any( option_set ) ) { 2005f5c: 02 80 00 04 be 2005f6c <_Event_Surrender+0xc8> 2005f60: 80 8c a0 02 btst 2, %l2 2005f64: 02 80 00 1c be 2005fd4 <_Event_Surrender+0x130> <== NEVER TAKEN 2005f68: 01 00 00 00 nop api->pending_events = _Event_sets_Clear( pending_events, seized_events ); 2005f6c: 84 28 80 01 andn %g2, %g1, %g2 2005f70: c4 24 40 00 st %g2, [ %l1 ] the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 2005f74: c4 04 20 28 ld [ %l0 + 0x28 ], %g2 * Otherwise, this is a normal send to another thread */ if ( _States_Is_waiting_for_event( the_thread->current_state ) ) { if ( seized_events == event_condition || _Options_Is_any( option_set ) ) { api->pending_events = _Event_sets_Clear( pending_events, seized_events ); the_thread->Wait.count = 0; 2005f78: c0 24 20 24 clr [ %l0 + 0x24 ] *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 2005f7c: c2 20 80 00 st %g1, [ %g2 ] _ISR_Flash( level ); 2005f80: 7f ff f0 15 call 2001fd4 2005f84: 90 10 00 18 mov %i0, %o0 2005f88: 7f ff f0 0f call 2001fc4 2005f8c: 01 00 00 00 nop if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 2005f90: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 2005f94: 80 a0 60 02 cmp %g1, 2 2005f98: 02 80 00 06 be 2005fb0 <_Event_Surrender+0x10c> 2005f9c: 82 10 20 03 mov 3, %g1 _ISR_Enable( level ); 2005fa0: 7f ff f0 0d call 2001fd4 2005fa4: 90 10 00 18 mov %i0, %o0 RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 2005fa8: 10 80 00 08 b 2005fc8 <_Event_Surrender+0x124> 2005fac: 33 04 00 ff sethi %hi(0x1003fc00), %i1 RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; 2005fb0: c2 24 20 50 st %g1, [ %l0 + 0x50 ] _Thread_Unblock( the_thread ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 2005fb4: 7f ff f0 08 call 2001fd4 2005fb8: 90 10 00 18 mov %i0, %o0 (void) _Watchdog_Remove( &the_thread->Timer ); 2005fbc: 40 00 0e 62 call 2009944 <_Watchdog_Remove> 2005fc0: 90 04 20 48 add %l0, 0x48, %o0 2005fc4: 33 04 00 ff sethi %hi(0x1003fc00), %i1 2005fc8: b2 16 63 f8 or %i1, 0x3f8, %i1 ! 1003fff8 2005fcc: 40 00 08 84 call 20081dc <_Thread_Clear_state> 2005fd0: 91 e8 00 10 restore %g0, %l0, %o0 _Thread_Unblock( the_thread ); } return; } } _ISR_Enable( level ); 2005fd4: 7f ff f0 00 call 2001fd4 2005fd8: 81 e8 00 00 restore =============================================================================== 02005fe0 <_Event_Timeout>: void _Event_Timeout( Objects_Id id, void *ignored ) { 2005fe0: 9d e3 bf 98 save %sp, -104, %sp Thread_Control *the_thread; Objects_Locations location; ISR_Level level; the_thread = _Thread_Get( id, &location ); 2005fe4: 90 10 00 18 mov %i0, %o0 2005fe8: 40 00 09 9c call 2008658 <_Thread_Get> 2005fec: 92 07 bf fc add %fp, -4, %o1 switch ( location ) { 2005ff0: c2 07 bf fc ld [ %fp + -4 ], %g1 2005ff4: 80 a0 60 00 cmp %g1, 0 2005ff8: 12 80 00 1c bne 2006068 <_Event_Timeout+0x88> <== NEVER TAKEN 2005ffc: a0 10 00 08 mov %o0, %l0 * * If it is not satisfied, then it is "nothing happened" and * this is the "timeout" transition. After a request is satisfied, * a timeout is not allowed to occur. */ _ISR_Disable( level ); 2006000: 7f ff ef f1 call 2001fc4 2006004: 01 00 00 00 nop return; } #endif the_thread->Wait.count = 0; if ( _Thread_Is_executing( the_thread ) ) { 2006008: 03 00 80 78 sethi %hi(0x201e000), %g1 200600c: c2 00 63 50 ld [ %g1 + 0x350 ], %g1 ! 201e350 <_Thread_Executing> 2006010: 80 a4 00 01 cmp %l0, %g1 2006014: 12 80 00 09 bne 2006038 <_Event_Timeout+0x58> 2006018: c0 24 20 24 clr [ %l0 + 0x24 ] if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) 200601c: 03 00 80 7a sethi %hi(0x201e800), %g1 2006020: c4 00 63 f8 ld [ %g1 + 0x3f8 ], %g2 ! 201ebf8 <_Event_Sync_state> 2006024: 80 a0 a0 01 cmp %g2, 1 2006028: 32 80 00 05 bne,a 200603c <_Event_Timeout+0x5c> 200602c: 82 10 20 06 mov 6, %g1 _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; 2006030: 84 10 20 02 mov 2, %g2 2006034: c4 20 63 f8 st %g2, [ %g1 + 0x3f8 ] } the_thread->Wait.return_code = RTEMS_TIMEOUT; 2006038: 82 10 20 06 mov 6, %g1 200603c: c2 24 20 34 st %g1, [ %l0 + 0x34 ] _ISR_Enable( level ); 2006040: 7f ff ef e5 call 2001fd4 2006044: 01 00 00 00 nop 2006048: 90 10 00 10 mov %l0, %o0 200604c: 13 04 00 ff sethi %hi(0x1003fc00), %o1 2006050: 40 00 08 63 call 20081dc <_Thread_Clear_state> 2006054: 92 12 63 f8 or %o1, 0x3f8, %o1 ! 1003fff8 */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 2006058: 03 00 80 78 sethi %hi(0x201e000), %g1 200605c: c4 00 62 90 ld [ %g1 + 0x290 ], %g2 ! 201e290 <_Thread_Dispatch_disable_level> 2006060: 84 00 bf ff add %g2, -1, %g2 2006064: c4 20 62 90 st %g2, [ %g1 + 0x290 ] 2006068: 81 c7 e0 08 ret 200606c: 81 e8 00 00 restore =============================================================================== 020012f0 <_Extension_Manager_initialization>: #include #include void _Extension_Manager_initialization(void) { } 20012f0: 81 c3 e0 08 retl =============================================================================== 0200d5fc <_Heap_Allocate_aligned_with_boundary>: Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { 200d5fc: 9d e3 bf 90 save %sp, -112, %sp Heap_Statistics *const stats = &heap->stats; Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); Heap_Block *block = _Heap_Free_list_first( heap ); uintptr_t const block_size_floor = alloc_size + HEAP_BLOCK_HEADER_SIZE - HEAP_BLOCK_SIZE_OFFSET; 200d600: ac 06 60 04 add %i1, 4, %l6 return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; 200d604: e4 06 20 08 ld [ %i0 + 8 ], %l2 uintptr_t const page_size = heap->page_size; uintptr_t alloc_begin = 0; uint32_t search_count = 0; if ( block_size_floor < alloc_size ) { 200d608: 80 a5 80 19 cmp %l6, %i1 200d60c: 0a 80 00 6d bcs 200d7c0 <_Heap_Allocate_aligned_with_boundary+0x1c4> 200d610: e8 06 20 10 ld [ %i0 + 0x10 ], %l4 /* Integer overflow occured */ return NULL; } if ( boundary != 0 ) { 200d614: 80 a6 e0 00 cmp %i3, 0 200d618: 02 80 00 08 be 200d638 <_Heap_Allocate_aligned_with_boundary+0x3c> 200d61c: 82 10 20 04 mov 4, %g1 if ( boundary < alloc_size ) { 200d620: 80 a6 c0 19 cmp %i3, %i1 200d624: 0a 80 00 67 bcs 200d7c0 <_Heap_Allocate_aligned_with_boundary+0x1c4> 200d628: 80 a6 a0 00 cmp %i2, 0 return NULL; } if ( alignment == 0 ) { 200d62c: 22 80 00 03 be,a 200d638 <_Heap_Allocate_aligned_with_boundary+0x3c> 200d630: b4 10 00 14 mov %l4, %i2 uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block ); uintptr_t const alloc_begin_ceiling = block_end - min_block_size + HEAP_BLOCK_HEADER_SIZE + page_size - 1; uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET; uintptr_t alloc_begin = alloc_end - alloc_size; 200d634: 82 10 20 04 mov 4, %g1 200d638: 82 20 40 19 sub %g1, %i1, %g1 if ( boundary != 0 ) { if ( boundary < alloc_size ) { return NULL; } if ( alignment == 0 ) { 200d63c: a2 10 20 00 clr %l1 uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block ); uintptr_t const alloc_begin_ceiling = block_end - min_block_size + HEAP_BLOCK_HEADER_SIZE + page_size - 1; uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET; uintptr_t alloc_begin = alloc_end - alloc_size; 200d640: c2 27 bf f4 st %g1, [ %fp + -12 ] /* Ensure that the we have a valid new block at the beginning */ if ( alloc_begin >= alloc_begin_floor ) { uintptr_t const alloc_block_begin = (uintptr_t) _Heap_Block_of_alloc_area( alloc_begin, page_size ); uintptr_t const free_size = alloc_block_begin - block_begin; 200d644: b8 10 3f f8 mov -8, %i4 uintptr_t const block_size = _Heap_Block_size( block ); uintptr_t const block_end = block_begin + block_size; uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block ); uintptr_t const alloc_begin_ceiling = block_end - min_block_size + HEAP_BLOCK_HEADER_SIZE + page_size - 1; 200d648: 82 05 20 07 add %l4, 7, %g1 200d64c: 10 80 00 4b b 200d778 <_Heap_Allocate_aligned_with_boundary+0x17c> 200d650: c2 27 bf f8 st %g1, [ %fp + -8 ] /* * The HEAP_PREV_BLOCK_USED flag is always set in the block size_and_flag * field. Thus the value is about one unit larger than the real block * size. The greater than operator takes this into account. */ if ( block->size_and_flag > block_size_floor ) { 200d654: 80 a4 c0 16 cmp %l3, %l6 200d658: 08 80 00 47 bleu 200d774 <_Heap_Allocate_aligned_with_boundary+0x178> 200d65c: a2 04 60 01 inc %l1 if ( alignment == 0 ) { 200d660: 80 a6 a0 00 cmp %i2, 0 200d664: 12 80 00 04 bne 200d674 <_Heap_Allocate_aligned_with_boundary+0x78> 200d668: aa 04 a0 08 add %l2, 8, %l5 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block( const Heap_Block *block ) { return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE; 200d66c: 10 80 00 3f b 200d768 <_Heap_Allocate_aligned_with_boundary+0x16c> 200d670: a0 10 00 15 mov %l5, %l0 uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block ); uintptr_t const alloc_begin_ceiling = block_end - min_block_size + HEAP_BLOCK_HEADER_SIZE + page_size - 1; uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET; uintptr_t alloc_begin = alloc_end - alloc_size; 200d674: c4 07 bf f4 ld [ %fp + -12 ], %g2 uintptr_t alignment, uintptr_t boundary ) { uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; 200d678: ee 06 20 14 ld [ %i0 + 0x14 ], %l7 uintptr_t const block_begin = (uintptr_t) block; uintptr_t const block_size = _Heap_Block_size( block ); uintptr_t const block_end = block_begin + block_size; 200d67c: a6 0c ff fe and %l3, -2, %l3 200d680: a6 04 80 13 add %l2, %l3, %l3 uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block ); uintptr_t const alloc_begin_ceiling = block_end - min_block_size + HEAP_BLOCK_HEADER_SIZE + page_size - 1; uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET; uintptr_t alloc_begin = alloc_end - alloc_size; 200d684: a0 00 80 13 add %g2, %l3, %l0 uintptr_t const block_size = _Heap_Block_size( block ); uintptr_t const block_end = block_begin + block_size; uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block ); uintptr_t const alloc_begin_ceiling = block_end - min_block_size + HEAP_BLOCK_HEADER_SIZE + page_size - 1; 200d688: c4 07 bf f8 ld [ %fp + -8 ], %g2 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); 200d68c: 90 10 00 10 mov %l0, %o0 200d690: 82 20 80 17 sub %g2, %l7, %g1 200d694: 92 10 00 1a mov %i2, %o1 200d698: 40 00 32 ab call 201a144 <.urem> 200d69c: a6 00 40 13 add %g1, %l3, %l3 200d6a0: a0 24 00 08 sub %l0, %o0, %l0 uintptr_t alloc_begin = alloc_end - alloc_size; alloc_begin = _Heap_Align_down( alloc_begin, alignment ); /* Ensure that the we have a valid new block at the end */ if ( alloc_begin > alloc_begin_ceiling ) { 200d6a4: 80 a4 00 13 cmp %l0, %l3 200d6a8: 08 80 00 07 bleu 200d6c4 <_Heap_Allocate_aligned_with_boundary+0xc8> 200d6ac: 80 a6 e0 00 cmp %i3, 0 200d6b0: 90 10 00 13 mov %l3, %o0 200d6b4: 40 00 32 a4 call 201a144 <.urem> 200d6b8: 92 10 00 1a mov %i2, %o1 200d6bc: a0 24 c0 08 sub %l3, %o0, %l0 } alloc_end = alloc_begin + alloc_size; /* Ensure boundary constaint */ if ( boundary != 0 ) { 200d6c0: 80 a6 e0 00 cmp %i3, 0 200d6c4: 02 80 00 1d be 200d738 <_Heap_Allocate_aligned_with_boundary+0x13c> 200d6c8: 80 a4 00 15 cmp %l0, %l5 /* Ensure that the we have a valid new block at the end */ if ( alloc_begin > alloc_begin_ceiling ) { alloc_begin = _Heap_Align_down( alloc_begin_ceiling, alignment ); } alloc_end = alloc_begin + alloc_size; 200d6cc: a6 04 00 19 add %l0, %i1, %l3 /* Ensure boundary constaint */ if ( boundary != 0 ) { uintptr_t const boundary_floor = alloc_begin_floor + alloc_size; 200d6d0: 82 05 40 19 add %l5, %i1, %g1 200d6d4: 92 10 00 1b mov %i3, %o1 200d6d8: 90 10 00 13 mov %l3, %o0 200d6dc: 10 80 00 0b b 200d708 <_Heap_Allocate_aligned_with_boundary+0x10c> 200d6e0: c2 27 bf fc st %g1, [ %fp + -4 ] uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary ); while ( alloc_begin < boundary_line && boundary_line < alloc_end ) { if ( boundary_line < boundary_floor ) { 200d6e4: 80 a0 40 02 cmp %g1, %g2 200d6e8: 2a 80 00 24 bcs,a 200d778 <_Heap_Allocate_aligned_with_boundary+0x17c> 200d6ec: e4 04 a0 08 ld [ %l2 + 8 ], %l2 200d6f0: 40 00 32 95 call 201a144 <.urem> 200d6f4: 01 00 00 00 nop 200d6f8: 92 10 00 1b mov %i3, %o1 200d6fc: a0 27 40 08 sub %i5, %o0, %l0 return 0; } alloc_begin = boundary_line - alloc_size; alloc_begin = _Heap_Align_down( alloc_begin, alignment ); alloc_end = alloc_begin + alloc_size; 200d700: a6 04 00 19 add %l0, %i1, %l3 200d704: 90 10 00 13 mov %l3, %o0 200d708: 40 00 32 8f call 201a144 <.urem> 200d70c: 01 00 00 00 nop 200d710: 92 10 00 1a mov %i2, %o1 200d714: 82 24 c0 08 sub %l3, %o0, %g1 while ( alloc_begin < boundary_line && boundary_line < alloc_end ) { if ( boundary_line < boundary_floor ) { return 0; } alloc_begin = boundary_line - alloc_size; 200d718: ba 20 40 19 sub %g1, %i1, %i5 /* Ensure boundary constaint */ if ( boundary != 0 ) { uintptr_t const boundary_floor = alloc_begin_floor + alloc_size; uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary ); while ( alloc_begin < boundary_line && boundary_line < alloc_end ) { 200d71c: 80 a0 40 13 cmp %g1, %l3 200d720: 1a 80 00 05 bcc 200d734 <_Heap_Allocate_aligned_with_boundary+0x138> 200d724: 90 10 00 1d mov %i5, %o0 200d728: 80 a4 00 01 cmp %l0, %g1 200d72c: 0a bf ff ee bcs 200d6e4 <_Heap_Allocate_aligned_with_boundary+0xe8> 200d730: c4 07 bf fc ld [ %fp + -4 ], %g2 boundary_line = _Heap_Align_down( alloc_end, boundary ); } } /* Ensure that the we have a valid new block at the beginning */ if ( alloc_begin >= alloc_begin_floor ) { 200d734: 80 a4 00 15 cmp %l0, %l5 200d738: 0a 80 00 0f bcs 200d774 <_Heap_Allocate_aligned_with_boundary+0x178> 200d73c: a6 27 00 12 sub %i4, %l2, %l3 uintptr_t const alloc_block_begin = (uintptr_t) _Heap_Block_of_alloc_area( alloc_begin, page_size ); uintptr_t const free_size = alloc_block_begin - block_begin; 200d740: 90 10 00 10 mov %l0, %o0 200d744: a6 04 c0 10 add %l3, %l0, %l3 200d748: 40 00 32 7f call 201a144 <.urem> 200d74c: 92 10 00 14 mov %l4, %o1 if ( free_size >= min_block_size || free_size == 0 ) { 200d750: 90 a4 c0 08 subcc %l3, %o0, %o0 200d754: 02 80 00 06 be 200d76c <_Heap_Allocate_aligned_with_boundary+0x170> 200d758: 80 a4 20 00 cmp %l0, 0 200d75c: 80 a2 00 17 cmp %o0, %l7 200d760: 2a 80 00 06 bcs,a 200d778 <_Heap_Allocate_aligned_with_boundary+0x17c> 200d764: e4 04 a0 08 ld [ %l2 + 8 ], %l2 boundary ); } } if ( alloc_begin != 0 ) { 200d768: 80 a4 20 00 cmp %l0, 0 200d76c: 32 80 00 08 bne,a 200d78c <_Heap_Allocate_aligned_with_boundary+0x190><== ALWAYS TAKEN 200d770: c2 06 20 4c ld [ %i0 + 0x4c ], %g1 break; } block = block->next; 200d774: e4 04 a0 08 ld [ %l2 + 8 ], %l2 if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { 200d778: 80 a4 80 18 cmp %l2, %i0 200d77c: 32 bf ff b6 bne,a 200d654 <_Heap_Allocate_aligned_with_boundary+0x58> 200d780: e6 04 a0 04 ld [ %l2 + 4 ], %l3 200d784: 10 80 00 09 b 200d7a8 <_Heap_Allocate_aligned_with_boundary+0x1ac> 200d788: a0 10 20 00 clr %l0 if ( alloc_begin != 0 ) { /* Statistics */ stats->searches += search_count; block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); 200d78c: 92 10 00 12 mov %l2, %o1 block = block->next; } if ( alloc_begin != 0 ) { /* Statistics */ stats->searches += search_count; 200d790: 82 00 40 11 add %g1, %l1, %g1 block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); 200d794: 96 10 00 19 mov %i1, %o3 block = block->next; } if ( alloc_begin != 0 ) { /* Statistics */ stats->searches += search_count; 200d798: c2 26 20 4c st %g1, [ %i0 + 0x4c ] block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); 200d79c: 90 10 00 18 mov %i0, %o0 200d7a0: 7f ff e7 60 call 2007520 <_Heap_Block_allocate> 200d7a4: 94 10 00 10 mov %l0, %o2 uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { Heap_Statistics *const stats = &heap->stats; 200d7a8: c2 06 20 44 ld [ %i0 + 0x44 ], %g1 200d7ac: 80 a0 40 11 cmp %g1, %l1 200d7b0: 2a 80 00 02 bcs,a 200d7b8 <_Heap_Allocate_aligned_with_boundary+0x1bc> 200d7b4: e2 26 20 44 st %l1, [ %i0 + 0x44 ] /* Statistics */ if ( stats->max_search < search_count ) { stats->max_search = search_count; } return (void *) alloc_begin; 200d7b8: 81 c7 e0 08 ret 200d7bc: 91 e8 00 10 restore %g0, %l0, %o0 } 200d7c0: 81 c7 e0 08 ret 200d7c4: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 02011e64 <_Heap_Extend>: Heap_Control *heap, void *area_begin_ptr, uintptr_t area_size, uintptr_t *amount_extended ) { 2011e64: 9d e3 bf a0 save %sp, -96, %sp Heap_Statistics *const stats = &heap->stats; uintptr_t const area_begin = (uintptr_t) area_begin_ptr; uintptr_t const heap_area_begin = heap->area_begin; uintptr_t const heap_area_end = heap->area_end; 2011e68: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 Heap_Control *heap, void *area_begin_ptr, uintptr_t area_size, uintptr_t *amount_extended ) { 2011e6c: a0 10 00 18 mov %i0, %l0 * 5. non-contiguous higher address (NOT SUPPORTED) * * As noted, this code only supports (4). */ if ( area_begin >= heap_area_begin && area_begin < heap_area_end ) { 2011e70: 80 a6 40 01 cmp %i1, %g1 2011e74: 1a 80 00 07 bcc 2011e90 <_Heap_Extend+0x2c> 2011e78: e2 06 20 24 ld [ %i0 + 0x24 ], %l1 uintptr_t *amount_extended ) { Heap_Statistics *const stats = &heap->stats; uintptr_t const area_begin = (uintptr_t) area_begin_ptr; uintptr_t const heap_area_begin = heap->area_begin; 2011e7c: c4 06 20 18 ld [ %i0 + 0x18 ], %g2 2011e80: 80 a6 40 02 cmp %i1, %g2 2011e84: 1a 80 00 28 bcc 2011f24 <_Heap_Extend+0xc0> 2011e88: b0 10 20 01 mov 1, %i0 * As noted, this code only supports (4). */ if ( area_begin >= heap_area_begin && area_begin < heap_area_end ) { return HEAP_EXTEND_ERROR; /* case 3 */ } else if ( area_begin != heap_area_end ) { 2011e8c: 80 a6 40 01 cmp %i1, %g1 2011e90: 12 80 00 25 bne 2011f24 <_Heap_Extend+0xc0> 2011e94: b0 10 20 02 mov 2, %i0 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); 2011e98: d2 04 20 10 ld [ %l0 + 0x10 ], %o1 { Heap_Statistics *const stats = &heap->stats; uintptr_t const area_begin = (uintptr_t) area_begin_ptr; uintptr_t const heap_area_begin = heap->area_begin; uintptr_t const heap_area_end = heap->area_end; uintptr_t const new_heap_area_end = heap_area_end + area_size; 2011e9c: b4 06 40 1a add %i1, %i2, %i2 * block and free it. */ heap->area_end = new_heap_area_end; extend_size = new_heap_area_end 2011ea0: b2 26 80 11 sub %i2, %l1, %i1 * Currently only case 4 should make it to this point. * The basic trick is to make the extend area look like a used * block and free it. */ heap->area_end = new_heap_area_end; 2011ea4: f4 24 20 1c st %i2, [ %l0 + 0x1c ] extend_size = new_heap_area_end 2011ea8: b2 06 7f f8 add %i1, -8, %i1 2011eac: 7f ff c8 bd call 20041a0 <.urem> 2011eb0: 90 10 00 19 mov %i1, %o0 2011eb4: 90 26 40 08 sub %i1, %o0, %o0 - (uintptr_t) last_block - HEAP_BLOCK_HEADER_SIZE; extend_size = _Heap_Align_down( extend_size, heap->page_size ); *amount_extended = extend_size; 2011eb8: d0 26 c0 00 st %o0, [ %i3 ] if( extend_size >= heap->min_block_size ) { 2011ebc: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 2011ec0: 80 a2 00 01 cmp %o0, %g1 2011ec4: 0a 80 00 18 bcs 2011f24 <_Heap_Extend+0xc0> <== NEVER TAKEN 2011ec8: b0 10 20 00 clr %i0 uintptr_t size ) { uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED; block->size_and_flag = size | flag; 2011ecc: c2 04 60 04 ld [ %l1 + 4 ], %g1 Heap_Block *const new_last_block = _Heap_Block_at( last_block, extend_size ); _Heap_Block_set_size( last_block, extend_size ); new_last_block->size_and_flag = 2011ed0: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 2011ed4: 82 08 60 01 and %g1, 1, %g1 2011ed8: 82 12 00 01 or %o0, %g1, %g1 2011edc: c2 24 60 04 st %g1, [ %l1 + 4 ] RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); 2011ee0: 82 02 00 11 add %o0, %l1, %g1 2011ee4: 84 20 80 01 sub %g2, %g1, %g2 2011ee8: 84 10 a0 01 or %g2, 1, %g2 2011eec: c4 20 60 04 st %g2, [ %g1 + 4 ] heap->last_block = new_last_block; /* Statistics */ stats->size += extend_size; ++stats->used_blocks; 2011ef0: c6 04 20 40 ld [ %l0 + 0x40 ], %g3 | HEAP_PREV_BLOCK_USED; heap->last_block = new_last_block; /* Statistics */ stats->size += extend_size; 2011ef4: f2 04 20 2c ld [ %l0 + 0x2c ], %i1 ++stats->used_blocks; --stats->frees; /* Do not count subsequent call as actual free() */ 2011ef8: c4 04 20 50 ld [ %l0 + 0x50 ], %g2 new_last_block->size_and_flag = ((uintptr_t) heap->first_block - (uintptr_t) new_last_block) | HEAP_PREV_BLOCK_USED; heap->last_block = new_last_block; 2011efc: c2 24 20 24 st %g1, [ %l0 + 0x24 ] /* Statistics */ stats->size += extend_size; ++stats->used_blocks; 2011f00: 82 00 e0 01 add %g3, 1, %g1 | HEAP_PREV_BLOCK_USED; heap->last_block = new_last_block; /* Statistics */ stats->size += extend_size; 2011f04: 90 06 40 08 add %i1, %o0, %o0 ++stats->used_blocks; 2011f08: c2 24 20 40 st %g1, [ %l0 + 0x40 ] --stats->frees; /* Do not count subsequent call as actual free() */ 2011f0c: 82 00 bf ff add %g2, -1, %g1 | HEAP_PREV_BLOCK_USED; heap->last_block = new_last_block; /* Statistics */ stats->size += extend_size; 2011f10: d0 24 20 2c st %o0, [ %l0 + 0x2c ] ++stats->used_blocks; --stats->frees; /* Do not count subsequent call as actual free() */ 2011f14: c2 24 20 50 st %g1, [ %l0 + 0x50 ] _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block )); 2011f18: 90 10 00 10 mov %l0, %o0 2011f1c: 7f ff e4 4b call 200b048 <_Heap_Free> 2011f20: 92 04 60 08 add %l1, 8, %o1 } return HEAP_EXTEND_SUCCESSFUL; } 2011f24: 81 c7 e0 08 ret 2011f28: 81 e8 00 00 restore =============================================================================== 0200d7c8 <_Heap_Free>: #include #include #include bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) { 200d7c8: 9d e3 bf a0 save %sp, -96, %sp RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_of_alloc_area( uintptr_t alloc_begin, uintptr_t page_size ) { return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size ) 200d7cc: d2 06 20 10 ld [ %i0 + 0x10 ], %o1 200d7d0: 40 00 32 5d call 201a144 <.urem> 200d7d4: 90 10 00 19 mov %i1, %o0 const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block && (uintptr_t) block <= (uintptr_t) heap->last_block; 200d7d8: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_of_alloc_area( uintptr_t alloc_begin, uintptr_t page_size ) { return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size ) 200d7dc: b2 06 7f f8 add %i1, -8, %i1 200d7e0: 90 26 40 08 sub %i1, %o0, %o0 RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap( const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block 200d7e4: 80 a2 00 01 cmp %o0, %g1 200d7e8: 0a 80 00 05 bcs 200d7fc <_Heap_Free+0x34> 200d7ec: 84 10 20 00 clr %g2 200d7f0: c4 06 20 24 ld [ %i0 + 0x24 ], %g2 200d7f4: 80 a0 80 08 cmp %g2, %o0 200d7f8: 84 60 3f ff subx %g0, -1, %g2 Heap_Block *next_block = NULL; uintptr_t block_size = 0; uintptr_t next_block_size = 0; bool next_is_free = false; if ( !_Heap_Is_block_in_heap( heap, block ) ) { 200d7fc: 80 a0 a0 00 cmp %g2, 0 200d800: 02 80 00 6a be 200d9a8 <_Heap_Free+0x1e0> 200d804: 01 00 00 00 nop - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; 200d808: c8 02 20 04 ld [ %o0 + 4 ], %g4 200d80c: 86 09 3f fe and %g4, -2, %g3 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); 200d810: 84 02 00 03 add %o0, %g3, %g2 RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap( const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block 200d814: 80 a0 80 01 cmp %g2, %g1 200d818: 0a 80 00 05 bcs 200d82c <_Heap_Free+0x64> <== NEVER TAKEN 200d81c: 9a 10 20 00 clr %o5 200d820: da 06 20 24 ld [ %i0 + 0x24 ], %o5 200d824: 80 a3 40 02 cmp %o5, %g2 200d828: 9a 60 3f ff subx %g0, -1, %o5 } block_size = _Heap_Block_size( block ); next_block = _Heap_Block_at( block, block_size ); if ( !_Heap_Is_block_in_heap( heap, next_block ) ) { 200d82c: 80 a3 60 00 cmp %o5, 0 200d830: 02 80 00 5e be 200d9a8 <_Heap_Free+0x1e0> <== NEVER TAKEN 200d834: 01 00 00 00 nop block->size_and_flag = size | flag; } RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block ) { return block->size_and_flag & HEAP_PREV_BLOCK_USED; 200d838: da 00 a0 04 ld [ %g2 + 4 ], %o5 _HAssert( false ); return false; } if ( !_Heap_Is_prev_used( next_block ) ) { 200d83c: 80 8b 60 01 btst 1, %o5 200d840: 02 80 00 5a be 200d9a8 <_Heap_Free+0x1e0> <== NEVER TAKEN 200d844: 9a 0b 7f fe and %o5, -2, %o5 return false; } next_block_size = _Heap_Block_size( next_block ); next_is_free = next_block != heap->last_block && !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size )); 200d848: d2 06 20 24 ld [ %i0 + 0x24 ], %o1 _HAssert( false ); return false; } next_block_size = _Heap_Block_size( next_block ); next_is_free = next_block != heap->last_block 200d84c: 80 a0 80 09 cmp %g2, %o1 200d850: 02 80 00 06 be 200d868 <_Heap_Free+0xa0> 200d854: 96 10 20 00 clr %o3 200d858: 98 00 80 0d add %g2, %o5, %o4 200d85c: d6 03 20 04 ld [ %o4 + 4 ], %o3 200d860: 96 0a e0 01 and %o3, 1, %o3 200d864: 96 1a e0 01 xor %o3, 1, %o3 && !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size )); if ( !_Heap_Is_prev_used( block ) ) { 200d868: 80 89 20 01 btst 1, %g4 200d86c: 12 80 00 26 bne 200d904 <_Heap_Free+0x13c> 200d870: 80 a2 e0 00 cmp %o3, 0 uintptr_t const prev_size = block->prev_size; 200d874: d8 02 00 00 ld [ %o0 ], %o4 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); 200d878: 88 22 00 0c sub %o0, %o4, %g4 RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap( const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block 200d87c: 80 a1 00 01 cmp %g4, %g1 200d880: 0a 80 00 04 bcs 200d890 <_Heap_Free+0xc8> <== NEVER TAKEN 200d884: 94 10 20 00 clr %o2 200d888: 80 a2 40 04 cmp %o1, %g4 200d88c: 94 60 3f ff subx %g0, -1, %o2 Heap_Block * const prev_block = _Heap_Block_at( block, -prev_size ); if ( !_Heap_Is_block_in_heap( heap, prev_block ) ) { 200d890: 80 a2 a0 00 cmp %o2, 0 200d894: 02 80 00 45 be 200d9a8 <_Heap_Free+0x1e0> <== NEVER TAKEN 200d898: 01 00 00 00 nop return( false ); } /* As we always coalesce free blocks, the block that preceedes prev_block must have been used. */ if ( !_Heap_Is_prev_used ( prev_block) ) { 200d89c: c2 01 20 04 ld [ %g4 + 4 ], %g1 200d8a0: 80 88 60 01 btst 1, %g1 200d8a4: 02 80 00 41 be 200d9a8 <_Heap_Free+0x1e0> <== NEVER TAKEN 200d8a8: 80 a2 e0 00 cmp %o3, 0 _HAssert( false ); return( false ); } if ( next_is_free ) { /* coalesce both */ 200d8ac: 22 80 00 0f be,a 200d8e8 <_Heap_Free+0x120> 200d8b0: 98 00 c0 0c add %g3, %o4, %o4 uintptr_t const size = block_size + prev_size + next_block_size; _Heap_Free_list_remove( next_block ); stats->free_blocks -= 1; 200d8b4: c2 06 20 38 ld [ %i0 + 0x38 ], %g1 } RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) { Heap_Block *next = block->next; Heap_Block *prev = block->prev; 200d8b8: d6 00 a0 0c ld [ %g2 + 0xc ], %o3 return _Heap_Free_list_tail(heap)->prev; } RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) { Heap_Block *next = block->next; 200d8bc: c4 00 a0 08 ld [ %g2 + 8 ], %g2 200d8c0: 82 00 7f ff add %g1, -1, %g1 200d8c4: c2 26 20 38 st %g1, [ %i0 + 0x38 ] _HAssert( false ); return( false ); } if ( next_is_free ) { /* coalesce both */ uintptr_t const size = block_size + prev_size + next_block_size; 200d8c8: 9a 00 c0 0d add %g3, %o5, %o5 Heap_Block *prev = block->prev; prev->next = next; next->prev = prev; 200d8cc: d6 20 a0 0c st %o3, [ %g2 + 0xc ] 200d8d0: 98 03 40 0c add %o5, %o4, %o4 RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) { Heap_Block *next = block->next; Heap_Block *prev = block->prev; prev->next = next; 200d8d4: c4 22 e0 08 st %g2, [ %o3 + 8 ] _Heap_Free_list_remove( next_block ); stats->free_blocks -= 1; prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; next_block = _Heap_Block_at( prev_block, size ); _HAssert(!_Heap_Is_prev_used( next_block)); next_block->prev_size = size; 200d8d8: d8 21 00 0c st %o4, [ %g4 + %o4 ] if ( next_is_free ) { /* coalesce both */ uintptr_t const size = block_size + prev_size + next_block_size; _Heap_Free_list_remove( next_block ); stats->free_blocks -= 1; prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; 200d8dc: 98 13 20 01 or %o4, 1, %o4 200d8e0: 10 80 00 27 b 200d97c <_Heap_Free+0x1b4> 200d8e4: d8 21 20 04 st %o4, [ %g4 + 4 ] next_block = _Heap_Block_at( prev_block, size ); _HAssert(!_Heap_Is_prev_used( next_block)); next_block->prev_size = size; } else { /* coalesce prev */ uintptr_t const size = block_size + prev_size; prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; 200d8e8: 82 13 20 01 or %o4, 1, %g1 200d8ec: c2 21 20 04 st %g1, [ %g4 + 4 ] next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; 200d8f0: c2 00 a0 04 ld [ %g2 + 4 ], %g1 next_block->prev_size = size; 200d8f4: d8 22 00 03 st %o4, [ %o0 + %g3 ] _HAssert(!_Heap_Is_prev_used( next_block)); next_block->prev_size = size; } else { /* coalesce prev */ uintptr_t const size = block_size + prev_size; prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; 200d8f8: 82 08 7f fe and %g1, -2, %g1 200d8fc: 10 80 00 20 b 200d97c <_Heap_Free+0x1b4> 200d900: c2 20 a0 04 st %g1, [ %g2 + 4 ] next_block->prev_size = size; } } else if ( next_is_free ) { /* coalesce next */ 200d904: 02 80 00 0d be 200d938 <_Heap_Free+0x170> 200d908: 82 10 e0 01 or %g3, 1, %g1 Heap_Block *old_block, Heap_Block *new_block ) { Heap_Block *next = old_block->next; Heap_Block *prev = old_block->prev; 200d90c: c2 00 a0 0c ld [ %g2 + 0xc ], %g1 RTEMS_INLINE_ROUTINE void _Heap_Free_list_replace( Heap_Block *old_block, Heap_Block *new_block ) { Heap_Block *next = old_block->next; 200d910: c4 00 a0 08 ld [ %g2 + 8 ], %g2 Heap_Block *prev = old_block->prev; new_block->next = next; new_block->prev = prev; 200d914: c2 22 20 0c st %g1, [ %o0 + 0xc ] ) { Heap_Block *next = old_block->next; Heap_Block *prev = old_block->prev; new_block->next = next; 200d918: c4 22 20 08 st %g2, [ %o0 + 8 ] new_block->prev = prev; next->prev = new_block; prev->next = new_block; 200d91c: d0 20 60 08 st %o0, [ %g1 + 8 ] Heap_Block *prev = old_block->prev; new_block->next = next; new_block->prev = prev; next->prev = new_block; 200d920: d0 20 a0 0c st %o0, [ %g2 + 0xc ] uintptr_t const size = block_size + next_block_size; 200d924: 82 03 40 03 add %o5, %g3, %g1 _Heap_Free_list_replace( next_block, block ); block->size_and_flag = size | HEAP_PREV_BLOCK_USED; next_block = _Heap_Block_at( block, size ); next_block->prev_size = size; 200d928: c2 22 00 01 st %g1, [ %o0 + %g1 ] next_block->prev_size = size; } } else if ( next_is_free ) { /* coalesce next */ uintptr_t const size = block_size + next_block_size; _Heap_Free_list_replace( next_block, block ); block->size_and_flag = size | HEAP_PREV_BLOCK_USED; 200d92c: 82 10 60 01 or %g1, 1, %g1 200d930: 10 80 00 13 b 200d97c <_Heap_Free+0x1b4> 200d934: c2 22 20 04 st %g1, [ %o0 + 4 ] next_block->prev_size = size; } else { /* no coalesce */ /* Add 'block' to the head of the free blocks list as it tends to produce less fragmentation than adding to the tail. */ _Heap_Free_list_insert_after( _Heap_Free_list_head( heap), block ); block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; 200d938: c2 22 20 04 st %g1, [ %o0 + 4 ] next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; 200d93c: c2 00 a0 04 ld [ %g2 + 4 ], %g1 RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after( Heap_Block *block_before, Heap_Block *new_block ) { Heap_Block *next = block_before->next; 200d940: c8 06 20 08 ld [ %i0 + 8 ], %g4 200d944: 82 08 7f fe and %g1, -2, %g1 next_block->prev_size = block_size; 200d948: c6 22 00 03 st %g3, [ %o0 + %g3 ] } else { /* no coalesce */ /* Add 'block' to the head of the free blocks list as it tends to produce less fragmentation than adding to the tail. */ _Heap_Free_list_insert_after( _Heap_Free_list_head( heap), block ); block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; 200d94c: c2 20 a0 04 st %g1, [ %g2 + 4 ] next_block->prev_size = block_size; /* Statistics */ ++stats->free_blocks; 200d950: c2 06 20 38 ld [ %i0 + 0x38 ], %g1 new_block->next = next; 200d954: c8 22 20 08 st %g4, [ %o0 + 8 ] new_block->prev = block_before; 200d958: f0 22 20 0c st %i0, [ %o0 + 0xc ] #include #include bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) { Heap_Statistics *const stats = &heap->stats; 200d95c: c4 06 20 3c ld [ %i0 + 0x3c ], %g2 block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; next_block->prev_size = block_size; /* Statistics */ ++stats->free_blocks; 200d960: 82 00 60 01 inc %g1 block_before->next = new_block; next->prev = new_block; 200d964: d0 21 20 0c st %o0, [ %g4 + 0xc ] { Heap_Block *next = block_before->next; new_block->next = next; new_block->prev = block_before; block_before->next = new_block; 200d968: d0 26 20 08 st %o0, [ %i0 + 8 ] #include #include bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) { Heap_Statistics *const stats = &heap->stats; 200d96c: 80 a0 80 01 cmp %g2, %g1 200d970: 1a 80 00 03 bcc 200d97c <_Heap_Free+0x1b4> 200d974: c2 26 20 38 st %g1, [ %i0 + 0x38 ] next_block->prev_size = block_size; /* Statistics */ ++stats->free_blocks; if ( stats->max_free_blocks < stats->free_blocks ) { stats->max_free_blocks = stats->free_blocks; 200d978: c2 26 20 3c st %g1, [ %i0 + 0x3c ] } } /* Statistics */ --stats->used_blocks; 200d97c: c4 06 20 40 ld [ %i0 + 0x40 ], %g2 ++stats->frees; 200d980: c2 06 20 50 ld [ %i0 + 0x50 ], %g1 stats->free_size += block_size; 200d984: c8 06 20 30 ld [ %i0 + 0x30 ], %g4 stats->max_free_blocks = stats->free_blocks; } } /* Statistics */ --stats->used_blocks; 200d988: 84 00 bf ff add %g2, -1, %g2 ++stats->frees; stats->free_size += block_size; 200d98c: 86 01 00 03 add %g4, %g3, %g3 stats->max_free_blocks = stats->free_blocks; } } /* Statistics */ --stats->used_blocks; 200d990: c4 26 20 40 st %g2, [ %i0 + 0x40 ] ++stats->frees; stats->free_size += block_size; 200d994: c6 26 20 30 st %g3, [ %i0 + 0x30 ] } } /* Statistics */ --stats->used_blocks; ++stats->frees; 200d998: 82 00 60 01 inc %g1 200d99c: c2 26 20 50 st %g1, [ %i0 + 0x50 ] stats->free_size += block_size; return( true ); 200d9a0: 81 c7 e0 08 ret 200d9a4: 91 e8 20 01 restore %g0, 1, %o0 } 200d9a8: 81 c7 e0 08 ret 200d9ac: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 0201babc <_Heap_Size_of_alloc_area>: bool _Heap_Size_of_alloc_area( Heap_Control *heap, void *alloc_begin_ptr, uintptr_t *alloc_size ) { 201babc: 9d e3 bf a0 save %sp, -96, %sp RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_of_alloc_area( uintptr_t alloc_begin, uintptr_t page_size ) { return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size ) 201bac0: d2 06 20 10 ld [ %i0 + 0x10 ], %o1 201bac4: 7f ff f9 a0 call 201a144 <.urem> 201bac8: 90 10 00 19 mov %i1, %o0 const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block && (uintptr_t) block <= (uintptr_t) heap->last_block; 201bacc: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_of_alloc_area( uintptr_t alloc_begin, uintptr_t page_size ) { return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size ) 201bad0: 84 06 7f f8 add %i1, -8, %g2 201bad4: 90 20 80 08 sub %g2, %o0, %o0 RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap( const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block 201bad8: 80 a2 00 01 cmp %o0, %g1 201badc: 0a 80 00 05 bcs 201baf0 <_Heap_Size_of_alloc_area+0x34> 201bae0: 84 10 20 00 clr %g2 201bae4: c4 06 20 24 ld [ %i0 + 0x24 ], %g2 201bae8: 80 a0 80 08 cmp %g2, %o0 201baec: 84 60 3f ff subx %g0, -1, %g2 uintptr_t const alloc_begin = (uintptr_t) alloc_begin_ptr; Heap_Block *block = _Heap_Block_of_alloc_area( alloc_begin, page_size ); Heap_Block *next_block = NULL; uintptr_t block_size = 0; if ( !_Heap_Is_block_in_heap( heap, block ) ) { 201baf0: 80 a0 a0 00 cmp %g2, 0 201baf4: 02 80 00 16 be 201bb4c <_Heap_Size_of_alloc_area+0x90> 201baf8: 01 00 00 00 nop RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); 201bafc: c4 02 20 04 ld [ %o0 + 4 ], %g2 201bb00: 84 08 bf fe and %g2, -2, %g2 201bb04: 84 02 00 02 add %o0, %g2, %g2 RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap( const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block 201bb08: 80 a0 80 01 cmp %g2, %g1 201bb0c: 0a 80 00 05 bcs 201bb20 <_Heap_Size_of_alloc_area+0x64> <== NEVER TAKEN 201bb10: 86 10 20 00 clr %g3 201bb14: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 201bb18: 80 a0 40 02 cmp %g1, %g2 201bb1c: 86 60 3f ff subx %g0, -1, %g3 } block_size = _Heap_Block_size( block ); next_block = _Heap_Block_at( block, block_size ); if ( 201bb20: 80 a0 e0 00 cmp %g3, 0 201bb24: 02 80 00 0a be 201bb4c <_Heap_Size_of_alloc_area+0x90> <== NEVER TAKEN 201bb28: 01 00 00 00 nop 201bb2c: c2 00 a0 04 ld [ %g2 + 4 ], %g1 201bb30: 80 88 60 01 btst 1, %g1 201bb34: 02 80 00 06 be 201bb4c <_Heap_Size_of_alloc_area+0x90> <== NEVER TAKEN 201bb38: 84 20 80 19 sub %g2, %i1, %g2 || !_Heap_Is_prev_used( next_block ) ) { return false; } *alloc_size = (uintptr_t) next_block + HEAP_BLOCK_SIZE_OFFSET - alloc_begin; 201bb3c: 84 00 a0 04 add %g2, 4, %g2 201bb40: c4 26 80 00 st %g2, [ %i2 ] return true; 201bb44: 81 c7 e0 08 ret 201bb48: 91 e8 20 01 restore %g0, 1, %o0 } 201bb4c: 81 c7 e0 08 ret 201bb50: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 02008488 <_Heap_Walk>: bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) { 2008488: 9d e3 bf 88 save %sp, -120, %sp uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; Heap_Block *const last_block = heap->last_block; Heap_Block *block = heap->first_block; Heap_Walk_printer printer = dump ? _Heap_Walk_print : _Heap_Walk_print_nothing; 200848c: 23 00 80 22 sethi %hi(0x2008800), %l1 2008490: 80 8e a0 ff btst 0xff, %i2 2008494: a2 14 61 60 or %l1, 0x160, %l1 Heap_Control *heap, int source, bool dump ) { uintptr_t const page_size = heap->page_size; 2008498: e4 06 20 10 ld [ %i0 + 0x10 ], %l2 uintptr_t const min_block_size = heap->min_block_size; 200849c: e6 06 20 14 ld [ %i0 + 0x14 ], %l3 Heap_Block *const last_block = heap->last_block; 20084a0: e8 06 20 24 ld [ %i0 + 0x24 ], %l4 Heap_Block *block = heap->first_block; Heap_Walk_printer printer = dump ? _Heap_Walk_print : _Heap_Walk_print_nothing; 20084a4: 12 80 00 04 bne 20084b4 <_Heap_Walk+0x2c> 20084a8: e0 06 20 20 ld [ %i0 + 0x20 ], %l0 20084ac: 23 00 80 21 sethi %hi(0x2008400), %l1 20084b0: a2 14 60 80 or %l1, 0x80, %l1 ! 2008480 <_Heap_Walk_print_nothing> if ( !_System_state_Is_up( _System_state_Get() ) ) { 20084b4: 03 00 80 83 sethi %hi(0x2020c00), %g1 20084b8: c2 00 60 80 ld [ %g1 + 0x80 ], %g1 ! 2020c80 <_System_state_Current> 20084bc: 80 a0 60 03 cmp %g1, 3 20084c0: 12 80 01 1e bne 2008938 <_Heap_Walk+0x4b0> 20084c4: 90 10 00 19 mov %i1, %o0 Heap_Block *const first_free_block = _Heap_Free_list_first( heap ); Heap_Block *const last_free_block = _Heap_Free_list_last( heap ); Heap_Block *const first_block = heap->first_block; Heap_Block *const last_block = heap->last_block; (*printer)( 20084c8: da 06 20 18 ld [ %i0 + 0x18 ], %o5 20084cc: c6 06 20 1c ld [ %i0 + 0x1c ], %g3 20084d0: c4 06 20 08 ld [ %i0 + 8 ], %g2 20084d4: c2 06 20 0c ld [ %i0 + 0xc ], %g1 20084d8: c6 23 a0 5c st %g3, [ %sp + 0x5c ] 20084dc: c4 23 a0 68 st %g2, [ %sp + 0x68 ] 20084e0: c2 23 a0 6c st %g1, [ %sp + 0x6c ] 20084e4: e0 23 a0 60 st %l0, [ %sp + 0x60 ] 20084e8: e8 23 a0 64 st %l4, [ %sp + 0x64 ] 20084ec: 92 10 20 00 clr %o1 20084f0: 15 00 80 76 sethi %hi(0x201d800), %o2 20084f4: 96 10 00 12 mov %l2, %o3 20084f8: 94 12 a1 a0 or %o2, 0x1a0, %o2 20084fc: 9f c4 40 00 call %l1 2008500: 98 10 00 13 mov %l3, %o4 heap->area_begin, heap->area_end, first_block, last_block, first_free_block, last_free_block ); if ( page_size == 0 ) { 2008504: 80 a4 a0 00 cmp %l2, 0 2008508: 12 80 00 07 bne 2008524 <_Heap_Walk+0x9c> 200850c: 80 8c a0 07 btst 7, %l2 (*printer)( source, true, "page size is zero\n" ); 2008510: 15 00 80 76 sethi %hi(0x201d800), %o2 2008514: 90 10 00 19 mov %i1, %o0 2008518: 92 10 20 01 mov 1, %o1 200851c: 10 80 00 27 b 20085b8 <_Heap_Walk+0x130> 2008520: 94 12 a2 38 or %o2, 0x238, %o2 return false; } if ( !_Addresses_Is_aligned( (void *) page_size ) ) { 2008524: 22 80 00 08 be,a 2008544 <_Heap_Walk+0xbc> 2008528: 90 10 00 13 mov %l3, %o0 (*printer)( 200852c: 15 00 80 76 sethi %hi(0x201d800), %o2 2008530: 90 10 00 19 mov %i1, %o0 2008534: 96 10 00 12 mov %l2, %o3 2008538: 92 10 20 01 mov 1, %o1 200853c: 10 80 01 05 b 2008950 <_Heap_Walk+0x4c8> 2008540: 94 12 a2 50 or %o2, 0x250, %o2 ); return false; } if ( !_Heap_Is_aligned( min_block_size, page_size ) ) { 2008544: 7f ff e5 65 call 2001ad8 <.urem> 2008548: 92 10 00 12 mov %l2, %o1 200854c: 80 a2 20 00 cmp %o0, 0 2008550: 22 80 00 08 be,a 2008570 <_Heap_Walk+0xe8> 2008554: 90 04 20 08 add %l0, 8, %o0 (*printer)( 2008558: 15 00 80 76 sethi %hi(0x201d800), %o2 200855c: 90 10 00 19 mov %i1, %o0 2008560: 96 10 00 13 mov %l3, %o3 2008564: 92 10 20 01 mov 1, %o1 2008568: 10 80 00 fa b 2008950 <_Heap_Walk+0x4c8> 200856c: 94 12 a2 70 or %o2, 0x270, %o2 ); return false; } if ( 2008570: 7f ff e5 5a call 2001ad8 <.urem> 2008574: 92 10 00 12 mov %l2, %o1 2008578: 80 a2 20 00 cmp %o0, 0 200857c: 22 80 00 08 be,a 200859c <_Heap_Walk+0x114> 2008580: c2 04 20 04 ld [ %l0 + 4 ], %g1 !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size ) ) { (*printer)( 2008584: 15 00 80 76 sethi %hi(0x201d800), %o2 2008588: 90 10 00 19 mov %i1, %o0 200858c: 96 10 00 10 mov %l0, %o3 2008590: 92 10 20 01 mov 1, %o1 2008594: 10 80 00 ef b 2008950 <_Heap_Walk+0x4c8> 2008598: 94 12 a2 98 or %o2, 0x298, %o2 ); return false; } if ( !_Heap_Is_prev_used( first_block ) ) { 200859c: 80 88 60 01 btst 1, %g1 20085a0: 32 80 00 09 bne,a 20085c4 <_Heap_Walk+0x13c> 20085a4: ea 04 00 00 ld [ %l0 ], %l5 (*printer)( 20085a8: 15 00 80 76 sethi %hi(0x201d800), %o2 20085ac: 90 10 00 19 mov %i1, %o0 20085b0: 92 10 20 01 mov 1, %o1 20085b4: 94 12 a2 d0 or %o2, 0x2d0, %o2 20085b8: 9f c4 40 00 call %l1 20085bc: b0 10 20 00 clr %i0 20085c0: 30 80 00 e6 b,a 2008958 <_Heap_Walk+0x4d0> ); return false; } if ( first_block->prev_size != page_size ) { 20085c4: 80 a5 40 12 cmp %l5, %l2 20085c8: 22 80 00 09 be,a 20085ec <_Heap_Walk+0x164> 20085cc: c2 05 20 04 ld [ %l4 + 4 ], %g1 (*printer)( 20085d0: 15 00 80 76 sethi %hi(0x201d800), %o2 20085d4: 90 10 00 19 mov %i1, %o0 20085d8: 96 10 00 15 mov %l5, %o3 20085dc: 98 10 00 12 mov %l2, %o4 20085e0: 92 10 20 01 mov 1, %o1 20085e4: 10 80 00 88 b 2008804 <_Heap_Walk+0x37c> 20085e8: 94 12 a3 00 or %o2, 0x300, %o2 ); return false; } if ( _Heap_Is_free( last_block ) ) { 20085ec: 82 08 7f fe and %g1, -2, %g1 20085f0: 82 05 00 01 add %l4, %g1, %g1 20085f4: c2 00 60 04 ld [ %g1 + 4 ], %g1 20085f8: 80 88 60 01 btst 1, %g1 20085fc: 32 80 00 07 bne,a 2008618 <_Heap_Walk+0x190> 2008600: d6 06 20 08 ld [ %i0 + 8 ], %o3 (*printer)( 2008604: 15 00 80 76 sethi %hi(0x201d800), %o2 2008608: 90 10 00 19 mov %i1, %o0 200860c: 92 10 20 01 mov 1, %o1 2008610: 10 bf ff ea b 20085b8 <_Heap_Walk+0x130> 2008614: 94 12 a3 30 or %o2, 0x330, %o2 int source, Heap_Walk_printer printer, Heap_Control *heap ) { uintptr_t const page_size = heap->page_size; 2008618: ec 06 20 10 ld [ %i0 + 0x10 ], %l6 return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; 200861c: a4 10 00 18 mov %i0, %l2 2008620: 10 80 00 32 b 20086e8 <_Heap_Walk+0x260> 2008624: ae 10 00 0b mov %o3, %l7 RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap( const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block 2008628: 80 a0 80 17 cmp %g2, %l7 200862c: 18 80 00 05 bgu 2008640 <_Heap_Walk+0x1b8> 2008630: 82 10 20 00 clr %g1 2008634: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 2008638: 80 a0 40 17 cmp %g1, %l7 200863c: 82 60 3f ff subx %g0, -1, %g1 const Heap_Block *const first_free_block = _Heap_Free_list_first( heap ); const Heap_Block *prev_block = free_list_tail; const Heap_Block *free_block = first_free_block; while ( free_block != free_list_tail ) { if ( !_Heap_Is_block_in_heap( heap, free_block ) ) { 2008640: 80 a0 60 00 cmp %g1, 0 2008644: 32 80 00 08 bne,a 2008664 <_Heap_Walk+0x1dc> 2008648: 90 05 e0 08 add %l7, 8, %o0 (*printer)( 200864c: 15 00 80 76 sethi %hi(0x201d800), %o2 2008650: 96 10 00 17 mov %l7, %o3 2008654: 90 10 00 19 mov %i1, %o0 2008658: 92 10 20 01 mov 1, %o1 200865c: 10 80 00 bd b 2008950 <_Heap_Walk+0x4c8> 2008660: 94 12 a3 48 or %o2, 0x348, %o2 ); return false; } if ( 2008664: 7f ff e5 1d call 2001ad8 <.urem> 2008668: 92 10 00 16 mov %l6, %o1 200866c: 80 a2 20 00 cmp %o0, 0 2008670: 22 80 00 08 be,a 2008690 <_Heap_Walk+0x208> 2008674: c2 05 e0 04 ld [ %l7 + 4 ], %g1 !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size ) ) { (*printer)( 2008678: 15 00 80 76 sethi %hi(0x201d800), %o2 200867c: 96 10 00 17 mov %l7, %o3 2008680: 90 10 00 19 mov %i1, %o0 2008684: 92 10 20 01 mov 1, %o1 2008688: 10 80 00 b2 b 2008950 <_Heap_Walk+0x4c8> 200868c: 94 12 a3 68 or %o2, 0x368, %o2 ); return false; } if ( _Heap_Is_used( free_block ) ) { 2008690: 82 08 7f fe and %g1, -2, %g1 2008694: 82 05 c0 01 add %l7, %g1, %g1 2008698: c2 00 60 04 ld [ %g1 + 4 ], %g1 200869c: 80 88 60 01 btst 1, %g1 20086a0: 22 80 00 08 be,a 20086c0 <_Heap_Walk+0x238> 20086a4: d8 05 e0 0c ld [ %l7 + 0xc ], %o4 (*printer)( 20086a8: 15 00 80 76 sethi %hi(0x201d800), %o2 20086ac: 96 10 00 17 mov %l7, %o3 20086b0: 90 10 00 19 mov %i1, %o0 20086b4: 92 10 20 01 mov 1, %o1 20086b8: 10 80 00 a6 b 2008950 <_Heap_Walk+0x4c8> 20086bc: 94 12 a3 98 or %o2, 0x398, %o2 ); return false; } if ( free_block->prev != prev_block ) { 20086c0: 80 a3 00 12 cmp %o4, %l2 20086c4: 02 80 00 08 be 20086e4 <_Heap_Walk+0x25c> 20086c8: a4 10 00 17 mov %l7, %l2 (*printer)( 20086cc: 15 00 80 76 sethi %hi(0x201d800), %o2 20086d0: 96 10 00 17 mov %l7, %o3 20086d4: 90 10 00 19 mov %i1, %o0 20086d8: 92 10 20 01 mov 1, %o1 20086dc: 10 80 00 4a b 2008804 <_Heap_Walk+0x37c> 20086e0: 94 12 a3 b8 or %o2, 0x3b8, %o2 return false; } prev_block = free_block; free_block = free_block->next; 20086e4: ee 05 e0 08 ld [ %l7 + 8 ], %l7 const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); const Heap_Block *const first_free_block = _Heap_Free_list_first( heap ); const Heap_Block *prev_block = free_list_tail; const Heap_Block *free_block = first_free_block; while ( free_block != free_list_tail ) { 20086e8: 80 a5 c0 18 cmp %l7, %i0 20086ec: 32 bf ff cf bne,a 2008628 <_Heap_Walk+0x1a0> 20086f0: c4 06 20 20 ld [ %i0 + 0x20 ], %g2 "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( 20086f4: 10 80 00 89 b 2008918 <_Heap_Walk+0x490> 20086f8: 37 00 80 77 sethi %hi(0x201dc00), %i3 uintptr_t const block_size = _Heap_Block_size( block ); bool const prev_used = _Heap_Is_prev_used( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); uintptr_t const next_block_begin = (uintptr_t) next_block; if ( prev_used ) { 20086fc: 80 8d a0 01 btst 1, %l6 - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; 2008700: ac 0d bf fe and %l6, -2, %l6 2008704: 02 80 00 0a be 200872c <_Heap_Walk+0x2a4> 2008708: a4 04 00 16 add %l0, %l6, %l2 (*printer)( 200870c: 90 10 00 19 mov %i1, %o0 2008710: 92 10 20 00 clr %o1 2008714: 94 10 00 1a mov %i2, %o2 2008718: 96 10 00 10 mov %l0, %o3 200871c: 9f c4 40 00 call %l1 2008720: 98 10 00 16 mov %l6, %o4 RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap( const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block 2008724: 10 80 00 0a b 200874c <_Heap_Walk+0x2c4> 2008728: c4 06 20 20 ld [ %i0 + 0x20 ], %g2 "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( 200872c: da 04 00 00 ld [ %l0 ], %o5 2008730: 90 10 00 19 mov %i1, %o0 2008734: 92 10 20 00 clr %o1 2008738: 94 10 00 1b mov %i3, %o2 200873c: 96 10 00 10 mov %l0, %o3 2008740: 9f c4 40 00 call %l1 2008744: 98 10 00 16 mov %l6, %o4 2008748: c4 06 20 20 ld [ %i0 + 0x20 ], %g2 200874c: 80 a0 80 12 cmp %g2, %l2 2008750: 18 80 00 05 bgu 2008764 <_Heap_Walk+0x2dc> <== NEVER TAKEN 2008754: 82 10 20 00 clr %g1 2008758: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 200875c: 80 a0 40 12 cmp %g1, %l2 2008760: 82 60 3f ff subx %g0, -1, %g1 block_size, block->prev_size ); } if ( !_Heap_Is_block_in_heap( heap, next_block ) ) { 2008764: 80 a0 60 00 cmp %g1, 0 2008768: 32 80 00 09 bne,a 200878c <_Heap_Walk+0x304> 200876c: 90 10 00 16 mov %l6, %o0 (*printer)( 2008770: 15 00 80 77 sethi %hi(0x201dc00), %o2 2008774: 90 10 00 19 mov %i1, %o0 2008778: 96 10 00 10 mov %l0, %o3 200877c: 98 10 00 12 mov %l2, %o4 2008780: 92 10 20 01 mov 1, %o1 2008784: 10 80 00 20 b 2008804 <_Heap_Walk+0x37c> 2008788: 94 12 a0 30 or %o2, 0x30, %o2 ); return false; } if ( !_Heap_Is_aligned( block_size, page_size ) ) { 200878c: 7f ff e4 d3 call 2001ad8 <.urem> 2008790: 92 10 00 15 mov %l5, %o1 2008794: 80 a2 20 00 cmp %o0, 0 2008798: 02 80 00 09 be 20087bc <_Heap_Walk+0x334> 200879c: 80 a5 80 13 cmp %l6, %l3 (*printer)( 20087a0: 15 00 80 77 sethi %hi(0x201dc00), %o2 20087a4: 90 10 00 19 mov %i1, %o0 20087a8: 96 10 00 10 mov %l0, %o3 20087ac: 98 10 00 16 mov %l6, %o4 20087b0: 92 10 20 01 mov 1, %o1 20087b4: 10 80 00 14 b 2008804 <_Heap_Walk+0x37c> 20087b8: 94 12 a0 60 or %o2, 0x60, %o2 ); return false; } if ( block_size < min_block_size ) { 20087bc: 1a 80 00 0a bcc 20087e4 <_Heap_Walk+0x35c> 20087c0: 80 a4 80 10 cmp %l2, %l0 (*printer)( 20087c4: 15 00 80 77 sethi %hi(0x201dc00), %o2 20087c8: 90 10 00 19 mov %i1, %o0 20087cc: 96 10 00 10 mov %l0, %o3 20087d0: 98 10 00 16 mov %l6, %o4 20087d4: 9a 10 00 13 mov %l3, %o5 20087d8: 92 10 20 01 mov 1, %o1 20087dc: 10 80 00 3b b 20088c8 <_Heap_Walk+0x440> 20087e0: 94 12 a0 90 or %o2, 0x90, %o2 ); return false; } if ( next_block_begin <= block_begin ) { 20087e4: 38 80 00 0b bgu,a 2008810 <_Heap_Walk+0x388> 20087e8: c2 04 a0 04 ld [ %l2 + 4 ], %g1 (*printer)( 20087ec: 15 00 80 77 sethi %hi(0x201dc00), %o2 20087f0: 90 10 00 19 mov %i1, %o0 20087f4: 96 10 00 10 mov %l0, %o3 20087f8: 98 10 00 12 mov %l2, %o4 20087fc: 92 10 20 01 mov 1, %o1 2008800: 94 12 a0 c0 or %o2, 0xc0, %o2 2008804: 9f c4 40 00 call %l1 2008808: b0 10 20 00 clr %i0 200880c: 30 80 00 53 b,a 2008958 <_Heap_Walk+0x4d0> ); return false; } if ( !_Heap_Is_prev_used( next_block ) ) { 2008810: 80 88 60 01 btst 1, %g1 2008814: 32 80 00 46 bne,a 200892c <_Heap_Walk+0x4a4> 2008818: a0 10 00 12 mov %l2, %l0 block->size_and_flag = size | flag; } RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block ) { return block->size_and_flag & HEAP_PREV_BLOCK_USED; 200881c: fa 04 20 04 ld [ %l0 + 4 ], %i5 Heap_Block *const last_free_block = _Heap_Free_list_last( heap ); bool const prev_used = _Heap_Is_prev_used( block ); uintptr_t const block_size = _Heap_Block_size( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); (*printer)( 2008820: d8 04 20 0c ld [ %l0 + 0xc ], %o4 return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; 2008824: c2 06 20 08 ld [ %i0 + 8 ], %g1 - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; 2008828: ac 0f 7f fe and %i5, -2, %l6 return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; 200882c: 1b 00 80 77 sethi %hi(0x201dc00), %o5 2008830: 80 a3 00 01 cmp %o4, %g1 } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_last( Heap_Control *heap ) { return _Heap_Free_list_tail(heap)->prev; 2008834: c6 06 20 0c ld [ %i0 + 0xc ], %g3 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); 2008838: ae 04 00 16 add %l0, %l6, %l7 return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; 200883c: 02 80 00 07 be 2008858 <_Heap_Walk+0x3d0> 2008840: 9a 13 60 f8 or %o5, 0xf8, %o5 "block 0x%08x: prev 0x%08x%s, next 0x%08x%s\n", block, block->prev, block->prev == first_free_block ? " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), 2008844: 1b 00 80 77 sethi %hi(0x201dc00), %o5 2008848: 80 a3 00 18 cmp %o4, %i0 200884c: 02 80 00 03 be 2008858 <_Heap_Walk+0x3d0> 2008850: 9a 13 61 10 or %o5, 0x110, %o5 2008854: 9a 10 00 1c mov %i4, %o5 Heap_Block *const last_free_block = _Heap_Free_list_last( heap ); bool const prev_used = _Heap_Is_prev_used( block ); uintptr_t const block_size = _Heap_Block_size( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); (*printer)( 2008858: c4 04 20 08 ld [ %l0 + 8 ], %g2 200885c: 03 00 80 77 sethi %hi(0x201dc00), %g1 2008860: 80 a0 80 03 cmp %g2, %g3 2008864: 02 80 00 07 be 2008880 <_Heap_Walk+0x3f8> 2008868: 82 10 61 20 or %g1, 0x120, %g1 " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") 200886c: 03 00 80 77 sethi %hi(0x201dc00), %g1 2008870: 80 a0 80 18 cmp %g2, %i0 2008874: 02 80 00 03 be 2008880 <_Heap_Walk+0x3f8> 2008878: 82 10 61 30 or %g1, 0x130, %g1 200887c: 82 10 00 1c mov %i4, %g1 Heap_Block *const last_free_block = _Heap_Free_list_last( heap ); bool const prev_used = _Heap_Is_prev_used( block ); uintptr_t const block_size = _Heap_Block_size( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); (*printer)( 2008880: c4 23 a0 5c st %g2, [ %sp + 0x5c ] 2008884: c2 23 a0 60 st %g1, [ %sp + 0x60 ] 2008888: 90 10 00 19 mov %i1, %o0 200888c: 92 10 20 00 clr %o1 2008890: 15 00 80 77 sethi %hi(0x201dc00), %o2 2008894: 96 10 00 10 mov %l0, %o3 2008898: 9f c4 40 00 call %l1 200889c: 94 12 a1 40 or %o2, 0x140, %o2 block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") ); if ( block_size != next_block->prev_size ) { 20088a0: da 05 c0 00 ld [ %l7 ], %o5 20088a4: 80 a5 80 0d cmp %l6, %o5 20088a8: 02 80 00 0b be 20088d4 <_Heap_Walk+0x44c> 20088ac: 15 00 80 77 sethi %hi(0x201dc00), %o2 (*printer)( 20088b0: ee 23 a0 5c st %l7, [ %sp + 0x5c ] 20088b4: 90 10 00 19 mov %i1, %o0 20088b8: 96 10 00 10 mov %l0, %o3 20088bc: 98 10 00 16 mov %l6, %o4 20088c0: 92 10 20 01 mov 1, %o1 20088c4: 94 12 a1 70 or %o2, 0x170, %o2 20088c8: 9f c4 40 00 call %l1 20088cc: b0 10 20 00 clr %i0 20088d0: 30 80 00 22 b,a 2008958 <_Heap_Walk+0x4d0> ); return false; } if ( !prev_used ) { 20088d4: 80 8f 60 01 btst 1, %i5 20088d8: 32 80 00 0b bne,a 2008904 <_Heap_Walk+0x47c> 20088dc: c2 06 20 08 ld [ %i0 + 8 ], %g1 (*printer)( 20088e0: 15 00 80 77 sethi %hi(0x201dc00), %o2 20088e4: 90 10 00 19 mov %i1, %o0 20088e8: 96 10 00 10 mov %l0, %o3 20088ec: 92 10 20 01 mov 1, %o1 20088f0: 10 80 00 18 b 2008950 <_Heap_Walk+0x4c8> 20088f4: 94 12 a1 b0 or %o2, 0x1b0, %o2 { const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); const Heap_Block *free_block = _Heap_Free_list_first( heap ); while ( free_block != free_list_tail ) { if ( free_block == block ) { 20088f8: 22 80 00 0d be,a 200892c <_Heap_Walk+0x4a4> 20088fc: a0 10 00 12 mov %l2, %l0 return true; } free_block = free_block->next; 2008900: c2 00 60 08 ld [ %g1 + 8 ], %g1 ) { const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); const Heap_Block *free_block = _Heap_Free_list_first( heap ); while ( free_block != free_list_tail ) { 2008904: 80 a0 40 18 cmp %g1, %i0 2008908: 12 bf ff fc bne 20088f8 <_Heap_Walk+0x470> 200890c: 80 a0 40 10 cmp %g1, %l0 return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( 2008910: 10 80 00 0c b 2008940 <_Heap_Walk+0x4b8> 2008914: 15 00 80 77 sethi %hi(0x201dc00), %o2 bool const prev_used = _Heap_Is_prev_used( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); uintptr_t const next_block_begin = (uintptr_t) next_block; if ( prev_used ) { (*printer)( 2008918: 35 00 80 76 sethi %hi(0x201d800), %i2 " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") 200891c: 39 00 80 77 sethi %hi(0x201dc00), %i4 "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( 2008920: b6 16 e0 08 or %i3, 8, %i3 bool const prev_used = _Heap_Is_prev_used( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); uintptr_t const next_block_begin = (uintptr_t) next_block; if ( prev_used ) { (*printer)( 2008924: b4 16 a3 f0 or %i2, 0x3f0, %i2 " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") 2008928: b8 17 21 08 or %i4, 0x108, %i4 if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { 200892c: 80 a4 00 14 cmp %l0, %l4 2008930: 32 bf ff 73 bne,a 20086fc <_Heap_Walk+0x274> 2008934: ec 04 20 04 ld [ %l0 + 4 ], %l6 block = next_block; } return true; } 2008938: 81 c7 e0 08 ret 200893c: 91 e8 20 01 restore %g0, 1, %o0 return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( 2008940: 90 10 00 19 mov %i1, %o0 2008944: 96 10 00 10 mov %l0, %o3 2008948: 92 10 20 01 mov 1, %o1 200894c: 94 12 a1 e0 or %o2, 0x1e0, %o2 2008950: 9f c4 40 00 call %l1 2008954: b0 10 20 00 clr %i0 2008958: 81 c7 e0 08 ret 200895c: 81 e8 00 00 restore =============================================================================== 020012c0 <_Message_queue_Manager_initialization>: #include #include void _Message_queue_Manager_initialization(void) { } 20012c0: 81 c3 e0 08 retl =============================================================================== 0200771c <_Objects_Allocate>: */ Objects_Control *_Objects_Allocate( Objects_Information *information ) { 200771c: 9d e3 bf a0 save %sp, -96, %sp * If the application is using the optional manager stubs and * still attempts to create the object, the information block * should be all zeroed out because it is in the BSS. So let's * check that code for this manager is even present. */ if ( information->size == 0 ) 2007720: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 */ Objects_Control *_Objects_Allocate( Objects_Information *information ) { 2007724: a0 10 00 18 mov %i0, %l0 * If the application is using the optional manager stubs and * still attempts to create the object, the information block * should be all zeroed out because it is in the BSS. So let's * check that code for this manager is even present. */ if ( information->size == 0 ) 2007728: 80 a0 60 00 cmp %g1, 0 200772c: 02 80 00 20 be 20077ac <_Objects_Allocate+0x90> <== NEVER TAKEN 2007730: b0 10 20 00 clr %i0 /* * OK. The manager should be initialized and configured to have objects. * With any luck, it is safe to attempt to allocate an object. */ the_object = (Objects_Control *) _Chain_Get( &information->Inactive ); 2007734: a2 04 20 20 add %l0, 0x20, %l1 2007738: 7f ff fd 8f call 2006d74 <_Chain_Get> 200773c: 90 10 00 11 mov %l1, %o0 if ( information->auto_extend ) { 2007740: c2 0c 20 12 ldub [ %l0 + 0x12 ], %g1 2007744: 80 a0 60 00 cmp %g1, 0 2007748: 02 80 00 19 be 20077ac <_Objects_Allocate+0x90> 200774c: b0 10 00 08 mov %o0, %i0 /* * If the list is empty then we are out of objects and need to * extend information base. */ if ( !the_object ) { 2007750: 80 a2 20 00 cmp %o0, 0 2007754: 32 80 00 0a bne,a 200777c <_Objects_Allocate+0x60> 2007758: c2 14 20 0a lduh [ %l0 + 0xa ], %g1 _Objects_Extend_information( information ); 200775c: 40 00 00 1e call 20077d4 <_Objects_Extend_information> 2007760: 90 10 00 10 mov %l0, %o0 the_object = (Objects_Control *) _Chain_Get( &information->Inactive ); 2007764: 7f ff fd 84 call 2006d74 <_Chain_Get> 2007768: 90 10 00 11 mov %l1, %o0 } if ( the_object ) { 200776c: b0 92 20 00 orcc %o0, 0, %i0 2007770: 02 80 00 0f be 20077ac <_Objects_Allocate+0x90> 2007774: 01 00 00 00 nop uint32_t block; block = (uint32_t) _Objects_Get_index( the_object->id ) - 2007778: c2 14 20 0a lduh [ %l0 + 0xa ], %g1 200777c: d0 16 20 0a lduh [ %i0 + 0xa ], %o0 _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; 2007780: d2 14 20 14 lduh [ %l0 + 0x14 ], %o1 2007784: 40 00 49 c4 call 2019e94 <.udiv> 2007788: 90 22 00 01 sub %o0, %g1, %o0 200778c: c2 04 20 30 ld [ %l0 + 0x30 ], %g1 2007790: 91 2a 20 02 sll %o0, 2, %o0 information->inactive--; 2007794: c6 14 20 2c lduh [ %l0 + 0x2c ], %g3 block = (uint32_t) _Objects_Get_index( the_object->id ) - _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; 2007798: c4 00 40 08 ld [ %g1 + %o0 ], %g2 information->inactive--; 200779c: 86 00 ff ff add %g3, -1, %g3 block = (uint32_t) _Objects_Get_index( the_object->id ) - _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; 20077a0: 84 00 bf ff add %g2, -1, %g2 information->inactive--; 20077a4: c6 34 20 2c sth %g3, [ %l0 + 0x2c ] block = (uint32_t) _Objects_Get_index( the_object->id ) - _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; 20077a8: c4 20 40 08 st %g2, [ %g1 + %o0 ] information->inactive--; } } return the_object; } 20077ac: 81 c7 e0 08 ret 20077b0: 81 e8 00 00 restore =============================================================================== 020077d4 <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) { 20077d4: 9d e3 bf 90 save %sp, -112, %sp minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) 20077d8: e4 06 20 34 ld [ %i0 + 0x34 ], %l2 20077dc: 80 a4 a0 00 cmp %l2, 0 20077e0: 12 80 00 06 bne 20077f8 <_Objects_Extend_information+0x24> 20077e4: e6 16 20 0a lduh [ %i0 + 0xa ], %l3 20077e8: a0 10 00 13 mov %l3, %l0 20077ec: a2 10 20 00 clr %l1 20077f0: 10 80 00 15 b 2007844 <_Objects_Extend_information+0x70> 20077f4: a8 10 20 00 clr %l4 block_count = 0; else { block_count = information->maximum / information->allocation_size; 20077f8: e2 16 20 14 lduh [ %i0 + 0x14 ], %l1 20077fc: d0 16 20 10 lduh [ %i0 + 0x10 ], %o0 2007800: 40 00 49 a5 call 2019e94 <.udiv> 2007804: 92 10 00 11 mov %l1, %o1 for ( ; block < block_count; block++ ) { if ( information->object_blocks[ block ] == NULL ) 2007808: 82 10 00 11 mov %l1, %g1 /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) block_count = 0; else { block_count = information->maximum / information->allocation_size; 200780c: 91 2a 20 10 sll %o0, 0x10, %o0 2007810: a0 10 00 13 mov %l3, %l0 2007814: a9 32 20 10 srl %o0, 0x10, %l4 for ( ; block < block_count; block++ ) { 2007818: 10 80 00 08 b 2007838 <_Objects_Extend_information+0x64> 200781c: a2 10 20 00 clr %l1 if ( information->object_blocks[ block ] == NULL ) 2007820: c4 04 80 02 ld [ %l2 + %g2 ], %g2 2007824: 80 a0 a0 00 cmp %g2, 0 2007828: 22 80 00 08 be,a 2007848 <_Objects_Extend_information+0x74> 200782c: d0 16 20 14 lduh [ %i0 + 0x14 ], %o0 2007830: a0 04 00 01 add %l0, %g1, %l0 if ( information->object_blocks == NULL ) block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { 2007834: a2 04 60 01 inc %l1 2007838: 80 a4 40 14 cmp %l1, %l4 200783c: 0a bf ff f9 bcs 2007820 <_Objects_Extend_information+0x4c> 2007840: 85 2c 60 02 sll %l1, 2, %g2 else index_base += information->allocation_size; } } maximum = (uint32_t) information->maximum + information->allocation_size; 2007844: d0 16 20 14 lduh [ %i0 + 0x14 ], %o0 2007848: ec 16 20 10 lduh [ %i0 + 0x10 ], %l6 /* * We need to limit the number of objects to the maximum number * representable in the index portion of the object Id. In the * case of 16-bit Ids, this is only 256 object instances. */ if ( maximum > OBJECTS_ID_FINAL_INDEX ) { 200784c: 03 00 00 3f sethi %hi(0xfc00), %g1 else index_base += information->allocation_size; } } maximum = (uint32_t) information->maximum + information->allocation_size; 2007850: ac 02 00 16 add %o0, %l6, %l6 /* * We need to limit the number of objects to the maximum number * representable in the index portion of the object Id. In the * case of 16-bit Ids, this is only 256 object instances. */ if ( maximum > OBJECTS_ID_FINAL_INDEX ) { 2007854: 82 10 63 ff or %g1, 0x3ff, %g1 2007858: 80 a5 80 01 cmp %l6, %g1 200785c: 18 80 00 88 bgu 2007a7c <_Objects_Extend_information+0x2a8><== NEVER TAKEN 2007860: 01 00 00 00 nop /* * Allocate the name table, and the objects and if it fails either return or * generate a fatal error depending on auto-extending being active. */ block_size = information->allocation_size * information->size; 2007864: 40 00 49 52 call 2019dac <.umul> 2007868: d2 06 20 18 ld [ %i0 + 0x18 ], %o1 if ( information->auto_extend ) { 200786c: c2 0e 20 12 ldub [ %i0 + 0x12 ], %g1 2007870: 80 a0 60 00 cmp %g1, 0 2007874: 02 80 00 09 be 2007898 <_Objects_Extend_information+0xc4> 2007878: 01 00 00 00 nop new_object_block = _Workspace_Allocate( block_size ); 200787c: 40 00 08 93 call 2009ac8 <_Workspace_Allocate> 2007880: 01 00 00 00 nop if ( !new_object_block ) 2007884: a4 92 20 00 orcc %o0, 0, %l2 2007888: 32 80 00 08 bne,a 20078a8 <_Objects_Extend_information+0xd4> 200788c: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1 2007890: 81 c7 e0 08 ret 2007894: 81 e8 00 00 restore return; } else { new_object_block = _Workspace_Allocate_or_fatal_error( block_size ); 2007898: 40 00 08 7e call 2009a90 <_Workspace_Allocate_or_fatal_error> 200789c: 01 00 00 00 nop 20078a0: a4 10 00 08 mov %o0, %l2 } /* * If the index_base is the maximum we need to grow the tables. */ if (index_base >= information->maximum ) { 20078a4: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1 20078a8: 80 a4 00 01 cmp %l0, %g1 20078ac: 2a 80 00 53 bcs,a 20079f8 <_Objects_Extend_information+0x224> 20078b0: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 * Allocate the tables and break it up. */ block_size = block_count * (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) + ((maximum + minimum_index) * sizeof(Objects_Control *)); object_blocks = (void**) _Workspace_Allocate( block_size ); 20078b4: 82 05 80 13 add %l6, %l3, %g1 */ /* * Up the block count and maximum */ block_count++; 20078b8: ae 05 20 01 add %l4, 1, %l7 * Allocate the tables and break it up. */ block_size = block_count * (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) + ((maximum + minimum_index) * sizeof(Objects_Control *)); object_blocks = (void**) _Workspace_Allocate( block_size ); 20078bc: 91 2d e0 01 sll %l7, 1, %o0 20078c0: 90 02 00 17 add %o0, %l7, %o0 20078c4: 90 00 40 08 add %g1, %o0, %o0 20078c8: 40 00 08 80 call 2009ac8 <_Workspace_Allocate> 20078cc: 91 2a 20 02 sll %o0, 2, %o0 if ( !object_blocks ) { 20078d0: aa 92 20 00 orcc %o0, 0, %l5 20078d4: 32 80 00 06 bne,a 20078ec <_Objects_Extend_information+0x118> 20078d8: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1 _Workspace_Free( new_object_block ); 20078dc: 40 00 08 84 call 2009aec <_Workspace_Free> 20078e0: 90 10 00 12 mov %l2, %o0 return; 20078e4: 81 c7 e0 08 ret 20078e8: 81 e8 00 00 restore } /* * Break the block into the various sections. */ inactive_per_block = (uint32_t *) _Addresses_Add_offset( 20078ec: af 2d e0 02 sll %l7, 2, %l7 * Take the block count down. Saves all the (block_count - 1) * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { 20078f0: 80 a0 40 13 cmp %g1, %l3 RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset ( const void *base, uintptr_t offset ) { return (void *)((uintptr_t)base + offset); 20078f4: ba 05 40 17 add %l5, %l7, %i5 20078f8: 82 10 20 00 clr %g1 20078fc: 08 80 00 14 bleu 200794c <_Objects_Extend_information+0x178> 2007900: ae 07 40 17 add %i5, %l7, %l7 /* * Copy each section of the table over. This has to be performed as * separate parts as size of each block has changed. */ memcpy( object_blocks, 2007904: d2 06 20 34 ld [ %i0 + 0x34 ], %o1 information->object_blocks, block_count * sizeof(void*) ); 2007908: b9 2d 20 02 sll %l4, 2, %i4 /* * Copy each section of the table over. This has to be performed as * separate parts as size of each block has changed. */ memcpy( object_blocks, 200790c: 40 00 26 4b call 2011238 2007910: 94 10 00 1c mov %i4, %o2 information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, 2007914: d2 06 20 30 ld [ %i0 + 0x30 ], %o1 2007918: 94 10 00 1c mov %i4, %o2 200791c: 40 00 26 47 call 2011238 2007920: 90 10 00 1d mov %i5, %o0 information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, 2007924: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1 2007928: d2 06 20 1c ld [ %i0 + 0x1c ], %o1 200792c: a6 04 c0 01 add %l3, %g1, %l3 2007930: 90 10 00 17 mov %l7, %o0 2007934: 40 00 26 41 call 2011238 2007938: 95 2c e0 02 sll %l3, 2, %o2 */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); 200793c: 10 80 00 08 b 200795c <_Objects_Extend_information+0x188> 2007940: c6 16 20 14 lduh [ %i0 + 0x14 ], %g3 } else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 2007944: 82 00 60 01 inc %g1 local_table[ index ] = NULL; 2007948: c0 20 80 17 clr [ %g2 + %l7 ] } else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 200794c: 80 a0 40 13 cmp %g1, %l3 2007950: 2a bf ff fd bcs,a 2007944 <_Objects_Extend_information+0x170> 2007954: 85 28 60 02 sll %g1, 2, %g2 */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); 2007958: c6 16 20 14 lduh [ %i0 + 0x14 ], %g3 } /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; 200795c: a9 2d 20 02 sll %l4, 2, %l4 inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); 2007960: 85 2c 20 02 sll %l0, 2, %g2 /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; 2007964: c0 27 40 14 clr [ %i5 + %l4 ] } /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; 2007968: c0 25 40 14 clr [ %l5 + %l4 ] inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); 200796c: 86 04 00 03 add %l0, %g3, %g3 2007970: 84 05 c0 02 add %l7, %g2, %g2 * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; 2007974: 10 80 00 04 b 2007984 <_Objects_Extend_information+0x1b0> 2007978: 82 10 00 10 mov %l0, %g1 index < ( information->allocation_size + index_base ); index++ ) { 200797c: 82 00 60 01 inc %g1 2007980: 84 00 a0 04 add %g2, 4, %g2 * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; 2007984: 80 a0 40 03 cmp %g1, %g3 2007988: 2a bf ff fd bcs,a 200797c <_Objects_Extend_information+0x1a8> 200798c: c0 20 80 00 clr [ %g2 ] index < ( information->allocation_size + index_base ); index++ ) { local_table[ index ] = NULL; } _ISR_Disable( level ); 2007990: 7f ff e9 8d call 2001fc4 2007994: 01 00 00 00 nop information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; information->local_table = local_table; information->maximum = (Objects_Maximum) maximum; information->maximum_id = _Objects_Build_id( 2007998: c8 06 00 00 ld [ %i0 ], %g4 200799c: c4 16 20 04 lduh [ %i0 + 4 ], %g2 old_tables = information->object_blocks; information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; information->local_table = local_table; information->maximum = (Objects_Maximum) maximum; 20079a0: ec 36 20 10 sth %l6, [ %i0 + 0x10 ] information->maximum_id = _Objects_Build_id( 20079a4: ad 2d a0 10 sll %l6, 0x10, %l6 local_table[ index ] = NULL; } _ISR_Disable( level ); old_tables = information->object_blocks; 20079a8: e6 06 20 34 ld [ %i0 + 0x34 ], %l3 information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; information->local_table = local_table; information->maximum = (Objects_Maximum) maximum; information->maximum_id = _Objects_Build_id( 20079ac: 83 35 a0 10 srl %l6, 0x10, %g1 _ISR_Disable( level ); old_tables = information->object_blocks; information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; 20079b0: fa 26 20 30 st %i5, [ %i0 + 0x30 ] information->local_table = local_table; 20079b4: ee 26 20 1c st %l7, [ %i0 + 0x1c ] information->maximum = (Objects_Maximum) maximum; information->maximum_id = _Objects_Build_id( 20079b8: 89 29 20 18 sll %g4, 0x18, %g4 20079bc: 85 28 a0 1b sll %g2, 0x1b, %g2 _ISR_Disable( level ); old_tables = information->object_blocks; information->object_blocks = object_blocks; 20079c0: ea 26 20 34 st %l5, [ %i0 + 0x34 ] information->inactive_per_block = inactive_per_block; information->local_table = local_table; information->maximum = (Objects_Maximum) maximum; information->maximum_id = _Objects_Build_id( 20079c4: 07 00 00 40 sethi %hi(0x10000), %g3 20079c8: ac 11 00 03 or %g4, %g3, %l6 20079cc: ac 15 80 02 or %l6, %g2, %l6 20079d0: ac 15 80 01 or %l6, %g1, %l6 20079d4: ec 26 20 0c st %l6, [ %i0 + 0xc ] information->the_class, _Objects_Local_node, information->maximum ); _ISR_Enable( level ); 20079d8: 7f ff e9 7f call 2001fd4 20079dc: 01 00 00 00 nop if ( old_tables ) 20079e0: 80 a4 e0 00 cmp %l3, 0 20079e4: 22 80 00 05 be,a 20079f8 <_Objects_Extend_information+0x224> 20079e8: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 _Workspace_Free( old_tables ); 20079ec: 40 00 08 40 call 2009aec <_Workspace_Free> 20079f0: 90 10 00 13 mov %l3, %o0 } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; 20079f4: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 20079f8: d4 16 20 14 lduh [ %i0 + 0x14 ], %o2 20079fc: d6 06 20 18 ld [ %i0 + 0x18 ], %o3 2007a00: 92 10 00 12 mov %l2, %o1 2007a04: 90 07 bf f4 add %fp, -12, %o0 } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; 2007a08: a3 2c 60 02 sll %l1, 2, %l1 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 2007a0c: a8 06 20 20 add %i0, 0x20, %l4 } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; 2007a10: e4 20 40 11 st %l2, [ %g1 + %l1 ] */ index = index_base; while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) { the_object->id = _Objects_Build_id( 2007a14: 27 00 00 40 sethi %hi(0x10000), %l3 information->object_blocks[ block ] = new_object_block; /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 2007a18: 40 00 16 48 call 200d338 <_Chain_Initialize> 2007a1c: a4 10 00 08 mov %o0, %l2 /* * Move from the local chain, initialise, then append to the inactive chain */ index = index_base; while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) { 2007a20: 30 80 00 0c b,a 2007a50 <_Objects_Extend_information+0x27c> the_object->id = _Objects_Build_id( 2007a24: c4 16 20 04 lduh [ %i0 + 4 ], %g2 2007a28: 83 28 60 18 sll %g1, 0x18, %g1 2007a2c: 85 28 a0 1b sll %g2, 0x1b, %g2 2007a30: 82 10 40 13 or %g1, %l3, %g1 2007a34: 82 10 40 02 or %g1, %g2, %g1 2007a38: 82 10 40 10 or %g1, %l0, %g1 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 2007a3c: 92 10 00 08 mov %o0, %o1 */ index = index_base; while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) { the_object->id = _Objects_Build_id( 2007a40: c2 22 20 08 st %g1, [ %o0 + 8 ] index ); _Chain_Append( &information->Inactive, &the_object->Node ); index++; 2007a44: a0 04 20 01 inc %l0 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 2007a48: 7f ff fc b5 call 2006d1c <_Chain_Append> 2007a4c: 90 10 00 14 mov %l4, %o0 /* * Move from the local chain, initialise, then append to the inactive chain */ index = index_base; while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) { 2007a50: 7f ff fc c9 call 2006d74 <_Chain_Get> 2007a54: 90 10 00 12 mov %l2, %o0 2007a58: 80 a2 20 00 cmp %o0, 0 2007a5c: 32 bf ff f2 bne,a 2007a24 <_Objects_Extend_information+0x250> 2007a60: c2 06 00 00 ld [ %i0 ], %g1 index++; } information->inactive_per_block[ block ] = information->allocation_size; information->inactive = 2007a64: c2 16 20 2c lduh [ %i0 + 0x2c ], %g1 _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 2007a68: c8 16 20 14 lduh [ %i0 + 0x14 ], %g4 2007a6c: c4 06 20 30 ld [ %i0 + 0x30 ], %g2 information->inactive = 2007a70: 82 01 00 01 add %g4, %g1, %g1 _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 2007a74: c8 20 80 11 st %g4, [ %g2 + %l1 ] information->inactive = 2007a78: c2 36 20 2c sth %g1, [ %i0 + 0x2c ] 2007a7c: 81 c7 e0 08 ret 2007a80: 81 e8 00 00 restore =============================================================================== 02007b2c <_Objects_Get_information>: Objects_Information *_Objects_Get_information( Objects_APIs the_api, uint32_t the_class ) { 2007b2c: 9d e3 bf a0 save %sp, -96, %sp Objects_Information *info; int the_class_api_maximum; if ( !the_class ) 2007b30: 80 a6 60 00 cmp %i1, 0 2007b34: 22 80 00 1a be,a 2007b9c <_Objects_Get_information+0x70> 2007b38: b0 10 20 00 clr %i0 /* * This call implicitly validates the_api so we do not call * _Objects_Is_api_valid above here. */ the_class_api_maximum = _Objects_API_maximum_class( the_api ); 2007b3c: 40 00 17 9d call 200d9b0 <_Objects_API_maximum_class> 2007b40: 90 10 00 18 mov %i0, %o0 if ( the_class_api_maximum == 0 ) 2007b44: 80 a2 20 00 cmp %o0, 0 2007b48: 22 80 00 15 be,a 2007b9c <_Objects_Get_information+0x70> 2007b4c: b0 10 20 00 clr %i0 return NULL; if ( the_class > (uint32_t) the_class_api_maximum ) 2007b50: 80 a6 40 08 cmp %i1, %o0 2007b54: 38 80 00 12 bgu,a 2007b9c <_Objects_Get_information+0x70> 2007b58: b0 10 20 00 clr %i0 return NULL; if ( !_Objects_Information_table[ the_api ] ) 2007b5c: b1 2e 20 02 sll %i0, 2, %i0 2007b60: 03 00 80 78 sethi %hi(0x201e000), %g1 2007b64: 82 10 61 f0 or %g1, 0x1f0, %g1 ! 201e1f0 <_Objects_Information_table> 2007b68: c2 00 40 18 ld [ %g1 + %i0 ], %g1 2007b6c: 80 a0 60 00 cmp %g1, 0 2007b70: 02 80 00 0b be 2007b9c <_Objects_Get_information+0x70> <== NEVER TAKEN 2007b74: b0 10 20 00 clr %i0 return NULL; info = _Objects_Information_table[ the_api ][ the_class ]; 2007b78: b3 2e 60 02 sll %i1, 2, %i1 2007b7c: f0 00 40 19 ld [ %g1 + %i1 ], %i0 if ( !info ) 2007b80: 80 a6 20 00 cmp %i0, 0 2007b84: 02 80 00 06 be 2007b9c <_Objects_Get_information+0x70> <== NEVER TAKEN 2007b88: 01 00 00 00 nop * In a multprocessing configuration, we may access remote objects. * Thus we may have 0 local instances and still have a valid object * pointer. */ #if !defined(RTEMS_MULTIPROCESSING) if ( info->maximum == 0 ) 2007b8c: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1 2007b90: 80 a0 60 00 cmp %g1, 0 2007b94: 22 80 00 02 be,a 2007b9c <_Objects_Get_information+0x70> 2007b98: b0 10 20 00 clr %i0 return NULL; #endif return info; } 2007b9c: 81 c7 e0 08 ret 2007ba0: 81 e8 00 00 restore =============================================================================== 020183b4 <_Objects_Get_no_protection>: /* * You can't just extract the index portion or you can get tricked * by a value between 1 and maximum. */ index = id - information->minimum_id + 1; 20183b4: c4 02 20 08 ld [ %o0 + 8 ], %g2 if ( information->maximum >= index ) { 20183b8: c2 12 20 10 lduh [ %o0 + 0x10 ], %g1 /* * You can't just extract the index portion or you can get tricked * by a value between 1 and maximum. */ index = id - information->minimum_id + 1; 20183bc: 84 22 40 02 sub %o1, %g2, %g2 20183c0: 84 00 a0 01 inc %g2 if ( information->maximum >= index ) { 20183c4: 80 a0 40 02 cmp %g1, %g2 20183c8: 0a 80 00 09 bcs 20183ec <_Objects_Get_no_protection+0x38> 20183cc: 85 28 a0 02 sll %g2, 2, %g2 if ( (the_object = information->local_table[ index ]) != NULL ) { 20183d0: c2 02 20 1c ld [ %o0 + 0x1c ], %g1 20183d4: d0 00 40 02 ld [ %g1 + %g2 ], %o0 20183d8: 80 a2 20 00 cmp %o0, 0 20183dc: 02 80 00 05 be 20183f0 <_Objects_Get_no_protection+0x3c> <== NEVER TAKEN 20183e0: 82 10 20 01 mov 1, %g1 *location = OBJECTS_LOCAL; return the_object; 20183e4: 81 c3 e0 08 retl 20183e8: c0 22 80 00 clr [ %o2 ] /* * This isn't supported or required yet for Global objects so * if it isn't local, we don't find it. */ *location = OBJECTS_ERROR; 20183ec: 82 10 20 01 mov 1, %g1 20183f0: 90 10 20 00 clr %o0 return NULL; } 20183f4: 81 c3 e0 08 retl 20183f8: c2 22 80 00 st %g1, [ %o2 ] =============================================================================== 0200c500 <_Objects_Id_to_name>: */ Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) { 200c500: 9d e3 bf 98 save %sp, -104, %sp /* * Caller is trusted for name != NULL. */ tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 200c504: 92 96 20 00 orcc %i0, 0, %o1 200c508: 12 80 00 06 bne 200c520 <_Objects_Id_to_name+0x20> 200c50c: 83 32 60 18 srl %o1, 0x18, %g1 200c510: 03 00 80 bc sethi %hi(0x202f000), %g1 200c514: c2 00 61 00 ld [ %g1 + 0x100 ], %g1 ! 202f100 <_Thread_Executing> 200c518: d2 00 60 08 ld [ %g1 + 8 ], %o1 */ RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API( Objects_Id id ) { return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS); 200c51c: 83 32 60 18 srl %o1, 0x18, %g1 200c520: 82 08 60 07 and %g1, 7, %g1 */ RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid( uint32_t the_api ) { if ( !the_api || the_api > OBJECTS_APIS_LAST ) 200c524: 84 00 7f ff add %g1, -1, %g2 200c528: 80 a0 a0 03 cmp %g2, 3 200c52c: 18 80 00 18 bgu 200c58c <_Objects_Id_to_name+0x8c> 200c530: 83 28 60 02 sll %g1, 2, %g1 the_api = _Objects_Get_API( tmpId ); if ( !_Objects_Is_api_valid( the_api ) ) return OBJECTS_INVALID_ID; if ( !_Objects_Information_table[ the_api ] ) 200c534: 10 80 00 18 b 200c594 <_Objects_Id_to_name+0x94> 200c538: 05 00 80 bb sethi %hi(0x202ec00), %g2 return OBJECTS_INVALID_ID; the_class = _Objects_Get_class( tmpId ); information = _Objects_Information_table[ the_api ][ the_class ]; 200c53c: 85 28 a0 02 sll %g2, 2, %g2 200c540: d0 00 40 02 ld [ %g1 + %g2 ], %o0 if ( !information ) 200c544: 80 a2 20 00 cmp %o0, 0 200c548: 02 80 00 11 be 200c58c <_Objects_Id_to_name+0x8c> <== NEVER TAKEN 200c54c: 01 00 00 00 nop return OBJECTS_INVALID_ID; #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) 200c550: c2 0a 20 38 ldub [ %o0 + 0x38 ], %g1 200c554: 80 a0 60 00 cmp %g1, 0 200c558: 12 80 00 0d bne 200c58c <_Objects_Id_to_name+0x8c> <== NEVER TAKEN 200c55c: 01 00 00 00 nop return OBJECTS_INVALID_ID; #endif the_object = _Objects_Get( information, tmpId, &ignored_location ); 200c560: 7f ff ff cb call 200c48c <_Objects_Get> 200c564: 94 07 bf fc add %fp, -4, %o2 if ( !the_object ) 200c568: 80 a2 20 00 cmp %o0, 0 200c56c: 02 80 00 08 be 200c58c <_Objects_Id_to_name+0x8c> 200c570: 01 00 00 00 nop return OBJECTS_INVALID_ID; *name = the_object->name; 200c574: c2 02 20 0c ld [ %o0 + 0xc ], %g1 _Thread_Enable_dispatch(); 200c578: b0 10 20 00 clr %i0 200c57c: 40 00 02 72 call 200cf44 <_Thread_Enable_dispatch> 200c580: c2 26 40 00 st %g1, [ %i1 ] return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; 200c584: 81 c7 e0 08 ret 200c588: 81 e8 00 00 restore } 200c58c: 81 c7 e0 08 ret 200c590: 91 e8 20 03 restore %g0, 3, %o0 the_api = _Objects_Get_API( tmpId ); if ( !_Objects_Is_api_valid( the_api ) ) return OBJECTS_INVALID_ID; if ( !_Objects_Information_table[ the_api ] ) 200c594: 84 10 a3 a0 or %g2, 0x3a0, %g2 200c598: c2 00 80 01 ld [ %g2 + %g1 ], %g1 200c59c: 80 a0 60 00 cmp %g1, 0 200c5a0: 12 bf ff e7 bne 200c53c <_Objects_Id_to_name+0x3c> 200c5a4: 85 32 60 1b srl %o1, 0x1b, %g2 200c5a8: 30 bf ff f9 b,a 200c58c <_Objects_Id_to_name+0x8c> =============================================================================== 020084b0 <_Objects_Set_name>: bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { 20084b0: 9d e3 bf a0 save %sp, -96, %sp size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); 20084b4: d2 16 20 3a lduh [ %i0 + 0x3a ], %o1 20084b8: 40 00 2a 89 call 2012edc 20084bc: 90 10 00 1a mov %i2, %o0 #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) { 20084c0: c2 0e 20 38 ldub [ %i0 + 0x38 ], %g1 20084c4: 80 a0 60 00 cmp %g1, 0 20084c8: 02 80 00 17 be 2008524 <_Objects_Set_name+0x74> 20084cc: a0 10 00 08 mov %o0, %l0 char *d; d = _Workspace_Allocate( length + 1 ); 20084d0: 90 02 20 01 inc %o0 20084d4: 40 00 07 42 call 200a1dc <_Workspace_Allocate> 20084d8: b0 10 20 00 clr %i0 if ( !d ) 20084dc: a2 92 20 00 orcc %o0, 0, %l1 20084e0: 02 80 00 24 be 2008570 <_Objects_Set_name+0xc0> <== NEVER TAKEN 20084e4: 01 00 00 00 nop return false; if ( the_object->name.name_p ) { 20084e8: d0 06 60 0c ld [ %i1 + 0xc ], %o0 20084ec: 80 a2 20 00 cmp %o0, 0 20084f0: 02 80 00 06 be 2008508 <_Objects_Set_name+0x58> 20084f4: 92 10 00 1a mov %i2, %o1 _Workspace_Free( (void *)the_object->name.name_p ); 20084f8: 40 00 07 42 call 200a200 <_Workspace_Free> 20084fc: 01 00 00 00 nop the_object->name.name_p = NULL; 2008500: c0 26 60 0c clr [ %i1 + 0xc ] } strncpy( d, name, length ); 2008504: 92 10 00 1a mov %i2, %o1 2008508: 90 10 00 11 mov %l1, %o0 200850c: 40 00 2a 39 call 2012df0 2008510: 94 10 00 10 mov %l0, %o2 d[length] = '\0'; 2008514: c0 2c 40 10 clrb [ %l1 + %l0 ] the_object->name.name_p = d; 2008518: e2 26 60 0c st %l1, [ %i1 + 0xc ] 200851c: 81 c7 e0 08 ret 2008520: 91 e8 20 01 restore %g0, 1, %o0 } else #endif { the_object->name.name_u32 = _Objects_Build_name( 2008524: 80 a2 20 01 cmp %o0, 1 2008528: 08 80 00 14 bleu 2008578 <_Objects_Set_name+0xc8> 200852c: c8 0e 80 00 ldub [ %i2 ], %g4 2008530: c6 4e a0 01 ldsb [ %i2 + 1 ], %g3 2008534: 80 a2 20 02 cmp %o0, 2 2008538: 08 80 00 11 bleu 200857c <_Objects_Set_name+0xcc> 200853c: 87 28 e0 10 sll %g3, 0x10, %g3 2008540: c4 4e a0 02 ldsb [ %i2 + 2 ], %g2 2008544: 80 a2 20 03 cmp %o0, 3 2008548: 85 28 a0 08 sll %g2, 8, %g2 200854c: 08 80 00 03 bleu 2008558 <_Objects_Set_name+0xa8> 2008550: 82 10 20 20 mov 0x20, %g1 2008554: c2 4e a0 03 ldsb [ %i2 + 3 ], %g1 2008558: 89 29 20 18 sll %g4, 0x18, %g4 200855c: b0 10 20 01 mov 1, %i0 2008560: 86 10 c0 04 or %g3, %g4, %g3 2008564: 84 10 c0 02 or %g3, %g2, %g2 2008568: 82 10 80 01 or %g2, %g1, %g1 200856c: c2 26 60 0c st %g1, [ %i1 + 0xc ] ); } return true; } 2008570: 81 c7 e0 08 ret 2008574: 81 e8 00 00 restore d[length] = '\0'; the_object->name.name_p = d; } else #endif { the_object->name.name_u32 = _Objects_Build_name( 2008578: 07 00 08 00 sethi %hi(0x200000), %g3 200857c: 05 00 00 08 sethi %hi(0x2000), %g2 2008580: 10 bf ff f6 b 2008558 <_Objects_Set_name+0xa8> 2008584: 82 10 20 20 mov 0x20, %g1 =============================================================================== 020072ac <_POSIX_Condition_variables_Wait_support>: pthread_cond_t *cond, pthread_mutex_t *mutex, Watchdog_Interval timeout, bool already_timedout ) { 20072ac: 9d e3 bf 98 save %sp, -104, %sp register POSIX_Condition_variables_Control *the_cond; Objects_Locations location; int status; int mutex_status; if ( !_POSIX_Mutex_Get( mutex, &location ) ) { 20072b0: a0 07 bf fc add %fp, -4, %l0 20072b4: 90 10 00 19 mov %i1, %o0 20072b8: 40 00 00 7e call 20074b0 <_POSIX_Mutex_Get> 20072bc: 92 10 00 10 mov %l0, %o1 20072c0: 80 a2 20 00 cmp %o0, 0 20072c4: 22 80 00 18 be,a 2007324 <_POSIX_Condition_variables_Wait_support+0x78> 20072c8: b0 10 20 16 mov 0x16, %i0 */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 20072cc: 03 00 80 84 sethi %hi(0x2021000), %g1 20072d0: c4 00 60 50 ld [ %g1 + 0x50 ], %g2 ! 2021050 <_Thread_Dispatch_disable_level> return EINVAL; } _Thread_Unnest_dispatch(); the_cond = _POSIX_Condition_variables_Get( cond, &location ); 20072d4: 92 10 00 10 mov %l0, %o1 20072d8: 84 00 bf ff add %g2, -1, %g2 20072dc: 90 10 00 18 mov %i0, %o0 20072e0: c4 20 60 50 st %g2, [ %g1 + 0x50 ] 20072e4: 7f ff ff 74 call 20070b4 <_POSIX_Condition_variables_Get> 20072e8: 01 00 00 00 nop switch ( location ) { 20072ec: c2 07 bf fc ld [ %fp + -4 ], %g1 20072f0: 80 a0 60 00 cmp %g1, 0 20072f4: 12 80 00 34 bne 20073c4 <_POSIX_Condition_variables_Wait_support+0x118> 20072f8: a0 10 00 08 mov %o0, %l0 case OBJECTS_LOCAL: if ( the_cond->Mutex && ( the_cond->Mutex != *mutex ) ) { 20072fc: c2 02 20 14 ld [ %o0 + 0x14 ], %g1 2007300: 80 a0 60 00 cmp %g1, 0 2007304: 02 80 00 0a be 200732c <_POSIX_Condition_variables_Wait_support+0x80> 2007308: 01 00 00 00 nop 200730c: c4 06 40 00 ld [ %i1 ], %g2 2007310: 80 a0 40 02 cmp %g1, %g2 2007314: 02 80 00 06 be 200732c <_POSIX_Condition_variables_Wait_support+0x80> 2007318: 01 00 00 00 nop _Thread_Enable_dispatch(); 200731c: 40 00 0d 0d call 200a750 <_Thread_Enable_dispatch> 2007320: b0 10 20 16 mov 0x16, %i0 ! 16 return EINVAL; 2007324: 81 c7 e0 08 ret 2007328: 81 e8 00 00 restore } (void) pthread_mutex_unlock( mutex ); 200732c: 40 00 00 f2 call 20076f4 2007330: 90 10 00 19 mov %i1, %o0 _Thread_Enable_dispatch(); return EINVAL; } */ if ( !already_timedout ) { 2007334: 80 8e e0 ff btst 0xff, %i3 2007338: 12 80 00 1c bne 20073a8 <_POSIX_Condition_variables_Wait_support+0xfc> 200733c: 23 00 80 84 sethi %hi(0x2021000), %l1 the_cond->Mutex = *mutex; 2007340: c4 06 40 00 ld [ %i1 ], %g2 _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); _Thread_Executing->Wait.return_code = 0; 2007344: c2 04 61 10 ld [ %l1 + 0x110 ], %g1 return EINVAL; } */ if ( !already_timedout ) { the_cond->Mutex = *mutex; 2007348: c4 24 20 14 st %g2, [ %l0 + 0x14 ] _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); _Thread_Executing->Wait.return_code = 0; 200734c: c0 20 60 34 clr [ %g1 + 0x34 ] _Thread_Executing->Wait.queue = &the_cond->Wait_queue; _Thread_Executing->Wait.id = *cond; 2007350: c6 06 00 00 ld [ %i0 ], %g3 if ( !already_timedout ) { the_cond->Mutex = *mutex; _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); _Thread_Executing->Wait.return_code = 0; _Thread_Executing->Wait.queue = &the_cond->Wait_queue; 2007354: 84 04 20 18 add %l0, 0x18, %g2 _Thread_Executing->Wait.id = *cond; 2007358: c6 20 60 20 st %g3, [ %g1 + 0x20 ] if ( !already_timedout ) { the_cond->Mutex = *mutex; _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); _Thread_Executing->Wait.return_code = 0; _Thread_Executing->Wait.queue = &the_cond->Wait_queue; 200735c: c4 20 60 44 st %g2, [ %g1 + 0x44 ] _Thread_Executing->Wait.id = *cond; _Thread_queue_Enqueue( &the_cond->Wait_queue, timeout ); 2007360: 92 10 00 1a mov %i2, %o1 RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section ( Thread_queue_Control *the_thread_queue ) { the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 2007364: 82 10 20 01 mov 1, %g1 2007368: 90 10 00 02 mov %g2, %o0 200736c: 15 00 80 2c sethi %hi(0x200b000), %o2 2007370: 94 12 a0 a8 or %o2, 0xa8, %o2 ! 200b0a8 <_Thread_queue_Timeout> 2007374: 40 00 0e 5c call 200ace4 <_Thread_queue_Enqueue_with_handler> 2007378: c2 24 20 48 st %g1, [ %l0 + 0x48 ] _Thread_Enable_dispatch(); 200737c: 40 00 0c f5 call 200a750 <_Thread_Enable_dispatch> 2007380: 01 00 00 00 nop /* * Switch ourself out because we blocked as a result of the * _Thread_queue_Enqueue. */ status = _Thread_Executing->Wait.return_code; 2007384: c2 04 61 10 ld [ %l1 + 0x110 ], %g1 2007388: f0 00 60 34 ld [ %g1 + 0x34 ], %i0 if ( status && status != ETIMEDOUT ) 200738c: 80 a6 20 74 cmp %i0, 0x74 2007390: 02 80 00 08 be 20073b0 <_POSIX_Condition_variables_Wait_support+0x104> 2007394: 80 a6 20 00 cmp %i0, 0 2007398: 02 80 00 06 be 20073b0 <_POSIX_Condition_variables_Wait_support+0x104><== ALWAYS TAKEN 200739c: 01 00 00 00 nop 20073a0: 81 c7 e0 08 ret <== NOT EXECUTED 20073a4: 81 e8 00 00 restore <== NOT EXECUTED return status; } else { _Thread_Enable_dispatch(); 20073a8: 40 00 0c ea call 200a750 <_Thread_Enable_dispatch> 20073ac: b0 10 20 74 mov 0x74, %i0 /* * When we get here the dispatch disable level is 0. */ mutex_status = pthread_mutex_lock( mutex ); 20073b0: 40 00 00 b0 call 2007670 20073b4: 90 10 00 19 mov %i1, %o0 if ( mutex_status ) 20073b8: 80 a2 20 00 cmp %o0, 0 20073bc: 02 80 00 03 be 20073c8 <_POSIX_Condition_variables_Wait_support+0x11c> 20073c0: 01 00 00 00 nop 20073c4: b0 10 20 16 mov 0x16, %i0 ! 16 case OBJECTS_ERROR: break; } return EINVAL; } 20073c8: 81 c7 e0 08 ret 20073cc: 81 e8 00 00 restore =============================================================================== 0200fa0c <_POSIX_Keys_Run_destructors>: */ void _POSIX_Keys_Run_destructors( Thread_Control *thread ) { 200fa0c: 9d e3 bf a0 save %sp, -96, %sp Objects_Maximum thread_index = _Objects_Get_index( thread->Object.id ); 200fa10: e6 06 20 08 ld [ %i0 + 8 ], %l3 * * Reference: 17.1.1.2 P1003.1c/Draft 10, p. 163, line 99. */ while ( !done ) { Objects_Maximum index = 0; Objects_Maximum max = _POSIX_Keys_Information.maximum; 200fa14: 25 00 80 79 sethi %hi(0x201e400), %l2 for ( index = 1 ; index <= max ; ++index ) { POSIX_Keys_Control *key = (POSIX_Keys_Control *) _POSIX_Keys_Information.local_table [ index ]; if ( key != NULL && key->destructor != NULL ) { void *value = key->Values [ thread_api ][ thread_index ]; 200fa18: a3 2c e0 10 sll %l3, 0x10, %l1 * * Reference: 17.1.1.2 P1003.1c/Draft 10, p. 163, line 99. */ while ( !done ) { Objects_Maximum index = 0; Objects_Maximum max = _POSIX_Keys_Information.maximum; 200fa1c: a4 14 a2 f8 or %l2, 0x2f8, %l2 */ RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API( Objects_Id id ) { return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS); 200fa20: a7 34 e0 18 srl %l3, 0x18, %l3 for ( index = 1 ; index <= max ; ++index ) { POSIX_Keys_Control *key = (POSIX_Keys_Control *) _POSIX_Keys_Information.local_table [ index ]; if ( key != NULL && key->destructor != NULL ) { void *value = key->Values [ thread_api ][ thread_index ]; 200fa24: a3 34 60 0e srl %l1, 0xe, %l1 200fa28: a6 0c e0 07 and %l3, 7, %l3 200fa2c: a6 04 e0 04 add %l3, 4, %l3 200fa30: a7 2c e0 02 sll %l3, 2, %l3 * * Reference: 17.1.1.2 P1003.1c/Draft 10, p. 163, line 99. */ while ( !done ) { Objects_Maximum index = 0; Objects_Maximum max = _POSIX_Keys_Information.maximum; 200fa34: a0 10 20 01 mov 1, %l0 200fa38: 84 10 20 01 mov 1, %g2 done = true; for ( index = 1 ; index <= max ; ++index ) { 200fa3c: 10 80 00 15 b 200fa90 <_POSIX_Keys_Run_destructors+0x84> 200fa40: e8 14 a0 10 lduh [ %l2 + 0x10 ], %l4 POSIX_Keys_Control *key = (POSIX_Keys_Control *) _POSIX_Keys_Information.local_table [ index ]; 200fa44: c6 04 a0 1c ld [ %l2 + 0x1c ], %g3 200fa48: 83 28 60 02 sll %g1, 2, %g1 200fa4c: c2 00 c0 01 ld [ %g3 + %g1 ], %g1 Objects_Maximum index = 0; Objects_Maximum max = _POSIX_Keys_Information.maximum; done = true; for ( index = 1 ; index <= max ; ++index ) { 200fa50: a0 04 20 01 inc %l0 POSIX_Keys_Control *key = (POSIX_Keys_Control *) _POSIX_Keys_Information.local_table [ index ]; if ( key != NULL && key->destructor != NULL ) { 200fa54: 80 a0 60 00 cmp %g1, 0 200fa58: 02 80 00 0e be 200fa90 <_POSIX_Keys_Run_destructors+0x84> 200fa5c: 86 00 40 13 add %g1, %l3, %g3 200fa60: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 200fa64: 80 a0 60 00 cmp %g1, 0 200fa68: 22 80 00 0b be,a 200fa94 <_POSIX_Keys_Run_destructors+0x88> 200fa6c: 83 2c 20 10 sll %l0, 0x10, %g1 void *value = key->Values [ thread_api ][ thread_index ]; 200fa70: c6 00 e0 04 ld [ %g3 + 4 ], %g3 200fa74: d0 00 c0 11 ld [ %g3 + %l1 ], %o0 if ( value != NULL ) { 200fa78: 80 a2 20 00 cmp %o0, 0 200fa7c: 22 80 00 06 be,a 200fa94 <_POSIX_Keys_Run_destructors+0x88><== ALWAYS TAKEN 200fa80: 83 2c 20 10 sll %l0, 0x10, %g1 key->Values [ thread_api ][ thread_index ] = NULL; (*key->destructor)( value ); 200fa84: 9f c0 40 00 call %g1 <== NOT EXECUTED 200fa88: c0 20 c0 11 clr [ %g3 + %l1 ] <== NOT EXECUTED 200fa8c: 84 10 20 00 clr %g2 <== NOT EXECUTED Objects_Maximum index = 0; Objects_Maximum max = _POSIX_Keys_Information.maximum; done = true; for ( index = 1 ; index <= max ; ++index ) { 200fa90: 83 2c 20 10 sll %l0, 0x10, %g1 200fa94: 83 30 60 10 srl %g1, 0x10, %g1 200fa98: 80 a0 40 14 cmp %g1, %l4 200fa9c: 08 bf ff ea bleu 200fa44 <_POSIX_Keys_Run_destructors+0x38> 200faa0: 80 88 a0 ff btst 0xff, %g2 * number of iterations. An infinite loop may happen if destructors set * thread specific data. This can be considered dubious. * * Reference: 17.1.1.2 P1003.1c/Draft 10, p. 163, line 99. */ while ( !done ) { 200faa4: 02 bf ff e5 be 200fa38 <_POSIX_Keys_Run_destructors+0x2c> <== NEVER TAKEN 200faa8: a0 10 20 01 mov 1, %l0 done = false; } } } } } 200faac: 81 c7 e0 08 ret 200fab0: 81 e8 00 00 restore =============================================================================== 0200b054 <_POSIX_Message_queue_Receive_support>: size_t msg_len, unsigned int *msg_prio, bool wait, Watchdog_Interval timeout ) { 200b054: 9d e3 bf 98 save %sp, -104, %sp RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control_fd *_POSIX_Message_queue_Get_fd ( mqd_t id, Objects_Locations *location ) { return (POSIX_Message_queue_Control_fd *) _Objects_Get( 200b058: 11 00 80 a1 sethi %hi(0x2028400), %o0 200b05c: 94 07 bf fc add %fp, -4, %o2 200b060: 90 12 21 3c or %o0, 0x13c, %o0 200b064: 40 00 0c 9d call 200e2d8 <_Objects_Get> 200b068: 92 10 00 18 mov %i0, %o1 Objects_Locations location; size_t length_out; bool do_wait; the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location ); switch ( location ) { 200b06c: c2 07 bf fc ld [ %fp + -4 ], %g1 size_t msg_len, unsigned int *msg_prio, bool wait, Watchdog_Interval timeout ) { 200b070: 94 10 00 19 mov %i1, %o2 Objects_Locations location; size_t length_out; bool do_wait; the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location ); switch ( location ) { 200b074: 80 a0 60 00 cmp %g1, 0 200b078: 12 80 00 41 bne 200b17c <_POSIX_Message_queue_Receive_support+0x128> 200b07c: 9a 10 00 1d mov %i5, %o5 case OBJECTS_LOCAL: if ( (the_mq_fd->oflag & O_ACCMODE) == O_WRONLY ) { 200b080: c2 02 20 14 ld [ %o0 + 0x14 ], %g1 200b084: 84 08 60 03 and %g1, 3, %g2 200b088: 80 a0 a0 01 cmp %g2, 1 200b08c: 32 80 00 08 bne,a 200b0ac <_POSIX_Message_queue_Receive_support+0x58> 200b090: d0 02 20 10 ld [ %o0 + 0x10 ], %o0 _Thread_Enable_dispatch(); 200b094: 40 00 0e f8 call 200ec74 <_Thread_Enable_dispatch> 200b098: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EBADF ); 200b09c: 40 00 31 00 call 201749c <__errno> 200b0a0: 01 00 00 00 nop 200b0a4: 10 80 00 0b b 200b0d0 <_POSIX_Message_queue_Receive_support+0x7c> 200b0a8: 82 10 20 09 mov 9, %g1 ! 9 } the_mq = the_mq_fd->Queue; if ( msg_len < the_mq->Message_queue.maximum_message_size ) { 200b0ac: c4 02 20 68 ld [ %o0 + 0x68 ], %g2 200b0b0: 80 a6 80 02 cmp %i2, %g2 200b0b4: 1a 80 00 09 bcc 200b0d8 <_POSIX_Message_queue_Receive_support+0x84> 200b0b8: 80 8f 20 ff btst 0xff, %i4 _Thread_Enable_dispatch(); 200b0bc: 40 00 0e ee call 200ec74 <_Thread_Enable_dispatch> 200b0c0: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EMSGSIZE ); 200b0c4: 40 00 30 f6 call 201749c <__errno> 200b0c8: 01 00 00 00 nop 200b0cc: 82 10 20 7a mov 0x7a, %g1 ! 7a 200b0d0: 10 80 00 29 b 200b174 <_POSIX_Message_queue_Receive_support+0x120> 200b0d4: c2 22 00 00 st %g1, [ %o0 ] length_out = -1; /* * A timed receive with a bad time will do a poll regardless. */ if ( wait ) 200b0d8: 02 80 00 05 be 200b0ec <_POSIX_Message_queue_Receive_support+0x98><== NEVER TAKEN 200b0dc: 98 10 20 00 clr %o4 do_wait = (the_mq_fd->oflag & O_NONBLOCK) ? false : true; 200b0e0: 99 30 60 0e srl %g1, 0xe, %o4 200b0e4: 98 1b 20 01 xor %o4, 1, %o4 200b0e8: 98 0b 20 01 and %o4, 1, %o4 /* * Now if something goes wrong, we return a "length" of -1 * to indicate an error. */ length_out = -1; 200b0ec: 82 10 3f ff mov -1, %g1 do_wait = wait; /* * Now perform the actual message receive */ _CORE_message_queue_Seize( 200b0f0: 90 02 20 1c add %o0, 0x1c, %o0 200b0f4: 92 10 00 18 mov %i0, %o1 200b0f8: 98 0b 20 01 and %o4, 1, %o4 200b0fc: 96 07 bf f8 add %fp, -8, %o3 200b100: 40 00 08 4d call 200d234 <_CORE_message_queue_Seize> 200b104: c2 27 bf f8 st %g1, [ %fp + -8 ] &length_out, do_wait, timeout ); _Thread_Enable_dispatch(); 200b108: 40 00 0e db call 200ec74 <_Thread_Enable_dispatch> 200b10c: 01 00 00 00 nop if (msg_prio) { 200b110: 80 a6 e0 00 cmp %i3, 0 200b114: 02 80 00 08 be 200b134 <_POSIX_Message_queue_Receive_support+0xe0><== NEVER TAKEN 200b118: 03 00 80 a0 sethi %hi(0x2028000), %g1 *msg_prio = _POSIX_Message_queue_Priority_from_core( 200b11c: c2 00 60 e0 ld [ %g1 + 0xe0 ], %g1 ! 20280e0 <_Thread_Executing> 200b120: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 200b124: 83 38 a0 1f sra %g2, 0x1f, %g1 200b128: 84 18 40 02 xor %g1, %g2, %g2 200b12c: 82 20 80 01 sub %g2, %g1, %g1 200b130: c2 26 c0 00 st %g1, [ %i3 ] _Thread_Executing->Wait.count ); } if ( !_Thread_Executing->Wait.return_code ) 200b134: 37 00 80 a0 sethi %hi(0x2028000), %i3 200b138: c2 06 e0 e0 ld [ %i3 + 0xe0 ], %g1 ! 20280e0 <_Thread_Executing> 200b13c: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 200b140: 80 a0 60 00 cmp %g1, 0 200b144: 12 80 00 05 bne 200b158 <_POSIX_Message_queue_Receive_support+0x104> 200b148: 01 00 00 00 nop return length_out; 200b14c: f0 07 bf f8 ld [ %fp + -8 ], %i0 200b150: 81 c7 e0 08 ret 200b154: 81 e8 00 00 restore rtems_set_errno_and_return_minus_one( 200b158: 40 00 30 d1 call 201749c <__errno> 200b15c: 01 00 00 00 nop 200b160: c2 06 e0 e0 ld [ %i3 + 0xe0 ], %g1 200b164: b4 10 00 08 mov %o0, %i2 200b168: 40 00 00 9b call 200b3d4 <_POSIX_Message_queue_Translate_core_message_queue_return_code> 200b16c: d0 00 60 34 ld [ %g1 + 0x34 ], %o0 200b170: d0 26 80 00 st %o0, [ %i2 ] 200b174: 81 c7 e0 08 ret 200b178: 91 e8 3f ff restore %g0, -1, %o0 #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EBADF ); 200b17c: 40 00 30 c8 call 201749c <__errno> 200b180: b0 10 3f ff mov -1, %i0 200b184: 82 10 20 09 mov 9, %g1 200b188: c2 22 00 00 st %g1, [ %o0 ] } 200b18c: 81 c7 e0 08 ret 200b190: 81 e8 00 00 restore =============================================================================== 0200ca24 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch>: Thread_Control *the_thread ) { POSIX_API_Control *thread_support; thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ]; 200ca24: c2 02 21 6c ld [ %o0 + 0x16c ], %g1 if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE && 200ca28: c4 00 60 d4 ld [ %g1 + 0xd4 ], %g2 200ca2c: 80 a0 a0 00 cmp %g2, 0 200ca30: 12 80 00 12 bne 200ca78 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x54><== NEVER TAKEN 200ca34: 01 00 00 00 nop thread_support->cancelability_type == PTHREAD_CANCEL_ASYNCHRONOUS && 200ca38: c4 00 60 d8 ld [ %g1 + 0xd8 ], %g2 200ca3c: 80 a0 a0 01 cmp %g2, 1 200ca40: 12 80 00 0e bne 200ca78 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x54> 200ca44: 01 00 00 00 nop thread_support->cancelation_requested ) { 200ca48: c2 00 60 dc ld [ %g1 + 0xdc ], %g1 200ca4c: 80 a0 60 00 cmp %g1, 0 200ca50: 02 80 00 0a be 200ca78 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x54> 200ca54: 01 00 00 00 nop */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 200ca58: 03 00 80 7e sethi %hi(0x201f800), %g1 200ca5c: c4 00 60 90 ld [ %g1 + 0x90 ], %g2 ! 201f890 <_Thread_Dispatch_disable_level> _Thread_Unnest_dispatch(); _POSIX_Thread_Exit( the_thread, PTHREAD_CANCELED ); 200ca60: 92 10 3f ff mov -1, %o1 200ca64: 84 00 bf ff add %g2, -1, %g2 200ca68: c4 20 60 90 st %g2, [ %g1 + 0x90 ] 200ca6c: 82 13 c0 00 mov %o7, %g1 200ca70: 40 00 01 b9 call 200d154 <_POSIX_Thread_Exit> 200ca74: 9e 10 40 00 mov %g1, %o7 } else _Thread_Enable_dispatch(); 200ca78: 82 13 c0 00 mov %o7, %g1 200ca7c: 7f ff ef c1 call 2008980 <_Thread_Enable_dispatch> 200ca80: 9e 10 40 00 mov %g1, %o7 =============================================================================== 0200de44 <_POSIX_Thread_Translate_sched_param>: int policy, struct sched_param *param, Thread_CPU_budget_algorithms *budget_algorithm, Thread_CPU_budget_algorithm_callout *budget_callout ) { 200de44: 9d e3 bf a0 save %sp, -96, %sp if ( !_POSIX_Priority_Is_valid( param->sched_priority ) ) 200de48: 7f ff ff f4 call 200de18 <_POSIX_Priority_Is_valid> 200de4c: d0 06 40 00 ld [ %i1 ], %o0 200de50: 80 8a 20 ff btst 0xff, %o0 200de54: 02 80 00 37 be 200df30 <_POSIX_Thread_Translate_sched_param+0xec><== NEVER TAKEN 200de58: 80 a6 20 00 cmp %i0, 0 return EINVAL; *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; 200de5c: c0 26 80 00 clr [ %i2 ] *budget_callout = NULL; if ( policy == SCHED_OTHER ) { 200de60: 12 80 00 06 bne 200de78 <_POSIX_Thread_Translate_sched_param+0x34> 200de64: c0 26 c0 00 clr [ %i3 ] *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE; 200de68: 82 10 20 01 mov 1, %g1 200de6c: c2 26 80 00 st %g1, [ %i2 ] return 0; 200de70: 81 c7 e0 08 ret 200de74: 81 e8 00 00 restore } if ( policy == SCHED_FIFO ) { 200de78: 80 a6 20 01 cmp %i0, 1 200de7c: 12 80 00 04 bne 200de8c <_POSIX_Thread_Translate_sched_param+0x48> 200de80: 80 a6 20 02 cmp %i0, 2 *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; 200de84: 10 80 00 29 b 200df28 <_POSIX_Thread_Translate_sched_param+0xe4> 200de88: c0 26 80 00 clr [ %i2 ] return 0; } if ( policy == SCHED_RR ) { 200de8c: 12 80 00 04 bne 200de9c <_POSIX_Thread_Translate_sched_param+0x58> 200de90: 80 a6 20 04 cmp %i0, 4 *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE; 200de94: 10 80 00 25 b 200df28 <_POSIX_Thread_Translate_sched_param+0xe4> 200de98: f0 26 80 00 st %i0, [ %i2 ] return 0; } if ( policy == SCHED_SPORADIC ) { 200de9c: 12 80 00 25 bne 200df30 <_POSIX_Thread_Translate_sched_param+0xec> 200dea0: 01 00 00 00 nop if ( (param->sched_ss_repl_period.tv_sec == 0) && 200dea4: c2 06 60 08 ld [ %i1 + 8 ], %g1 200dea8: 80 a0 60 00 cmp %g1, 0 200deac: 32 80 00 07 bne,a 200dec8 <_POSIX_Thread_Translate_sched_param+0x84> 200deb0: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 (param->sched_ss_repl_period.tv_nsec == 0) ) 200deb4: c2 06 60 0c ld [ %i1 + 0xc ], %g1 200deb8: 80 a0 60 00 cmp %g1, 0 200debc: 02 80 00 1d be 200df30 <_POSIX_Thread_Translate_sched_param+0xec> 200dec0: 01 00 00 00 nop return EINVAL; if ( (param->sched_ss_init_budget.tv_sec == 0) && 200dec4: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 200dec8: 80 a0 60 00 cmp %g1, 0 200decc: 12 80 00 06 bne 200dee4 <_POSIX_Thread_Translate_sched_param+0xa0> 200ded0: 01 00 00 00 nop (param->sched_ss_init_budget.tv_nsec == 0) ) 200ded4: c2 06 60 14 ld [ %i1 + 0x14 ], %g1 200ded8: 80 a0 60 00 cmp %g1, 0 200dedc: 02 80 00 15 be 200df30 <_POSIX_Thread_Translate_sched_param+0xec> 200dee0: 01 00 00 00 nop return EINVAL; if ( _Timespec_To_ticks( ¶m->sched_ss_repl_period ) < 200dee4: 7f ff f1 fa call 200a6cc <_Timespec_To_ticks> 200dee8: 90 06 60 08 add %i1, 8, %o0 200deec: b0 10 00 08 mov %o0, %i0 200def0: 7f ff f1 f7 call 200a6cc <_Timespec_To_ticks> 200def4: 90 06 60 10 add %i1, 0x10, %o0 200def8: 80 a6 00 08 cmp %i0, %o0 200defc: 0a 80 00 0d bcs 200df30 <_POSIX_Thread_Translate_sched_param+0xec> 200df00: 01 00 00 00 nop _Timespec_To_ticks( ¶m->sched_ss_init_budget ) ) return EINVAL; if ( !_POSIX_Priority_Is_valid( param->sched_ss_low_priority ) ) 200df04: 7f ff ff c5 call 200de18 <_POSIX_Priority_Is_valid> 200df08: d0 06 60 04 ld [ %i1 + 4 ], %o0 200df0c: 80 8a 20 ff btst 0xff, %o0 200df10: 02 80 00 08 be 200df30 <_POSIX_Thread_Translate_sched_param+0xec> 200df14: 82 10 20 03 mov 3, %g1 return EINVAL; *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_CALLOUT; 200df18: c2 26 80 00 st %g1, [ %i2 ] *budget_callout = _POSIX_Threads_Sporadic_budget_callout; 200df1c: 03 00 80 1a sethi %hi(0x2006800), %g1 200df20: 82 10 62 dc or %g1, 0x2dc, %g1 ! 2006adc <_POSIX_Threads_Sporadic_budget_callout> 200df24: c2 26 c0 00 st %g1, [ %i3 ] return 0; 200df28: 81 c7 e0 08 ret 200df2c: 91 e8 20 00 restore %g0, 0, %o0 } return EINVAL; } 200df30: 81 c7 e0 08 ret 200df34: 91 e8 20 16 restore %g0, 0x16, %o0 =============================================================================== 0200cb3c <_POSIX_Threads_Delete_extension>: */ void _POSIX_Threads_Delete_extension( Thread_Control *executing __attribute__((unused)), Thread_Control *deleted ) { 200cb3c: 9d e3 bf a0 save %sp, -96, %sp Thread_Control *the_thread; POSIX_API_Control *api; void **value_ptr; api = deleted->API_Extensions[ THREAD_API_POSIX ]; 200cb40: f0 06 61 6c ld [ %i1 + 0x16c ], %i0 /* * Run the POSIX cancellation handlers */ _POSIX_Threads_cancel_run( deleted ); 200cb44: 40 00 0b 98 call 200f9a4 <_POSIX_Threads_cancel_run> 200cb48: 90 10 00 19 mov %i1, %o0 /* * Run all the key destructors */ _POSIX_Keys_Run_destructors( deleted ); 200cb4c: 90 10 00 19 mov %i1, %o0 200cb50: 40 00 0b af call 200fa0c <_POSIX_Keys_Run_destructors> 200cb54: a2 06 20 40 add %i0, 0x40, %l1 /* * Wakeup all the tasks which joined with this one */ value_ptr = (void **) deleted->Wait.return_argument; while ( (the_thread = _Thread_queue_Dequeue( &api->Join_List )) ) 200cb58: 10 80 00 03 b 200cb64 <_POSIX_Threads_Delete_extension+0x28> 200cb5c: e0 06 60 28 ld [ %i1 + 0x28 ], %l0 *(void **)the_thread->Wait.return_argument = value_ptr; 200cb60: e0 20 40 00 st %l0, [ %g1 ] <== NOT EXECUTED /* * Wakeup all the tasks which joined with this one */ value_ptr = (void **) deleted->Wait.return_argument; while ( (the_thread = _Thread_queue_Dequeue( &api->Join_List )) ) 200cb64: 7f ff ef b2 call 2008a2c <_Thread_queue_Dequeue> 200cb68: 90 10 00 11 mov %l1, %o0 200cb6c: 80 a2 20 00 cmp %o0, 0 200cb70: 32 bf ff fc bne,a 200cb60 <_POSIX_Threads_Delete_extension+0x24><== NEVER TAKEN 200cb74: c2 02 20 28 ld [ %o0 + 0x28 ], %g1 <== NOT EXECUTED *(void **)the_thread->Wait.return_argument = value_ptr; if ( api->schedpolicy == SCHED_SPORADIC ) 200cb78: c2 06 20 80 ld [ %i0 + 0x80 ], %g1 200cb7c: 80 a0 60 04 cmp %g1, 4 200cb80: 32 80 00 05 bne,a 200cb94 <_POSIX_Threads_Delete_extension+0x58> 200cb84: c0 26 61 6c clr [ %i1 + 0x16c ] (void) _Watchdog_Remove( &api->Sporadic_timer ); 200cb88: 7f ff f3 6f call 2009944 <_Watchdog_Remove> 200cb8c: 90 06 20 a4 add %i0, 0xa4, %o0 deleted->API_Extensions[ THREAD_API_POSIX ] = NULL; 200cb90: c0 26 61 6c clr [ %i1 + 0x16c ] (void) _Workspace_Free( api ); 200cb94: 7f ff f3 d6 call 2009aec <_Workspace_Free> 200cb98: 81 e8 00 00 restore =============================================================================== 02006840 <_POSIX_Threads_Initialize_user_threads_body>: * * Output parameters: NONE */ void _POSIX_Threads_Initialize_user_threads_body(void) { 2006840: 9d e3 bf 60 save %sp, -160, %sp uint32_t maximum; posix_initialization_threads_table *user_threads; pthread_t thread_id; pthread_attr_t attr; user_threads = Configuration_POSIX_API.User_initialization_threads_table; 2006844: 03 00 80 7b sethi %hi(0x201ec00), %g1 2006848: 82 10 60 2c or %g1, 0x2c, %g1 ! 201ec2c maximum = Configuration_POSIX_API.number_of_initialization_threads; 200684c: e6 00 60 30 ld [ %g1 + 0x30 ], %l3 if ( !user_threads || maximum == 0 ) 2006850: 80 a4 e0 00 cmp %l3, 0 2006854: 02 80 00 1d be 20068c8 <_POSIX_Threads_Initialize_user_threads_body+0x88><== NEVER TAKEN 2006858: e2 00 60 34 ld [ %g1 + 0x34 ], %l1 200685c: 80 a4 60 00 cmp %l1, 0 2006860: 02 80 00 1a be 20068c8 <_POSIX_Threads_Initialize_user_threads_body+0x88><== NEVER TAKEN 2006864: a4 10 20 00 clr %l2 for ( index=0 ; index < maximum ; index++ ) { /* * There is no way for these calls to fail in this situation. */ (void) pthread_attr_init( &attr ); 2006868: a0 07 bf c0 add %fp, -64, %l0 (void) pthread_attr_setinheritsched( &attr, PTHREAD_EXPLICIT_SCHED ); (void) pthread_attr_setstacksize(&attr, user_threads[ index ].stack_size); status = pthread_create( 200686c: a8 07 bf fc add %fp, -4, %l4 for ( index=0 ; index < maximum ; index++ ) { /* * There is no way for these calls to fail in this situation. */ (void) pthread_attr_init( &attr ); 2006870: 40 00 1d b2 call 200df38 2006874: 90 10 00 10 mov %l0, %o0 (void) pthread_attr_setinheritsched( &attr, PTHREAD_EXPLICIT_SCHED ); 2006878: 92 10 20 02 mov 2, %o1 200687c: 40 00 1d ba call 200df64 2006880: 90 10 00 10 mov %l0, %o0 (void) pthread_attr_setstacksize(&attr, user_threads[ index ].stack_size); 2006884: d2 04 60 04 ld [ %l1 + 4 ], %o1 2006888: 40 00 1d c7 call 200dfa4 200688c: 90 10 00 10 mov %l0, %o0 status = pthread_create( 2006890: d4 04 40 00 ld [ %l1 ], %o2 2006894: 90 10 00 14 mov %l4, %o0 2006898: 92 10 00 10 mov %l0, %o1 200689c: 7f ff ff 14 call 20064ec 20068a0: 96 10 20 00 clr %o3 &thread_id, &attr, user_threads[ index ].thread_entry, NULL ); if ( status ) 20068a4: 94 92 20 00 orcc %o0, 0, %o2 20068a8: 22 80 00 05 be,a 20068bc <_POSIX_Threads_Initialize_user_threads_body+0x7c> 20068ac: a4 04 a0 01 inc %l2 _Internal_error_Occurred( INTERNAL_ERROR_POSIX_API, true, status ); 20068b0: 90 10 20 02 mov 2, %o0 20068b4: 40 00 07 de call 200882c <_Internal_error_Occurred> 20068b8: 92 10 20 01 mov 1, %o1 * * Setting the attributes explicitly is critical, since we don't want * to inherit the idle tasks attributes. */ for ( index=0 ; index < maximum ; index++ ) { 20068bc: 80 a4 80 13 cmp %l2, %l3 20068c0: 0a bf ff ec bcs 2006870 <_POSIX_Threads_Initialize_user_threads_body+0x30><== NEVER TAKEN 20068c4: a2 04 60 08 add %l1, 8, %l1 20068c8: 81 c7 e0 08 ret 20068cc: 81 e8 00 00 restore =============================================================================== 0200ccf8 <_POSIX_Threads_Sporadic_budget_TSR>: */ void _POSIX_Threads_Sporadic_budget_TSR( Objects_Id id __attribute__((unused)), void *argument ) { 200ccf8: 9d e3 bf a0 save %sp, -96, %sp Thread_Control *the_thread; POSIX_API_Control *api; the_thread = argument; api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 200ccfc: e0 06 61 6c ld [ %i1 + 0x16c ], %l0 /* ticks is guaranteed to be at least one */ ticks = _Timespec_To_ticks( &api->schedparam.sched_ss_init_budget ); 200cd00: 40 00 04 5a call 200de68 <_Timespec_To_ticks> 200cd04: 90 04 20 94 add %l0, 0x94, %o0 200cd08: 03 00 80 75 sethi %hi(0x201d400), %g1 200cd0c: c4 04 20 84 ld [ %l0 + 0x84 ], %g2 200cd10: d2 08 63 54 ldub [ %g1 + 0x354 ], %o1 */ #if 0 printk( "TSR %d %d %d\n", the_thread->resource_count, the_thread->current_priority, new_priority ); #endif if ( the_thread->resource_count == 0 ) { 200cd14: c2 06 60 1c ld [ %i1 + 0x1c ], %g1 200cd18: 92 22 40 02 sub %o1, %g2, %o1 api = the_thread->API_Extensions[ THREAD_API_POSIX ]; /* ticks is guaranteed to be at least one */ ticks = _Timespec_To_ticks( &api->schedparam.sched_ss_init_budget ); the_thread->cpu_time_budget = ticks; 200cd1c: d0 26 60 78 st %o0, [ %i1 + 0x78 ] */ #if 0 printk( "TSR %d %d %d\n", the_thread->resource_count, the_thread->current_priority, new_priority ); #endif if ( the_thread->resource_count == 0 ) { 200cd20: 80 a0 60 00 cmp %g1, 0 200cd24: 12 80 00 08 bne 200cd44 <_POSIX_Threads_Sporadic_budget_TSR+0x4c><== NEVER TAKEN 200cd28: d2 26 60 18 st %o1, [ %i1 + 0x18 ] /* * If this would make them less important, then do not change it. */ if ( the_thread->current_priority > new_priority ) { 200cd2c: c2 06 60 14 ld [ %i1 + 0x14 ], %g1 200cd30: 80 a0 40 09 cmp %g1, %o1 200cd34: 08 80 00 04 bleu 200cd44 <_POSIX_Threads_Sporadic_budget_TSR+0x4c> 200cd38: 90 10 00 19 mov %i1, %o0 _Thread_Change_priority( the_thread, new_priority, true ); 200cd3c: 7f ff ec af call 2007ff8 <_Thread_Change_priority> 200cd40: 94 10 20 01 mov 1, %o2 #endif } } /* ticks is guaranteed to be at least one */ ticks = _Timespec_To_ticks( &api->schedparam.sched_ss_repl_period ); 200cd44: 40 00 04 49 call 200de68 <_Timespec_To_ticks> 200cd48: 90 04 20 8c add %l0, 0x8c, %o0 ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 200cd4c: 31 00 80 78 sethi %hi(0x201e000), %i0 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 200cd50: d0 24 20 b0 st %o0, [ %l0 + 0xb0 ] _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 200cd54: b2 04 20 a4 add %l0, 0xa4, %i1 200cd58: 7f ff f2 9f call 20097d4 <_Watchdog_Insert> 200cd5c: 91 ee 23 70 restore %i0, 0x370, %o0 =============================================================================== 0200cca8 <_POSIX_Threads_Sporadic_budget_callout>: ) { POSIX_API_Control *api; uint32_t new_priority; api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 200cca8: c4 02 21 6c ld [ %o0 + 0x16c ], %g2 RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core( int priority ) { return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1); 200ccac: c6 00 a0 88 ld [ %g2 + 0x88 ], %g3 200ccb0: 05 00 80 75 sethi %hi(0x201d400), %g2 200ccb4: d2 08 a3 54 ldub [ %g2 + 0x354 ], %o1 ! 201d754 */ #if 0 printk( "callout %d %d %d\n", the_thread->resource_count, the_thread->current_priority, new_priority ); #endif if ( the_thread->resource_count == 0 ) { 200ccb8: c4 02 20 1c ld [ %o0 + 0x1c ], %g2 200ccbc: 92 22 40 03 sub %o1, %g3, %o1 /* * This will prevent the thread from consuming its entire "budget" * while at low priority. */ the_thread->cpu_time_budget = 0xFFFFFFFF; /* XXX should be based on MAX_U32 */ 200ccc0: 86 10 3f ff mov -1, %g3 new_priority = _POSIX_Priority_To_core(api->schedparam.sched_ss_low_priority); the_thread->real_priority = new_priority; 200ccc4: d2 22 20 18 st %o1, [ %o0 + 0x18 ] */ #if 0 printk( "callout %d %d %d\n", the_thread->resource_count, the_thread->current_priority, new_priority ); #endif if ( the_thread->resource_count == 0 ) { 200ccc8: 80 a0 a0 00 cmp %g2, 0 200cccc: 12 80 00 09 bne 200ccf0 <_POSIX_Threads_Sporadic_budget_callout+0x48><== NEVER TAKEN 200ccd0: c6 22 20 78 st %g3, [ %o0 + 0x78 ] /* * Make sure we are actually lowering it. If they have lowered it * to logically lower than sched_ss_low_priority, then we do not want to * change it. */ if ( the_thread->current_priority < new_priority ) { 200ccd4: c2 02 20 14 ld [ %o0 + 0x14 ], %g1 200ccd8: 80 a0 40 09 cmp %g1, %o1 200ccdc: 1a 80 00 05 bcc 200ccf0 <_POSIX_Threads_Sporadic_budget_callout+0x48><== NEVER TAKEN 200cce0: 94 10 20 01 mov 1, %o2 _Thread_Change_priority( the_thread, new_priority, true ); 200cce4: 82 13 c0 00 mov %o7, %g1 200cce8: 7f ff ec c4 call 2007ff8 <_Thread_Change_priority> 200ccec: 9e 10 40 00 mov %g1, %o7 200ccf0: 81 c3 e0 08 retl <== NOT EXECUTED =============================================================================== 020064cc <_POSIX_Timer_TSR>: * This is the operation that is run when a timer expires */ void _POSIX_Timer_TSR( Objects_Id timer __attribute__((unused)), void *data) { 20064cc: 9d e3 bf a0 save %sp, -96, %sp bool activated; ptimer = (POSIX_Timer_Control *)data; /* Increment the number of expirations. */ ptimer->overrun = ptimer->overrun + 1; 20064d0: c4 06 60 68 ld [ %i1 + 0x68 ], %g2 /* The timer must be reprogrammed */ if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) || 20064d4: c2 06 60 54 ld [ %i1 + 0x54 ], %g1 bool activated; ptimer = (POSIX_Timer_Control *)data; /* Increment the number of expirations. */ ptimer->overrun = ptimer->overrun + 1; 20064d8: 84 00 a0 01 inc %g2 /* The timer must be reprogrammed */ if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) || 20064dc: 80 a0 60 00 cmp %g1, 0 20064e0: 12 80 00 06 bne 20064f8 <_POSIX_Timer_TSR+0x2c> 20064e4: c4 26 60 68 st %g2, [ %i1 + 0x68 ] ( ptimer->timer_data.it_interval.tv_nsec != 0 ) ) { 20064e8: c2 06 60 58 ld [ %i1 + 0x58 ], %g1 20064ec: 80 a0 60 00 cmp %g1, 0 20064f0: 02 80 00 0f be 200652c <_POSIX_Timer_TSR+0x60> <== NEVER TAKEN 20064f4: 82 10 20 04 mov 4, %g1 activated = _POSIX_Timer_Insert_helper( 20064f8: d2 06 60 64 ld [ %i1 + 0x64 ], %o1 20064fc: d4 06 60 08 ld [ %i1 + 8 ], %o2 2006500: 90 06 60 10 add %i1, 0x10, %o0 2006504: 17 00 80 19 sethi %hi(0x2006400), %o3 2006508: 98 10 00 19 mov %i1, %o4 200650c: 40 00 1d 49 call 200da30 <_POSIX_Timer_Insert_helper> 2006510: 96 12 e0 cc or %o3, 0xcc, %o3 ptimer->ticks, ptimer->Object.id, _POSIX_Timer_TSR, ptimer ); if ( !activated ) 2006514: 80 8a 20 ff btst 0xff, %o0 2006518: 02 80 00 0a be 2006540 <_POSIX_Timer_TSR+0x74> <== NEVER TAKEN 200651c: 01 00 00 00 nop return; /* Store the time when the timer was started again */ _TOD_Get( &ptimer->time ); 2006520: 40 00 05 c5 call 2007c34 <_TOD_Get> 2006524: 90 06 60 6c add %i1, 0x6c, %o0 2006528: 82 10 20 03 mov 3, %g1 /* * The sending of the signal to the process running the handling function * specified for that signal is simulated */ if ( pthread_kill ( ptimer->thread_id, ptimer->inf.sigev_signo ) ) { 200652c: d0 06 60 38 ld [ %i1 + 0x38 ], %o0 2006530: d2 06 60 44 ld [ %i1 + 0x44 ], %o1 2006534: 40 00 1c 2a call 200d5dc 2006538: c2 2e 60 3c stb %g1, [ %i1 + 0x3c ] } /* After the signal handler returns, the count of expirations of the * timer must be set to 0. */ ptimer->overrun = 0; 200653c: c0 26 60 68 clr [ %i1 + 0x68 ] 2006540: 81 c7 e0 08 ret 2006544: 81 e8 00 00 restore =============================================================================== 0200fd94 <_POSIX_signals_Check_signal>: bool _POSIX_signals_Check_signal( POSIX_API_Control *api, int signo, bool is_global ) { 200fd94: 9d e3 bf 90 save %sp, -112, %sp siginfo_t siginfo_struct; sigset_t saved_signals_blocked; if ( ! _POSIX_signals_Clear_signals( api, signo, &siginfo_struct, 200fd98: 98 10 20 01 mov 1, %o4 200fd9c: 96 0e a0 ff and %i2, 0xff, %o3 200fda0: a0 07 bf f4 add %fp, -12, %l0 200fda4: 90 10 00 18 mov %i0, %o0 200fda8: 92 10 00 19 mov %i1, %o1 200fdac: 40 00 00 22 call 200fe34 <_POSIX_signals_Clear_signals> 200fdb0: 94 10 00 10 mov %l0, %o2 200fdb4: 80 8a 20 ff btst 0xff, %o0 200fdb8: 02 80 00 1d be 200fe2c <_POSIX_signals_Check_signal+0x98> 200fdbc: 83 2e 60 02 sll %i1, 2, %g1 #endif /* * Just to prevent sending a signal which is currently being ignored. */ if ( _POSIX_signals_Vectors[ signo ].sa_handler == SIG_IGN ) 200fdc0: 07 00 80 7a sethi %hi(0x201e800), %g3 200fdc4: 85 2e 60 04 sll %i1, 4, %g2 200fdc8: 86 10 e0 18 or %g3, 0x18, %g3 200fdcc: 84 20 80 01 sub %g2, %g1, %g2 200fdd0: 88 00 c0 02 add %g3, %g2, %g4 200fdd4: c2 01 20 08 ld [ %g4 + 8 ], %g1 200fdd8: 80 a0 60 01 cmp %g1, 1 200fddc: 02 80 00 14 be 200fe2c <_POSIX_signals_Check_signal+0x98> <== NEVER TAKEN 200fde0: 01 00 00 00 nop /* * Block the signals requested in sa_mask */ saved_signals_blocked = api->signals_blocked; api->signals_blocked |= _POSIX_signals_Vectors[ signo ].sa_mask; 200fde4: c8 01 20 04 ld [ %g4 + 4 ], %g4 return false; /* * Block the signals requested in sa_mask */ saved_signals_blocked = api->signals_blocked; 200fde8: e2 06 20 cc ld [ %i0 + 0xcc ], %l1 api->signals_blocked |= _POSIX_signals_Vectors[ signo ].sa_mask; /* * Here, the signal handler function executes */ switch ( _POSIX_signals_Vectors[ signo ].sa_flags ) { 200fdec: c4 00 c0 02 ld [ %g3 + %g2 ], %g2 /* * Block the signals requested in sa_mask */ saved_signals_blocked = api->signals_blocked; api->signals_blocked |= _POSIX_signals_Vectors[ signo ].sa_mask; 200fdf0: 86 11 00 11 or %g4, %l1, %g3 /* * Here, the signal handler function executes */ switch ( _POSIX_signals_Vectors[ signo ].sa_flags ) { 200fdf4: 80 a0 a0 02 cmp %g2, 2 200fdf8: 12 80 00 08 bne 200fe18 <_POSIX_signals_Check_signal+0x84> 200fdfc: c6 26 20 cc st %g3, [ %i0 + 0xcc ] case SA_SIGINFO: (*_POSIX_signals_Vectors[ signo ].sa_sigaction)( 200fe00: 90 10 00 19 mov %i1, %o0 200fe04: 92 10 00 10 mov %l0, %o1 200fe08: 9f c0 40 00 call %g1 200fe0c: 94 10 20 00 clr %o2 signo, &siginfo_struct, NULL /* context is undefined per 1003.1b-1993, p. 66 */ ); break; 200fe10: 10 80 00 05 b 200fe24 <_POSIX_signals_Check_signal+0x90> 200fe14: e2 26 20 cc st %l1, [ %i0 + 0xcc ] default: (*_POSIX_signals_Vectors[ signo ].sa_handler)( signo ); 200fe18: 9f c0 40 00 call %g1 200fe1c: 90 10 00 19 mov %i1, %o0 } /* * Restore the previous set of blocked signals */ api->signals_blocked = saved_signals_blocked; 200fe20: e2 26 20 cc st %l1, [ %i0 + 0xcc ] return true; 200fe24: 81 c7 e0 08 ret 200fe28: 91 e8 20 01 restore %g0, 1, %o0 } 200fe2c: 81 c7 e0 08 ret 200fe30: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 0201083c <_POSIX_signals_Clear_process_signals>: */ void _POSIX_signals_Clear_process_signals( int signo ) { 201083c: 9d e3 bf a0 save %sp, -96, %sp clear_signal = true; mask = signo_to_mask( signo ); ISR_Level level; _ISR_Disable( level ); 2010840: 7f ff c5 e1 call 2001fc4 2010844: 01 00 00 00 nop if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) { 2010848: 85 2e 20 04 sll %i0, 4, %g2 201084c: 83 2e 20 02 sll %i0, 2, %g1 2010850: 82 20 80 01 sub %g2, %g1, %g1 2010854: 05 00 80 7a sethi %hi(0x201e800), %g2 2010858: 84 10 a0 18 or %g2, 0x18, %g2 ! 201e818 <_POSIX_signals_Vectors> 201085c: c4 00 80 01 ld [ %g2 + %g1 ], %g2 2010860: 80 a0 a0 02 cmp %g2, 2 2010864: 12 80 00 0a bne 201088c <_POSIX_signals_Clear_process_signals+0x50> 2010868: 05 00 80 7a sethi %hi(0x201e800), %g2 if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) ) 201086c: 05 00 80 7a sethi %hi(0x201e800), %g2 2010870: 84 10 a2 10 or %g2, 0x210, %g2 ! 201ea10 <_POSIX_signals_Siginfo> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 2010874: c6 00 40 02 ld [ %g1 + %g2 ], %g3 2010878: 82 00 40 02 add %g1, %g2, %g1 201087c: 82 00 60 04 add %g1, 4, %g1 2010880: 80 a0 c0 01 cmp %g3, %g1 2010884: 12 80 00 0e bne 20108bc <_POSIX_signals_Clear_process_signals+0x80><== NEVER TAKEN 2010888: 05 00 80 7a sethi %hi(0x201e800), %g2 clear_signal = false; } if ( clear_signal ) { _POSIX_signals_Pending &= ~mask; 201088c: c6 00 a2 0c ld [ %g2 + 0x20c ], %g3 ! 201ea0c <_POSIX_signals_Pending> 2010890: b0 06 3f ff add %i0, -1, %i0 2010894: 82 10 20 01 mov 1, %g1 2010898: 83 28 40 18 sll %g1, %i0, %g1 201089c: 82 28 c0 01 andn %g3, %g1, %g1 if ( !_POSIX_signals_Pending ) 20108a0: 80 a0 60 00 cmp %g1, 0 20108a4: 12 80 00 06 bne 20108bc <_POSIX_signals_Clear_process_signals+0x80><== NEVER TAKEN 20108a8: c2 20 a2 0c st %g1, [ %g2 + 0x20c ] _Thread_Do_post_task_switch_extension--; 20108ac: 03 00 80 78 sethi %hi(0x201e000), %g1 20108b0: c4 00 63 34 ld [ %g1 + 0x334 ], %g2 ! 201e334 <_Thread_Do_post_task_switch_extension> 20108b4: 84 00 bf ff add %g2, -1, %g2 20108b8: c4 20 63 34 st %g2, [ %g1 + 0x334 ] } _ISR_Enable( level ); 20108bc: 7f ff c5 c6 call 2001fd4 20108c0: 91 e8 00 08 restore %g0, %o0, %o0 =============================================================================== 02006fe4 <_POSIX_signals_Get_highest>: #include int _POSIX_signals_Get_highest( sigset_t set ) { 2006fe4: 82 10 20 1b mov 0x1b, %g1 ! 1b int signo; for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) { if ( set & signo_to_mask( signo ) ) { 2006fe8: 84 10 20 01 mov 1, %g2 2006fec: 86 00 7f ff add %g1, -1, %g3 2006ff0: 87 28 80 03 sll %g2, %g3, %g3 2006ff4: 80 88 c0 08 btst %g3, %o0 2006ff8: 12 80 00 11 bne 200703c <_POSIX_signals_Get_highest+0x58> <== NEVER TAKEN 2006ffc: 01 00 00 00 nop sigset_t set ) { int signo; for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) { 2007000: 82 00 60 01 inc %g1 2007004: 80 a0 60 20 cmp %g1, 0x20 2007008: 12 bf ff fa bne 2006ff0 <_POSIX_signals_Get_highest+0xc> 200700c: 86 00 7f ff add %g1, -1, %g3 2007010: 82 10 20 01 mov 1, %g1 #if (SIGHUP != 1) #error "Assumption that SIGHUP==1 violated!!" #endif for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) { if ( set & signo_to_mask( signo ) ) { 2007014: 84 10 20 01 mov 1, %g2 2007018: 86 00 7f ff add %g1, -1, %g3 200701c: 87 28 80 03 sll %g2, %g3, %g3 2007020: 80 88 c0 08 btst %g3, %o0 2007024: 12 80 00 06 bne 200703c <_POSIX_signals_Get_highest+0x58> 2007028: 01 00 00 00 nop */ #if (SIGHUP != 1) #error "Assumption that SIGHUP==1 violated!!" #endif for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) { 200702c: 82 00 60 01 inc %g1 2007030: 80 a0 60 1b cmp %g1, 0x1b 2007034: 12 bf ff fa bne 200701c <_POSIX_signals_Get_highest+0x38> <== ALWAYS TAKEN 2007038: 86 00 7f ff add %g1, -1, %g3 * a return 0. This routine will NOT be called unless a signal * is pending in the set passed in. */ found_it: return signo; } 200703c: 81 c3 e0 08 retl 2007040: 90 10 00 01 mov %g1, %o0 =============================================================================== 0200c980 <_POSIX_signals_Post_switch_extension>: */ void _POSIX_signals_Post_switch_extension( Thread_Control *the_thread ) { 200c980: 9d e3 bf a0 save %sp, -96, %sp /* * We need to ensure that if the signal handler executes a call * which overwrites the unblocking status, we restore it. */ hold_errno = _Thread_Executing->Wait.return_code; 200c984: 03 00 80 78 sethi %hi(0x201e000), %g1 POSIX_API_Control *api; int signo; ISR_Level level; int hold_errno; api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 200c988: e0 06 21 6c ld [ %i0 + 0x16c ], %l0 /* * We need to ensure that if the signal handler executes a call * which overwrites the unblocking status, we restore it. */ hold_errno = _Thread_Executing->Wait.return_code; 200c98c: c2 00 63 50 ld [ %g1 + 0x350 ], %g1 /* * api may be NULL in case of a thread close in progress */ if ( !api ) 200c990: 80 a4 20 00 cmp %l0, 0 200c994: 02 80 00 12 be 200c9dc <_POSIX_signals_Post_switch_extension+0x5c><== NEVER TAKEN 200c998: e4 00 60 34 ld [ %g1 + 0x34 ], %l2 * The first thing done is to check there are any signals to be * processed at all. No point in doing this loop otherwise. */ while (1) { _ISR_Disable( level ); if ( !(~api->signals_blocked & 200c99c: 27 00 80 7a sethi %hi(0x201e800), %l3 200c9a0: a6 14 e2 0c or %l3, 0x20c, %l3 ! 201ea0c <_POSIX_signals_Pending> * * The first thing done is to check there are any signals to be * processed at all. No point in doing this loop otherwise. */ while (1) { _ISR_Disable( level ); 200c9a4: 7f ff d5 88 call 2001fc4 200c9a8: 01 00 00 00 nop if ( !(~api->signals_blocked & (api->signals_pending | _POSIX_signals_Pending)) ) { 200c9ac: c6 04 c0 00 ld [ %l3 ], %g3 200c9b0: c2 04 20 d0 ld [ %l0 + 0xd0 ], %g1 * The first thing done is to check there are any signals to be * processed at all. No point in doing this loop otherwise. */ while (1) { _ISR_Disable( level ); if ( !(~api->signals_blocked & 200c9b4: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 (api->signals_pending | _POSIX_signals_Pending)) ) { 200c9b8: 82 10 c0 01 or %g3, %g1, %g1 * The first thing done is to check there are any signals to be * processed at all. No point in doing this loop otherwise. */ while (1) { _ISR_Disable( level ); if ( !(~api->signals_blocked & 200c9bc: 80 a8 40 02 andncc %g1, %g2, %g0 200c9c0: 12 80 00 09 bne 200c9e4 <_POSIX_signals_Post_switch_extension+0x64> 200c9c4: 01 00 00 00 nop (api->signals_pending | _POSIX_signals_Pending)) ) { _ISR_Enable( level ); 200c9c8: 7f ff d5 83 call 2001fd4 200c9cc: 01 00 00 00 nop _POSIX_signals_Check_signal( api, signo, false ); _POSIX_signals_Check_signal( api, signo, true ); } } _Thread_Executing->Wait.return_code = hold_errno; 200c9d0: 03 00 80 78 sethi %hi(0x201e000), %g1 200c9d4: c2 00 63 50 ld [ %g1 + 0x350 ], %g1 ! 201e350 <_Thread_Executing> 200c9d8: e4 20 60 34 st %l2, [ %g1 + 0x34 ] 200c9dc: 81 c7 e0 08 ret 200c9e0: 81 e8 00 00 restore if ( !(~api->signals_blocked & (api->signals_pending | _POSIX_signals_Pending)) ) { _ISR_Enable( level ); break; } _ISR_Enable( level ); 200c9e4: 7f ff d5 7c call 2001fd4 200c9e8: a2 10 20 1b mov 0x1b, %l1 for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) { _POSIX_signals_Check_signal( api, signo, false ); 200c9ec: 92 10 00 11 mov %l1, %o1 200c9f0: 94 10 20 00 clr %o2 200c9f4: 40 00 0c e8 call 200fd94 <_POSIX_signals_Check_signal> 200c9f8: 90 10 00 10 mov %l0, %o0 _POSIX_signals_Check_signal( api, signo, true ); 200c9fc: 92 10 00 11 mov %l1, %o1 200ca00: 90 10 00 10 mov %l0, %o0 200ca04: 40 00 0c e4 call 200fd94 <_POSIX_signals_Check_signal> 200ca08: 94 10 20 01 mov 1, %o2 _ISR_Enable( level ); break; } _ISR_Enable( level ); for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) { 200ca0c: a2 04 60 01 inc %l1 200ca10: 80 a4 60 20 cmp %l1, 0x20 200ca14: 12 bf ff f7 bne 200c9f0 <_POSIX_signals_Post_switch_extension+0x70> 200ca18: 92 10 00 11 mov %l1, %o1 200ca1c: a2 10 20 01 mov 1, %l1 _POSIX_signals_Check_signal( api, signo, true ); } /* Unfortunately - nothing like __SIGFIRSTNOTRT in newlib signal .h */ for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) { _POSIX_signals_Check_signal( api, signo, false ); 200ca20: 92 10 00 11 mov %l1, %o1 200ca24: 94 10 20 00 clr %o2 200ca28: 40 00 0c db call 200fd94 <_POSIX_signals_Check_signal> 200ca2c: 90 10 00 10 mov %l0, %o0 _POSIX_signals_Check_signal( api, signo, true ); 200ca30: 92 10 00 11 mov %l1, %o1 200ca34: 90 10 00 10 mov %l0, %o0 200ca38: 40 00 0c d7 call 200fd94 <_POSIX_signals_Check_signal> 200ca3c: 94 10 20 01 mov 1, %o2 _POSIX_signals_Check_signal( api, signo, false ); _POSIX_signals_Check_signal( api, signo, true ); } /* Unfortunately - nothing like __SIGFIRSTNOTRT in newlib signal .h */ for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) { 200ca40: a2 04 60 01 inc %l1 200ca44: 80 a4 60 1b cmp %l1, 0x1b 200ca48: 12 bf ff f7 bne 200ca24 <_POSIX_signals_Post_switch_extension+0xa4> 200ca4c: 92 10 00 11 mov %l1, %o1 200ca50: 30 bf ff d5 b,a 200c9a4 <_POSIX_signals_Post_switch_extension+0x24> =============================================================================== 0200ff98 <_POSIX_signals_Unblock_thread>: bool _POSIX_signals_Unblock_thread( Thread_Control *the_thread, int signo, siginfo_t *info ) { 200ff98: 9d e3 bf a0 save %sp, -96, %sp /* * Is the thread is specifically waiting for a signal? */ if ( _States_Is_interruptible_signal( the_thread->current_state ) ) { 200ff9c: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 200ffa0: 09 04 00 20 sethi %hi(0x10008000), %g4 200ffa4: 86 06 7f ff add %i1, -1, %g3 200ffa8: 9a 08 40 04 and %g1, %g4, %o5 200ffac: 84 10 20 01 mov 1, %g2 200ffb0: 80 a3 40 04 cmp %o5, %g4 bool _POSIX_signals_Unblock_thread( Thread_Control *the_thread, int signo, siginfo_t *info ) { 200ffb4: 92 10 00 1a mov %i2, %o1 200ffb8: 87 28 80 03 sll %g2, %g3, %g3 /* * Is the thread is specifically waiting for a signal? */ if ( _States_Is_interruptible_signal( the_thread->current_state ) ) { 200ffbc: 12 80 00 1a bne 2010024 <_POSIX_signals_Unblock_thread+0x8c> 200ffc0: c8 06 21 6c ld [ %i0 + 0x16c ], %g4 if ( (the_thread->Wait.option & mask) || (~api->signals_blocked & mask) ) { 200ffc4: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 200ffc8: 80 88 c0 01 btst %g3, %g1 200ffcc: 12 80 00 06 bne 200ffe4 <_POSIX_signals_Unblock_thread+0x4c> 200ffd0: 82 10 20 04 mov 4, %g1 200ffd4: c2 01 20 cc ld [ %g4 + 0xcc ], %g1 200ffd8: 80 a8 c0 01 andncc %g3, %g1, %g0 200ffdc: 02 80 00 3d be 20100d0 <_POSIX_signals_Unblock_thread+0x138> 200ffe0: 82 10 20 04 mov 4, %g1 the_thread->Wait.return_code = EINTR; 200ffe4: c2 26 20 34 st %g1, [ %i0 + 0x34 ] the_info = (siginfo_t *) the_thread->Wait.return_argument; if ( !info ) { 200ffe8: 80 a2 60 00 cmp %o1, 0 200ffec: 12 80 00 07 bne 2010008 <_POSIX_signals_Unblock_thread+0x70> 200fff0: d0 06 20 28 ld [ %i0 + 0x28 ], %o0 the_info->si_signo = signo; the_info->si_code = SI_USER; 200fff4: 82 10 20 01 mov 1, %g1 the_thread->Wait.return_code = EINTR; the_info = (siginfo_t *) the_thread->Wait.return_argument; if ( !info ) { the_info->si_signo = signo; 200fff8: f2 22 00 00 st %i1, [ %o0 ] the_info->si_code = SI_USER; the_info->si_value.sival_int = 0; 200fffc: c0 22 20 08 clr [ %o0 + 8 ] the_info = (siginfo_t *) the_thread->Wait.return_argument; if ( !info ) { the_info->si_signo = signo; the_info->si_code = SI_USER; 2010000: 10 80 00 04 b 2010010 <_POSIX_signals_Unblock_thread+0x78> 2010004: c2 22 20 04 st %g1, [ %o0 + 4 ] the_info->si_value.sival_int = 0; } else { *the_info = *info; 2010008: 40 00 04 8c call 2011238 201000c: 94 10 20 0c mov 0xc, %o2 } _Thread_queue_Extract_with_proxy( the_thread ); 2010010: 90 10 00 18 mov %i0, %o0 2010014: 7f ff e3 74 call 2008de4 <_Thread_queue_Extract_with_proxy> 2010018: b0 10 20 01 mov 1, %i0 return true; 201001c: 81 c7 e0 08 ret 2010020: 81 e8 00 00 restore } /* * Thread is not waiting due to a sigwait. */ if ( ~api->signals_blocked & mask ) { 2010024: c8 01 20 cc ld [ %g4 + 0xcc ], %g4 2010028: 80 a8 c0 04 andncc %g3, %g4, %g0 201002c: 02 80 00 29 be 20100d0 <_POSIX_signals_Unblock_thread+0x138> 2010030: 07 04 00 00 sethi %hi(0x10000000), %g3 * + Any other combination, do nothing. */ the_thread->do_post_task_switch_extension = true; if ( _States_Is_interruptible_by_signal( the_thread->current_state ) ) { 2010034: 80 88 40 03 btst %g1, %g3 2010038: 02 80 00 17 be 2010094 <_POSIX_signals_Unblock_thread+0xfc> 201003c: c4 2e 20 74 stb %g2, [ %i0 + 0x74 ] the_thread->Wait.return_code = EINTR; 2010040: 84 10 20 04 mov 4, %g2 2010044: c4 26 20 34 st %g2, [ %i0 + 0x34 ] /* * In pthread_cond_wait, a thread will be blocking on a thread * queue, but is also interruptible by a POSIX signal. */ if ( _States_Is_waiting_on_thread_queue(the_thread->current_state) ) 2010048: 05 00 00 ef sethi %hi(0x3bc00), %g2 201004c: 84 10 a2 e0 or %g2, 0x2e0, %g2 ! 3bee0 2010050: 80 88 40 02 btst %g1, %g2 2010054: 02 80 00 06 be 201006c <_POSIX_signals_Unblock_thread+0xd4> 2010058: 80 88 60 08 btst 8, %g1 _Thread_queue_Extract_with_proxy( the_thread ); 201005c: 7f ff e3 62 call 2008de4 <_Thread_queue_Extract_with_proxy> 2010060: 90 10 00 18 mov %i0, %o0 _Thread_Unblock( the_thread ); } } else if ( the_thread->current_state == STATES_READY ) { if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) _ISR_Signals_to_thread_executing = true; 2010064: 81 c7 e0 08 ret 2010068: 91 e8 20 00 restore %g0, 0, %o0 * In pthread_cond_wait, a thread will be blocking on a thread * queue, but is also interruptible by a POSIX signal. */ if ( _States_Is_waiting_on_thread_queue(the_thread->current_state) ) _Thread_queue_Extract_with_proxy( the_thread ); else if ( _States_Is_delaying(the_thread->current_state) ){ 201006c: 22 bf ff ec be,a 201001c <_POSIX_signals_Unblock_thread+0x84><== NEVER TAKEN 2010070: b0 10 20 00 clr %i0 <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); 2010074: 7f ff e6 34 call 2009944 <_Watchdog_Remove> 2010078: 90 06 20 48 add %i0, 0x48, %o0 RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 201007c: 90 10 00 18 mov %i0, %o0 2010080: 13 04 00 ff sethi %hi(0x1003fc00), %o1 2010084: 7f ff e0 56 call 20081dc <_Thread_Clear_state> 2010088: 92 12 63 f8 or %o1, 0x3f8, %o1 ! 1003fff8 _Thread_Unblock( the_thread ); } } else if ( the_thread->current_state == STATES_READY ) { if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) _ISR_Signals_to_thread_executing = true; 201008c: 81 c7 e0 08 ret 2010090: 91 e8 20 00 restore %g0, 0, %o0 else if ( _States_Is_delaying(the_thread->current_state) ){ (void) _Watchdog_Remove( &the_thread->Timer ); _Thread_Unblock( the_thread ); } } else if ( the_thread->current_state == STATES_READY ) { 2010094: 80 a0 60 00 cmp %g1, 0 2010098: 12 80 00 0e bne 20100d0 <_POSIX_signals_Unblock_thread+0x138><== NEVER TAKEN 201009c: 03 00 80 78 sethi %hi(0x201e000), %g1 if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) 20100a0: c2 00 63 2c ld [ %g1 + 0x32c ], %g1 ! 201e32c <_ISR_Nest_level> 20100a4: 80 a0 60 00 cmp %g1, 0 20100a8: 02 80 00 0a be 20100d0 <_POSIX_signals_Unblock_thread+0x138> 20100ac: 03 00 80 78 sethi %hi(0x201e000), %g1 20100b0: c2 00 63 50 ld [ %g1 + 0x350 ], %g1 ! 201e350 <_Thread_Executing> 20100b4: 80 a6 00 01 cmp %i0, %g1 20100b8: 12 bf ff d9 bne 201001c <_POSIX_signals_Unblock_thread+0x84><== NEVER TAKEN 20100bc: b0 10 20 00 clr %i0 _ISR_Signals_to_thread_executing = true; 20100c0: 03 00 80 78 sethi %hi(0x201e000), %g1 20100c4: c4 28 63 e8 stb %g2, [ %g1 + 0x3e8 ] ! 201e3e8 <_ISR_Signals_to_thread_executing> 20100c8: 81 c7 e0 08 ret 20100cc: 81 e8 00 00 restore 20100d0: b0 10 20 00 clr %i0 } } return false; } 20100d4: 81 c7 e0 08 ret 20100d8: 81 e8 00 00 restore =============================================================================== 020012c8 <_Partition_Manager_initialization>: #include #include void _Partition_Manager_initialization(void) { } 20012c8: 81 c3 e0 08 retl =============================================================================== 0200d0f8 <_RTEMS_tasks_Post_switch_extension>: */ void _RTEMS_tasks_Post_switch_extension( Thread_Control *executing ) { 200d0f8: 9d e3 bf 98 save %sp, -104, %sp RTEMS_API_Control *api; ASR_Information *asr; rtems_signal_set signal_set; Modes_Control prev_mode; api = executing->API_Extensions[ THREAD_API_RTEMS ]; 200d0fc: e0 06 21 68 ld [ %i0 + 0x168 ], %l0 if ( !api ) 200d100: 80 a4 20 00 cmp %l0, 0 200d104: 02 80 00 1d be 200d178 <_RTEMS_tasks_Post_switch_extension+0x80><== NEVER TAKEN 200d108: 01 00 00 00 nop * Signal Processing */ asr = &api->Signal; _ISR_Disable( level ); 200d10c: 7f ff d3 ae call 2001fc4 200d110: 01 00 00 00 nop signal_set = asr->signals_posted; 200d114: e6 04 20 14 ld [ %l0 + 0x14 ], %l3 asr->signals_posted = 0; 200d118: c0 24 20 14 clr [ %l0 + 0x14 ] _ISR_Enable( level ); 200d11c: 7f ff d3 ae call 2001fd4 200d120: 01 00 00 00 nop if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ 200d124: 80 a4 e0 00 cmp %l3, 0 200d128: 02 80 00 14 be 200d178 <_RTEMS_tasks_Post_switch_extension+0x80> 200d12c: a2 07 bf fc add %fp, -4, %l1 return; asr->nest_level += 1; 200d130: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 200d134: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ return; asr->nest_level += 1; 200d138: 82 00 60 01 inc %g1 200d13c: c2 24 20 1c st %g1, [ %l0 + 0x1c ] rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 200d140: 94 10 00 11 mov %l1, %o2 200d144: 25 00 00 3f sethi %hi(0xfc00), %l2 200d148: 40 00 0c 68 call 20102e8 200d14c: 92 14 a3 ff or %l2, 0x3ff, %o1 ! ffff (*asr->handler)( signal_set ); 200d150: c2 04 20 0c ld [ %l0 + 0xc ], %g1 200d154: 9f c0 40 00 call %g1 200d158: 90 10 00 13 mov %l3, %o0 asr->nest_level -= 1; 200d15c: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode ); 200d160: d0 07 bf fc ld [ %fp + -4 ], %o0 asr->nest_level += 1; rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); (*asr->handler)( signal_set ); asr->nest_level -= 1; 200d164: 82 00 7f ff add %g1, -1, %g1 rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode ); 200d168: 92 14 a3 ff or %l2, 0x3ff, %o1 asr->nest_level += 1; rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); (*asr->handler)( signal_set ); asr->nest_level -= 1; 200d16c: c2 24 20 1c st %g1, [ %l0 + 0x1c ] rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode ); 200d170: 40 00 0c 5e call 20102e8 200d174: 94 10 00 11 mov %l1, %o2 200d178: 81 c7 e0 08 ret 200d17c: 81 e8 00 00 restore =============================================================================== 020012e8 <_Rate_monotonic_Manager_initialization>: #include #include void _Rate_monotonic_Manager_initialization(void) { } 20012e8: 81 c3 e0 08 retl =============================================================================== 020412c4 <_Rate_monotonic_Timeout>: void _Rate_monotonic_Timeout( Objects_Id id, void *ignored ) { 20412c4: 9d e3 bf 98 save %sp, -104, %sp 20412c8: 11 00 81 be sethi %hi(0x206f800), %o0 20412cc: 92 10 00 18 mov %i0, %o1 20412d0: 90 12 20 a8 or %o0, 0xa8, %o0 20412d4: 7f ff 35 60 call 200e854 <_Objects_Get> 20412d8: 94 07 bf fc add %fp, -4, %o2 /* * When we get here, the Timer is already off the chain so we do not * have to worry about that -- hence no _Watchdog_Remove(). */ the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 20412dc: c2 07 bf fc ld [ %fp + -4 ], %g1 20412e0: 80 a0 60 00 cmp %g1, 0 20412e4: 12 80 00 26 bne 204137c <_Rate_monotonic_Timeout+0xb8> <== NEVER TAKEN 20412e8: a0 10 00 08 mov %o0, %l0 case OBJECTS_LOCAL: the_thread = the_period->owner; 20412ec: d0 02 20 40 ld [ %o0 + 0x40 ], %o0 if ( _States_Is_waiting_for_period( the_thread->current_state ) && 20412f0: 03 00 00 10 sethi %hi(0x4000), %g1 20412f4: c4 02 20 10 ld [ %o0 + 0x10 ], %g2 20412f8: 80 88 80 01 btst %g2, %g1 20412fc: 22 80 00 0c be,a 204132c <_Rate_monotonic_Timeout+0x68> 2041300: c2 04 20 38 ld [ %l0 + 0x38 ], %g1 the_thread->Wait.id == the_period->Object.id ) { 2041304: c4 02 20 20 ld [ %o0 + 0x20 ], %g2 2041308: c2 04 20 08 ld [ %l0 + 8 ], %g1 204130c: 80 a0 80 01 cmp %g2, %g1 2041310: 32 80 00 07 bne,a 204132c <_Rate_monotonic_Timeout+0x68> 2041314: c2 04 20 38 ld [ %l0 + 0x38 ], %g1 RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 2041318: 13 04 00 ff sethi %hi(0x1003fc00), %o1 204131c: 7f ff 36 bb call 200ee08 <_Thread_Clear_state> 2041320: 92 12 63 f8 or %o1, 0x3f8, %o1 ! 1003fff8 _Thread_Unblock( the_thread ); _Rate_monotonic_Initiate_statistics( the_period ); 2041324: 10 80 00 08 b 2041344 <_Rate_monotonic_Timeout+0x80> 2041328: 90 10 00 10 mov %l0, %o0 _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length ); } else if ( the_period->state == RATE_MONOTONIC_OWNER_IS_BLOCKING ) { 204132c: 80 a0 60 01 cmp %g1, 1 2041330: 12 80 00 0e bne 2041368 <_Rate_monotonic_Timeout+0xa4> 2041334: 82 10 20 04 mov 4, %g1 the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING; 2041338: 82 10 20 03 mov 3, %g1 _Rate_monotonic_Initiate_statistics( the_period ); 204133c: 90 10 00 10 mov %l0, %o0 _Rate_monotonic_Initiate_statistics( the_period ); _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length ); } else if ( the_period->state == RATE_MONOTONIC_OWNER_IS_BLOCKING ) { the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING; 2041340: c2 24 20 38 st %g1, [ %l0 + 0x38 ] _Rate_monotonic_Initiate_statistics( the_period ); 2041344: 7f ff fe ef call 2040f00 <_Rate_monotonic_Initiate_statistics> 2041348: 01 00 00 00 nop Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 204134c: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 2041350: 92 04 20 10 add %l0, 0x10, %o1 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 2041354: c2 24 20 1c st %g1, [ %l0 + 0x1c ] _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 2041358: 11 00 81 bb sethi %hi(0x206ec00), %o0 204135c: 7f ff 3c 3f call 2010458 <_Watchdog_Insert> 2041360: 90 12 22 60 or %o0, 0x260, %o0 ! 206ee60 <_Watchdog_Ticks_chain> 2041364: 30 80 00 02 b,a 204136c <_Rate_monotonic_Timeout+0xa8> _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length ); } else the_period->state = RATE_MONOTONIC_EXPIRED; 2041368: c2 24 20 38 st %g1, [ %l0 + 0x38 ] */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 204136c: 03 00 81 bb sethi %hi(0x206ec00), %g1 2041370: c4 00 61 80 ld [ %g1 + 0x180 ], %g2 ! 206ed80 <_Thread_Dispatch_disable_level> 2041374: 84 00 bf ff add %g2, -1, %g2 2041378: c4 20 61 80 st %g2, [ %g1 + 0x180 ] 204137c: 81 c7 e0 08 ret 2041380: 81 e8 00 00 restore =============================================================================== 020012d0 <_Region_Manager_initialization>: #include #include void _Region_Manager_initialization(void) { } 20012d0: 81 c3 e0 08 retl =============================================================================== 020073b8 <_TOD_Validate>: */ bool _TOD_Validate( const rtems_time_of_day *the_tod ) { 20073b8: 9d e3 bf a0 save %sp, -96, %sp uint32_t days_in_month; uint32_t ticks_per_second; ticks_per_second = TOD_MICROSECONDS_PER_SECOND / rtems_configuration_get_microseconds_per_tick(); 20073bc: 03 00 80 8f sethi %hi(0x2023c00), %g1 if ((!the_tod) || 20073c0: 80 a6 20 00 cmp %i0, 0 20073c4: 02 80 00 2d be 2007478 <_TOD_Validate+0xc0> <== NEVER TAKEN 20073c8: d2 00 62 d4 ld [ %g1 + 0x2d4 ], %o1 (the_tod->ticks >= ticks_per_second) || 20073cc: 11 00 03 d0 sethi %hi(0xf4000), %o0 20073d0: 40 00 5f cb call 201f2fc <.udiv> 20073d4: 90 12 22 40 or %o0, 0x240, %o0 ! f4240 20073d8: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 20073dc: 80 a0 40 08 cmp %g1, %o0 20073e0: 1a 80 00 26 bcc 2007478 <_TOD_Validate+0xc0> 20073e4: 01 00 00 00 nop (the_tod->second >= TOD_SECONDS_PER_MINUTE) || 20073e8: c2 06 20 14 ld [ %i0 + 0x14 ], %g1 20073ec: 80 a0 60 3b cmp %g1, 0x3b 20073f0: 18 80 00 22 bgu 2007478 <_TOD_Validate+0xc0> 20073f4: 01 00 00 00 nop (the_tod->minute >= TOD_MINUTES_PER_HOUR) || 20073f8: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 20073fc: 80 a0 60 3b cmp %g1, 0x3b 2007400: 18 80 00 1e bgu 2007478 <_TOD_Validate+0xc0> 2007404: 01 00 00 00 nop (the_tod->hour >= TOD_HOURS_PER_DAY) || 2007408: c2 06 20 0c ld [ %i0 + 0xc ], %g1 200740c: 80 a0 60 17 cmp %g1, 0x17 2007410: 18 80 00 1a bgu 2007478 <_TOD_Validate+0xc0> 2007414: 01 00 00 00 nop (the_tod->month == 0) || 2007418: c2 06 20 04 ld [ %i0 + 4 ], %g1 uint32_t days_in_month; uint32_t ticks_per_second; ticks_per_second = TOD_MICROSECONDS_PER_SECOND / rtems_configuration_get_microseconds_per_tick(); if ((!the_tod) || 200741c: 80 a0 60 00 cmp %g1, 0 2007420: 02 80 00 16 be 2007478 <_TOD_Validate+0xc0> <== NEVER TAKEN 2007424: 80 a0 60 0c cmp %g1, 0xc 2007428: 18 80 00 14 bgu 2007478 <_TOD_Validate+0xc0> 200742c: 01 00 00 00 nop (the_tod->second >= TOD_SECONDS_PER_MINUTE) || (the_tod->minute >= TOD_MINUTES_PER_HOUR) || (the_tod->hour >= TOD_HOURS_PER_DAY) || (the_tod->month == 0) || (the_tod->month > TOD_MONTHS_PER_YEAR) || (the_tod->year < TOD_BASE_YEAR) || 2007430: c6 06 00 00 ld [ %i0 ], %g3 uint32_t days_in_month; uint32_t ticks_per_second; ticks_per_second = TOD_MICROSECONDS_PER_SECOND / rtems_configuration_get_microseconds_per_tick(); if ((!the_tod) || 2007434: 80 a0 e7 c3 cmp %g3, 0x7c3 2007438: 08 80 00 10 bleu 2007478 <_TOD_Validate+0xc0> 200743c: 01 00 00 00 nop (the_tod->minute >= TOD_MINUTES_PER_HOUR) || (the_tod->hour >= TOD_HOURS_PER_DAY) || (the_tod->month == 0) || (the_tod->month > TOD_MONTHS_PER_YEAR) || (the_tod->year < TOD_BASE_YEAR) || (the_tod->day == 0) ) 2007440: c4 06 20 08 ld [ %i0 + 8 ], %g2 uint32_t days_in_month; uint32_t ticks_per_second; ticks_per_second = TOD_MICROSECONDS_PER_SECOND / rtems_configuration_get_microseconds_per_tick(); if ((!the_tod) || 2007444: 80 a0 a0 00 cmp %g2, 0 2007448: 02 80 00 0c be 2007478 <_TOD_Validate+0xc0> <== NEVER TAKEN 200744c: 80 88 e0 03 btst 3, %g3 2007450: 07 00 80 88 sethi %hi(0x2022000), %g3 (the_tod->month > TOD_MONTHS_PER_YEAR) || (the_tod->year < TOD_BASE_YEAR) || (the_tod->day == 0) ) return false; if ( (the_tod->year % 4) == 0 ) 2007454: 12 80 00 03 bne 2007460 <_TOD_Validate+0xa8> 2007458: 86 10 e3 d4 or %g3, 0x3d4, %g3 ! 20223d4 <_TOD_Days_per_month> days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ]; 200745c: 82 00 60 0d add %g1, 0xd, %g1 else days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ]; 2007460: 83 28 60 02 sll %g1, 2, %g1 2007464: c2 00 c0 01 ld [ %g3 + %g1 ], %g1 * false - if the the_tod is invalid * * NOTE: This routine only works for leap-years through 2099. */ bool _TOD_Validate( 2007468: 80 a0 40 02 cmp %g1, %g2 200746c: b0 60 3f ff subx %g0, -1, %i0 2007470: 81 c7 e0 08 ret 2007474: 81 e8 00 00 restore if ( the_tod->day > days_in_month ) return false; return true; } 2007478: 81 c7 e0 08 ret 200747c: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 02007ff8 <_Thread_Change_priority>: void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) { 2007ff8: 9d e3 bf a0 save %sp, -96, %sp */ /* * Save original state */ original_state = the_thread->current_state; 2007ffc: e2 06 20 10 ld [ %i0 + 0x10 ], %l1 /* * Set a transient state for the thread so it is pulled off the Ready chains. * This will prevent it from being scheduled no matter what happens in an * ISR. */ _Thread_Set_transient( the_thread ); 2008000: 40 00 04 4e call 2009138 <_Thread_Set_transient> 2008004: 90 10 00 18 mov %i0, %o0 /* * Do not bother recomputing all the priority related information if * we are not REALLY changing priority. */ if ( the_thread->current_priority != new_priority ) 2008008: c2 06 20 14 ld [ %i0 + 0x14 ], %g1 void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) { 200800c: a0 10 00 18 mov %i0, %l0 /* * Do not bother recomputing all the priority related information if * we are not REALLY changing priority. */ if ( the_thread->current_priority != new_priority ) 2008010: 80 a0 40 19 cmp %g1, %i1 2008014: 02 80 00 04 be 2008024 <_Thread_Change_priority+0x2c> 2008018: 92 10 00 19 mov %i1, %o1 _Thread_Set_priority( the_thread, new_priority ); 200801c: 40 00 03 ca call 2008f44 <_Thread_Set_priority> 2008020: 90 10 00 18 mov %i0, %o0 _ISR_Disable( level ); 2008024: 7f ff e7 e8 call 2001fc4 2008028: 01 00 00 00 nop 200802c: b0 10 00 08 mov %o0, %i0 /* * If the thread has more than STATES_TRANSIENT set, then it is blocked, * If it is blocked on a thread queue, then we need to requeue it. */ state = the_thread->current_state; 2008030: e4 04 20 10 ld [ %l0 + 0x10 ], %l2 if ( state != STATES_TRANSIENT ) { 2008034: 80 a4 a0 04 cmp %l2, 4 2008038: 02 80 00 10 be 2008078 <_Thread_Change_priority+0x80> 200803c: a2 0c 60 04 and %l1, 4, %l1 /* Only clear the transient state if it wasn't set already */ if ( ! _States_Is_transient( original_state ) ) 2008040: 80 a4 60 00 cmp %l1, 0 2008044: 12 80 00 03 bne 2008050 <_Thread_Change_priority+0x58> <== NEVER TAKEN 2008048: 82 0c bf fb and %l2, -5, %g1 the_thread->current_state = _States_Clear( STATES_TRANSIENT, state ); 200804c: c2 24 20 10 st %g1, [ %l0 + 0x10 ] _ISR_Enable( level ); 2008050: 7f ff e7 e1 call 2001fd4 2008054: 90 10 00 18 mov %i0, %o0 if ( _States_Is_waiting_on_thread_queue( state ) ) { 2008058: 03 00 00 ef sethi %hi(0x3bc00), %g1 200805c: 82 10 62 e0 or %g1, 0x2e0, %g1 ! 3bee0 2008060: 80 8c 80 01 btst %l2, %g1 2008064: 02 80 00 5c be 20081d4 <_Thread_Change_priority+0x1dc> 2008068: 01 00 00 00 nop _Thread_queue_Requeue( the_thread->Wait.queue, the_thread ); 200806c: f0 04 20 44 ld [ %l0 + 0x44 ], %i0 2008070: 40 00 03 88 call 2008e90 <_Thread_queue_Requeue> 2008074: 93 e8 00 10 restore %g0, %l0, %o1 } return; } /* Only clear the transient state if it wasn't set already */ if ( ! _States_Is_transient( original_state ) ) { 2008078: 80 a4 60 00 cmp %l1, 0 200807c: 12 80 00 1c bne 20080ec <_Thread_Change_priority+0xf4> <== NEVER TAKEN 2008080: 01 00 00 00 nop RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; 2008084: c4 04 20 90 ld [ %l0 + 0x90 ], %g2 2008088: c6 14 20 96 lduh [ %l0 + 0x96 ], %g3 200808c: c8 10 80 00 lduh [ %g2 ], %g4 _Priority_Major_bit_map |= the_priority_map->ready_major; 2008090: 03 00 80 78 sethi %hi(0x201e000), %g1 RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; 2008094: 86 11 00 03 or %g4, %g3, %g3 2008098: c6 30 80 00 sth %g3, [ %g2 ] _Priority_Major_bit_map |= the_priority_map->ready_major; 200809c: c4 10 63 44 lduh [ %g1 + 0x344 ], %g2 20080a0: c6 14 20 94 lduh [ %l0 + 0x94 ], %g3 * Interrupts are STILL disabled. * We now know the thread will be in the READY state when we remove * the TRANSIENT state. So we have to place it on the appropriate * Ready Queue with interrupts off. */ the_thread->current_state = _States_Clear( STATES_TRANSIENT, state ); 20080a4: c0 24 20 10 clr [ %l0 + 0x10 ] 20080a8: 84 10 c0 02 or %g3, %g2, %g2 20080ac: c4 30 63 44 sth %g2, [ %g1 + 0x344 ] _Priority_Add_to_bit_map( &the_thread->Priority_map ); if ( prepend_it ) 20080b0: 80 8e a0 ff btst 0xff, %i2 20080b4: 02 80 00 08 be 20080d4 <_Thread_Change_priority+0xdc> 20080b8: c2 04 20 8c ld [ %l0 + 0x8c ], %g1 ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 20080bc: c4 00 40 00 ld [ %g1 ], %g2 Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 20080c0: c2 24 20 04 st %g1, [ %l0 + 4 ] before_node = after_node->next; after_node->next = the_node; 20080c4: e0 20 40 00 st %l0, [ %g1 ] the_node->next = before_node; before_node->previous = the_node; 20080c8: e0 20 a0 04 st %l0, [ %g2 + 4 ] Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; 20080cc: 10 80 00 08 b 20080ec <_Thread_Change_priority+0xf4> 20080d0: c4 24 00 00 st %g2, [ %l0 ] Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 20080d4: 84 00 60 04 add %g1, 4, %g2 20080d8: c4 24 00 00 st %g2, [ %l0 ] old_last_node = the_chain->last; 20080dc: c4 00 60 08 ld [ %g1 + 8 ], %g2 the_chain->last = the_node; 20080e0: e0 20 60 08 st %l0, [ %g1 + 8 ] old_last_node->next = the_node; the_node->previous = old_last_node; 20080e4: c4 24 20 04 st %g2, [ %l0 + 4 ] Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; the_chain->last = the_node; old_last_node->next = the_node; 20080e8: e0 20 80 00 st %l0, [ %g2 ] _Chain_Prepend_unprotected( the_thread->ready, &the_thread->Object.Node ); else _Chain_Append_unprotected( the_thread->ready, &the_thread->Object.Node ); } _ISR_Flash( level ); 20080ec: 7f ff e7 ba call 2001fd4 20080f0: 90 10 00 18 mov %i0, %o0 20080f4: 7f ff e7 b4 call 2001fc4 20080f8: 01 00 00 00 nop RTEMS_INLINE_ROUTINE Priority_Control _Priority_Get_highest( void ) { Priority_Bit_map_control minor; Priority_Bit_map_control major; _Bitfield_Find_first_bit( _Priority_Major_bit_map, major ); 20080fc: 03 00 80 78 sethi %hi(0x201e000), %g1 2008100: c4 10 63 44 lduh [ %g1 + 0x344 ], %g2 ! 201e344 <_Priority_Major_bit_map> */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) _Thread_Ready_chain[ _Priority_Get_highest() ].first; 2008104: 03 00 80 78 sethi %hi(0x201e000), %g1 2008108: 85 28 a0 10 sll %g2, 0x10, %g2 200810c: da 00 61 e4 ld [ %g1 + 0x1e4 ], %o5 2008110: 87 30 a0 10 srl %g2, 0x10, %g3 2008114: 03 00 80 71 sethi %hi(0x201c400), %g1 2008118: 80 a0 e0 ff cmp %g3, 0xff 200811c: 18 80 00 05 bgu 2008130 <_Thread_Change_priority+0x138> 2008120: 82 10 60 d8 or %g1, 0xd8, %g1 2008124: c4 08 40 03 ldub [ %g1 + %g3 ], %g2 2008128: 10 80 00 04 b 2008138 <_Thread_Change_priority+0x140> 200812c: 84 00 a0 08 add %g2, 8, %g2 2008130: 85 30 a0 18 srl %g2, 0x18, %g2 2008134: c4 08 40 02 ldub [ %g1 + %g2 ], %g2 _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); 2008138: 83 28 a0 10 sll %g2, 0x10, %g1 200813c: 07 00 80 78 sethi %hi(0x201e000), %g3 2008140: 83 30 60 0f srl %g1, 0xf, %g1 2008144: 86 10 e3 c0 or %g3, 0x3c0, %g3 2008148: c6 10 c0 01 lduh [ %g3 + %g1 ], %g3 200814c: 03 00 80 71 sethi %hi(0x201c400), %g1 2008150: 87 28 e0 10 sll %g3, 0x10, %g3 2008154: 89 30 e0 10 srl %g3, 0x10, %g4 2008158: 80 a1 20 ff cmp %g4, 0xff 200815c: 18 80 00 05 bgu 2008170 <_Thread_Change_priority+0x178> 2008160: 82 10 60 d8 or %g1, 0xd8, %g1 2008164: c2 08 40 04 ldub [ %g1 + %g4 ], %g1 2008168: 10 80 00 04 b 2008178 <_Thread_Change_priority+0x180> 200816c: 82 00 60 08 add %g1, 8, %g1 2008170: 87 30 e0 18 srl %g3, 0x18, %g3 2008174: c2 08 40 03 ldub [ %g1 + %g3 ], %g1 * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) 2008178: 83 28 60 10 sll %g1, 0x10, %g1 200817c: 83 30 60 10 srl %g1, 0x10, %g1 2008180: 85 28 a0 10 sll %g2, 0x10, %g2 2008184: 85 30 a0 0c srl %g2, 0xc, %g2 2008188: 84 00 40 02 add %g1, %g2, %g2 200818c: 83 28 a0 04 sll %g2, 4, %g1 2008190: 85 28 a0 02 sll %g2, 2, %g2 2008194: 84 20 40 02 sub %g1, %g2, %g2 2008198: c4 03 40 02 ld [ %o5 + %g2 ], %g2 * is also the heir thread, and false otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void ) { return ( _Thread_Executing == _Thread_Heir ); 200819c: 03 00 80 78 sethi %hi(0x201e000), %g1 20081a0: c2 00 63 50 ld [ %g1 + 0x350 ], %g1 ! 201e350 <_Thread_Executing> * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) 20081a4: 07 00 80 78 sethi %hi(0x201e000), %g3 * We altered the set of thread priorities. So let's figure out * who is the heir and if we need to switch to them. */ _Thread_Calculate_heir(); if ( !_Thread_Is_executing_also_the_heir() && 20081a8: 80 a0 40 02 cmp %g1, %g2 20081ac: 02 80 00 08 be 20081cc <_Thread_Change_priority+0x1d4> 20081b0: c4 20 e3 20 st %g2, [ %g3 + 0x320 ] _Thread_Executing->is_preemptible ) 20081b4: c2 08 60 75 ldub [ %g1 + 0x75 ], %g1 20081b8: 80 a0 60 00 cmp %g1, 0 20081bc: 02 80 00 04 be 20081cc <_Thread_Change_priority+0x1d4> 20081c0: 84 10 20 01 mov 1, %g2 _Context_Switch_necessary = true; 20081c4: 03 00 80 78 sethi %hi(0x201e000), %g1 20081c8: c4 28 63 60 stb %g2, [ %g1 + 0x360 ] ! 201e360 <_Context_Switch_necessary> _ISR_Enable( level ); 20081cc: 7f ff e7 82 call 2001fd4 20081d0: 81 e8 00 00 restore 20081d4: 81 c7 e0 08 ret 20081d8: 81 e8 00 00 restore =============================================================================== 020081dc <_Thread_Clear_state>: void _Thread_Clear_state( Thread_Control *the_thread, States_Control state ) { 20081dc: 9d e3 bf a0 save %sp, -96, %sp ISR_Level level; States_Control current_state; _ISR_Disable( level ); 20081e0: 7f ff e7 79 call 2001fc4 20081e4: a0 10 00 18 mov %i0, %l0 20081e8: b0 10 00 08 mov %o0, %i0 current_state = the_thread->current_state; 20081ec: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 if ( current_state & state ) { 20081f0: 80 8e 40 01 btst %i1, %g1 20081f4: 02 80 00 2d be 20082a8 <_Thread_Clear_state+0xcc> 20081f8: 01 00 00 00 nop RTEMS_INLINE_ROUTINE States_Control _States_Clear ( States_Control states_to_clear, States_Control current_state ) { return (current_state & ~states_to_clear); 20081fc: b2 28 40 19 andn %g1, %i1, %i1 current_state = the_thread->current_state = _States_Clear( state, current_state ); if ( _States_Is_ready( current_state ) ) { 2008200: 80 a6 60 00 cmp %i1, 0 2008204: 12 80 00 29 bne 20082a8 <_Thread_Clear_state+0xcc> 2008208: f2 24 20 10 st %i1, [ %l0 + 0x10 ] RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; 200820c: c4 04 20 90 ld [ %l0 + 0x90 ], %g2 _Priority_Add_to_bit_map( &the_thread->Priority_map ); _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node); 2008210: c2 04 20 8c ld [ %l0 + 0x8c ], %g1 2008214: c8 10 80 00 lduh [ %g2 ], %g4 2008218: c6 14 20 96 lduh [ %l0 + 0x96 ], %g3 200821c: 86 11 00 03 or %g4, %g3, %g3 2008220: c6 30 80 00 sth %g3, [ %g2 ] Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 2008224: 84 00 60 04 add %g1, 4, %g2 _Priority_Major_bit_map |= the_priority_map->ready_major; 2008228: da 14 20 94 lduh [ %l0 + 0x94 ], %o5 200822c: c4 24 00 00 st %g2, [ %l0 ] 2008230: 07 00 80 78 sethi %hi(0x201e000), %g3 old_last_node = the_chain->last; 2008234: c4 00 60 08 ld [ %g1 + 8 ], %g2 2008238: c8 10 e3 44 lduh [ %g3 + 0x344 ], %g4 the_chain->last = the_node; 200823c: e0 20 60 08 st %l0, [ %g1 + 8 ] old_last_node->next = the_node; the_node->previous = old_last_node; 2008240: c4 24 20 04 st %g2, [ %l0 + 4 ] 2008244: 82 13 40 04 or %o5, %g4, %g1 Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; the_chain->last = the_node; old_last_node->next = the_node; 2008248: e0 20 80 00 st %l0, [ %g2 ] 200824c: c2 30 e3 44 sth %g1, [ %g3 + 0x344 ] _ISR_Flash( level ); 2008250: 7f ff e7 61 call 2001fd4 2008254: 01 00 00 00 nop 2008258: 7f ff e7 5b call 2001fc4 200825c: 01 00 00 00 nop * a context switch. * Pseudo-ISR case: * Even if the thread isn't preemptible, if the new heir is * a pseudo-ISR system task, we need to do a context switch. */ if ( the_thread->current_priority < _Thread_Heir->current_priority ) { 2008260: 05 00 80 78 sethi %hi(0x201e000), %g2 2008264: c6 00 a3 20 ld [ %g2 + 0x320 ], %g3 ! 201e320 <_Thread_Heir> 2008268: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 200826c: c6 00 e0 14 ld [ %g3 + 0x14 ], %g3 2008270: 80 a0 40 03 cmp %g1, %g3 2008274: 1a 80 00 0d bcc 20082a8 <_Thread_Clear_state+0xcc> 2008278: 07 00 80 78 sethi %hi(0x201e000), %g3 _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible || 200827c: c6 00 e3 50 ld [ %g3 + 0x350 ], %g3 ! 201e350 <_Thread_Executing> * Pseudo-ISR case: * Even if the thread isn't preemptible, if the new heir is * a pseudo-ISR system task, we need to do a context switch. */ if ( the_thread->current_priority < _Thread_Heir->current_priority ) { _Thread_Heir = the_thread; 2008280: e0 20 a3 20 st %l0, [ %g2 + 0x320 ] if ( _Thread_Executing->is_preemptible || 2008284: c4 08 e0 75 ldub [ %g3 + 0x75 ], %g2 2008288: 80 a0 a0 00 cmp %g2, 0 200828c: 12 80 00 05 bne 20082a0 <_Thread_Clear_state+0xc4> 2008290: 84 10 20 01 mov 1, %g2 2008294: 80 a0 60 00 cmp %g1, 0 2008298: 12 80 00 04 bne 20082a8 <_Thread_Clear_state+0xcc> <== ALWAYS TAKEN 200829c: 01 00 00 00 nop the_thread->current_priority == 0 ) _Context_Switch_necessary = true; 20082a0: 03 00 80 78 sethi %hi(0x201e000), %g1 20082a4: c4 28 63 60 stb %g2, [ %g1 + 0x360 ] ! 201e360 <_Context_Switch_necessary> } } } _ISR_Enable( level ); 20082a8: 7f ff e7 4b call 2001fd4 20082ac: 81 e8 00 00 restore =============================================================================== 02008460 <_Thread_Delay_ended>: void _Thread_Delay_ended( Objects_Id id, void *ignored __attribute__((unused)) ) { 2008460: 9d e3 bf 98 save %sp, -104, %sp Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 2008464: 90 10 00 18 mov %i0, %o0 2008468: 40 00 00 7c call 2008658 <_Thread_Get> 200846c: 92 07 bf fc add %fp, -4, %o1 switch ( location ) { 2008470: c2 07 bf fc ld [ %fp + -4 ], %g1 2008474: 80 a0 60 00 cmp %g1, 0 2008478: 12 80 00 08 bne 2008498 <_Thread_Delay_ended+0x38> <== NEVER TAKEN 200847c: 13 04 00 00 sethi %hi(0x10000000), %o1 #if defined(RTEMS_MULTIPROCESSING) case OBJECTS_REMOTE: /* impossible */ #endif break; case OBJECTS_LOCAL: _Thread_Clear_state( 2008480: 7f ff ff 57 call 20081dc <_Thread_Clear_state> 2008484: 92 12 60 18 or %o1, 0x18, %o1 ! 10000018 2008488: 03 00 80 78 sethi %hi(0x201e000), %g1 200848c: c4 00 62 90 ld [ %g1 + 0x290 ], %g2 ! 201e290 <_Thread_Dispatch_disable_level> 2008490: 84 00 bf ff add %g2, -1, %g2 2008494: c4 20 62 90 st %g2, [ %g1 + 0x290 ] 2008498: 81 c7 e0 08 ret 200849c: 81 e8 00 00 restore =============================================================================== 020084a0 <_Thread_Dispatch>: * dispatch thread * no dispatch thread */ void _Thread_Dispatch( void ) { 20084a0: 9d e3 bf 90 save %sp, -112, %sp Thread_Control *executing; Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; 20084a4: 2f 00 80 78 sethi %hi(0x201e000), %l7 _ISR_Disable( level ); 20084a8: 7f ff e6 c7 call 2001fc4 20084ac: e0 05 e3 50 ld [ %l7 + 0x350 ], %l0 ! 201e350 <_Thread_Executing> while ( _Context_Switch_necessary == true ) { 20084b0: 2d 00 80 78 sethi %hi(0x201e000), %l6 20084b4: 33 00 80 78 sethi %hi(0x201e000), %i1 heir = _Thread_Heir; 20084b8: 35 00 80 78 sethi %hi(0x201e000), %i2 #if __RTEMS_ADA__ executing->rtems_ada_self = rtems_ada_self; rtems_ada_self = heir->rtems_ada_self; #endif if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE ) heir->cpu_time_budget = _Thread_Ticks_per_timeslice; 20084bc: 37 00 80 78 sethi %hi(0x201e000), %i3 #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ { Timestamp_Control uptime, ran; _TOD_Get_uptime( &uptime ); _Timestamp_Subtract( 20084c0: 25 00 80 78 sethi %hi(0x201e000), %l2 #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { 20084c4: 39 00 80 78 sethi %hi(0x201e000), %i4 #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) RTEMS_INLINE_ROUTINE bool _Thread_Is_allocated_fp ( const Thread_Control *the_thread ) { return ( the_thread == _Thread_Allocated_fp ); 20084c8: 2b 00 80 78 sethi %hi(0x201e000), %l5 _ISR_Disable( level ); while ( _Context_Switch_necessary == true ) { heir = _Thread_Heir; _Thread_Dispatch_disable_level = 1; _Context_Switch_necessary = false; _Thread_Executing = heir; 20084cc: ae 15 e3 50 or %l7, 0x350, %l7 Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; _ISR_Disable( level ); while ( _Context_Switch_necessary == true ) { 20084d0: ac 15 a3 60 or %l6, 0x360, %l6 heir = _Thread_Heir; _Thread_Dispatch_disable_level = 1; 20084d4: b2 16 62 90 or %i1, 0x290, %i1 ISR_Level level; executing = _Thread_Executing; _ISR_Disable( level ); while ( _Context_Switch_necessary == true ) { heir = _Thread_Heir; 20084d8: b4 16 a3 20 or %i2, 0x320, %i2 #if __RTEMS_ADA__ executing->rtems_ada_self = rtems_ada_self; rtems_ada_self = heir->rtems_ada_self; #endif if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE ) heir->cpu_time_budget = _Thread_Ticks_per_timeslice; 20084dc: b6 16 e1 e8 or %i3, 0x1e8, %i3 #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ { Timestamp_Control uptime, ran; _TOD_Get_uptime( &uptime ); _Timestamp_Subtract( 20084e0: a4 14 a3 58 or %l2, 0x358, %l2 #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { 20084e4: b8 17 23 1c or %i4, 0x31c, %i4 20084e8: aa 15 63 18 or %l5, 0x318, %l5 executing = _Thread_Executing; _ISR_Disable( level ); while ( _Context_Switch_necessary == true ) { heir = _Thread_Heir; _Thread_Dispatch_disable_level = 1; 20084ec: ba 10 20 01 mov 1, %i5 _ISR_Enable( level ); #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ { Timestamp_Control uptime, ran; _TOD_Get_uptime( &uptime ); 20084f0: a8 07 bf f8 add %fp, -8, %l4 Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; _ISR_Disable( level ); while ( _Context_Switch_necessary == true ) { 20084f4: 10 80 00 37 b 20085d0 <_Thread_Dispatch+0x130> 20084f8: a6 07 bf f0 add %fp, -16, %l3 heir = _Thread_Heir; _Thread_Dispatch_disable_level = 1; 20084fc: fa 26 40 00 st %i5, [ %i1 ] _Thread_Executing = heir; #if __RTEMS_ADA__ executing->rtems_ada_self = rtems_ada_self; rtems_ada_self = heir->rtems_ada_self; #endif if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE ) 2008500: c2 04 60 7c ld [ %l1 + 0x7c ], %g1 executing = _Thread_Executing; _ISR_Disable( level ); while ( _Context_Switch_necessary == true ) { heir = _Thread_Heir; _Thread_Dispatch_disable_level = 1; _Context_Switch_necessary = false; 2008504: c0 2d 80 00 clrb [ %l6 ] _Thread_Executing = heir; #if __RTEMS_ADA__ executing->rtems_ada_self = rtems_ada_self; rtems_ada_self = heir->rtems_ada_self; #endif if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE ) 2008508: 80 a0 60 01 cmp %g1, 1 200850c: 12 80 00 04 bne 200851c <_Thread_Dispatch+0x7c> 2008510: e2 25 c0 00 st %l1, [ %l7 ] heir->cpu_time_budget = _Thread_Ticks_per_timeslice; 2008514: c2 06 c0 00 ld [ %i3 ], %g1 2008518: c2 24 60 78 st %g1, [ %l1 + 0x78 ] _ISR_Enable( level ); 200851c: 7f ff e6 ae call 2001fd4 2008520: 01 00 00 00 nop #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ { Timestamp_Control uptime, ran; _TOD_Get_uptime( &uptime ); 2008524: 40 00 14 17 call 200d580 <_TOD_Get_uptime> 2008528: 90 10 00 14 mov %l4, %o0 _Timestamp_Subtract( 200852c: 90 10 00 12 mov %l2, %o0 2008530: 92 10 00 14 mov %l4, %o1 2008534: 40 00 03 e3 call 20094c0 <_Timespec_Subtract> 2008538: 94 10 00 13 mov %l3, %o2 &_Thread_Time_of_last_context_switch, &uptime, &ran ); _Timestamp_Add_to( &executing->cpu_time_used, &ran ); 200853c: 90 04 20 84 add %l0, 0x84, %o0 2008540: 40 00 03 c6 call 2009458 <_Timespec_Add_to> 2008544: 92 10 00 13 mov %l3, %o1 _Thread_Time_of_last_context_switch = uptime; 2008548: c4 07 bf f8 ld [ %fp + -8 ], %g2 #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { 200854c: c2 07 00 00 ld [ %i4 ], %g1 &_Thread_Time_of_last_context_switch, &uptime, &ran ); _Timestamp_Add_to( &executing->cpu_time_used, &ran ); _Thread_Time_of_last_context_switch = uptime; 2008550: c4 24 80 00 st %g2, [ %l2 ] 2008554: c4 07 bf fc ld [ %fp + -4 ], %g2 #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { 2008558: 80 a0 60 00 cmp %g1, 0 200855c: 02 80 00 06 be 2008574 <_Thread_Dispatch+0xd4> <== NEVER TAKEN 2008560: c4 24 a0 04 st %g2, [ %l2 + 4 ] executing->libc_reent = *_Thread_libc_reent; 2008564: c4 00 40 00 ld [ %g1 ], %g2 2008568: c4 24 21 64 st %g2, [ %l0 + 0x164 ] *_Thread_libc_reent = heir->libc_reent; 200856c: c4 04 61 64 ld [ %l1 + 0x164 ], %g2 2008570: c4 20 40 00 st %g2, [ %g1 ] } _User_extensions_Thread_switch( executing, heir ); 2008574: 90 10 00 10 mov %l0, %o0 2008578: 40 00 04 87 call 2009794 <_User_extensions_Thread_switch> 200857c: 92 10 00 11 mov %l1, %o1 if ( executing->fp_context != NULL ) _Context_Save_fp( &executing->fp_context ); #endif #endif _Context_Switch( &executing->Registers, &heir->Registers ); 2008580: 92 04 60 d8 add %l1, 0xd8, %o1 2008584: 40 00 05 b4 call 2009c54 <_CPU_Context_switch> 2008588: 90 04 20 d8 add %l0, 0xd8, %o0 #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE ) if ( (executing->fp_context != NULL) && 200858c: c2 04 21 60 ld [ %l0 + 0x160 ], %g1 2008590: 80 a0 60 00 cmp %g1, 0 2008594: 02 80 00 0d be 20085c8 <_Thread_Dispatch+0x128> 2008598: 01 00 00 00 nop 200859c: d0 05 40 00 ld [ %l5 ], %o0 20085a0: 80 a4 00 08 cmp %l0, %o0 20085a4: 02 80 00 09 be 20085c8 <_Thread_Dispatch+0x128> 20085a8: 80 a2 20 00 cmp %o0, 0 !_Thread_Is_allocated_fp( executing ) ) { if ( _Thread_Allocated_fp != NULL ) 20085ac: 02 80 00 04 be 20085bc <_Thread_Dispatch+0x11c> 20085b0: 01 00 00 00 nop _Context_Save_fp( &_Thread_Allocated_fp->fp_context ); 20085b4: 40 00 05 6e call 2009b6c <_CPU_Context_save_fp> 20085b8: 90 02 21 60 add %o0, 0x160, %o0 _Context_Restore_fp( &executing->fp_context ); 20085bc: 40 00 05 89 call 2009be0 <_CPU_Context_restore_fp> 20085c0: 90 04 21 60 add %l0, 0x160, %o0 _Thread_Allocated_fp = executing; 20085c4: e0 25 40 00 st %l0, [ %l5 ] #endif #endif executing = _Thread_Executing; _ISR_Disable( level ); 20085c8: 7f ff e6 7f call 2001fc4 20085cc: e0 05 c0 00 ld [ %l7 ], %l0 Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; _ISR_Disable( level ); while ( _Context_Switch_necessary == true ) { 20085d0: c2 0d 80 00 ldub [ %l6 ], %g1 20085d4: 80 a0 60 00 cmp %g1, 0 20085d8: 32 bf ff c9 bne,a 20084fc <_Thread_Dispatch+0x5c> 20085dc: e2 06 80 00 ld [ %i2 ], %l1 executing = _Thread_Executing; _ISR_Disable( level ); } _Thread_Dispatch_disable_level = 0; 20085e0: 03 00 80 78 sethi %hi(0x201e000), %g1 20085e4: c0 20 62 90 clr [ %g1 + 0x290 ] ! 201e290 <_Thread_Dispatch_disable_level> _ISR_Enable( level ); 20085e8: 7f ff e6 7b call 2001fd4 20085ec: 01 00 00 00 nop if ( _Thread_Do_post_task_switch_extension || 20085f0: 03 00 80 78 sethi %hi(0x201e000), %g1 20085f4: c2 00 63 34 ld [ %g1 + 0x334 ], %g1 ! 201e334 <_Thread_Do_post_task_switch_extension> 20085f8: 80 a0 60 00 cmp %g1, 0 20085fc: 12 80 00 06 bne 2008614 <_Thread_Dispatch+0x174> 2008600: 01 00 00 00 nop executing->do_post_task_switch_extension ) { 2008604: c2 0c 20 74 ldub [ %l0 + 0x74 ], %g1 2008608: 80 a0 60 00 cmp %g1, 0 200860c: 02 80 00 04 be 200861c <_Thread_Dispatch+0x17c> 2008610: 01 00 00 00 nop executing->do_post_task_switch_extension = false; _API_extensions_Run_postswitch(); 2008614: 7f ff f9 70 call 2006bd4 <_API_extensions_Run_postswitch> 2008618: c0 2c 20 74 clrb [ %l0 + 0x74 ] 200861c: 81 c7 e0 08 ret 2008620: 81 e8 00 00 restore =============================================================================== 02010620 <_Thread_Evaluate_mode>: bool _Thread_Evaluate_mode( void ) { Thread_Control *executing; executing = _Thread_Executing; 2010620: 03 00 80 78 sethi %hi(0x201e000), %g1 2010624: c2 00 63 50 ld [ %g1 + 0x350 ], %g1 ! 201e350 <_Thread_Executing> if ( !_States_Is_ready( executing->current_state ) || 2010628: c4 00 60 10 ld [ %g1 + 0x10 ], %g2 201062c: 80 a0 a0 00 cmp %g2, 0 2010630: 12 80 00 0b bne 201065c <_Thread_Evaluate_mode+0x3c> <== NEVER TAKEN 2010634: 84 10 20 01 mov 1, %g2 2010638: 05 00 80 78 sethi %hi(0x201e000), %g2 201063c: c4 00 a3 20 ld [ %g2 + 0x320 ], %g2 ! 201e320 <_Thread_Heir> 2010640: 80 a0 40 02 cmp %g1, %g2 2010644: 02 80 00 0b be 2010670 <_Thread_Evaluate_mode+0x50> 2010648: 01 00 00 00 nop ( !_Thread_Is_heir( executing ) && executing->is_preemptible ) ) { 201064c: c2 08 60 75 ldub [ %g1 + 0x75 ], %g1 2010650: 80 a0 60 00 cmp %g1, 0 2010654: 02 80 00 07 be 2010670 <_Thread_Evaluate_mode+0x50> <== NEVER TAKEN 2010658: 84 10 20 01 mov 1, %g2 _Context_Switch_necessary = true; 201065c: 03 00 80 78 sethi %hi(0x201e000), %g1 2010660: 90 10 20 01 mov 1, %o0 2010664: c4 28 63 60 stb %g2, [ %g1 + 0x360 ] return true; 2010668: 81 c3 e0 08 retl 201066c: 01 00 00 00 nop } return false; } 2010670: 81 c3 e0 08 retl 2010674: 90 10 20 00 clr %o0 ! 0 =============================================================================== 02010678 <_Thread_Handler>: * * Output parameters: NONE */ void _Thread_Handler( void ) { 2010678: 9d e3 bf a0 save %sp, -96, %sp #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) static char doneConstructors; char doneCons; #endif executing = _Thread_Executing; 201067c: 03 00 80 78 sethi %hi(0x201e000), %g1 2010680: e0 00 63 50 ld [ %g1 + 0x350 ], %l0 ! 201e350 <_Thread_Executing> /* * Some CPUs need to tinker with the call frame or registers when the * thread actually begins to execute for the first time. This is a * hook point where the port gets a shot at doing whatever it requires. */ _Context_Initialization_at_thread_begin(); 2010684: 3f 00 80 41 sethi %hi(0x2010400), %i7 2010688: be 17 e2 78 or %i7, 0x278, %i7 ! 2010678 <_Thread_Handler> /* * have to put level into a register for those cpu's that use * inline asm here */ level = executing->Start.isr_level; 201068c: d0 04 20 b8 ld [ %l0 + 0xb8 ], %o0 _ISR_Set_level(level); 2010690: 7f ff c6 51 call 2001fd4 2010694: 91 2a 20 08 sll %o0, 8, %o0 #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) doneCons = doneConstructors; 2010698: 03 00 80 77 sethi %hi(0x201dc00), %g1 doneConstructors = 1; 201069c: 84 10 20 01 mov 1, %g2 level = executing->Start.isr_level; _ISR_Set_level(level); #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) doneCons = doneConstructors; 20106a0: e2 08 63 42 ldub [ %g1 + 0x342 ], %l1 doneConstructors = 1; 20106a4: c4 28 63 42 stb %g2, [ %g1 + 0x342 ] #endif #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE ) if ( (executing->fp_context != NULL) && 20106a8: c2 04 21 60 ld [ %l0 + 0x160 ], %g1 20106ac: 80 a0 60 00 cmp %g1, 0 20106b0: 02 80 00 0c be 20106e0 <_Thread_Handler+0x68> 20106b4: 03 00 80 78 sethi %hi(0x201e000), %g1 #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) RTEMS_INLINE_ROUTINE bool _Thread_Is_allocated_fp ( const Thread_Control *the_thread ) { return ( the_thread == _Thread_Allocated_fp ); 20106b8: d0 00 63 18 ld [ %g1 + 0x318 ], %o0 ! 201e318 <_Thread_Allocated_fp> 20106bc: 80 a4 00 08 cmp %l0, %o0 20106c0: 02 80 00 08 be 20106e0 <_Thread_Handler+0x68> 20106c4: 80 a2 20 00 cmp %o0, 0 !_Thread_Is_allocated_fp( executing ) ) { if ( _Thread_Allocated_fp != NULL ) 20106c8: 22 80 00 06 be,a 20106e0 <_Thread_Handler+0x68> 20106cc: e0 20 63 18 st %l0, [ %g1 + 0x318 ] _Context_Save_fp( &_Thread_Allocated_fp->fp_context ); 20106d0: 7f ff e5 27 call 2009b6c <_CPU_Context_save_fp> 20106d4: 90 02 21 60 add %o0, 0x160, %o0 _Thread_Allocated_fp = executing; 20106d8: 03 00 80 78 sethi %hi(0x201e000), %g1 20106dc: e0 20 63 18 st %l0, [ %g1 + 0x318 ] ! 201e318 <_Thread_Allocated_fp> /* * Take care that 'begin' extensions get to complete before * 'switch' extensions can run. This means must keep dispatch * disabled until all 'begin' extensions complete. */ _User_extensions_Thread_begin( executing ); 20106e0: 7f ff e3 ba call 20095c8 <_User_extensions_Thread_begin> 20106e4: 90 10 00 10 mov %l0, %o0 /* * At this point, the dispatch disable level BETTER be 1. */ _Thread_Enable_dispatch(); 20106e8: 7f ff df cf call 2008624 <_Thread_Enable_dispatch> 20106ec: a3 2c 60 18 sll %l1, 0x18, %l1 /* * _init could be a weak symbol and we SHOULD test it but it isn't * in any configuration I know of and it generates a warning on every * RTEMS target configuration. --joel (12 May 2007) */ if (!doneCons) /* && (volatile void *)_init) */ { 20106f0: 80 a4 60 00 cmp %l1, 0 20106f4: 32 80 00 05 bne,a 2010708 <_Thread_Handler+0x90> 20106f8: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 INIT_NAME (); 20106fc: 40 00 33 d7 call 201d658 <_init> 2010700: 01 00 00 00 nop } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) { 2010704: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 2010708: 80 a0 60 00 cmp %g1, 0 201070c: 12 80 00 05 bne 2010720 <_Thread_Handler+0xa8> 2010710: 80 a0 60 01 cmp %g1, 1 executing->Wait.return_argument = (*(Thread_Entry_numeric) executing->Start.entry_point)( 2010714: c2 04 20 9c ld [ %l0 + 0x9c ], %g1 2010718: 10 80 00 06 b 2010730 <_Thread_Handler+0xb8> 201071c: d0 04 20 a8 ld [ %l0 + 0xa8 ], %o0 executing->Start.numeric_argument ); } #if defined(RTEMS_POSIX_API) else if ( executing->Start.prototype == THREAD_START_POINTER ) { 2010720: 12 80 00 07 bne 201073c <_Thread_Handler+0xc4> <== NEVER TAKEN 2010724: 01 00 00 00 nop executing->Wait.return_argument = (*(Thread_Entry_pointer) executing->Start.entry_point)( 2010728: c2 04 20 9c ld [ %l0 + 0x9c ], %g1 201072c: d0 04 20 a4 ld [ %l0 + 0xa4 ], %o0 2010730: 9f c0 40 00 call %g1 2010734: 01 00 00 00 nop executing->Start.numeric_argument ); } #if defined(RTEMS_POSIX_API) else if ( executing->Start.prototype == THREAD_START_POINTER ) { executing->Wait.return_argument = 2010738: d0 24 20 28 st %o0, [ %l0 + 0x28 ] * was placed in return_argument. This assumed that if it returned * anything (which is not supporting in all APIs), then it would be * able to fit in a (void *). */ _User_extensions_Thread_exitted( executing ); 201073c: 7f ff e3 b4 call 200960c <_User_extensions_Thread_exitted> 2010740: 90 10 00 10 mov %l0, %o0 _Internal_error_Occurred( 2010744: 90 10 20 00 clr %o0 2010748: 92 10 20 01 mov 1, %o1 201074c: 7f ff db c6 call 2007664 <_Internal_error_Occurred> 2010750: 94 10 20 06 mov 6, %o2 =============================================================================== 02008704 <_Thread_Initialize>: Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { 2008704: 9d e3 bf a0 save %sp, -96, %sp 2008708: c2 07 a0 6c ld [ %fp + 0x6c ], %g1 /* * Zero out all the allocated memory fields */ for ( i=0 ; i <= THREAD_API_LAST ; i++ ) the_thread->API_Extensions[i] = NULL; 200870c: c0 26 61 68 clr [ %i1 + 0x168 ] 2008710: c0 26 61 6c clr [ %i1 + 0x16c ] 2008714: c0 26 61 70 clr [ %i1 + 0x170 ] extensions_area = NULL; the_thread->libc_reent = NULL; 2008718: c0 26 61 64 clr [ %i1 + 0x164 ] Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { 200871c: e0 00 40 00 ld [ %g1 ], %l0 if ( !actual_stack_size || actual_stack_size < stack_size ) return false; /* stack allocation failed */ stack = the_thread->Start.stack; #else if ( !stack_area ) { 2008720: 80 a6 a0 00 cmp %i2, 0 Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { 2008724: e2 07 a0 60 ld [ %fp + 0x60 ], %l1 if ( !actual_stack_size || actual_stack_size < stack_size ) return false; /* stack allocation failed */ stack = the_thread->Start.stack; #else if ( !stack_area ) { 2008728: 12 80 00 0f bne 2008764 <_Thread_Initialize+0x60> 200872c: e4 0f a0 5f ldub [ %fp + 0x5f ], %l2 actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size ); 2008730: 90 10 00 19 mov %i1, %o0 2008734: 40 00 02 a6 call 20091cc <_Thread_Stack_Allocate> 2008738: 92 10 00 1b mov %i3, %o1 if ( !actual_stack_size || actual_stack_size < stack_size ) 200873c: 80 a2 00 1b cmp %o0, %i3 2008740: 0a 80 00 04 bcs 2008750 <_Thread_Initialize+0x4c> 2008744: 80 a2 20 00 cmp %o0, 0 2008748: 12 80 00 04 bne 2008758 <_Thread_Initialize+0x54> <== ALWAYS TAKEN 200874c: 82 10 20 01 mov 1, %g1 2008750: 81 c7 e0 08 ret 2008754: 91 e8 20 00 restore %g0, 0, %o0 return false; /* stack allocation failed */ stack = the_thread->Start.stack; 2008758: f4 06 60 d0 ld [ %i1 + 0xd0 ], %i2 the_thread->Start.core_allocated_stack = true; 200875c: 10 80 00 04 b 200876c <_Thread_Initialize+0x68> 2008760: c2 2e 60 c0 stb %g1, [ %i1 + 0xc0 ] } else { stack = stack_area; actual_stack_size = stack_size; the_thread->Start.core_allocated_stack = false; 2008764: c0 2e 60 c0 clrb [ %i1 + 0xc0 ] 2008768: 90 10 00 1b mov %i3, %o0 Stack_Control *the_stack, void *starting_address, size_t size ) { the_stack->area = starting_address; 200876c: f4 26 60 c8 st %i2, [ %i1 + 0xc8 ] the_stack->size = size; 2008770: d0 26 60 c4 st %o0, [ %i1 + 0xc4 ] /* * Allocate the floating point area for this thread */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( is_fp ) { 2008774: 80 8f 20 ff btst 0xff, %i4 2008778: 02 80 00 08 be 2008798 <_Thread_Initialize+0x94> 200877c: b4 10 20 00 clr %i2 fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE ); 2008780: 90 10 20 88 mov 0x88, %o0 2008784: 40 00 04 d1 call 2009ac8 <_Workspace_Allocate> 2008788: b6 10 20 00 clr %i3 if ( !fp_area ) 200878c: b4 92 20 00 orcc %o0, 0, %i2 2008790: 22 80 00 42 be,a 2008898 <_Thread_Initialize+0x194> 2008794: d0 06 61 64 ld [ %i1 + 0x164 ], %o0 #endif /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 2008798: 03 00 80 78 sethi %hi(0x201e000), %g1 200879c: d0 00 63 30 ld [ %g1 + 0x330 ], %o0 ! 201e330 <_Thread_Maximum_extensions> fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE ); if ( !fp_area ) goto failed; fp_area = _Context_Fp_start( fp_area, 0 ); } the_thread->fp_context = fp_area; 20087a0: f4 26 61 60 st %i2, [ %i1 + 0x160 ] the_thread->Start.fp_context = fp_area; 20087a4: f4 26 60 cc st %i2, [ %i1 + 0xcc ] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 20087a8: c0 26 60 50 clr [ %i1 + 0x50 ] the_watchdog->routine = routine; 20087ac: c0 26 60 64 clr [ %i1 + 0x64 ] the_watchdog->id = id; 20087b0: c0 26 60 68 clr [ %i1 + 0x68 ] the_watchdog->user_data = user_data; 20087b4: c0 26 60 6c clr [ %i1 + 0x6c ] #endif /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 20087b8: 80 a2 20 00 cmp %o0, 0 20087bc: 02 80 00 08 be 20087dc <_Thread_Initialize+0xd8> 20087c0: b6 10 20 00 clr %i3 extensions_area = _Workspace_Allocate( 20087c4: 90 02 20 01 inc %o0 20087c8: 40 00 04 c0 call 2009ac8 <_Workspace_Allocate> 20087cc: 91 2a 20 02 sll %o0, 2, %o0 (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) 20087d0: b6 92 20 00 orcc %o0, 0, %i3 20087d4: 22 80 00 31 be,a 2008898 <_Thread_Initialize+0x194> 20087d8: d0 06 61 64 ld [ %i1 + 0x164 ], %o0 * if they are linked to the thread. An extension user may * create the extension long after tasks have been created * so they cannot rely on the thread create user extension * call. */ if ( the_thread->extensions ) { 20087dc: 80 a6 e0 00 cmp %i3, 0 20087e0: 02 80 00 0c be 2008810 <_Thread_Initialize+0x10c> 20087e4: f6 26 61 74 st %i3, [ %i1 + 0x174 ] for ( i = 0; i <= _Thread_Maximum_extensions ; i++ ) 20087e8: 03 00 80 78 sethi %hi(0x201e000), %g1 20087ec: c4 00 63 30 ld [ %g1 + 0x330 ], %g2 ! 201e330 <_Thread_Maximum_extensions> 20087f0: 10 80 00 05 b 2008804 <_Thread_Initialize+0x100> 20087f4: 82 10 20 00 clr %g1 the_thread->extensions[i] = NULL; 20087f8: 87 28 60 02 sll %g1, 2, %g3 * create the extension long after tasks have been created * so they cannot rely on the thread create user extension * call. */ if ( the_thread->extensions ) { for ( i = 0; i <= _Thread_Maximum_extensions ; i++ ) 20087fc: 82 00 60 01 inc %g1 the_thread->extensions[i] = NULL; 2008800: c0 21 00 03 clr [ %g4 + %g3 ] * create the extension long after tasks have been created * so they cannot rely on the thread create user extension * call. */ if ( the_thread->extensions ) { for ( i = 0; i <= _Thread_Maximum_extensions ; i++ ) 2008804: 80 a0 40 02 cmp %g1, %g2 2008808: 28 bf ff fc bleu,a 20087f8 <_Thread_Initialize+0xf4> 200880c: c8 06 61 74 ld [ %i1 + 0x174 ], %g4 * General initialization */ the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; the_thread->Start.budget_callout = budget_callout; 2008810: c2 07 a0 64 ld [ %fp + 0x64 ], %g1 /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; 2008814: e4 2e 60 ac stb %l2, [ %i1 + 0xac ] the_thread->Start.budget_algorithm = budget_algorithm; the_thread->Start.budget_callout = budget_callout; 2008818: c2 26 60 b4 st %g1, [ %i1 + 0xb4 ] switch ( budget_algorithm ) { 200881c: 80 a4 60 02 cmp %l1, 2 2008820: 12 80 00 05 bne 2008834 <_Thread_Initialize+0x130> 2008824: e2 26 60 b0 st %l1, [ %i1 + 0xb0 ] case THREAD_CPU_BUDGET_ALGORITHM_NONE: case THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE: break; #if defined(RTEMS_SCORE_THREAD_ENABLE_EXHAUST_TIMESLICE) case THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE: the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice; 2008828: 03 00 80 78 sethi %hi(0x201e000), %g1 200882c: c2 00 61 e8 ld [ %g1 + 0x1e8 ], %g1 ! 201e1e8 <_Thread_Ticks_per_timeslice> 2008830: c2 26 60 78 st %g1, [ %i1 + 0x78 ] case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; #endif } the_thread->Start.isr_level = isr_level; 2008834: c2 07 a0 68 ld [ %fp + 0x68 ], %g1 #if defined(RTEMS_ITRON_API) the_thread->suspend_count = 0; #endif the_thread->real_priority = priority; the_thread->Start.initial_priority = priority; _Thread_Set_priority( the_thread, priority ); 2008838: 92 10 00 1d mov %i5, %o1 case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; #endif } the_thread->Start.isr_level = isr_level; 200883c: c2 26 60 b8 st %g1, [ %i1 + 0xb8 ] the_thread->current_state = STATES_DORMANT; 2008840: 82 10 20 01 mov 1, %g1 #if defined(RTEMS_ITRON_API) the_thread->suspend_count = 0; #endif the_thread->real_priority = priority; the_thread->Start.initial_priority = priority; _Thread_Set_priority( the_thread, priority ); 2008844: 90 10 00 19 mov %i1, %o0 #endif } the_thread->Start.isr_level = isr_level; the_thread->current_state = STATES_DORMANT; 2008848: c2 26 60 10 st %g1, [ %i1 + 0x10 ] the_thread->Wait.queue = NULL; 200884c: c0 26 60 44 clr [ %i1 + 0x44 ] the_thread->resource_count = 0; 2008850: c0 26 60 1c clr [ %i1 + 0x1c ] #if defined(RTEMS_ITRON_API) the_thread->suspend_count = 0; #endif the_thread->real_priority = priority; 2008854: fa 26 60 18 st %i5, [ %i1 + 0x18 ] the_thread->Start.initial_priority = priority; _Thread_Set_priority( the_thread, priority ); 2008858: 40 00 01 bb call 2008f44 <_Thread_Set_priority> 200885c: fa 26 60 bc st %i5, [ %i1 + 0xbc ] #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 2008860: c2 16 60 0a lduh [ %i1 + 0xa ], %g1 2008864: c4 06 20 1c ld [ %i0 + 0x1c ], %g2 2008868: 83 28 60 02 sll %g1, 2, %g1 information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 200886c: e0 26 60 0c st %l0, [ %i1 + 0xc ] #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 2008870: f2 20 80 01 st %i1, [ %g2 + %g1 ] /* * Initialize the CPU usage statistics */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_Set_to_zero( &the_thread->cpu_time_used ); 2008874: c0 26 60 84 clr [ %i1 + 0x84 ] 2008878: c0 26 60 88 clr [ %i1 + 0x88 ] * enabled when we get here. We want to be able to run the * user extensions with dispatching enabled. The Allocator * Mutex provides sufficient protection to let the user extensions * run safely. */ extension_status = _User_extensions_Thread_create( the_thread ); 200887c: 90 10 00 19 mov %i1, %o0 2008880: 40 00 03 87 call 200969c <_User_extensions_Thread_create> 2008884: b0 10 20 01 mov 1, %i0 if ( extension_status ) 2008888: 80 8a 20 ff btst 0xff, %o0 200888c: 12 80 00 27 bne 2008928 <_Thread_Initialize+0x224> 2008890: 01 00 00 00 nop return true; failed: if ( the_thread->libc_reent ) 2008894: d0 06 61 64 ld [ %i1 + 0x164 ], %o0 2008898: 80 a2 20 00 cmp %o0, 0 200889c: 22 80 00 05 be,a 20088b0 <_Thread_Initialize+0x1ac> 20088a0: d0 06 61 68 ld [ %i1 + 0x168 ], %o0 _Workspace_Free( the_thread->libc_reent ); 20088a4: 40 00 04 92 call 2009aec <_Workspace_Free> 20088a8: 01 00 00 00 nop for ( i=0 ; i <= THREAD_API_LAST ; i++ ) if ( the_thread->API_Extensions[i] ) 20088ac: d0 06 61 68 ld [ %i1 + 0x168 ], %o0 20088b0: 80 a2 20 00 cmp %o0, 0 20088b4: 22 80 00 05 be,a 20088c8 <_Thread_Initialize+0x1c4> 20088b8: d0 06 61 6c ld [ %i1 + 0x16c ], %o0 _Workspace_Free( the_thread->API_Extensions[i] ); 20088bc: 40 00 04 8c call 2009aec <_Workspace_Free> 20088c0: 01 00 00 00 nop failed: if ( the_thread->libc_reent ) _Workspace_Free( the_thread->libc_reent ); for ( i=0 ; i <= THREAD_API_LAST ; i++ ) if ( the_thread->API_Extensions[i] ) 20088c4: d0 06 61 6c ld [ %i1 + 0x16c ], %o0 20088c8: 80 a2 20 00 cmp %o0, 0 20088cc: 22 80 00 05 be,a 20088e0 <_Thread_Initialize+0x1dc> 20088d0: d0 06 61 70 ld [ %i1 + 0x170 ], %o0 _Workspace_Free( the_thread->API_Extensions[i] ); 20088d4: 40 00 04 86 call 2009aec <_Workspace_Free> 20088d8: 01 00 00 00 nop failed: if ( the_thread->libc_reent ) _Workspace_Free( the_thread->libc_reent ); for ( i=0 ; i <= THREAD_API_LAST ; i++ ) if ( the_thread->API_Extensions[i] ) 20088dc: d0 06 61 70 ld [ %i1 + 0x170 ], %o0 20088e0: 80 a2 20 00 cmp %o0, 0 20088e4: 02 80 00 05 be 20088f8 <_Thread_Initialize+0x1f4> <== ALWAYS TAKEN 20088e8: 80 a6 e0 00 cmp %i3, 0 _Workspace_Free( the_thread->API_Extensions[i] ); 20088ec: 40 00 04 80 call 2009aec <_Workspace_Free> <== NOT EXECUTED 20088f0: 01 00 00 00 nop <== NOT EXECUTED if ( extensions_area ) 20088f4: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 20088f8: 02 80 00 05 be 200890c <_Thread_Initialize+0x208> 20088fc: 80 a6 a0 00 cmp %i2, 0 (void) _Workspace_Free( extensions_area ); 2008900: 40 00 04 7b call 2009aec <_Workspace_Free> 2008904: 90 10 00 1b mov %i3, %o0 #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( fp_area ) 2008908: 80 a6 a0 00 cmp %i2, 0 200890c: 02 80 00 05 be 2008920 <_Thread_Initialize+0x21c> 2008910: 90 10 00 19 mov %i1, %o0 (void) _Workspace_Free( fp_area ); 2008914: 40 00 04 76 call 2009aec <_Workspace_Free> 2008918: 90 10 00 1a mov %i2, %o0 #endif _Thread_Stack_Free( the_thread ); 200891c: 90 10 00 19 mov %i1, %o0 2008920: 40 00 02 42 call 2009228 <_Thread_Stack_Free> 2008924: b0 10 20 00 clr %i0 return false; } 2008928: 81 c7 e0 08 ret 200892c: 81 e8 00 00 restore =============================================================================== 0200c6ac <_Thread_Resume>: void _Thread_Resume( Thread_Control *the_thread, bool force ) { 200c6ac: 9d e3 bf a0 save %sp, -96, %sp ISR_Level level; States_Control current_state; _ISR_Disable( level ); 200c6b0: 7f ff d6 95 call 2002104 200c6b4: a0 10 00 18 mov %i0, %l0 200c6b8: b0 10 00 08 mov %o0, %i0 _ISR_Enable( level ); return; } #endif current_state = the_thread->current_state; 200c6bc: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 if ( current_state & STATES_SUSPENDED ) { 200c6c0: 80 88 60 02 btst 2, %g1 200c6c4: 02 80 00 2c be 200c774 <_Thread_Resume+0xc8> <== NEVER TAKEN 200c6c8: 82 08 7f fd and %g1, -3, %g1 current_state = the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state); if ( _States_Is_ready( current_state ) ) { 200c6cc: 80 a0 60 00 cmp %g1, 0 200c6d0: 12 80 00 29 bne 200c774 <_Thread_Resume+0xc8> 200c6d4: c2 24 20 10 st %g1, [ %l0 + 0x10 ] RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; 200c6d8: c4 04 20 90 ld [ %l0 + 0x90 ], %g2 _Priority_Add_to_bit_map( &the_thread->Priority_map ); _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node); 200c6dc: c2 04 20 8c ld [ %l0 + 0x8c ], %g1 200c6e0: c8 10 80 00 lduh [ %g2 ], %g4 200c6e4: c6 14 20 96 lduh [ %l0 + 0x96 ], %g3 200c6e8: 86 11 00 03 or %g4, %g3, %g3 200c6ec: c6 30 80 00 sth %g3, [ %g2 ] Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 200c6f0: 84 00 60 04 add %g1, 4, %g2 _Priority_Major_bit_map |= the_priority_map->ready_major; 200c6f4: da 14 20 94 lduh [ %l0 + 0x94 ], %o5 200c6f8: c4 24 00 00 st %g2, [ %l0 ] 200c6fc: 07 00 80 87 sethi %hi(0x2021c00), %g3 old_last_node = the_chain->last; 200c700: c4 00 60 08 ld [ %g1 + 8 ], %g2 200c704: c8 10 e1 f4 lduh [ %g3 + 0x1f4 ], %g4 the_chain->last = the_node; 200c708: e0 20 60 08 st %l0, [ %g1 + 8 ] old_last_node->next = the_node; the_node->previous = old_last_node; 200c70c: c4 24 20 04 st %g2, [ %l0 + 4 ] 200c710: 82 13 40 04 or %o5, %g4, %g1 Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; the_chain->last = the_node; old_last_node->next = the_node; 200c714: e0 20 80 00 st %l0, [ %g2 ] 200c718: c2 30 e1 f4 sth %g1, [ %g3 + 0x1f4 ] _ISR_Flash( level ); 200c71c: 7f ff d6 7e call 2002114 200c720: 01 00 00 00 nop 200c724: 7f ff d6 78 call 2002104 200c728: 01 00 00 00 nop if ( the_thread->current_priority < _Thread_Heir->current_priority ) { 200c72c: 05 00 80 87 sethi %hi(0x2021c00), %g2 200c730: c6 00 a1 d0 ld [ %g2 + 0x1d0 ], %g3 ! 2021dd0 <_Thread_Heir> 200c734: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 200c738: c6 00 e0 14 ld [ %g3 + 0x14 ], %g3 200c73c: 80 a0 40 03 cmp %g1, %g3 200c740: 1a 80 00 0d bcc 200c774 <_Thread_Resume+0xc8> 200c744: 07 00 80 87 sethi %hi(0x2021c00), %g3 _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible || 200c748: c6 00 e2 00 ld [ %g3 + 0x200 ], %g3 ! 2021e00 <_Thread_Executing> _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node); _ISR_Flash( level ); if ( the_thread->current_priority < _Thread_Heir->current_priority ) { _Thread_Heir = the_thread; 200c74c: e0 20 a1 d0 st %l0, [ %g2 + 0x1d0 ] if ( _Thread_Executing->is_preemptible || 200c750: c4 08 e0 75 ldub [ %g3 + 0x75 ], %g2 200c754: 80 a0 a0 00 cmp %g2, 0 200c758: 12 80 00 05 bne 200c76c <_Thread_Resume+0xc0> 200c75c: 84 10 20 01 mov 1, %g2 200c760: 80 a0 60 00 cmp %g1, 0 200c764: 12 80 00 04 bne 200c774 <_Thread_Resume+0xc8> <== ALWAYS TAKEN 200c768: 01 00 00 00 nop the_thread->current_priority == 0 ) _Context_Switch_necessary = true; 200c76c: 03 00 80 87 sethi %hi(0x2021c00), %g1 200c770: c4 28 62 10 stb %g2, [ %g1 + 0x210 ] ! 2021e10 <_Context_Switch_necessary> } } } _ISR_Enable( level ); 200c774: 7f ff d6 68 call 2002114 200c778: 81 e8 00 00 restore =============================================================================== 02009228 <_Thread_Stack_Free>: */ void _Thread_Stack_Free( Thread_Control *the_thread ) { 2009228: 9d e3 bf a0 save %sp, -96, %sp #if defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API) /* * If the API provided the stack space, then don't free it. */ if ( !the_thread->Start.core_allocated_stack ) 200922c: c2 0e 20 c0 ldub [ %i0 + 0xc0 ], %g1 2009230: 80 a0 60 00 cmp %g1, 0 2009234: 02 80 00 08 be 2009254 <_Thread_Stack_Free+0x2c> <== NEVER TAKEN 2009238: 03 00 80 75 sethi %hi(0x201d400), %g1 * Call ONLY the CPU table stack free hook, or the * the RTEMS workspace free. This is so the free * routine properly matches the allocation of the stack. */ if ( Configuration.stack_free_hook ) 200923c: c2 00 63 7c ld [ %g1 + 0x37c ], %g1 ! 201d77c 2009240: 80 a0 60 00 cmp %g1, 0 2009244: 02 80 00 06 be 200925c <_Thread_Stack_Free+0x34> 2009248: d0 06 20 c8 ld [ %i0 + 0xc8 ], %o0 (*Configuration.stack_free_hook)( the_thread->Start.Initial_stack.area ); 200924c: 9f c0 40 00 call %g1 2009250: 01 00 00 00 nop 2009254: 81 c7 e0 08 ret 2009258: 81 e8 00 00 restore else _Workspace_Free( the_thread->Start.Initial_stack.area ); 200925c: 40 00 02 24 call 2009aec <_Workspace_Free> 2009260: 91 e8 00 08 restore %g0, %o0, %o0 =============================================================================== 0200930c <_Thread_Tickle_timeslice>: * * Output parameters: NONE */ void _Thread_Tickle_timeslice( void ) { 200930c: 9d e3 bf a0 save %sp, -96, %sp Thread_Control *executing; executing = _Thread_Executing; 2009310: 03 00 80 78 sethi %hi(0x201e000), %g1 2009314: e0 00 63 50 ld [ %g1 + 0x350 ], %l0 ! 201e350 <_Thread_Executing> /* * If the thread is not preemptible or is not ready, then * just return. */ if ( !executing->is_preemptible ) 2009318: c2 0c 20 75 ldub [ %l0 + 0x75 ], %g1 200931c: 80 a0 60 00 cmp %g1, 0 2009320: 02 80 00 23 be 20093ac <_Thread_Tickle_timeslice+0xa0> 2009324: 01 00 00 00 nop return; if ( !_States_Is_ready( executing->current_state ) ) 2009328: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 200932c: 80 a0 60 00 cmp %g1, 0 2009330: 12 80 00 1f bne 20093ac <_Thread_Tickle_timeslice+0xa0> 2009334: 01 00 00 00 nop /* * The cpu budget algorithm determines what happens next. */ switch ( executing->budget_algorithm ) { 2009338: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 200933c: 80 a0 60 01 cmp %g1, 1 2009340: 0a 80 00 12 bcs 2009388 <_Thread_Tickle_timeslice+0x7c> 2009344: 80 a0 60 02 cmp %g1, 2 2009348: 28 80 00 07 bleu,a 2009364 <_Thread_Tickle_timeslice+0x58> 200934c: c2 04 20 78 ld [ %l0 + 0x78 ], %g1 2009350: 80 a0 60 03 cmp %g1, 3 2009354: 12 80 00 16 bne 20093ac <_Thread_Tickle_timeslice+0xa0> <== NEVER TAKEN 2009358: 01 00 00 00 nop } break; #if defined(RTEMS_SCORE_THREAD_ENABLE_SCHEDULER_CALLOUT) case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: if ( --executing->cpu_time_budget == 0 ) 200935c: 10 80 00 0d b 2009390 <_Thread_Tickle_timeslice+0x84> 2009360: c2 04 20 78 ld [ %l0 + 0x78 ], %g1 case THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE: #if defined(RTEMS_SCORE_THREAD_ENABLE_EXHAUST_TIMESLICE) case THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE: #endif if ( (int)(--executing->cpu_time_budget) <= 0 ) { 2009364: 82 00 7f ff add %g1, -1, %g1 2009368: 80 a0 60 00 cmp %g1, 0 200936c: 14 80 00 07 bg 2009388 <_Thread_Tickle_timeslice+0x7c> 2009370: c2 24 20 78 st %g1, [ %l0 + 0x78 ] _Thread_Reset_timeslice(); 2009374: 40 00 12 98 call 200ddd4 <_Thread_Reset_timeslice> 2009378: 01 00 00 00 nop executing->cpu_time_budget = _Thread_Ticks_per_timeslice; 200937c: 03 00 80 78 sethi %hi(0x201e000), %g1 2009380: c2 00 61 e8 ld [ %g1 + 0x1e8 ], %g1 ! 201e1e8 <_Thread_Ticks_per_timeslice> 2009384: c2 24 20 78 st %g1, [ %l0 + 0x78 ] 2009388: 81 c7 e0 08 ret 200938c: 81 e8 00 00 restore } break; #if defined(RTEMS_SCORE_THREAD_ENABLE_SCHEDULER_CALLOUT) case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: if ( --executing->cpu_time_budget == 0 ) 2009390: 82 00 7f ff add %g1, -1, %g1 2009394: 80 a0 60 00 cmp %g1, 0 2009398: 12 bf ff fc bne 2009388 <_Thread_Tickle_timeslice+0x7c> 200939c: c2 24 20 78 st %g1, [ %l0 + 0x78 ] (*executing->budget_callout)( executing ); 20093a0: c2 04 20 80 ld [ %l0 + 0x80 ], %g1 20093a4: 9f c0 40 00 call %g1 20093a8: 90 10 00 10 mov %l0, %o0 20093ac: 81 c7 e0 08 ret 20093b0: 81 e8 00 00 restore =============================================================================== 020093b4 <_Thread_Yield_processor>: * ready chain * select heir */ void _Thread_Yield_processor( void ) { 20093b4: 9d e3 bf a0 save %sp, -96, %sp ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; 20093b8: 03 00 80 78 sethi %hi(0x201e000), %g1 20093bc: e0 00 63 50 ld [ %g1 + 0x350 ], %l0 ! 201e350 <_Thread_Executing> ready = executing->ready; _ISR_Disable( level ); 20093c0: 7f ff e3 01 call 2001fc4 20093c4: e2 04 20 8c ld [ %l0 + 0x8c ], %l1 20093c8: b0 10 00 08 mov %o0, %i0 if ( !_Chain_Has_only_one_node( ready ) ) { 20093cc: c4 04 40 00 ld [ %l1 ], %g2 20093d0: c2 04 60 08 ld [ %l1 + 8 ], %g1 20093d4: 80 a0 80 01 cmp %g2, %g1 20093d8: 02 80 00 17 be 2009434 <_Thread_Yield_processor+0x80> 20093dc: 25 00 80 78 sethi %hi(0x201e000), %l2 ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 20093e0: c2 04 00 00 ld [ %l0 ], %g1 previous = the_node->previous; 20093e4: c4 04 20 04 ld [ %l0 + 4 ], %g2 Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 20093e8: 86 04 60 04 add %l1, 4, %g3 Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; previous->next = next; 20093ec: c2 20 80 00 st %g1, [ %g2 ] Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 20093f0: c6 24 00 00 st %g3, [ %l0 ] Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; 20093f4: c4 20 60 04 st %g2, [ %g1 + 4 ] ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; 20093f8: c2 04 60 08 ld [ %l1 + 8 ], %g1 the_chain->last = the_node; 20093fc: e0 24 60 08 st %l0, [ %l1 + 8 ] old_last_node->next = the_node; the_node->previous = old_last_node; 2009400: c2 24 20 04 st %g1, [ %l0 + 4 ] Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; the_chain->last = the_node; old_last_node->next = the_node; 2009404: e0 20 40 00 st %l0, [ %g1 ] _Chain_Extract_unprotected( &executing->Object.Node ); _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); 2009408: 7f ff e2 f3 call 2001fd4 200940c: 01 00 00 00 nop 2009410: 7f ff e2 ed call 2001fc4 2009414: 01 00 00 00 nop if ( _Thread_Is_heir( executing ) ) 2009418: c2 04 a3 20 ld [ %l2 + 0x320 ], %g1 200941c: 80 a4 00 01 cmp %l0, %g1 2009420: 12 80 00 09 bne 2009444 <_Thread_Yield_processor+0x90> <== NEVER TAKEN 2009424: 84 10 20 01 mov 1, %g2 _Thread_Heir = (Thread_Control *) ready->first; 2009428: c2 04 40 00 ld [ %l1 ], %g1 200942c: 10 80 00 06 b 2009444 <_Thread_Yield_processor+0x90> 2009430: c2 24 a3 20 st %g1, [ %l2 + 0x320 ] _Context_Switch_necessary = true; } else if ( !_Thread_Is_heir( executing ) ) 2009434: c2 04 a3 20 ld [ %l2 + 0x320 ], %g1 2009438: 80 a4 00 01 cmp %l0, %g1 200943c: 02 80 00 04 be 200944c <_Thread_Yield_processor+0x98> <== ALWAYS TAKEN 2009440: 84 10 20 01 mov 1, %g2 _Context_Switch_necessary = true; 2009444: 03 00 80 78 sethi %hi(0x201e000), %g1 2009448: c4 28 63 60 stb %g2, [ %g1 + 0x360 ] ! 201e360 <_Context_Switch_necessary> _ISR_Enable( level ); 200944c: 7f ff e2 e2 call 2001fd4 2009450: 81 e8 00 00 restore =============================================================================== 02008c4c <_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 ) { 2008c4c: 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; 2008c50: 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); 2008c54: 82 06 60 3c add %i1, 0x3c, %g1 the_chain->permanent_null = NULL; 2008c58: 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); 2008c5c: c2 26 60 38 st %g1, [ %i1 + 0x38 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 2008c60: 82 06 60 38 add %i1, 0x38, %g1 2008c64: 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; 2008c68: 2d 00 80 75 sethi %hi(0x201d400), %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 ]; 2008c6c: 83 34 20 06 srl %l0, 6, %g1 block_state = the_thread_queue->state; if ( _Thread_queue_Is_reverse_search( priority ) ) 2008c70: 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 ]; 2008c74: 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; 2008c78: ac 15 a3 54 or %l6, 0x354, %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 ]; 2008c7c: 83 28 60 02 sll %g1, 2, %g1 block_state = the_thread_queue->state; 2008c80: 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 ]; 2008c84: a6 24 c0 01 sub %l3, %g1, %l3 block_state = the_thread_queue->state; if ( _Thread_queue_Is_reverse_search( priority ) ) 2008c88: 12 80 00 23 bne 2008d14 <_Thread_queue_Enqueue_priority+0xc8> 2008c8c: 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; 2008c90: ac 04 e0 04 add %l3, 4, %l6 goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); 2008c94: 7f ff e4 cc call 2001fc4 2008c98: 01 00 00 00 nop 2008c9c: a4 10 00 08 mov %o0, %l2 search_thread = (Thread_Control *) header->first; 2008ca0: a8 10 3f ff mov -1, %l4 while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 2008ca4: 10 80 00 10 b 2008ce4 <_Thread_queue_Enqueue_priority+0x98> 2008ca8: e2 04 c0 00 ld [ %l3 ], %l1 search_priority = search_thread->current_priority; if ( priority <= search_priority ) 2008cac: 80 a4 00 14 cmp %l0, %l4 2008cb0: 28 80 00 11 bleu,a 2008cf4 <_Thread_queue_Enqueue_priority+0xa8> 2008cb4: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 break; search_priority = search_thread->current_priority; if ( priority <= search_priority ) break; #endif _ISR_Flash( level ); 2008cb8: 7f ff e4 c7 call 2001fd4 2008cbc: 90 10 00 12 mov %l2, %o0 2008cc0: 7f ff e4 c1 call 2001fc4 2008cc4: 01 00 00 00 nop if ( !_States_Are_set( search_thread->current_state, block_state) ) { 2008cc8: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 2008ccc: 80 8d 40 01 btst %l5, %g1 2008cd0: 32 80 00 05 bne,a 2008ce4 <_Thread_queue_Enqueue_priority+0x98><== ALWAYS TAKEN 2008cd4: e2 04 40 00 ld [ %l1 ], %l1 _ISR_Enable( level ); 2008cd8: 7f ff e4 bf call 2001fd4 <== NOT EXECUTED 2008cdc: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED goto restart_forward_search; 2008ce0: 30 bf ff ed b,a 2008c94 <_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 ) ) { 2008ce4: 80 a4 40 16 cmp %l1, %l6 2008ce8: 32 bf ff f1 bne,a 2008cac <_Thread_queue_Enqueue_priority+0x60> 2008cec: e8 04 60 14 ld [ %l1 + 0x14 ], %l4 } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 2008cf0: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 2008cf4: 80 a0 60 01 cmp %g1, 1 2008cf8: 12 80 00 37 bne 2008dd4 <_Thread_queue_Enqueue_priority+0x188> 2008cfc: 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 ) 2008d00: 80 a4 00 14 cmp %l0, %l4 2008d04: 12 80 00 2a bne 2008dac <_Thread_queue_Enqueue_priority+0x160> 2008d08: c0 26 20 30 clr [ %i0 + 0x30 ] 2008d0c: 10 80 00 28 b 2008dac <_Thread_queue_Enqueue_priority+0x160> 2008d10: a2 04 60 3c add %l1, 0x3c, %l1 return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; _ISR_Disable( level ); 2008d14: 7f ff e4 ac call 2001fc4 2008d18: 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; 2008d1c: a8 05 20 01 inc %l4 _ISR_Disable( level ); 2008d20: a4 10 00 08 mov %o0, %l2 search_thread = (Thread_Control *) header->last; while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { 2008d24: 10 80 00 10 b 2008d64 <_Thread_queue_Enqueue_priority+0x118> 2008d28: e2 04 e0 08 ld [ %l3 + 8 ], %l1 search_priority = search_thread->current_priority; if ( priority >= search_priority ) 2008d2c: 80 a4 00 14 cmp %l0, %l4 2008d30: 3a 80 00 11 bcc,a 2008d74 <_Thread_queue_Enqueue_priority+0x128> 2008d34: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 break; search_priority = search_thread->current_priority; if ( priority >= search_priority ) break; #endif _ISR_Flash( level ); 2008d38: 7f ff e4 a7 call 2001fd4 2008d3c: 90 10 00 12 mov %l2, %o0 2008d40: 7f ff e4 a1 call 2001fc4 2008d44: 01 00 00 00 nop if ( !_States_Are_set( search_thread->current_state, block_state) ) { 2008d48: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 2008d4c: 80 8d 40 01 btst %l5, %g1 2008d50: 32 80 00 05 bne,a 2008d64 <_Thread_queue_Enqueue_priority+0x118> 2008d54: e2 04 60 04 ld [ %l1 + 4 ], %l1 _ISR_Enable( level ); 2008d58: 7f ff e4 9f call 2001fd4 2008d5c: 90 10 00 12 mov %l2, %o0 goto restart_reverse_search; 2008d60: 30 bf ff ed b,a 2008d14 <_Thread_queue_Enqueue_priority+0xc8> 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 ) ) { 2008d64: 80 a4 40 13 cmp %l1, %l3 2008d68: 32 bf ff f1 bne,a 2008d2c <_Thread_queue_Enqueue_priority+0xe0> 2008d6c: e8 04 60 14 ld [ %l1 + 0x14 ], %l4 } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 2008d70: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 2008d74: 80 a0 60 01 cmp %g1, 1 2008d78: 12 80 00 17 bne 2008dd4 <_Thread_queue_Enqueue_priority+0x188> 2008d7c: 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 ) 2008d80: 80 a4 00 14 cmp %l0, %l4 2008d84: 02 80 00 09 be 2008da8 <_Thread_queue_Enqueue_priority+0x15c> 2008d88: c0 26 20 30 clr [ %i0 + 0x30 ] goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; 2008d8c: c2 04 40 00 ld [ %l1 ], %g1 the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; 2008d90: 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; 2008d94: 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; 2008d98: 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; 2008d9c: f2 24 40 00 st %i1, [ %l1 ] next_node->previous = the_node; 2008da0: 10 80 00 09 b 2008dc4 <_Thread_queue_Enqueue_priority+0x178> 2008da4: f2 20 60 04 st %i1, [ %g1 + 4 ] 2008da8: a2 04 60 3c add %l1, 0x3c, %l1 _ISR_Enable( level ); 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; 2008dac: c2 04 60 04 ld [ %l1 + 4 ], %g1 the_node = (Chain_Node *) the_thread; the_node->next = search_node; 2008db0: e2 26 40 00 st %l1, [ %i1 ] the_node->previous = previous_node; 2008db4: 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; 2008db8: 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; 2008dbc: f2 20 40 00 st %i1, [ %g1 ] search_node->previous = the_node; 2008dc0: f2 24 60 04 st %i1, [ %l1 + 4 ] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 2008dc4: 7f ff e4 84 call 2001fd4 2008dc8: b0 10 20 01 mov 1, %i0 return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 2008dcc: 81 c7 e0 08 ret 2008dd0: 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; 2008dd4: 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; 2008dd8: d0 26 80 00 st %o0, [ %i2 ] return the_thread_queue->sync_state; } 2008ddc: 81 c7 e0 08 ret 2008de0: 81 e8 00 00 restore =============================================================================== 02008e90 <_Thread_queue_Requeue>: void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { 2008e90: 9d e3 bf 98 save %sp, -104, %sp /* * Just in case the thread really wasn't blocked on a thread queue * when we get here. */ if ( !the_thread_queue ) 2008e94: 80 a6 20 00 cmp %i0, 0 2008e98: 02 80 00 19 be 2008efc <_Thread_queue_Requeue+0x6c> <== NEVER TAKEN 2008e9c: 01 00 00 00 nop /* * If queueing by FIFO, there is nothing to do. This only applies to * priority blocking discipline. */ if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) { 2008ea0: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 2008ea4: 80 a4 60 01 cmp %l1, 1 2008ea8: 12 80 00 15 bne 2008efc <_Thread_queue_Requeue+0x6c> <== NEVER TAKEN 2008eac: 01 00 00 00 nop Thread_queue_Control *tq = the_thread_queue; ISR_Level level; ISR_Level level_ignored; _ISR_Disable( level ); 2008eb0: 7f ff e4 45 call 2001fc4 2008eb4: 01 00 00 00 nop 2008eb8: a0 10 00 08 mov %o0, %l0 if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 2008ebc: c4 06 60 10 ld [ %i1 + 0x10 ], %g2 2008ec0: 03 00 00 ef sethi %hi(0x3bc00), %g1 2008ec4: 82 10 62 e0 or %g1, 0x2e0, %g1 ! 3bee0 2008ec8: 80 88 80 01 btst %g2, %g1 2008ecc: 02 80 00 0a be 2008ef4 <_Thread_queue_Requeue+0x64> <== NEVER TAKEN 2008ed0: 94 10 20 01 mov 1, %o2 _Thread_queue_Enter_critical_section( tq ); _Thread_queue_Extract_priority_helper( tq, the_thread, true ); 2008ed4: 90 10 00 18 mov %i0, %o0 2008ed8: 92 10 00 19 mov %i1, %o1 2008edc: 40 00 13 1d call 200db50 <_Thread_queue_Extract_priority_helper> 2008ee0: e2 26 20 30 st %l1, [ %i0 + 0x30 ] (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored ); 2008ee4: 90 10 00 18 mov %i0, %o0 2008ee8: 92 10 00 19 mov %i1, %o1 2008eec: 7f ff ff 58 call 2008c4c <_Thread_queue_Enqueue_priority> 2008ef0: 94 07 bf fc add %fp, -4, %o2 } _ISR_Enable( level ); 2008ef4: 7f ff e4 38 call 2001fd4 2008ef8: 90 10 00 10 mov %l0, %o0 2008efc: 81 c7 e0 08 ret 2008f00: 81 e8 00 00 restore =============================================================================== 02008f04 <_Thread_queue_Timeout>: void _Thread_queue_Timeout( Objects_Id id, void *ignored __attribute__((unused)) ) { 2008f04: 9d e3 bf 98 save %sp, -104, %sp Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 2008f08: 90 10 00 18 mov %i0, %o0 2008f0c: 7f ff fd d3 call 2008658 <_Thread_Get> 2008f10: 92 07 bf fc add %fp, -4, %o1 switch ( location ) { 2008f14: c2 07 bf fc ld [ %fp + -4 ], %g1 2008f18: 80 a0 60 00 cmp %g1, 0 2008f1c: 12 80 00 08 bne 2008f3c <_Thread_queue_Timeout+0x38> <== NEVER TAKEN 2008f20: 01 00 00 00 nop #if defined(RTEMS_MULTIPROCESSING) case OBJECTS_REMOTE: /* impossible */ #endif break; case OBJECTS_LOCAL: _Thread_queue_Process_timeout( the_thread ); 2008f24: 40 00 13 42 call 200dc2c <_Thread_queue_Process_timeout> 2008f28: 01 00 00 00 nop */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 2008f2c: 03 00 80 78 sethi %hi(0x201e000), %g1 2008f30: c4 00 62 90 ld [ %g1 + 0x290 ], %g2 ! 201e290 <_Thread_Dispatch_disable_level> 2008f34: 84 00 bf ff add %g2, -1, %g2 2008f38: c4 20 62 90 st %g2, [ %g1 + 0x290 ] 2008f3c: 81 c7 e0 08 ret 2008f40: 81 e8 00 00 restore =============================================================================== 020012e0 <_Timer_Manager_initialization>: #include #include void _Timer_Manager_initialization(void) { } 20012e0: 81 c3 e0 08 retl =============================================================================== 02015de4 <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { 2015de4: 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; 2015de8: 35 00 80 fc sethi %hi(0x203f000), %i2 2015dec: b2 07 bf f4 add %fp, -12, %i1 2015df0: ac 07 bf f8 add %fp, -8, %l6 2015df4: a2 07 bf e8 add %fp, -24, %l1 2015df8: 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(); 2015dfc: 37 00 80 fb sethi %hi(0x203ec00), %i3 2015e00: 2b 00 80 fb sethi %hi(0x203ec00), %l5 RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 2015e04: c0 27 bf f8 clr [ %fp + -8 ] 2015e08: c0 27 bf ec clr [ %fp + -20 ] the_chain->last = _Chain_Head(the_chain); 2015e0c: 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); 2015e10: ec 27 bf f4 st %l6, [ %fp + -12 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 2015e14: 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); 2015e18: 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; 2015e1c: b4 16 a0 a4 or %i2, 0xa4, %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(); 2015e20: b6 16 e3 e4 or %i3, 0x3e4, %i3 2015e24: aa 15 63 50 or %l5, 0x350, %l5 */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 2015e28: 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 ); 2015e2c: 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 ); 2015e30: 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 ); 2015e34: 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; 2015e38: 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; 2015e3c: 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; 2015e40: c2 06 80 00 ld [ %i2 ], %g1 /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; 2015e44: d2 06 20 3c ld [ %i0 + 0x3c ], %o1 watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 2015e48: 94 10 00 11 mov %l1, %o2 /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; 2015e4c: c2 26 20 3c st %g1, [ %i0 + 0x3c ] _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 2015e50: 92 20 40 09 sub %g1, %o1, %o1 2015e54: 40 00 11 b3 call 201a520 <_Watchdog_Adjust_to_chain> 2015e58: 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; 2015e5c: 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(); 2015e60: 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 ) { 2015e64: 80 a4 00 0a cmp %l0, %o2 2015e68: 08 80 00 06 bleu 2015e80 <_Timer_server_Body+0x9c> 2015e6c: 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 ); 2015e70: 90 10 00 12 mov %l2, %o0 2015e74: 40 00 11 ab call 201a520 <_Watchdog_Adjust_to_chain> 2015e78: 94 10 00 11 mov %l1, %o2 2015e7c: 30 80 00 06 b,a 2015e94 <_Timer_server_Body+0xb0> } else if ( snapshot < last_snapshot ) { 2015e80: 1a 80 00 05 bcc 2015e94 <_Timer_server_Body+0xb0> 2015e84: 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 ); 2015e88: 90 10 00 12 mov %l2, %o0 2015e8c: 40 00 11 7e call 201a484 <_Watchdog_Adjust> 2015e90: 92 10 20 01 mov 1, %o1 } watchdogs->last_snapshot = snapshot; 2015e94: 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 ); 2015e98: d0 06 20 78 ld [ %i0 + 0x78 ], %o0 2015e9c: 40 00 02 7a call 2016884 <_Chain_Get> 2015ea0: 01 00 00 00 nop if ( timer == NULL ) { 2015ea4: 80 a2 20 00 cmp %o0, 0 2015ea8: 02 80 00 0f be 2015ee4 <_Timer_server_Body+0x100> 2015eac: 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 ) { 2015eb0: c2 02 20 38 ld [ %o0 + 0x38 ], %g1 2015eb4: 80 a0 60 01 cmp %g1, 1 2015eb8: 12 80 00 05 bne 2015ecc <_Timer_server_Body+0xe8> 2015ebc: 80 a0 60 03 cmp %g1, 3 _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); 2015ec0: 92 02 20 10 add %o0, 0x10, %o1 2015ec4: 10 80 00 05 b 2015ed8 <_Timer_server_Body+0xf4> 2015ec8: 90 10 00 14 mov %l4, %o0 } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { 2015ecc: 12 bf ff f3 bne 2015e98 <_Timer_server_Body+0xb4> <== NEVER TAKEN 2015ed0: 92 02 20 10 add %o0, 0x10, %o1 _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); 2015ed4: 90 10 00 12 mov %l2, %o0 2015ed8: 40 00 11 c7 call 201a5f4 <_Watchdog_Insert> 2015edc: 01 00 00 00 nop 2015ee0: 30 bf ff ee b,a 2015e98 <_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 ); 2015ee4: 7f ff e2 57 call 200e840 2015ee8: 01 00 00 00 nop if ( _Chain_Is_empty( insert_chain ) ) { 2015eec: c2 07 bf f4 ld [ %fp + -12 ], %g1 2015ef0: 80 a0 40 16 cmp %g1, %l6 2015ef4: 12 80 00 0a bne 2015f1c <_Timer_server_Body+0x138> <== NEVER TAKEN 2015ef8: 01 00 00 00 nop ts->insert_chain = NULL; 2015efc: c0 26 20 78 clr [ %i0 + 0x78 ] _ISR_Enable( level ); 2015f00: 7f ff e2 54 call 200e850 2015f04: 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 ) ) { 2015f08: c2 07 bf e8 ld [ %fp + -24 ], %g1 2015f0c: 80 a0 40 13 cmp %g1, %l3 2015f10: 12 80 00 06 bne 2015f28 <_Timer_server_Body+0x144> 2015f14: 01 00 00 00 nop 2015f18: 30 80 00 1a b,a 2015f80 <_Timer_server_Body+0x19c> ts->insert_chain = NULL; _ISR_Enable( level ); break; } else { _ISR_Enable( level ); 2015f1c: 7f ff e2 4d call 200e850 <== NOT EXECUTED 2015f20: 01 00 00 00 nop <== NOT EXECUTED 2015f24: 30 bf ff c7 b,a 2015e40 <_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 ); 2015f28: 7f ff e2 46 call 200e840 2015f2c: 01 00 00 00 nop 2015f30: 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)); 2015f34: 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)) 2015f38: 80 a4 00 13 cmp %l0, %l3 2015f3c: 02 80 00 0e be 2015f74 <_Timer_server_Body+0x190> 2015f40: 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; 2015f44: c2 04 00 00 ld [ %l0 ], %g1 the_chain->first = new_first; 2015f48: c2 27 bf e8 st %g1, [ %fp + -24 ] watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain ); if ( watchdog != NULL ) { 2015f4c: 02 80 00 0a be 2015f74 <_Timer_server_Body+0x190> <== NEVER TAKEN 2015f50: e2 20 60 04 st %l1, [ %g1 + 4 ] watchdog->state = WATCHDOG_INACTIVE; 2015f54: c0 24 20 08 clr [ %l0 + 8 ] _ISR_Enable( level ); 2015f58: 7f ff e2 3e call 200e850 2015f5c: 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 ); 2015f60: d2 04 20 24 ld [ %l0 + 0x24 ], %o1 2015f64: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 2015f68: 9f c0 40 00 call %g1 2015f6c: d0 04 20 20 ld [ %l0 + 0x20 ], %o0 } 2015f70: 30 bf ff ee b,a 2015f28 <_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 ); 2015f74: 7f ff e2 37 call 200e850 2015f78: 90 10 00 02 mov %g2, %o0 2015f7c: 30 bf ff b0 b,a 2015e3c <_Timer_server_Body+0x58> * the active flag of the timer server is true. */ (*watchdog->routine)( watchdog->id, watchdog->user_data ); } } else { ts->active = false; 2015f80: c0 2e 20 7c clrb [ %i0 + 0x7c ] 2015f84: c2 05 40 00 ld [ %l5 ], %g1 2015f88: 82 00 60 01 inc %g1 2015f8c: c2 25 40 00 st %g1, [ %l5 ] /* * Block until there is something to do. */ _Thread_Disable_dispatch(); _Thread_Set_state( ts->thread, STATES_DELAYING ); 2015f90: d0 06 00 00 ld [ %i0 ], %o0 2015f94: 40 00 0e 99 call 20199f8 <_Thread_Set_state> 2015f98: 92 10 20 08 mov 8, %o1 _Timer_server_Reset_interval_system_watchdog( ts ); 2015f9c: 7f ff ff 68 call 2015d3c <_Timer_server_Reset_interval_system_watchdog> 2015fa0: 90 10 00 18 mov %i0, %o0 _Timer_server_Reset_tod_system_watchdog( ts ); 2015fa4: 7f ff ff 7b call 2015d90 <_Timer_server_Reset_tod_system_watchdog> 2015fa8: 90 10 00 18 mov %i0, %o0 _Thread_Enable_dispatch(); 2015fac: 40 00 0b c2 call 2018eb4 <_Thread_Enable_dispatch> 2015fb0: 01 00 00 00 nop static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); 2015fb4: 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; 2015fb8: 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 ); 2015fbc: 40 00 11 ea call 201a764 <_Watchdog_Remove> 2015fc0: 01 00 00 00 nop static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); 2015fc4: 40 00 11 e8 call 201a764 <_Watchdog_Remove> 2015fc8: 90 10 00 1d mov %i5, %o0 2015fcc: 30 bf ff 9c b,a 2015e3c <_Timer_server_Body+0x58> =============================================================================== 0200b978 <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) { 200b978: 9d e3 bf a0 save %sp, -96, %sp ISR_Level level; _ISR_Disable( level ); 200b97c: 7f ff dd 78 call 2002f5c 200b980: a0 10 00 18 mov %i0, %l0 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 200b984: c2 06 00 00 ld [ %i0 ], %g1 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 200b988: a2 06 20 04 add %i0, 4, %l1 * hence the compiler must not assume *header to remain * unmodified across that call. * * Till Straumann, 7/2003 */ if ( !_Chain_Is_empty( header ) ) { 200b98c: 80 a0 40 11 cmp %g1, %l1 200b990: 02 80 00 1e be 200ba08 <_Watchdog_Adjust+0x90> 200b994: 80 a6 60 00 cmp %i1, 0 switch ( direction ) { 200b998: 02 80 00 19 be 200b9fc <_Watchdog_Adjust+0x84> 200b99c: a4 10 20 01 mov 1, %l2 200b9a0: 80 a6 60 01 cmp %i1, 1 200b9a4: 12 80 00 19 bne 200ba08 <_Watchdog_Adjust+0x90> <== NEVER TAKEN 200b9a8: 01 00 00 00 nop case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; 200b9ac: c4 00 60 10 ld [ %g1 + 0x10 ], %g2 200b9b0: 10 80 00 07 b 200b9cc <_Watchdog_Adjust+0x54> 200b9b4: b4 00 80 1a add %g2, %i2, %i2 break; case WATCHDOG_FORWARD: while ( units ) { if ( units < _Watchdog_First( header )->delta_interval ) { 200b9b8: f2 00 60 10 ld [ %g1 + 0x10 ], %i1 200b9bc: 80 a6 80 19 cmp %i2, %i1 200b9c0: 3a 80 00 05 bcc,a 200b9d4 <_Watchdog_Adjust+0x5c> 200b9c4: e4 20 60 10 st %l2, [ %g1 + 0x10 ] _Watchdog_First( header )->delta_interval -= units; 200b9c8: b4 26 40 1a sub %i1, %i2, %i2 break; 200b9cc: 10 80 00 0f b 200ba08 <_Watchdog_Adjust+0x90> 200b9d0: f4 20 60 10 st %i2, [ %g1 + 0x10 ] } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 1; _ISR_Enable( level ); 200b9d4: 7f ff dd 66 call 2002f6c 200b9d8: 01 00 00 00 nop _Watchdog_Tickle( header ); 200b9dc: 40 00 00 94 call 200bc2c <_Watchdog_Tickle> 200b9e0: 90 10 00 10 mov %l0, %o0 _ISR_Disable( level ); 200b9e4: 7f ff dd 5e call 2002f5c 200b9e8: 01 00 00 00 nop if ( _Chain_Is_empty( header ) ) 200b9ec: c2 04 00 00 ld [ %l0 ], %g1 200b9f0: 80 a0 40 11 cmp %g1, %l1 200b9f4: 02 80 00 05 be 200ba08 <_Watchdog_Adjust+0x90> 200b9f8: b4 26 80 19 sub %i2, %i1, %i2 switch ( direction ) { case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { 200b9fc: 80 a6 a0 00 cmp %i2, 0 200ba00: 32 bf ff ee bne,a 200b9b8 <_Watchdog_Adjust+0x40> <== ALWAYS TAKEN 200ba04: c2 04 00 00 ld [ %l0 ], %g1 } break; } } _ISR_Enable( level ); 200ba08: 7f ff dd 59 call 2002f6c 200ba0c: 91 e8 00 08 restore %g0, %o0, %o0 =============================================================================== 02009944 <_Watchdog_Remove>: */ Watchdog_States _Watchdog_Remove( Watchdog_Control *the_watchdog ) { 2009944: 9d e3 bf a0 save %sp, -96, %sp ISR_Level level; Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level ); 2009948: 7f ff e1 9f call 2001fc4 200994c: a0 10 00 18 mov %i0, %l0 previous_state = the_watchdog->state; 2009950: f0 06 20 08 ld [ %i0 + 8 ], %i0 switch ( previous_state ) { 2009954: 80 a6 20 01 cmp %i0, 1 2009958: 22 80 00 1e be,a 20099d0 <_Watchdog_Remove+0x8c> 200995c: c0 24 20 08 clr [ %l0 + 8 ] 2009960: 0a 80 00 1d bcs 20099d4 <_Watchdog_Remove+0x90> 2009964: 03 00 80 78 sethi %hi(0x201e000), %g1 2009968: 80 a6 20 03 cmp %i0, 3 200996c: 18 80 00 1a bgu 20099d4 <_Watchdog_Remove+0x90> <== NEVER TAKEN 2009970: 01 00 00 00 nop 2009974: c2 04 00 00 ld [ %l0 ], %g1 break; case WATCHDOG_ACTIVE: case WATCHDOG_REMOVE_IT: the_watchdog->state = WATCHDOG_INACTIVE; 2009978: c0 24 20 08 clr [ %l0 + 8 ] next_watchdog = _Watchdog_Next( the_watchdog ); if ( _Watchdog_Next(next_watchdog) ) 200997c: c4 00 40 00 ld [ %g1 ], %g2 2009980: 80 a0 a0 00 cmp %g2, 0 2009984: 22 80 00 07 be,a 20099a0 <_Watchdog_Remove+0x5c> 2009988: 03 00 80 78 sethi %hi(0x201e000), %g1 next_watchdog->delta_interval += the_watchdog->delta_interval; 200998c: c6 00 60 10 ld [ %g1 + 0x10 ], %g3 ! 201e010 2009990: c4 04 20 10 ld [ %l0 + 0x10 ], %g2 2009994: 84 00 c0 02 add %g3, %g2, %g2 2009998: c4 20 60 10 st %g2, [ %g1 + 0x10 ] if ( _Watchdog_Sync_count ) 200999c: 03 00 80 78 sethi %hi(0x201e000), %g1 20099a0: c2 00 63 e0 ld [ %g1 + 0x3e0 ], %g1 ! 201e3e0 <_Watchdog_Sync_count> 20099a4: 80 a0 60 00 cmp %g1, 0 20099a8: 22 80 00 07 be,a 20099c4 <_Watchdog_Remove+0x80> 20099ac: c2 04 00 00 ld [ %l0 ], %g1 _Watchdog_Sync_level = _ISR_Nest_level; 20099b0: 03 00 80 78 sethi %hi(0x201e000), %g1 20099b4: c4 00 63 2c ld [ %g1 + 0x32c ], %g2 ! 201e32c <_ISR_Nest_level> 20099b8: 03 00 80 78 sethi %hi(0x201e000), %g1 20099bc: c4 20 63 4c st %g2, [ %g1 + 0x34c ] ! 201e34c <_Watchdog_Sync_level> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 20099c0: c2 04 00 00 ld [ %l0 ], %g1 previous = the_node->previous; 20099c4: c4 04 20 04 ld [ %l0 + 4 ], %g2 next->previous = previous; previous->next = next; 20099c8: c2 20 80 00 st %g1, [ %g2 ] Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; 20099cc: c4 20 60 04 st %g2, [ %g1 + 4 ] _Chain_Extract_unprotected( &the_watchdog->Node ); break; } the_watchdog->stop_time = _Watchdog_Ticks_since_boot; 20099d0: 03 00 80 78 sethi %hi(0x201e000), %g1 20099d4: c2 00 63 e4 ld [ %g1 + 0x3e4 ], %g1 ! 201e3e4 <_Watchdog_Ticks_since_boot> 20099d8: c2 24 20 18 st %g1, [ %l0 + 0x18 ] _ISR_Enable( level ); 20099dc: 7f ff e1 7e call 2001fd4 20099e0: 01 00 00 00 nop return( previous_state ); } 20099e4: 81 c7 e0 08 ret 20099e8: 81 e8 00 00 restore =============================================================================== 0200b0e8 <_Watchdog_Report_chain>: void _Watchdog_Report_chain( const char *name, Chain_Control *header ) { 200b0e8: 9d e3 bf a0 save %sp, -96, %sp ISR_Level level; Chain_Node *node; _ISR_Disable( level ); 200b0ec: 7f ff de 5a call 2002a54 200b0f0: a0 10 00 18 mov %i0, %l0 200b0f4: b0 10 00 08 mov %o0, %i0 printk( "Watchdog Chain: %s %p\n", name, header ); 200b0f8: 11 00 80 87 sethi %hi(0x2021c00), %o0 200b0fc: 94 10 00 19 mov %i1, %o2 200b100: 90 12 21 f0 or %o0, 0x1f0, %o0 200b104: 7f ff e5 a6 call 200479c 200b108: 92 10 00 10 mov %l0, %o1 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 200b10c: e2 06 40 00 ld [ %i1 ], %l1 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 200b110: b2 06 60 04 add %i1, 4, %i1 if ( !_Chain_Is_empty( header ) ) { 200b114: 80 a4 40 19 cmp %l1, %i1 200b118: 02 80 00 0e be 200b150 <_Watchdog_Report_chain+0x68> 200b11c: 11 00 80 87 sethi %hi(0x2021c00), %o0 node != _Chain_Tail(header) ; node = node->next ) { Watchdog_Control *watch = (Watchdog_Control *) node; _Watchdog_Report( NULL, watch ); 200b120: 92 10 00 11 mov %l1, %o1 200b124: 40 00 00 10 call 200b164 <_Watchdog_Report> 200b128: 90 10 20 00 clr %o0 _ISR_Disable( level ); printk( "Watchdog Chain: %s %p\n", name, header ); if ( !_Chain_Is_empty( header ) ) { for ( node = header->first ; node != _Chain_Tail(header) ; node = node->next ) 200b12c: e2 04 40 00 ld [ %l1 ], %l1 Chain_Node *node; _ISR_Disable( level ); printk( "Watchdog Chain: %s %p\n", name, header ); if ( !_Chain_Is_empty( header ) ) { for ( node = header->first ; 200b130: 80 a4 40 19 cmp %l1, %i1 200b134: 12 bf ff fc bne 200b124 <_Watchdog_Report_chain+0x3c> <== NEVER TAKEN 200b138: 92 10 00 11 mov %l1, %o1 { Watchdog_Control *watch = (Watchdog_Control *) node; _Watchdog_Report( NULL, watch ); } printk( "== end of %s \n", name ); 200b13c: 92 10 00 10 mov %l0, %o1 200b140: 11 00 80 87 sethi %hi(0x2021c00), %o0 200b144: 7f ff e5 96 call 200479c 200b148: 90 12 22 08 or %o0, 0x208, %o0 ! 2021e08 200b14c: 30 80 00 03 b,a 200b158 <_Watchdog_Report_chain+0x70> } else { printk( "Chain is empty\n" ); 200b150: 7f ff e5 93 call 200479c 200b154: 90 12 22 18 or %o0, 0x218, %o0 } _ISR_Enable( level ); 200b158: 7f ff de 43 call 2002a64 200b15c: 81 e8 00 00 restore =============================================================================== 0201b598 <_exit>: /* * If the toolset uses init/fini sections, then we need to * run the global destructors now. */ #if defined(__USE_INIT_FINI__) FINI_SYMBOL(); 201b598: 9d e3 bf a0 save %sp, -96, %sp 201b59c: 40 00 08 36 call 201d674 <_fini> 201b5a0: 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(); 201b5a4: 7f ff ff e1 call 201b528 201b5a8: 01 00 00 00 nop rtems_shutdown_executive(status); 201b5ac: 40 00 00 4c call 201b6dc 201b5b0: 90 10 00 18 mov %i0, %o0 201b5b4: 30 80 00 00 b,a 201b5b4 <_exit+0x1c> <== NOT EXECUTED =============================================================================== 02026424 <_fat_block_read>: uint32_t start, uint32_t offset, uint32_t count, void *buff ) { 2026424: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED int rc = RC_OK; register fat_fs_info_t *fs_info = mt_entry->fs_info; 2026428: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED ssize_t cmpltd = 0; uint32_t blk = start; uint32_t ofs = offset; rtems_bdbuf_buffer *block = NULL; 202642c: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED 2026430: b0 10 20 00 clr %i0 <== NOT EXECUTED uint32_t c = 0; while (count > 0) 2026434: 10 80 00 18 b 2026494 <_fat_block_read+0x70> <== NOT EXECUTED 2026438: a2 07 bf fc add %fp, -4, %l1 <== NOT EXECUTED { rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block); 202643c: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED 2026440: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED 2026444: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2026448: 7f ff fe 91 call 2025e8c <== NOT EXECUTED 202644c: b2 06 60 01 inc %i1 <== NOT EXECUTED if (rc != RC_OK) 2026450: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2026454: 22 80 00 04 be,a 2026464 <_fat_block_read+0x40> <== NOT EXECUTED 2026458: d4 14 00 00 lduh [ %l0 ], %o2 <== NOT EXECUTED 202645c: 81 c7 e0 08 ret <== NOT EXECUTED 2026460: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED return -1; c = MIN(count, (fs_info->vol.bps - ofs)); memcpy((buff + cmpltd), (block->buffer + ofs), c); 2026464: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED { rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block); if (rc != RC_OK) return -1; c = MIN(count, (fs_info->vol.bps - ofs)); 2026468: 94 22 80 1a sub %o2, %i2, %o2 <== NOT EXECUTED 202646c: 80 a2 80 1b cmp %o2, %i3 <== NOT EXECUTED 2026470: 08 80 00 03 bleu 202647c <_fat_block_read+0x58> <== NOT EXECUTED 2026474: 90 07 00 18 add %i4, %i0, %o0 <== NOT EXECUTED 2026478: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED memcpy((buff + cmpltd), (block->buffer + ofs), c); 202647c: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED count -= c; cmpltd += c; 2026480: b0 02 80 18 add %o2, %i0, %i0 <== NOT EXECUTED rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block); if (rc != RC_OK) return -1; c = MIN(count, (fs_info->vol.bps - ofs)); memcpy((buff + cmpltd), (block->buffer + ofs), c); 2026484: 92 02 40 1a add %o1, %i2, %o1 <== NOT EXECUTED count -= c; 2026488: b6 26 c0 0a sub %i3, %o2, %i3 <== NOT EXECUTED rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block); if (rc != RC_OK) return -1; c = MIN(count, (fs_info->vol.bps - ofs)); memcpy((buff + cmpltd), (block->buffer + ofs), c); 202648c: 40 00 84 ce call 20477c4 <== NOT EXECUTED 2026490: b4 10 20 00 clr %i2 <== NOT EXECUTED uint32_t blk = start; uint32_t ofs = offset; rtems_bdbuf_buffer *block = NULL; uint32_t c = 0; while (count > 0) 2026494: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 2026498: 12 bf ff e9 bne 202643c <_fat_block_read+0x18> <== NOT EXECUTED 202649c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED cmpltd += c; blk++; ofs = 0; } return cmpltd; } 20264a0: 81 c7 e0 08 ret <== NOT EXECUTED 20264a4: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02025e78 <_fat_block_release>: int _fat_block_release( rtems_filesystem_mount_table_entry_t *mt_entry) { fat_fs_info_t *fs_info = mt_entry->fs_info; return fat_buf_release(fs_info); 2025e78: d0 02 20 34 ld [ %o0 + 0x34 ], %o0 <== NOT EXECUTED 2025e7c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2025e80: 7f ff ff a2 call 2025d08 <== NOT EXECUTED 2025e84: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED =============================================================================== 02026088 <_fat_block_write>: rtems_filesystem_mount_table_entry_t *mt_entry, uint32_t start, uint32_t offset, uint32_t count, const void *buff) { 2026088: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED } static inline void fat_buf_mark_modified(fat_fs_info_t *fs_info) { fs_info->c.modified = true; 202608c: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED int rc = RC_OK; fat_fs_info_t *fs_info = mt_entry->fs_info; 2026090: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED ssize_t cmpltd = 0; uint32_t blk = start; uint32_t ofs = offset; rtems_bdbuf_buffer *block = NULL; 2026094: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED 2026098: b0 10 20 00 clr %i0 <== NOT EXECUTED uint32_t c = 0; while(count > 0) 202609c: 10 80 00 22 b 2026124 <_fat_block_write+0x9c> <== NOT EXECUTED 20260a0: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED { c = MIN(count, (fs_info->vol.bps - ofs)); 20260a4: a2 20 40 1a sub %g1, %i2, %l1 <== NOT EXECUTED 20260a8: 80 a4 40 1b cmp %l1, %i3 <== NOT EXECUTED 20260ac: 08 80 00 03 bleu 20260b8 <_fat_block_write+0x30> <== NOT EXECUTED 20260b0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 20260b4: a2 10 00 1b mov %i3, %l1 <== NOT EXECUTED if (c == fs_info->vol.bps) 20260b8: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED 20260bc: 32 80 00 07 bne,a 20260d8 <_fat_block_write+0x50> <== NOT EXECUTED 20260c0: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_GET, &block); 20260c4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20260c8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 20260cc: 94 10 20 02 mov 2, %o2 <== NOT EXECUTED 20260d0: 10 80 00 04 b 20260e0 <_fat_block_write+0x58> <== NOT EXECUTED 20260d4: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED else rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block); 20260d8: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED 20260dc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20260e0: 7f ff ff 6b call 2025e8c <== NOT EXECUTED 20260e4: 01 00 00 00 nop <== NOT EXECUTED if (rc != RC_OK) 20260e8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20260ec: 02 80 00 04 be 20260fc <_fat_block_write+0x74> <== NOT EXECUTED 20260f0: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 20260f4: 81 c7 e0 08 ret <== NOT EXECUTED 20260f8: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED return -1; memcpy((block->buffer + ofs), (buff + cmpltd), c); 20260fc: 92 07 00 18 add %i4, %i0, %o1 <== NOT EXECUTED 2026100: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED 2026104: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED 2026108: 90 02 00 1a add %o0, %i2, %o0 <== NOT EXECUTED 202610c: 40 00 85 ae call 20477c4 <== NOT EXECUTED 2026110: b6 26 c0 11 sub %i3, %l1, %i3 <== NOT EXECUTED fat_buf_mark_modified(fs_info); count -= c; cmpltd +=c; blk++; 2026114: b2 06 60 01 inc %i1 <== NOT EXECUTED memcpy((block->buffer + ofs), (buff + cmpltd), c); fat_buf_mark_modified(fs_info); count -= c; cmpltd +=c; 2026118: b0 04 40 18 add %l1, %i0, %i0 <== NOT EXECUTED 202611c: e6 2c 20 84 stb %l3, [ %l0 + 0x84 ] <== NOT EXECUTED blk++; 2026120: b4 10 20 00 clr %i2 <== NOT EXECUTED uint32_t blk = start; uint32_t ofs = offset; rtems_bdbuf_buffer *block = NULL; uint32_t c = 0; while(count > 0) 2026124: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 2026128: 32 bf ff df bne,a 20260a4 <_fat_block_write+0x1c> <== NOT EXECUTED 202612c: c2 14 00 00 lduh [ %l0 ], %g1 <== NOT EXECUTED cmpltd +=c; blk++; ofs = 0; } return cmpltd; } 2026130: 81 c7 e0 08 ret <== NOT EXECUTED 2026134: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02040280 <_fcntl_r>: int fd, int cmd, int arg ) { return fcntl( fd, cmd, arg ); 2040280: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 2040284: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 2040288: 94 10 00 0b mov %o3, %o2 <== NOT EXECUTED 204028c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2040290: 7f ff ff 7f call 204008c <== NOT EXECUTED 2040294: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED =============================================================================== 0200bf80 <_getpid_r>: pid_t _getpid_r( struct _reent *ptr __attribute__((unused)) ) { return getpid(); } 200bf80: 81 c3 e0 08 retl <== NOT EXECUTED 200bf84: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED =============================================================================== 02002c08 <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); 2002c08: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2002c0c: 7f ff ff e6 call 2002ba4 <== NOT EXECUTED 2002c10: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED =============================================================================== 02029c8c <_link_r>: struct _reent *ptr __attribute__((unused)), const char *existing, const char *new ) { return link( existing, new ); 2029c8c: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 2029c90: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 2029c94: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2029c98: 7f ff ff 74 call 2029a68 <== NOT EXECUTED 2029c9c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED =============================================================================== 02029ed4 <_lstat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 2029ed4: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 2029ed8: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 2029edc: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2029ee0: 7f ff ff c0 call 2029de0 <== NOT EXECUTED 2029ee4: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED =============================================================================== 0201b6a8 <_realloc_r>: struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { return realloc( ptr, size ); 201b6a8: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 201b6ac: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 201b6b0: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 201b6b4: 40 00 00 17 call 201b710 <== NOT EXECUTED 201b6b8: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED =============================================================================== 0205df00 <_rename_r>: int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { 205df00: 9d e3 bf 58 save %sp, -168, %sp /* * Get the parent node of the old path to be renamed. Find the parent path. */ old_parent_pathlen = rtems_filesystem_dirname ( old ); 205df04: 7f fe a8 6e call 20080bc 205df08: 90 10 00 19 mov %i1, %o0 if ( old_parent_pathlen == 0 ) 205df0c: a0 92 20 00 orcc %o0, 0, %l0 205df10: 12 80 00 09 bne 205df34 <_rename_r+0x34> 205df14: 96 07 bf d0 add %fp, -48, %o3 rtems_filesystem_get_start_loc( old, &i, &old_parent_loc ); 205df18: 94 10 00 0b mov %o3, %o2 205df1c: 90 10 00 19 mov %i1, %o0 205df20: 92 07 bf fc add %fp, -4, %o1 205df24: 7f fe af 53 call 2009c70 205df28: a2 10 20 00 clr %l1 /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; 205df2c: 10 80 00 0b b 205df58 <_rename_r+0x58> 205df30: 94 10 20 14 mov 0x14, %o2 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, 205df34: 90 10 00 19 mov %i1, %o0 205df38: 92 10 00 10 mov %l0, %o1 205df3c: 94 10 20 02 mov 2, %o2 205df40: 7f fe a8 ab call 20081ec 205df44: 98 10 20 00 clr %o4 RTEMS_LIBIO_PERMS_WRITE, &old_parent_loc, false ); if ( result != 0 ) 205df48: 80 a2 20 00 cmp %o0, 0 205df4c: 12 80 00 de bne 205e2c4 <_rename_r+0x3c4> <== NEVER TAKEN 205df50: a2 10 20 01 mov 1, %l1 /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; 205df54: 94 10 20 14 mov 0x14, %o2 205df58: a6 07 bf e4 add %fp, -28, %l3 205df5c: a4 07 bf d0 add %fp, -48, %l2 205df60: 90 10 00 13 mov %l3, %o0 205df64: 7f ff a6 18 call 20477c4 205df68: 92 10 00 12 mov %l2, %o1 name = old + old_parent_pathlen; 205df6c: b2 06 40 10 add %i1, %l0, %i1 205df70: f2 27 bf f8 st %i1, [ %fp + -8 ] name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 205df74: 7f ff b4 84 call 204b184 205df78: 90 10 00 19 mov %i1, %o0 205df7c: 92 10 00 08 mov %o0, %o1 205df80: 7f fe a8 3d call 2008074 205df84: 90 10 00 19 mov %i1, %o0 205df88: b2 06 40 08 add %i1, %o0, %i1 205df8c: f2 27 bf f8 st %i1, [ %fp + -8 ] result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 205df90: 7f ff b4 7d call 204b184 205df94: 90 10 00 19 mov %i1, %o0 205df98: 94 10 20 00 clr %o2 205df9c: 92 10 00 08 mov %o0, %o1 205dfa0: 96 10 00 13 mov %l3, %o3 205dfa4: 90 10 00 19 mov %i1, %o0 205dfa8: 7f fe a8 55 call 20080fc 205dfac: 98 10 20 00 clr %o4 0, &old_loc, false ); if ( result != 0 ) { 205dfb0: 80 a2 20 00 cmp %o0, 0 205dfb4: 22 80 00 0e be,a 205dfec <_rename_r+0xec> 205dfb8: a0 07 bf bc add %fp, -68, %l0 if ( free_old_parentloc ) 205dfbc: 80 8c 60 ff btst 0xff, %l1 205dfc0: 02 80 00 49 be 205e0e4 <_rename_r+0x1e4> <== NEVER TAKEN 205dfc4: b0 10 3f ff mov -1, %i0 rtems_filesystem_freenode( &old_parent_loc ); 205dfc8: c2 07 bf dc ld [ %fp + -36 ], %g1 205dfcc: 80 a0 60 00 cmp %g1, 0 205dfd0: 02 80 00 be be 205e2c8 <_rename_r+0x3c8> <== NEVER TAKEN 205dfd4: 01 00 00 00 nop 205dfd8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 205dfdc: 80 a0 60 00 cmp %g1, 0 205dfe0: 02 80 00 41 be 205e0e4 <_rename_r+0x1e4> <== NEVER TAKEN 205dfe4: 90 10 00 12 mov %l2, %o0 205dfe8: 30 80 00 3d b,a 205e0dc <_rename_r+0x1dc> /* * Get the parent of the new node we are renaming to. */ rtems_filesystem_get_start_loc( new, &i, &new_parent_loc ); 205dfec: 90 10 00 1a mov %i2, %o0 205dff0: 92 07 bf fc add %fp, -4, %o1 205dff4: 7f fe af 1f call 2009c70 205dff8: 94 10 00 10 mov %l0, %o2 if ( !new_parent_loc.ops->evalformake_h ) { 205dffc: c2 07 bf c8 ld [ %fp + -56 ], %g1 205e000: c2 00 60 04 ld [ %g1 + 4 ], %g1 205e004: 80 a0 60 00 cmp %g1, 0 205e008: 12 80 00 0f bne 205e044 <_rename_r+0x144> 205e00c: d0 07 bf fc ld [ %fp + -4 ], %o0 if ( free_old_parentloc ) 205e010: 80 8c 60 ff btst 0xff, %l1 205e014: 02 80 00 76 be 205e1ec <_rename_r+0x2ec> <== NEVER TAKEN 205e018: c2 07 bf f0 ld [ %fp + -16 ], %g1 rtems_filesystem_freenode( &old_parent_loc ); 205e01c: c2 07 bf dc ld [ %fp + -36 ], %g1 205e020: 80 a0 60 00 cmp %g1, 0 205e024: 22 80 00 72 be,a 205e1ec <_rename_r+0x2ec> <== NEVER TAKEN 205e028: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 205e02c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 205e030: 80 a0 60 00 cmp %g1, 0 205e034: 12 80 00 6b bne 205e1e0 <_rename_r+0x2e0> <== ALWAYS TAKEN 205e038: 90 10 00 12 mov %l2, %o0 if ( !new_parent_loc.ops->rename_h ) { rtems_filesystem_freenode( &new_parent_loc ); if ( free_old_parentloc ) rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); 205e03c: 10 80 00 6c b 205e1ec <_rename_r+0x2ec> <== NOT EXECUTED 205e040: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== 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 ); 205e044: 92 10 00 10 mov %l0, %o1 205e048: 90 06 80 08 add %i2, %o0, %o0 205e04c: 9f c0 40 00 call %g1 205e050: 94 07 bf f8 add %fp, -8, %o2 if ( result != 0 ) { 205e054: 80 a2 20 00 cmp %o0, 0 205e058: 02 80 00 25 be 205e0ec <_rename_r+0x1ec> 205e05c: c2 07 bf cc ld [ %fp + -52 ], %g1 rtems_filesystem_freenode( &new_parent_loc ); 205e060: c2 07 bf c8 ld [ %fp + -56 ], %g1 205e064: 80 a0 60 00 cmp %g1, 0 205e068: 02 80 00 09 be 205e08c <_rename_r+0x18c> <== NEVER TAKEN 205e06c: 80 8c 60 ff btst 0xff, %l1 205e070: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 205e074: 80 a0 60 00 cmp %g1, 0 205e078: 02 80 00 05 be 205e08c <_rename_r+0x18c> <== NEVER TAKEN 205e07c: 80 8c 60 ff btst 0xff, %l1 205e080: 9f c0 40 00 call %g1 205e084: 90 10 00 10 mov %l0, %o0 if ( free_old_parentloc ) 205e088: 80 8c 60 ff btst 0xff, %l1 205e08c: 02 80 00 0d be 205e0c0 <_rename_r+0x1c0> <== NEVER TAKEN 205e090: c2 07 bf f0 ld [ %fp + -16 ], %g1 rtems_filesystem_freenode( &old_parent_loc ); 205e094: c2 07 bf dc ld [ %fp + -36 ], %g1 205e098: 80 a0 60 00 cmp %g1, 0 205e09c: 22 80 00 09 be,a 205e0c0 <_rename_r+0x1c0> <== NEVER TAKEN 205e0a0: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 205e0a4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 205e0a8: 80 a0 60 00 cmp %g1, 0 205e0ac: 22 80 00 05 be,a 205e0c0 <_rename_r+0x1c0> <== NEVER TAKEN 205e0b0: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 205e0b4: 9f c0 40 00 call %g1 205e0b8: 90 07 bf d0 add %fp, -48, %o0 rtems_filesystem_freenode( &old_loc ); 205e0bc: c2 07 bf f0 ld [ %fp + -16 ], %g1 205e0c0: 80 a0 60 00 cmp %g1, 0 205e0c4: 02 80 00 08 be 205e0e4 <_rename_r+0x1e4> <== NEVER TAKEN 205e0c8: b0 10 3f ff mov -1, %i0 205e0cc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 205e0d0: 80 a0 60 00 cmp %g1, 0 205e0d4: 02 80 00 04 be 205e0e4 <_rename_r+0x1e4> <== NEVER TAKEN 205e0d8: 90 07 bf e4 add %fp, -28, %o0 205e0dc: 9f c0 40 00 call %g1 205e0e0: b0 10 3f ff mov -1, %i0 205e0e4: 81 c7 e0 08 ret 205e0e8: 81 e8 00 00 restore /* * 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 ) { 205e0ec: c6 07 bf e0 ld [ %fp + -32 ], %g3 205e0f0: 80 a0 c0 01 cmp %g3, %g1 205e0f4: 02 80 00 26 be 205e18c <_rename_r+0x28c> 205e0f8: c4 07 bf c8 ld [ %fp + -56 ], %g2 rtems_filesystem_freenode( &new_parent_loc ); 205e0fc: 80 a0 a0 00 cmp %g2, 0 205e100: 02 80 00 09 be 205e124 <_rename_r+0x224> <== NEVER TAKEN 205e104: 80 8c 60 ff btst 0xff, %l1 205e108: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 205e10c: 80 a0 60 00 cmp %g1, 0 205e110: 02 80 00 05 be 205e124 <_rename_r+0x224> <== NEVER TAKEN 205e114: 80 8c 60 ff btst 0xff, %l1 205e118: 9f c0 40 00 call %g1 205e11c: 90 10 00 10 mov %l0, %o0 if ( free_old_parentloc ) 205e120: 80 8c 60 ff btst 0xff, %l1 205e124: 02 80 00 0d be 205e158 <_rename_r+0x258> 205e128: c2 07 bf f0 ld [ %fp + -16 ], %g1 rtems_filesystem_freenode( &old_parent_loc ); 205e12c: c2 07 bf dc ld [ %fp + -36 ], %g1 205e130: 80 a0 60 00 cmp %g1, 0 205e134: 22 80 00 09 be,a 205e158 <_rename_r+0x258> <== NEVER TAKEN 205e138: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 205e13c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 205e140: 80 a0 60 00 cmp %g1, 0 205e144: 22 80 00 05 be,a 205e158 <_rename_r+0x258> <== NEVER TAKEN 205e148: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 205e14c: 9f c0 40 00 call %g1 205e150: 90 07 bf d0 add %fp, -48, %o0 rtems_filesystem_freenode( &old_loc ); 205e154: c2 07 bf f0 ld [ %fp + -16 ], %g1 205e158: 80 a0 60 00 cmp %g1, 0 205e15c: 02 80 00 08 be 205e17c <_rename_r+0x27c> <== NEVER TAKEN 205e160: 01 00 00 00 nop 205e164: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 205e168: 80 a0 60 00 cmp %g1, 0 205e16c: 02 80 00 04 be 205e17c <_rename_r+0x27c> <== NEVER TAKEN 205e170: 01 00 00 00 nop 205e174: 9f c0 40 00 call %g1 205e178: 90 07 bf e4 add %fp, -28, %o0 rtems_set_errno_and_return_minus_one( EXDEV ); 205e17c: 7f ff 98 46 call 2044294 <__errno> 205e180: b0 10 3f ff mov -1, %i0 205e184: 10 80 00 26 b 205e21c <_rename_r+0x31c> 205e188: 82 10 20 12 mov 0x12, %g1 } if ( !new_parent_loc.ops->rename_h ) { 205e18c: c2 00 a0 40 ld [ %g2 + 0x40 ], %g1 205e190: 80 a0 60 00 cmp %g1, 0 205e194: 12 80 00 25 bne 205e228 <_rename_r+0x328> 205e198: d6 07 bf f8 ld [ %fp + -8 ], %o3 rtems_filesystem_freenode( &new_parent_loc ); 205e19c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 205e1a0: 80 a0 60 00 cmp %g1, 0 205e1a4: 02 80 00 05 be 205e1b8 <_rename_r+0x2b8> <== NEVER TAKEN 205e1a8: 80 8c 60 ff btst 0xff, %l1 205e1ac: 9f c0 40 00 call %g1 205e1b0: 90 10 00 10 mov %l0, %o0 if ( free_old_parentloc ) 205e1b4: 80 8c 60 ff btst 0xff, %l1 205e1b8: 02 80 00 0d be 205e1ec <_rename_r+0x2ec> <== NEVER TAKEN 205e1bc: c2 07 bf f0 ld [ %fp + -16 ], %g1 rtems_filesystem_freenode( &old_parent_loc ); 205e1c0: c2 07 bf dc ld [ %fp + -36 ], %g1 205e1c4: 80 a0 60 00 cmp %g1, 0 205e1c8: 22 80 00 09 be,a 205e1ec <_rename_r+0x2ec> <== NEVER TAKEN 205e1cc: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 205e1d0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 205e1d4: 80 a0 60 00 cmp %g1, 0 205e1d8: 02 80 00 04 be 205e1e8 <_rename_r+0x2e8> <== NEVER TAKEN 205e1dc: 90 07 bf d0 add %fp, -48, %o0 205e1e0: 9f c0 40 00 call %g1 205e1e4: 01 00 00 00 nop rtems_filesystem_freenode( &old_loc ); 205e1e8: c2 07 bf f0 ld [ %fp + -16 ], %g1 205e1ec: 80 a0 60 00 cmp %g1, 0 205e1f0: 02 80 00 08 be 205e210 <_rename_r+0x310> <== NEVER TAKEN 205e1f4: 01 00 00 00 nop 205e1f8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 205e1fc: 80 a0 60 00 cmp %g1, 0 205e200: 02 80 00 04 be 205e210 <_rename_r+0x310> <== NEVER TAKEN 205e204: 01 00 00 00 nop 205e208: 9f c0 40 00 call %g1 205e20c: 90 07 bf e4 add %fp, -28, %o0 rtems_set_errno_and_return_minus_one( ENOTSUP ); 205e210: 7f ff 98 21 call 2044294 <__errno> 205e214: b0 10 3f ff mov -1, %i0 205e218: 82 10 20 86 mov 0x86, %g1 205e21c: c2 22 00 00 st %g1, [ %o0 ] 205e220: 81 c7 e0 08 ret 205e224: 81 e8 00 00 restore } result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name ); 205e228: 90 10 00 12 mov %l2, %o0 205e22c: 92 10 00 13 mov %l3, %o1 205e230: 9f c0 40 00 call %g1 205e234: 94 10 00 10 mov %l0, %o2 rtems_filesystem_freenode( &new_parent_loc ); 205e238: c2 07 bf c8 ld [ %fp + -56 ], %g1 205e23c: 80 a0 60 00 cmp %g1, 0 205e240: 02 80 00 08 be 205e260 <_rename_r+0x360> <== NEVER TAKEN 205e244: b0 10 00 08 mov %o0, %i0 205e248: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 205e24c: 80 a0 60 00 cmp %g1, 0 205e250: 02 80 00 05 be 205e264 <_rename_r+0x364> <== NEVER TAKEN 205e254: 80 8c 60 ff btst 0xff, %l1 205e258: 9f c0 40 00 call %g1 205e25c: 90 10 00 10 mov %l0, %o0 if ( free_old_parentloc ) 205e260: 80 8c 60 ff btst 0xff, %l1 205e264: 02 80 00 0d be 205e298 <_rename_r+0x398> 205e268: c2 07 bf f0 ld [ %fp + -16 ], %g1 rtems_filesystem_freenode( &old_parent_loc ); 205e26c: c2 07 bf dc ld [ %fp + -36 ], %g1 205e270: 80 a0 60 00 cmp %g1, 0 205e274: 22 80 00 09 be,a 205e298 <_rename_r+0x398> <== NEVER TAKEN 205e278: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 205e27c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 205e280: 80 a0 60 00 cmp %g1, 0 205e284: 22 80 00 05 be,a 205e298 <_rename_r+0x398> <== NEVER TAKEN 205e288: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 205e28c: 9f c0 40 00 call %g1 205e290: 90 07 bf d0 add %fp, -48, %o0 rtems_filesystem_freenode( &old_loc ); 205e294: c2 07 bf f0 ld [ %fp + -16 ], %g1 205e298: 80 a0 60 00 cmp %g1, 0 205e29c: 02 80 00 0b be 205e2c8 <_rename_r+0x3c8> <== NEVER TAKEN 205e2a0: 01 00 00 00 nop 205e2a4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 205e2a8: 80 a0 60 00 cmp %g1, 0 205e2ac: 02 80 00 07 be 205e2c8 <_rename_r+0x3c8> <== NEVER TAKEN 205e2b0: 01 00 00 00 nop 205e2b4: 9f c0 40 00 call %g1 205e2b8: 90 07 bf e4 add %fp, -28, %o0 205e2bc: 81 c7 e0 08 ret 205e2c0: 81 e8 00 00 restore 205e2c4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return result; } 205e2c8: 81 c7 e0 08 ret <== NOT EXECUTED 205e2cc: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02009c58 <_stat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 2009c58: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 2009c5c: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 2009c60: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2009c64: 7f ff ff c0 call 2009b64 <== NOT EXECUTED 2009c68: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED =============================================================================== 0200f990 <_unlink_r>: int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) { return unlink( path ); 200f990: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 200f994: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 200f998: 7f ff ff 66 call 200f730 <== NOT EXECUTED 200f99c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED =============================================================================== 0200626c : int adjtime( struct timeval *delta, struct timeval *olddelta ) { 200626c: 9d e3 bf 98 save %sp, -104, %sp long adjustment; /* * Simple validations */ if ( !delta ) 2006270: a0 96 20 00 orcc %i0, 0, %l0 2006274: 02 80 00 07 be 2006290 2006278: 03 00 03 d0 sethi %hi(0xf4000), %g1 rtems_set_errno_and_return_minus_one( EINVAL ); if ( delta->tv_usec >= TOD_MICROSECONDS_PER_SECOND ) 200627c: c4 04 20 04 ld [ %l0 + 4 ], %g2 2006280: 82 10 62 3f or %g1, 0x23f, %g1 2006284: 80 a0 80 01 cmp %g2, %g1 2006288: 08 80 00 08 bleu 20062a8 200628c: 80 a6 60 00 cmp %i1, 0 rtems_set_errno_and_return_minus_one( EINVAL ); 2006290: 40 00 2c f2 call 2011658 <__errno> 2006294: b0 10 3f ff mov -1, %i0 2006298: 82 10 20 16 mov 0x16, %g1 200629c: c2 22 00 00 st %g1, [ %o0 ] 20062a0: 81 c7 e0 08 ret 20062a4: 81 e8 00 00 restore if ( olddelta ) { 20062a8: 22 80 00 05 be,a 20062bc 20062ac: c2 04 00 00 ld [ %l0 ], %g1 olddelta->tv_sec = 0; 20062b0: c0 26 40 00 clr [ %i1 ] olddelta->tv_usec = 0; 20062b4: c0 26 60 04 clr [ %i1 + 4 ] } /* convert delta to microseconds */ adjustment = (delta->tv_sec * TOD_MICROSECONDS_PER_SECOND); 20062b8: c2 04 00 00 ld [ %l0 ], %g1 adjustment += delta->tv_usec; /* too small to account for */ if ( adjustment < rtems_configuration_get_microseconds_per_tick() ) 20062bc: 05 00 80 7b sethi %hi(0x201ec00), %g2 olddelta->tv_usec = 0; } /* convert delta to microseconds */ adjustment = (delta->tv_sec * TOD_MICROSECONDS_PER_SECOND); adjustment += delta->tv_usec; 20062c0: c8 04 20 04 ld [ %l0 + 4 ], %g4 /* too small to account for */ if ( adjustment < rtems_configuration_get_microseconds_per_tick() ) 20062c4: c6 00 a3 74 ld [ %g2 + 0x374 ], %g3 olddelta->tv_sec = 0; olddelta->tv_usec = 0; } /* convert delta to microseconds */ adjustment = (delta->tv_sec * TOD_MICROSECONDS_PER_SECOND); 20062c8: 9b 28 60 08 sll %g1, 8, %o5 20062cc: 85 28 60 03 sll %g1, 3, %g2 20062d0: 84 23 40 02 sub %o5, %g2, %g2 20062d4: 9b 28 a0 06 sll %g2, 6, %o5 20062d8: 84 23 40 02 sub %o5, %g2, %g2 20062dc: 82 00 80 01 add %g2, %g1, %g1 20062e0: 83 28 60 06 sll %g1, 6, %g1 adjustment += delta->tv_usec; 20062e4: 82 00 40 04 add %g1, %g4, %g1 /* too small to account for */ if ( adjustment < rtems_configuration_get_microseconds_per_tick() ) 20062e8: 80 a0 40 03 cmp %g1, %g3 20062ec: 0a 80 00 35 bcs 20063c0 20062f0: 03 00 80 7e sethi %hi(0x201f800), %g1 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 20062f4: c4 00 63 d0 ld [ %g1 + 0x3d0 ], %g2 ! 201fbd0 <_Thread_Dispatch_disable_level> 20062f8: 84 00 a0 01 inc %g2 20062fc: c4 20 63 d0 st %g2, [ %g1 + 0x3d0 ] * This prevents context switches while we are adjusting the TOD */ _Thread_Disable_dispatch(); _TOD_Get( &ts ); 2006300: 40 00 06 3d call 2007bf4 <_TOD_Get> 2006304: 90 07 bf f8 add %fp, -8, %o0 ts.tv_sec += delta->tv_sec; ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND; 2006308: c4 04 20 04 ld [ %l0 + 4 ], %g2 _Thread_Disable_dispatch(); _TOD_Get( &ts ); ts.tv_sec += delta->tv_sec; 200630c: c2 04 00 00 ld [ %l0 ], %g1 ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND; 2006310: c8 07 bf f8 ld [ %fp + -8 ], %g4 2006314: 87 28 a0 07 sll %g2, 7, %g3 2006318: 88 01 00 01 add %g4, %g1, %g4 200631c: 83 28 a0 02 sll %g2, 2, %g1 2006320: 82 20 c0 01 sub %g3, %g1, %g1 2006324: c6 07 bf fc ld [ %fp + -4 ], %g3 2006328: 82 00 40 02 add %g1, %g2, %g1 /* if adjustment is too much positive */ while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { 200632c: 1b 0e e6 b2 sethi %hi(0x3b9ac800), %o5 _Thread_Disable_dispatch(); _TOD_Get( &ts ); ts.tv_sec += delta->tv_sec; ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND; 2006330: 83 28 60 03 sll %g1, 3, %g1 /* if adjustment is too much positive */ while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { 2006334: 05 31 19 4d sethi %hi(0xc4653400), %g2 _Thread_Disable_dispatch(); _TOD_Get( &ts ); ts.tv_sec += delta->tv_sec; ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND; 2006338: 82 00 40 03 add %g1, %g3, %g1 /* if adjustment is too much positive */ while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { 200633c: 9a 13 61 ff or %o5, 0x1ff, %o5 2006340: 10 80 00 03 b 200634c 2006344: 84 10 a2 00 or %g2, 0x200, %g2 2006348: 82 00 40 02 add %g1, %g2, %g1 200634c: 86 10 00 04 mov %g4, %g3 2006350: 80 a0 40 0d cmp %g1, %o5 2006354: 18 bf ff fd bgu 2006348 2006358: 88 01 20 01 inc %g4 ts.tv_nsec -= TOD_NANOSECONDS_PER_SECOND; ts.tv_sec++; } /* if adjustment is too much negative */ while ( ts.tv_nsec <= (-1 * TOD_NANOSECONDS_PER_SECOND) ) { 200635c: 1b 31 19 4d sethi %hi(0xc4653400), %o5 ts.tv_sec += delta->tv_sec; ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND; /* if adjustment is too much positive */ while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { 2006360: 09 0e e6 b2 sethi %hi(0x3b9ac800), %g4 ts.tv_nsec -= TOD_NANOSECONDS_PER_SECOND; ts.tv_sec++; } /* if adjustment is too much negative */ while ( ts.tv_nsec <= (-1 * TOD_NANOSECONDS_PER_SECOND) ) { 2006364: 9a 13 62 00 or %o5, 0x200, %o5 ts.tv_sec += delta->tv_sec; ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND; /* if adjustment is too much positive */ while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { 2006368: 10 80 00 03 b 2006374 200636c: 88 11 22 00 or %g4, 0x200, %g4 2006370: 82 00 40 04 add %g1, %g4, %g1 2006374: 84 10 00 03 mov %g3, %g2 ts.tv_nsec -= TOD_NANOSECONDS_PER_SECOND; ts.tv_sec++; } /* if adjustment is too much negative */ while ( ts.tv_nsec <= (-1 * TOD_NANOSECONDS_PER_SECOND) ) { 2006378: 80 a0 40 0d cmp %g1, %o5 200637c: 08 bf ff fd bleu 2006370 2006380: 86 00 ff ff add %g3, -1, %g3 ts.tv_nsec += TOD_NANOSECONDS_PER_SECOND; ts.tv_sec--; } _TOD_Set( &ts ); 2006384: 90 07 bf f8 add %fp, -8, %o0 ts.tv_nsec -= TOD_NANOSECONDS_PER_SECOND; ts.tv_sec++; } /* if adjustment is too much negative */ while ( ts.tv_nsec <= (-1 * TOD_NANOSECONDS_PER_SECOND) ) { 2006388: c2 27 bf fc st %g1, [ %fp + -4 ] ts.tv_nsec += TOD_NANOSECONDS_PER_SECOND; ts.tv_sec--; } _TOD_Set( &ts ); 200638c: 40 00 06 46 call 2007ca4 <_TOD_Set> 2006390: c4 27 bf f8 st %g2, [ %fp + -8 ] _Thread_Enable_dispatch(); 2006394: 40 00 0b 2d call 2009048 <_Thread_Enable_dispatch> 2006398: 01 00 00 00 nop /* set the user's output */ if ( olddelta ) 200639c: 80 a6 60 00 cmp %i1, 0 20063a0: 02 80 00 08 be 20063c0 <== NEVER TAKEN 20063a4: 01 00 00 00 nop *olddelta = *delta; 20063a8: c2 04 00 00 ld [ %l0 ], %g1 20063ac: c2 26 40 00 st %g1, [ %i1 ] 20063b0: c2 04 20 04 ld [ %l0 + 4 ], %g1 20063b4: c2 26 60 04 st %g1, [ %i1 + 4 ] 20063b8: 81 c7 e0 08 ret 20063bc: 91 e8 20 00 restore %g0, 0, %o0 return 0; } 20063c0: 81 c7 e0 08 ret 20063c4: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 020028b4 : ) { register char *cptr; size_t length; MSBUMP(calloc_calls, 1); 20028b4: 9d e3 bf a0 save %sp, -96, %sp 20028b8: 03 00 80 78 sethi %hi(0x201e000), %g1 20028bc: 82 10 60 d0 or %g1, 0xd0, %g1 ! 201e0d0 20028c0: c4 00 60 14 ld [ %g1 + 0x14 ], %g2 length = nelem * elsize; 20028c4: 92 10 00 18 mov %i0, %o1 ) { register char *cptr; size_t length; MSBUMP(calloc_calls, 1); 20028c8: 84 00 a0 01 inc %g2 length = nelem * elsize; 20028cc: 90 10 00 19 mov %i1, %o0 20028d0: 40 00 5d 37 call 2019dac <.umul> 20028d4: c4 20 60 14 st %g2, [ %g1 + 0x14 ] cptr = malloc( length ); 20028d8: 40 00 01 68 call 2002e78 20028dc: a0 10 00 08 mov %o0, %l0 if ( cptr ) 20028e0: b0 92 20 00 orcc %o0, 0, %i0 20028e4: 02 80 00 04 be 20028f4 <== NEVER TAKEN 20028e8: 94 10 00 10 mov %l0, %o2 memset( cptr, '\0', length ); 20028ec: 40 00 3a 92 call 2011334 20028f0: 92 10 20 00 clr %o1 MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ 20028f4: 03 00 80 78 sethi %hi(0x201e000), %g1 20028f8: 82 10 60 d0 or %g1, 0xd0, %g1 ! 201e0d0 20028fc: c4 00 60 04 ld [ %g1 + 4 ], %g2 2002900: 84 00 bf ff add %g2, -1, %g2 2002904: c4 20 60 04 st %g2, [ %g1 + 4 ] return cptr; } 2002908: 81 c7 e0 08 ret 200290c: 81 e8 00 00 restore =============================================================================== 020289a4 : #include int chdir( const char *pathname ) { 20289a4: 9d e3 bf 88 save %sp, -120, %sp rtems_filesystem_location_info_t loc; int result; if ( !pathname ) 20289a8: 80 a6 20 00 cmp %i0, 0 20289ac: 12 80 00 06 bne 20289c4 20289b0: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EFAULT ); 20289b4: 40 00 6e 38 call 2044294 <__errno> 20289b8: 01 00 00 00 nop 20289bc: 10 80 00 2f b 2028a78 20289c0: 82 10 20 0e mov 0xe, %g1 ! e /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 20289c4: 40 00 89 f0 call 204b184 20289c8: 90 10 00 18 mov %i0, %o0 20289cc: a0 07 bf ec add %fp, -20, %l0 20289d0: 92 10 00 08 mov %o0, %o1 20289d4: 94 10 20 01 mov 1, %o2 20289d8: 90 10 00 18 mov %i0, %o0 20289dc: 96 10 00 10 mov %l0, %o3 20289e0: 98 10 20 01 mov 1, %o4 20289e4: 7f ff 7e 02 call 20081ec 20289e8: b0 10 3f ff mov -1, %i0 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) 20289ec: 80 a2 20 00 cmp %o0, 0 20289f0: 12 80 00 37 bne 2028acc 20289f4: c4 07 bf f8 ld [ %fp + -8 ], %g2 return -1; /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { 20289f8: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 20289fc: 80 a0 60 00 cmp %g1, 0 2028a00: 12 80 00 0c bne 2028a30 <== ALWAYS TAKEN 2028a04: 01 00 00 00 nop rtems_filesystem_freenode( &loc ); 2028a08: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2028a0c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2028a10: 02 80 00 04 be 2028a20 <== NOT EXECUTED 2028a14: 01 00 00 00 nop <== NOT EXECUTED 2028a18: 9f c0 40 00 call %g1 <== NOT EXECUTED 2028a1c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2028a20: 40 00 6e 1d call 2044294 <__errno> <== NOT EXECUTED 2028a24: 01 00 00 00 nop <== NOT EXECUTED 2028a28: 10 80 00 14 b 2028a78 <== NOT EXECUTED 2028a2c: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 2028a30: 9f c0 40 00 call %g1 2028a34: 90 10 00 10 mov %l0, %o0 2028a38: 80 a2 20 01 cmp %o0, 1 2028a3c: 02 80 00 12 be 2028a84 2028a40: 03 00 81 ab sethi %hi(0x206ac00), %g1 rtems_filesystem_freenode( &loc ); 2028a44: c2 07 bf f8 ld [ %fp + -8 ], %g1 2028a48: 80 a0 60 00 cmp %g1, 0 2028a4c: 02 80 00 08 be 2028a6c <== NEVER TAKEN 2028a50: 01 00 00 00 nop 2028a54: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2028a58: 80 a0 60 00 cmp %g1, 0 2028a5c: 02 80 00 04 be 2028a6c <== NEVER TAKEN 2028a60: 01 00 00 00 nop 2028a64: 9f c0 40 00 call %g1 2028a68: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( ENOTDIR ); 2028a6c: 40 00 6e 0a call 2044294 <__errno> 2028a70: 01 00 00 00 nop 2028a74: 82 10 20 14 mov 0x14, %g1 ! 14 2028a78: c2 22 00 00 st %g1, [ %o0 ] 2028a7c: 81 c7 e0 08 ret 2028a80: 91 e8 3f ff restore %g0, -1, %o0 } rtems_filesystem_freenode( &rtems_filesystem_current ); 2028a84: d0 00 61 64 ld [ %g1 + 0x164 ], %o0 2028a88: c2 02 20 10 ld [ %o0 + 0x10 ], %g1 2028a8c: 80 a0 60 00 cmp %g1, 0 2028a90: 22 80 00 09 be,a 2028ab4 <== NEVER TAKEN 2028a94: 03 00 81 ab sethi %hi(0x206ac00), %g1 <== NOT EXECUTED 2028a98: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 206ac1c 2028a9c: 80 a0 60 00 cmp %g1, 0 2028aa0: 22 80 00 05 be,a 2028ab4 <== NEVER TAKEN 2028aa4: 03 00 81 ab sethi %hi(0x206ac00), %g1 <== NOT EXECUTED 2028aa8: 9f c0 40 00 call %g1 2028aac: 90 02 20 04 add %o0, 4, %o0 rtems_filesystem_current = loc; 2028ab0: 03 00 81 ab sethi %hi(0x206ac00), %g1 2028ab4: d0 00 61 64 ld [ %g1 + 0x164 ], %o0 ! 206ad64 2028ab8: 92 07 bf ec add %fp, -20, %o1 2028abc: 90 02 20 04 add %o0, 4, %o0 2028ac0: 94 10 20 14 mov 0x14, %o2 2028ac4: 40 00 7b 40 call 20477c4 2028ac8: b0 10 20 00 clr %i0 return 0; } 2028acc: 81 c7 e0 08 ret 2028ad0: 81 e8 00 00 restore =============================================================================== 02007c80 : int chmod( const char *path, mode_t mode ) { 2007c80: 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 ); 2007c84: 40 01 0d 40 call 204b184 2007c88: 90 10 00 18 mov %i0, %o0 2007c8c: a0 07 bf ec add %fp, -20, %l0 2007c90: 92 10 00 08 mov %o0, %o1 2007c94: 94 10 20 00 clr %o2 2007c98: 90 10 00 18 mov %i0, %o0 2007c9c: 96 10 00 10 mov %l0, %o3 2007ca0: 98 10 20 01 mov 1, %o4 2007ca4: 40 00 01 52 call 20081ec 2007ca8: b0 10 3f ff mov -1, %i0 if ( status != 0 ) 2007cac: 80 a2 20 00 cmp %o0, 0 2007cb0: 12 80 00 24 bne 2007d40 2007cb4: c2 07 bf f4 ld [ %fp + -12 ], %g1 return -1; if ( !loc.handlers ){ 2007cb8: 80 a0 60 00 cmp %g1, 0 2007cbc: 32 80 00 10 bne,a 2007cfc <== ALWAYS TAKEN 2007cc0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 rtems_filesystem_freenode( &loc ); 2007cc4: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2007cc8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2007ccc: 02 80 00 08 be 2007cec <== NOT EXECUTED 2007cd0: 01 00 00 00 nop <== NOT EXECUTED 2007cd4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2007cd8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2007cdc: 02 80 00 04 be 2007cec <== NOT EXECUTED 2007ce0: 01 00 00 00 nop <== NOT EXECUTED 2007ce4: 9f c0 40 00 call %g1 <== NOT EXECUTED 2007ce8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); 2007cec: 40 00 f1 6a call 2044294 <__errno> <== NOT EXECUTED 2007cf0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2007cf4: 10 80 00 12 b 2007d3c <== NOT EXECUTED 2007cf8: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED } if ( !loc.handlers->fchmod_h ){ 2007cfc: 80 a0 60 00 cmp %g1, 0 2007d00: 12 80 00 12 bne 2007d48 <== ALWAYS TAKEN 2007d04: 92 10 00 19 mov %i1, %o1 rtems_filesystem_freenode( &loc ); 2007d08: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2007d0c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2007d10: 02 80 00 08 be 2007d30 <== NOT EXECUTED 2007d14: 01 00 00 00 nop <== NOT EXECUTED 2007d18: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2007d1c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2007d20: 02 80 00 04 be 2007d30 <== NOT EXECUTED 2007d24: 01 00 00 00 nop <== NOT EXECUTED 2007d28: 9f c0 40 00 call %g1 <== NOT EXECUTED 2007d2c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2007d30: 40 00 f1 59 call 2044294 <__errno> <== NOT EXECUTED 2007d34: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2007d38: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2007d3c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2007d40: 81 c7 e0 08 ret 2007d44: 81 e8 00 00 restore } result = (*loc.handlers->fchmod_h)( &loc, mode ); 2007d48: 9f c0 40 00 call %g1 2007d4c: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &loc ); 2007d50: c2 07 bf f8 ld [ %fp + -8 ], %g1 2007d54: 80 a0 60 00 cmp %g1, 0 2007d58: 02 bf ff fa be 2007d40 <== NEVER TAKEN 2007d5c: b0 10 00 08 mov %o0, %i0 2007d60: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2007d64: 80 a0 60 00 cmp %g1, 0 2007d68: 02 80 00 04 be 2007d78 <== NEVER TAKEN 2007d6c: 01 00 00 00 nop 2007d70: 9f c0 40 00 call %g1 2007d74: 90 10 00 10 mov %l0, %o0 return result; } 2007d78: 81 c7 e0 08 ret 2007d7c: 81 e8 00 00 restore =============================================================================== 02028ad4 : int chown( const char *path, uid_t owner, gid_t group ) { 2028ad4: 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 ) ) 2028ad8: 40 00 89 ab call 204b184 2028adc: 90 10 00 18 mov %i0, %o0 2028ae0: a0 07 bf ec add %fp, -20, %l0 2028ae4: 92 10 00 08 mov %o0, %o1 2028ae8: 94 10 20 00 clr %o2 2028aec: 90 10 00 18 mov %i0, %o0 2028af0: 96 10 00 10 mov %l0, %o3 2028af4: 98 10 20 01 mov 1, %o4 2028af8: 7f ff 7d bd call 20081ec 2028afc: b0 10 3f ff mov -1, %i0 2028b00: 80 a2 20 00 cmp %o0, 0 2028b04: 12 80 00 10 bne 2028b44 2028b08: c4 07 bf f8 ld [ %fp + -8 ], %g2 return -1; if ( !loc.ops->chown_h ) { 2028b0c: c2 00 a0 18 ld [ %g2 + 0x18 ], %g1 2028b10: 80 a0 60 00 cmp %g1, 0 2028b14: 12 80 00 0e bne 2028b4c <== ALWAYS TAKEN 2028b18: 93 2e 60 10 sll %i1, 0x10, %o1 rtems_filesystem_freenode( &loc ); 2028b1c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2028b20: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2028b24: 02 80 00 04 be 2028b34 <== NOT EXECUTED 2028b28: 01 00 00 00 nop <== NOT EXECUTED 2028b2c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2028b30: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2028b34: 40 00 6d d8 call 2044294 <__errno> <== NOT EXECUTED 2028b38: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2028b3c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2028b40: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2028b44: 81 c7 e0 08 ret 2028b48: 81 e8 00 00 restore } result = (*loc.ops->chown_h)( &loc, owner, group ); 2028b4c: 95 2e a0 10 sll %i2, 0x10, %o2 2028b50: 93 32 60 10 srl %o1, 0x10, %o1 2028b54: 95 32 a0 10 srl %o2, 0x10, %o2 2028b58: 9f c0 40 00 call %g1 2028b5c: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &loc ); 2028b60: c2 07 bf f8 ld [ %fp + -8 ], %g1 2028b64: 80 a0 60 00 cmp %g1, 0 2028b68: 02 bf ff f7 be 2028b44 <== NEVER TAKEN 2028b6c: b0 10 00 08 mov %o0, %i0 2028b70: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2028b74: 80 a0 60 00 cmp %g1, 0 2028b78: 02 80 00 04 be 2028b88 <== NEVER TAKEN 2028b7c: 01 00 00 00 nop 2028b80: 9f c0 40 00 call %g1 2028b84: 90 10 00 10 mov %l0, %o0 return result; } 2028b88: 81 c7 e0 08 ret 2028b8c: 81 e8 00 00 restore =============================================================================== 02028b90 : #include int chroot( const char *pathname ) { 2028b90: 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) { 2028b94: 23 00 81 ab sethi %hi(0x206ac00), %l1 2028b98: e0 04 61 64 ld [ %l1 + 0x164 ], %l0 ! 206ad64 2028b9c: 03 00 81 ba sethi %hi(0x206e800), %g1 2028ba0: 82 10 63 fc or %g1, 0x3fc, %g1 ! 206ebfc 2028ba4: 80 a4 00 01 cmp %l0, %g1 2028ba8: 12 80 00 0e bne 2028be0 <== NEVER TAKEN 2028bac: 01 00 00 00 nop rtems_libio_set_private_env(); /* try to set a new private env*/ 2028bb0: 40 00 06 22 call 202a438 2028bb4: 01 00 00 00 nop if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ 2028bb8: c2 04 61 64 ld [ %l1 + 0x164 ], %g1 2028bbc: 80 a0 40 10 cmp %g1, %l0 2028bc0: 12 80 00 08 bne 2028be0 <== ALWAYS TAKEN 2028bc4: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); 2028bc8: 40 00 6d b3 call 2044294 <__errno> <== NOT EXECUTED 2028bcc: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 2028bd0: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2028bd4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2028bd8: 81 c7 e0 08 ret <== NOT EXECUTED 2028bdc: 81 e8 00 00 restore <== NOT EXECUTED } result = chdir(pathname); 2028be0: 7f ff ff 71 call 20289a4 2028be4: 90 10 00 18 mov %i0, %o0 if (result) { 2028be8: 80 a2 20 00 cmp %o0, 0 2028bec: 12 80 00 0b bne 2028c18 <== NEVER TAKEN 2028bf0: 11 00 81 93 sethi %hi(0x2064c00), %o0 rtems_set_errno_and_return_minus_one( errno ); } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 2028bf4: 92 10 20 01 mov 1, %o1 2028bf8: 90 12 20 c0 or %o0, 0xc0, %o0 2028bfc: 94 10 20 00 clr %o2 2028c00: 96 07 bf ec add %fp, -20, %o3 2028c04: 7f ff 7d 7a call 20081ec 2028c08: 98 10 20 00 clr %o4 2028c0c: 80 a2 20 00 cmp %o0, 0 2028c10: 02 80 00 0a be 2028c38 <== ALWAYS TAKEN 2028c14: 03 00 81 ab sethi %hi(0x206ac00), %g1 /* our cwd has changed, though - but there is no easy way of return :-( */ rtems_set_errno_and_return_minus_one( errno ); 2028c18: 40 00 6d 9f call 2044294 <__errno> <== NOT EXECUTED 2028c1c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2028c20: 40 00 6d 9d call 2044294 <__errno> <== NOT EXECUTED 2028c24: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED 2028c28: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 2028c2c: c2 24 00 00 st %g1, [ %l0 ] <== NOT EXECUTED 2028c30: 81 c7 e0 08 ret <== NOT EXECUTED 2028c34: 81 e8 00 00 restore <== NOT EXECUTED } rtems_filesystem_freenode(&rtems_filesystem_root); 2028c38: d0 00 61 64 ld [ %g1 + 0x164 ], %o0 2028c3c: c2 02 20 24 ld [ %o0 + 0x24 ], %g1 2028c40: 80 a0 60 00 cmp %g1, 0 2028c44: 22 80 00 09 be,a 2028c68 <== NEVER TAKEN 2028c48: 03 00 81 ab sethi %hi(0x206ac00), %g1 <== NOT EXECUTED 2028c4c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 206ac1c 2028c50: 80 a0 60 00 cmp %g1, 0 2028c54: 22 80 00 05 be,a 2028c68 <== NEVER TAKEN 2028c58: 03 00 81 ab sethi %hi(0x206ac00), %g1 <== NOT EXECUTED 2028c5c: 9f c0 40 00 call %g1 2028c60: 90 02 20 18 add %o0, 0x18, %o0 rtems_filesystem_root = loc; 2028c64: 03 00 81 ab sethi %hi(0x206ac00), %g1 2028c68: d0 00 61 64 ld [ %g1 + 0x164 ], %o0 ! 206ad64 2028c6c: 92 07 bf ec add %fp, -20, %o1 2028c70: 94 10 20 14 mov 0x14, %o2 2028c74: 90 02 20 18 add %o0, 0x18, %o0 2028c78: 40 00 7a d3 call 20477c4 2028c7c: b0 10 20 00 clr %i0 return 0; } 2028c80: 81 c7 e0 08 ret 2028c84: 81 e8 00 00 restore =============================================================================== 02006238 : int clock_gettime( clockid_t clock_id, struct timespec *tp ) { 2006238: 9d e3 bf a0 save %sp, -96, %sp if ( !tp ) 200623c: 90 96 60 00 orcc %i1, 0, %o0 2006240: 12 80 00 06 bne 2006258 2006244: 80 a6 20 01 cmp %i0, 1 rtems_set_errno_and_return_minus_one( EINVAL ); 2006248: 40 00 2e 39 call 2011b2c <__errno> 200624c: 01 00 00 00 nop 2006250: 10 80 00 14 b 20062a0 2006254: 82 10 20 16 mov 0x16, %g1 ! 16 if ( clock_id == CLOCK_REALTIME ) { 2006258: 12 80 00 05 bne 200626c 200625c: 80 a6 20 04 cmp %i0, 4 _TOD_Get(tp); 2006260: 40 00 07 df call 20081dc <_TOD_Get> 2006264: b0 10 20 00 clr %i0 2006268: 30 80 00 15 b,a 20062bc return 0; } #ifdef CLOCK_MONOTONIC if ( clock_id == CLOCK_MONOTONIC ) { 200626c: 02 80 00 04 be 200627c <== NEVER TAKEN 2006270: 80 a6 20 02 cmp %i0, 2 return 0; } #endif #ifdef _POSIX_CPUTIME if ( clock_id == CLOCK_PROCESS_CPUTIME_ID ) { 2006274: 12 80 00 06 bne 200628c 2006278: 80 a6 20 03 cmp %i0, 3 _TOD_Get_uptime_as_timespec( tp ); 200627c: 40 00 07 f7 call 2008258 <_TOD_Get_uptime_as_timespec> 2006280: b0 10 20 00 clr %i0 return 0; 2006284: 81 c7 e0 08 ret 2006288: 81 e8 00 00 restore } #endif #ifdef _POSIX_THREAD_CPUTIME if ( clock_id == CLOCK_THREAD_CPUTIME_ID ) 200628c: 12 80 00 08 bne 20062ac 2006290: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOSYS ); 2006294: 40 00 2e 26 call 2011b2c <__errno> 2006298: 01 00 00 00 nop 200629c: 82 10 20 58 mov 0x58, %g1 ! 58 20062a0: c2 22 00 00 st %g1, [ %o0 ] 20062a4: 81 c7 e0 08 ret 20062a8: 91 e8 3f ff restore %g0, -1, %o0 #endif rtems_set_errno_and_return_minus_one( EINVAL ); 20062ac: 40 00 2e 20 call 2011b2c <__errno> 20062b0: b0 10 3f ff mov -1, %i0 20062b4: 82 10 20 16 mov 0x16, %g1 20062b8: c2 22 00 00 st %g1, [ %o0 ] return 0; } 20062bc: 81 c7 e0 08 ret 20062c0: 81 e8 00 00 restore =============================================================================== 0202af98 : int clock_settime( clockid_t clock_id, const struct timespec *tp ) { 202af98: 9d e3 bf a0 save %sp, -96, %sp if ( !tp ) 202af9c: 90 96 60 00 orcc %i1, 0, %o0 202afa0: 02 80 00 0a be 202afc8 <== NEVER TAKEN 202afa4: 80 a6 20 01 cmp %i0, 1 rtems_set_errno_and_return_minus_one( EINVAL ); if ( clock_id == CLOCK_REALTIME ) { 202afa8: 12 80 00 15 bne 202affc 202afac: 80 a6 20 02 cmp %i0, 2 if ( tp->tv_sec < TOD_SECONDS_1970_THROUGH_1988 ) 202afb0: c4 02 00 00 ld [ %o0 ], %g2 202afb4: 03 08 76 b9 sethi %hi(0x21dae400), %g1 202afb8: 82 10 60 ff or %g1, 0xff, %g1 ! 21dae4ff 202afbc: 80 a0 80 01 cmp %g2, %g1 202afc0: 38 80 00 06 bgu,a 202afd8 202afc4: 03 00 81 bb sethi %hi(0x206ec00), %g1 rtems_set_errno_and_return_minus_one( EINVAL ); 202afc8: 40 00 64 b3 call 2044294 <__errno> 202afcc: 01 00 00 00 nop 202afd0: 10 80 00 12 b 202b018 202afd4: 82 10 20 16 mov 0x16, %g1 ! 16 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 202afd8: c4 00 61 80 ld [ %g1 + 0x180 ], %g2 202afdc: 84 00 a0 01 inc %g2 202afe0: c4 20 61 80 st %g2, [ %g1 + 0x180 ] _Thread_Disable_dispatch(); _TOD_Set( tp ); 202afe4: 40 00 06 19 call 202c848 <_TOD_Set> 202afe8: b0 10 20 00 clr %i0 _Thread_Enable_dispatch(); 202afec: 7f ff 90 99 call 200f250 <_Thread_Enable_dispatch> 202aff0: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOSYS ); #endif else rtems_set_errno_and_return_minus_one( EINVAL ); return 0; 202aff4: 81 c7 e0 08 ret 202aff8: 81 e8 00 00 restore _Thread_Disable_dispatch(); _TOD_Set( tp ); _Thread_Enable_dispatch(); } #ifdef _POSIX_CPUTIME else if ( clock_id == CLOCK_PROCESS_CPUTIME_ID ) 202affc: 02 80 00 04 be 202b00c 202b000: 80 a6 20 03 cmp %i0, 3 rtems_set_errno_and_return_minus_one( ENOSYS ); #endif #ifdef _POSIX_THREAD_CPUTIME else if ( clock_id == CLOCK_THREAD_CPUTIME_ID ) 202b004: 12 80 00 08 bne 202b024 202b008: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOSYS ); 202b00c: 40 00 64 a2 call 2044294 <__errno> 202b010: 01 00 00 00 nop 202b014: 82 10 20 58 mov 0x58, %g1 ! 58 202b018: c2 22 00 00 st %g1, [ %o0 ] 202b01c: 81 c7 e0 08 ret 202b020: 91 e8 3f ff restore %g0, -1, %o0 #endif else rtems_set_errno_and_return_minus_one( EINVAL ); 202b024: 40 00 64 9c call 2044294 <__errno> 202b028: b0 10 3f ff mov -1, %i0 202b02c: 82 10 20 16 mov 0x16, %g1 202b030: c2 22 00 00 st %g1, [ %o0 ] return 0; } 202b034: 81 c7 e0 08 ret 202b038: 81 e8 00 00 restore =============================================================================== 0200bda8 : #include int close( int fd ) { 200bda8: 9d e3 bf a0 save %sp, -96, %sp rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); 200bdac: 03 00 80 75 sethi %hi(0x201d400), %g1 200bdb0: c2 00 62 a4 ld [ %g1 + 0x2a4 ], %g1 ! 201d6a4 200bdb4: 80 a6 00 01 cmp %i0, %g1 200bdb8: 1a 80 00 0b bcc 200bde4 200bdbc: 03 00 80 78 sethi %hi(0x201e000), %g1 iop = rtems_libio_iop(fd); 200bdc0: e0 00 60 b4 ld [ %g1 + 0xb4 ], %l0 ! 201e0b4 200bdc4: 83 2e 20 06 sll %i0, 6, %g1 200bdc8: b1 2e 20 03 sll %i0, 3, %i0 200bdcc: b0 06 00 01 add %i0, %g1, %i0 200bdd0: a0 04 00 18 add %l0, %i0, %l0 rtems_libio_check_is_open(iop); 200bdd4: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 200bdd8: 80 88 61 00 btst 0x100, %g1 200bddc: 32 80 00 08 bne,a 200bdfc 200bde0: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 200bde4: 40 00 12 d9 call 2010948 <__errno> 200bde8: b0 10 3f ff mov -1, %i0 200bdec: 82 10 20 09 mov 9, %g1 200bdf0: c2 22 00 00 st %g1, [ %o0 ] 200bdf4: 81 c7 e0 08 ret 200bdf8: 81 e8 00 00 restore rc = RTEMS_SUCCESSFUL; if ( iop->handlers->close_h ) 200bdfc: c2 00 60 04 ld [ %g1 + 4 ], %g1 200be00: 80 a0 60 00 cmp %g1, 0 200be04: 02 80 00 05 be 200be18 <== NEVER TAKEN 200be08: b0 10 20 00 clr %i0 rc = (*iop->handlers->close_h)( iop ); 200be0c: 9f c0 40 00 call %g1 200be10: 90 10 00 10 mov %l0, %o0 200be14: b0 10 00 08 mov %o0, %i0 rtems_filesystem_freenode( &iop->pathinfo ); 200be18: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 200be1c: 80 a0 60 00 cmp %g1, 0 200be20: 02 80 00 08 be 200be40 <== NEVER TAKEN 200be24: 01 00 00 00 nop 200be28: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200be2c: 80 a0 60 00 cmp %g1, 0 200be30: 02 80 00 04 be 200be40 200be34: 01 00 00 00 nop 200be38: 9f c0 40 00 call %g1 200be3c: 90 04 20 1c add %l0, 0x1c, %o0 rtems_libio_free( iop ); 200be40: 40 00 00 a5 call 200c0d4 200be44: 90 10 00 10 mov %l0, %o0 return rc; } 200be48: 81 c7 e0 08 ret 200be4c: 81 e8 00 00 restore =============================================================================== 02002e2c : return disktab [major].minor + minor; } static rtems_status_code create_disk(dev_t dev, const char *name, rtems_disk_device **dd_ptr) { 2002e2c: 9d e3 bf a0 save %sp, -96, %sp rtems_device_major_number major = 0; rtems_device_minor_number minor = 0; rtems_filesystem_split_dev_t(dev, major, minor); if (major >= disktab_size) { 2002e30: 03 00 80 86 sethi %hi(0x2021800), %g1 2002e34: e2 00 63 0c ld [ %g1 + 0x30c ], %l1 ! 2021b0c 2002e38: 80 a6 00 11 cmp %i0, %l1 2002e3c: 0a 80 00 16 bcs 2002e94 2002e40: a0 10 00 18 mov %i0, %l0 rtems_disk_device_table *table = disktab; 2002e44: 03 00 80 86 sethi %hi(0x2021800), %g1 rtems_device_major_number old_size = disktab_size; rtems_device_major_number new_size = 2 * old_size; 2002e48: a5 2c 60 01 sll %l1, 1, %l2 if (major >= new_size) { 2002e4c: 80 a6 00 12 cmp %i0, %l2 2002e50: 0a 80 00 03 bcs 2002e5c <== NEVER TAKEN 2002e54: d0 00 63 08 ld [ %g1 + 0x308 ], %o0 new_size = major + 1; 2002e58: a4 06 20 01 add %i0, 1, %l2 } table = realloc(table, new_size * sizeof(*table)); 2002e5c: 40 00 07 26 call 2004af4 2002e60: 93 2c a0 03 sll %l2, 3, %o1 if (table == NULL) { 2002e64: a6 92 20 00 orcc %o0, 0, %l3 2002e68: 02 80 00 5a be 2002fd0 <== ALWAYS TAKEN 2002e6c: 91 2c 60 03 sll %l1, 3, %o0 return NULL; } memset(table + old_size, 0, (new_size - old_size) * sizeof(*table)); 2002e70: 94 24 80 11 sub %l2, %l1, %o2 <== NOT EXECUTED 2002e74: 90 04 c0 08 add %l3, %o0, %o0 <== NOT EXECUTED 2002e78: 95 2a a0 03 sll %o2, 3, %o2 <== NOT EXECUTED 2002e7c: 40 00 49 23 call 2015308 <== NOT EXECUTED 2002e80: 92 10 20 00 clr %o1 <== NOT EXECUTED disktab = table; 2002e84: 03 00 80 86 sethi %hi(0x2021800), %g1 <== NOT EXECUTED 2002e88: e6 20 63 08 st %l3, [ %g1 + 0x308 ] ! 2021b08 <== NOT EXECUTED disktab_size = new_size; 2002e8c: 03 00 80 86 sethi %hi(0x2021800), %g1 <== NOT EXECUTED 2002e90: e4 20 63 0c st %l2, [ %g1 + 0x30c ] ! 2021b0c <== NOT EXECUTED } if (disktab [major].minor == NULL || minor >= disktab[major].size) { 2002e94: 03 00 80 86 sethi %hi(0x2021800), %g1 2002e98: c2 00 63 08 ld [ %g1 + 0x308 ], %g1 ! 2021b08 2002e9c: a5 2c 20 03 sll %l0, 3, %l2 2002ea0: d0 00 40 12 ld [ %g1 + %l2 ], %o0 2002ea4: 80 a2 20 00 cmp %o0, 0 2002ea8: 02 80 00 06 be 2002ec0 2002eac: 82 00 40 12 add %g1, %l2, %g1 2002eb0: c4 00 60 04 ld [ %g1 + 4 ], %g2 2002eb4: 80 a6 40 02 cmp %i1, %g2 2002eb8: 2a 80 00 1a bcs,a 2002f20 <== ALWAYS TAKEN 2002ebc: 03 00 80 86 sethi %hi(0x2021800), %g1 rtems_disk_device **table = disktab [major].minor; rtems_device_minor_number old_size = disktab [major].size; 2002ec0: e8 00 60 04 ld [ %g1 + 4 ], %l4 ! 2021804 rtems_device_minor_number new_size = 0; if (old_size == 0) { 2002ec4: 80 a5 20 00 cmp %l4, 0 2002ec8: 12 80 00 03 bne 2002ed4 <== NEVER TAKEN 2002ecc: a3 2d 20 01 sll %l4, 1, %l1 2002ed0: a2 10 20 08 mov 8, %l1 new_size = DISKTAB_INITIAL_SIZE; } else { new_size = 2 * old_size; } if (minor >= new_size) { 2002ed4: 80 a6 40 11 cmp %i1, %l1 2002ed8: 3a 80 00 02 bcc,a 2002ee0 2002edc: a2 06 60 01 add %i1, 1, %l1 new_size = minor + 1; } table = realloc(table, new_size * sizeof(*table)); 2002ee0: 40 00 07 05 call 2004af4 2002ee4: 93 2c 60 02 sll %l1, 2, %o1 if (table == NULL) { 2002ee8: a6 92 20 00 orcc %o0, 0, %l3 2002eec: 02 80 00 39 be 2002fd0 2002ef0: 91 2d 20 02 sll %l4, 2, %o0 return NULL; } memset(table + old_size, 0, (new_size - old_size) * sizeof(*table)); 2002ef4: 94 24 40 14 sub %l1, %l4, %o2 2002ef8: 90 04 c0 08 add %l3, %o0, %o0 2002efc: 95 2a a0 02 sll %o2, 2, %o2 2002f00: 40 00 49 02 call 2015308 2002f04: 92 10 20 00 clr %o1 disktab [major].minor = table; 2002f08: 03 00 80 86 sethi %hi(0x2021800), %g1 2002f0c: c2 00 63 08 ld [ %g1 + 0x308 ], %g1 ! 2021b08 2002f10: e6 20 40 12 st %l3, [ %g1 + %l2 ] 2002f14: 82 00 40 12 add %g1, %l2, %g1 disktab [major].size = new_size; 2002f18: e2 20 60 04 st %l1, [ %g1 + 4 ] } return disktab [major].minor + minor; 2002f1c: 03 00 80 86 sethi %hi(0x2021800), %g1 2002f20: c2 00 63 08 ld [ %g1 + 0x308 ], %g1 ! 2021b08 2002f24: a7 2e 60 02 sll %i1, 2, %l3 2002f28: e8 00 40 12 ld [ %g1 + %l2 ], %l4 2002f2c: 82 05 00 13 add %l4, %l3, %g1 { rtems_disk_device **dd_entry = create_disk_table_entry(dev); rtems_disk_device *dd = NULL; char *alloc_name = NULL; if (dd_entry == NULL) { 2002f30: 80 a0 60 00 cmp %g1, 0 2002f34: 02 80 00 15 be 2002f88 <== NEVER TAKEN 2002f38: b0 10 20 1a mov 0x1a, %i0 return RTEMS_NO_MEMORY; } if (*dd_entry != NULL) { 2002f3c: c2 05 00 13 ld [ %l4 + %l3 ], %g1 2002f40: 80 a0 60 00 cmp %g1, 0 2002f44: 12 80 00 11 bne 2002f88 2002f48: b0 10 20 0c mov 0xc, %i0 return RTEMS_RESOURCE_IN_USE; } dd = malloc(sizeof(*dd)); 2002f4c: 40 00 03 eb call 2003ef8 2002f50: 90 10 20 38 mov 0x38, %o0 if (dd == NULL) { 2002f54: a2 92 20 00 orcc %o0, 0, %l1 2002f58: 02 80 00 1e be 2002fd0 <== NEVER TAKEN 2002f5c: 80 a6 a0 00 cmp %i2, 0 return RTEMS_NO_MEMORY; } if (name != NULL) { 2002f60: 02 80 00 13 be 2002fac 2002f64: aa 10 20 00 clr %l5 alloc_name = strdup(name); 2002f68: 40 00 49 f7 call 2015744 2002f6c: 90 10 00 1a mov %i2, %o0 if (alloc_name == NULL) { 2002f70: a4 92 20 00 orcc %o0, 0, %l2 2002f74: 12 80 00 1a bne 2002fdc <== ALWAYS TAKEN 2002f78: aa 10 00 12 mov %l2, %l5 free(dd); 2002f7c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2002f80: 40 00 02 ff call 2003b7c <== NOT EXECUTED 2002f84: b0 10 20 1a mov 0x1a, %i0 <== NOT EXECUTED return RTEMS_NO_MEMORY; 2002f88: 81 c7 e0 08 ret 2002f8c: 81 e8 00 00 restore } } if (name != NULL) { if (mknod(alloc_name, 0777 | S_IFBLK, dev) < 0) { free(alloc_name); 2002f90: 40 00 02 fb call 2003b7c <== NOT EXECUTED 2002f94: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED free(dd); 2002f98: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2002f9c: 40 00 02 f8 call 2003b7c <== NOT EXECUTED 2002fa0: b0 10 20 0d mov 0xd, %i0 <== NOT EXECUTED return RTEMS_UNSATISFIED; 2002fa4: 81 c7 e0 08 ret <== NOT EXECUTED 2002fa8: 81 e8 00 00 restore <== NOT EXECUTED dd->dev = dev; dd->name = alloc_name; dd->uses = 0; dd->deleted = false; *dd_entry = dd; 2002fac: e2 25 00 13 st %l1, [ %l4 + %l3 ] *dd_ptr = dd; 2002fb0: e2 26 c0 00 st %l1, [ %i3 ] free(dd); return RTEMS_UNSATISFIED; } } dd->dev = dev; 2002fb4: e0 24 40 00 st %l0, [ %l1 ] 2002fb8: f2 24 60 04 st %i1, [ %l1 + 4 ] dd->name = alloc_name; 2002fbc: ea 24 60 10 st %l5, [ %l1 + 0x10 ] dd->uses = 0; 2002fc0: c0 24 60 14 clr [ %l1 + 0x14 ] dd->deleted = false; 2002fc4: c0 2c 60 30 clrb [ %l1 + 0x30 ] *dd_entry = dd; *dd_ptr = dd; return RTEMS_SUCCESSFUL; 2002fc8: 81 c7 e0 08 ret 2002fcc: 91 e8 20 00 restore %g0, 0, %o0 2002fd0: b0 10 20 1a mov 0x1a, %i0 } 2002fd4: 81 c7 e0 08 ret 2002fd8: 81 e8 00 00 restore return RTEMS_NO_MEMORY; } } if (name != NULL) { if (mknod(alloc_name, 0777 | S_IFBLK, dev) < 0) { 2002fdc: 13 00 00 18 sethi %hi(0x6000), %o1 2002fe0: 94 10 00 10 mov %l0, %o2 2002fe4: 92 12 61 ff or %o1, 0x1ff, %o1 2002fe8: 40 00 04 0d call 200401c 2002fec: 96 10 00 19 mov %i1, %o3 2002ff0: 80 a2 20 00 cmp %o0, 0 2002ff4: 36 bf ff ef bge,a 2002fb0 <== ALWAYS TAKEN 2002ff8: e2 25 00 13 st %l1, [ %l4 + %l3 ] 2002ffc: 30 bf ff e5 b,a 2002f90 <== NOT EXECUTED =============================================================================== 02009780 : #include "devfs.h" int devFS_close( rtems_libio_t *iop ) { 2009780: 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; 2009784: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.flags = 0; 2009788: c0 27 bf f8 clr [ %fp + -8 ] args.mode = 0; 200978c: c0 27 bf fc clr [ %fp + -4 ] status = rtems_io_close( 2009790: d2 00 60 0c ld [ %g1 + 0xc ], %o1 2009794: 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; 2009798: f0 27 bf f4 st %i0, [ %fp + -12 ] args.flags = 0; args.mode = 0; status = rtems_io_close( 200979c: 94 07 bf f4 add %fp, -12, %o2 20097a0: 40 00 05 bb call 200ae8c 20097a4: b0 10 20 00 clr %i0 np->major, np->minor, (void *) &args ); if ( status ) { 20097a8: 80 a2 20 00 cmp %o0, 0 20097ac: 02 80 00 05 be 20097c0 <== ALWAYS TAKEN 20097b0: 01 00 00 00 nop return rtems_deviceio_errno(status); 20097b4: 40 00 00 42 call 20098bc <== NOT EXECUTED 20097b8: 01 00 00 00 nop <== NOT EXECUTED 20097bc: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED } return 0; } 20097c0: 81 c7 e0 08 ret 20097c4: 81 e8 00 00 restore =============================================================================== 020097d4 : const char *pathname, size_t pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { 20097d4: 9d e3 bf a0 save %sp, -96, %sp int i; rtems_device_name_t *device_name_table; /* see if 'flags' is valid */ if ( !rtems_libio_is_valid_perms( flags ) ) 20097d8: 80 8e bf f8 btst -8, %i2 20097dc: 22 80 00 06 be,a 20097f4 <== ALWAYS TAKEN 20097e0: e0 06 c0 00 ld [ %i3 ], %l0 rtems_set_errno_and_return_minus_one( EPERM ); 20097e4: 40 00 0a d8 call 200c344 <__errno> <== NOT EXECUTED 20097e8: 01 00 00 00 nop <== NOT EXECUTED 20097ec: 10 80 00 0b b 2009818 <== NOT EXECUTED 20097f0: 82 10 20 01 mov 1, %g1 ! 1 <== NOT EXECUTED /* get the device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) 20097f4: 80 a4 20 00 cmp %l0, 0 20097f8: 02 80 00 05 be 200980c <== NEVER TAKEN 20097fc: 27 00 80 3f sethi %hi(0x200fc00), %l3 2009800: a2 10 20 00 clr %l1 rtems_set_errno_and_return_minus_one( EFAULT ); for (i = 0; i < rtems_device_table_size; i++) { 2009804: 10 80 00 24 b 2009894 2009808: a6 14 e2 38 or %l3, 0x238, %l3 rtems_set_errno_and_return_minus_one( EPERM ); /* 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 ); 200980c: 40 00 0a ce call 200c344 <__errno> <== NOT EXECUTED 2009810: 01 00 00 00 nop <== NOT EXECUTED 2009814: 82 10 20 0e mov 0xe, %g1 ! e <== NOT EXECUTED 2009818: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200981c: 81 c7 e0 08 ret <== NOT EXECUTED 2009820: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED for (i = 0; i < rtems_device_table_size; i++) { if (!device_name_table[i].device_name) 2009824: e4 04 00 00 ld [ %l0 ], %l2 2009828: 80 a4 a0 00 cmp %l2, 0 200982c: 02 80 00 19 be 2009890 2009830: a2 04 60 01 inc %l1 continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) 2009834: 92 10 00 12 mov %l2, %o1 2009838: 40 00 0e 64 call 200d1c8 200983c: 94 10 00 19 mov %i1, %o2 2009840: 80 a2 20 00 cmp %o0, 0 2009844: 32 80 00 14 bne,a 2009894 <== NEVER TAKEN 2009848: a0 04 20 14 add %l0, 0x14, %l0 <== NOT EXECUTED continue; if (device_name_table[i].device_name[pathnamelen] != '\0') 200984c: c2 4c 80 19 ldsb [ %l2 + %i1 ], %g1 2009850: 80 a0 60 00 cmp %g1, 0 2009854: 32 80 00 10 bne,a 2009894 2009858: 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; 200985c: 03 00 80 40 sethi %hi(0x2010000), %g1 2009860: c2 00 60 68 ld [ %g1 + 0x68 ], %g1 ! 2010068 if (device_name_table[i].device_name[pathnamelen] != '\0') continue; /* find the device, set proper values */ pathloc->node_access = (void *)&device_name_table[i]; 2009864: e0 26 c0 00 st %l0, [ %i3 ] pathloc->handlers = &devFS_file_handlers; pathloc->ops = &devFS_ops; pathloc->mt_entry = rtems_filesystem_root.mt_entry; 2009868: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 200986c: 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; 2009870: 03 00 80 40 sethi %hi(0x2010000), %g1 2009874: 82 10 60 10 or %g1, 0x10, %g1 ! 2010010 2009878: c2 26 e0 08 st %g1, [ %i3 + 8 ] pathloc->ops = &devFS_ops; 200987c: 03 00 80 3f sethi %hi(0x200fc00), %g1 2009880: 82 10 63 c8 or %g1, 0x3c8, %g1 ! 200ffc8 2009884: c2 26 e0 0c st %g1, [ %i3 + 0xc ] pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; 2009888: 81 c7 e0 08 ret 200988c: 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++) { 2009890: a0 04 20 14 add %l0, 0x14, %l0 2009894: c2 04 c0 00 ld [ %l3 ], %g1 2009898: 80 a4 40 01 cmp %l1, %g1 200989c: 0a bf ff e2 bcs 2009824 20098a0: 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 ); 20098a4: 40 00 0a a8 call 200c344 <__errno> 20098a8: b0 10 3f ff mov -1, %i0 20098ac: 82 10 20 02 mov 2, %g1 20098b0: c2 22 00 00 st %g1, [ %o0 ] } 20098b4: 81 c7 e0 08 ret 20098b8: 81 e8 00 00 restore =============================================================================== 02001f0c : int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry, const void *data ) { 2001f0c: 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( 2001f10: 23 00 80 3f sethi %hi(0x200fc00), %l1 2001f14: c2 04 62 38 ld [ %l1 + 0x238 ], %g1 ! 200fe38 2001f18: 85 28 60 04 sll %g1, 4, %g2 2001f1c: 83 28 60 02 sll %g1, 2, %g1 2001f20: 40 00 1c 55 call 2009074 <_Workspace_Allocate> 2001f24: 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) 2001f28: a0 92 20 00 orcc %o0, 0, %l0 2001f2c: 12 80 00 08 bne 2001f4c <== ALWAYS TAKEN 2001f30: c2 04 62 38 ld [ %l1 + 0x238 ], %g1 rtems_set_errno_and_return_minus_one( ENOMEM ); 2001f34: 40 00 29 04 call 200c344 <__errno> <== NOT EXECUTED 2001f38: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2001f3c: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 2001f40: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2001f44: 81 c7 e0 08 ret <== NOT EXECUTED 2001f48: 81 e8 00 00 restore <== NOT EXECUTED memset( 2001f4c: 92 10 20 00 clr %o1 2001f50: 85 28 60 04 sll %g1, 4, %g2 2001f54: 83 28 60 02 sll %g1, 2, %g1 2001f58: 40 00 2b 5c call 200ccc8 2001f5c: 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; 2001f60: 03 00 80 40 sethi %hi(0x2010000), %g1 2001f64: 82 10 60 10 or %g1, 0x10, %g1 ! 2010010 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; 2001f68: 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; 2001f6c: c2 26 20 24 st %g1, [ %i0 + 0x24 ] temp_mt_entry->mt_fs_root.ops = &devFS_ops; 2001f70: 03 00 80 3f sethi %hi(0x200fc00), %g1 2001f74: 82 10 63 c8 or %g1, 0x3c8, %g1 ! 200ffc8 2001f78: 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; } 2001f7c: 81 c7 e0 08 ret 2001f80: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 020020f8 : int devFS_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 20020f8: 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; 20020fc: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.command = command; 2002100: f2 27 bf f4 st %i1, [ %fp + -12 ] args.buffer = buffer; status = rtems_io_control( 2002104: d2 00 60 0c ld [ %g1 + 0xc ], %o1 2002108: 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; 200210c: f0 27 bf f0 st %i0, [ %fp + -16 ] args.command = command; args.buffer = buffer; 2002110: f4 27 bf f8 st %i2, [ %fp + -8 ] status = rtems_io_control( 2002114: 40 00 10 39 call 20061f8 2002118: 94 07 bf f0 add %fp, -16, %o2 np->major, np->minor, (void *) &args ); if ( status ) 200211c: 80 a2 20 00 cmp %o0, 0 2002120: 22 80 00 06 be,a 2002138 <== ALWAYS TAKEN 2002124: d0 07 bf fc ld [ %fp + -4 ], %o0 return rtems_deviceio_errno(status); 2002128: 40 00 1d e5 call 20098bc <== NOT EXECUTED 200212c: 01 00 00 00 nop <== NOT EXECUTED 2002130: 81 c7 e0 08 ret <== NOT EXECUTED 2002134: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return args.ioctl_return; } 2002138: b0 10 00 08 mov %o0, %i0 200213c: 81 c7 e0 08 ret 2002140: 81 e8 00 00 restore =============================================================================== 02001f84 : const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) { 2001f84: 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') && 2001f88: c2 4e 00 00 ldsb [ %i0 ], %g1 2001f8c: 80 a0 60 64 cmp %g1, 0x64 2001f90: 12 80 00 0e bne 2001fc8 <== NEVER TAKEN 2001f94: a0 10 00 18 mov %i0, %l0 2001f98: c2 4e 20 01 ldsb [ %i0 + 1 ], %g1 2001f9c: 80 a0 60 65 cmp %g1, 0x65 2001fa0: 12 80 00 0b bne 2001fcc <== NEVER TAKEN 2001fa4: 03 00 00 3c sethi %hi(0xf000), %g1 (path[2] == 'v') && (path[3] == '\0')) 2001fa8: c2 4e 20 02 ldsb [ %i0 + 2 ], %g1 2001fac: 80 a0 60 76 cmp %g1, 0x76 2001fb0: 12 80 00 07 bne 2001fcc <== NEVER TAKEN 2001fb4: 03 00 00 3c sethi %hi(0xf000), %g1 2001fb8: c2 4e 20 03 ldsb [ %i0 + 3 ], %g1 2001fbc: 80 a0 60 00 cmp %g1, 0 2001fc0: 02 80 00 4a be 20020e8 2001fc4: b0 10 20 00 clr %i0 return 0; /* must be a character device or a block device */ if (!S_ISBLK(mode) && !S_ISCHR(mode)) 2001fc8: 03 00 00 3c sethi %hi(0xf000), %g1 2001fcc: 05 00 00 08 sethi %hi(0x2000), %g2 2001fd0: 82 0e 40 01 and %i1, %g1, %g1 2001fd4: 80 a0 40 02 cmp %g1, %g2 2001fd8: 22 80 00 0a be,a 2002000 <== ALWAYS TAKEN 2001fdc: e2 07 00 00 ld [ %i4 ], %l1 2001fe0: 05 00 00 18 sethi %hi(0x6000), %g2 <== NOT EXECUTED 2001fe4: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2001fe8: 22 80 00 06 be,a 2002000 <== NOT EXECUTED 2001fec: e2 07 00 00 ld [ %i4 ], %l1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); 2001ff0: 40 00 28 d5 call 200c344 <__errno> <== NOT EXECUTED 2001ff4: 01 00 00 00 nop <== NOT EXECUTED 2001ff8: 10 80 00 28 b 2002098 <== NOT EXECUTED 2001ffc: 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; if (!device_name_table) 2002000: 80 a4 60 00 cmp %l1, 0 2002004: 02 80 00 08 be 2002024 <== NEVER TAKEN 2002008: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EFAULT ); for (slot = -1, i = 0; i < rtems_device_table_size; i++){ 200200c: 2b 00 80 3f sethi %hi(0x200fc00), %l5 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) 2002010: 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++){ 2002014: aa 15 62 38 or %l5, 0x238, %l5 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) 2002018: a4 10 3f ff mov -1, %l2 200201c: 10 80 00 15 b 2002070 2002020: a6 10 20 00 clr %l3 rtems_set_errno_and_return_minus_one( EFAULT ); 2002024: 40 00 28 c8 call 200c344 <__errno> <== NOT EXECUTED 2002028: 01 00 00 00 nop <== NOT EXECUTED 200202c: 10 80 00 1b b 2002098 <== NOT EXECUTED 2002030: 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) 2002034: d2 05 00 00 ld [ %l4 ], %o1 2002038: 80 a2 60 00 cmp %o1, 0 200203c: 02 80 00 0b be 2002068 2002040: a8 05 20 14 add %l4, 0x14, %l4 slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) 2002044: 40 00 2b db call 200cfb0 2002048: 01 00 00 00 nop 200204c: 80 a2 20 00 cmp %o0, 0 2002050: 32 80 00 08 bne,a 2002070 <== ALWAYS TAKEN 2002054: a6 04 e0 01 inc %l3 rtems_set_errno_and_return_minus_one( EEXIST ); 2002058: 40 00 28 bb call 200c344 <__errno> <== NOT EXECUTED 200205c: 01 00 00 00 nop <== NOT EXECUTED 2002060: 10 80 00 0e b 2002098 <== NOT EXECUTED 2002064: 82 10 20 11 mov 0x11, %g1 ! 11 <== NOT EXECUTED 2002068: 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++){ 200206c: a6 04 e0 01 inc %l3 2002070: c2 05 40 00 ld [ %l5 ], %g1 2002074: 80 a4 c0 01 cmp %l3, %g1 2002078: 0a bf ff ef bcs 2002034 200207c: 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) 2002080: 80 a4 bf ff cmp %l2, -1 2002084: 12 80 00 08 bne 20020a4 <== ALWAYS TAKEN 2002088: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOMEM ); 200208c: 40 00 28 ae call 200c344 <__errno> <== NOT EXECUTED 2002090: 01 00 00 00 nop <== NOT EXECUTED 2002094: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 2002098: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200209c: 81 c7 e0 08 ret <== NOT EXECUTED 20020a0: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED _ISR_Disable(level); 20020a4: 7f ff ff 25 call 2001d38 20020a8: 01 00 00 00 nop 20020ac: a6 10 00 08 mov %o0, %l3 device_name_table[slot].device_name = (char *)path; 20020b0: 83 2c a0 04 sll %l2, 4, %g1 device_name_table[slot].device_name_length = strlen(path); 20020b4: 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; 20020b8: a5 2c a0 02 sll %l2, 2, %l2 20020bc: a4 04 80 01 add %l2, %g1, %l2 20020c0: e0 24 40 12 st %l0, [ %l1 + %l2 ] device_name_table[slot].device_name_length = strlen(path); 20020c4: 40 00 2c 0c call 200d0f4 20020c8: 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; 20020cc: f2 24 60 10 st %i1, [ %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); 20020d0: d0 24 60 04 st %o0, [ %l1 + 4 ] device_name_table[slot].major = major; 20020d4: f4 24 60 08 st %i2, [ %l1 + 8 ] device_name_table[slot].minor = minor; 20020d8: f6 24 60 0c st %i3, [ %l1 + 0xc ] device_name_table[slot].mode = mode; _ISR_Enable(level); 20020dc: b0 10 20 00 clr %i0 20020e0: 7f ff ff 1a call 2001d48 20020e4: 90 10 00 13 mov %l3, %o0 return 0; } 20020e8: 81 c7 e0 08 ret 20020ec: 81 e8 00 00 restore =============================================================================== 02002144 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 2002144: 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; 2002148: 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; 200214c: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.flags = iop->flags; 2002150: c4 27 bf f8 st %g2, [ %fp + -8 ] args.mode = mode; 2002154: f6 27 bf fc st %i3, [ %fp + -4 ] status = rtems_io_open( 2002158: d2 00 60 0c ld [ %g1 + 0xc ], %o1 200215c: 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; 2002160: f0 27 bf f4 st %i0, [ %fp + -12 ] args.flags = iop->flags; args.mode = mode; status = rtems_io_open( 2002164: 94 07 bf f4 add %fp, -12, %o2 2002168: 40 00 10 6f call 2006324 200216c: b0 10 20 00 clr %i0 np->major, np->minor, (void *) &args ); if ( status ) 2002170: 80 a2 20 00 cmp %o0, 0 2002174: 02 80 00 05 be 2002188 <== ALWAYS TAKEN 2002178: 01 00 00 00 nop return rtems_deviceio_errno(status); 200217c: 40 00 1d d0 call 20098bc <== NOT EXECUTED 2002180: 01 00 00 00 nop <== NOT EXECUTED 2002184: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED return 0; } 2002188: 81 c7 e0 08 ret 200218c: 81 e8 00 00 restore =============================================================================== 02002190 : ssize_t devFS_read( rtems_libio_t *iop, void *buffer, size_t count ) { 2002190: 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; 2002194: 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; 2002198: 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; 200219c: 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; 20021a0: f4 27 bf f4 st %i2, [ %fp + -12 ] <== NOT EXECUTED args.flags = iop->flags; args.bytes_moved = 0; 20021a4: 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; 20021a8: 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( 20021ac: d2 00 60 0c ld [ %g1 + 0xc ], %o1 <== NOT EXECUTED 20021b0: 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; 20021b4: c4 3f bf e8 std %g2, [ %fp + -24 ] <== NOT EXECUTED args.buffer = buffer; 20021b8: 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; 20021bc: 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( 20021c0: 40 00 10 6f call 200637c <== NOT EXECUTED 20021c4: 94 07 bf e0 add %fp, -32, %o2 <== NOT EXECUTED np->major, np->minor, (void *) &args ); if ( status ) 20021c8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20021cc: 22 80 00 06 be,a 20021e4 <== NOT EXECUTED 20021d0: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED return rtems_deviceio_errno(status); 20021d4: 40 00 1d ba call 20098bc <== NOT EXECUTED 20021d8: 01 00 00 00 nop <== NOT EXECUTED 20021dc: 81 c7 e0 08 ret <== NOT EXECUTED 20021e0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 20021e4: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 20021e8: 81 c7 e0 08 ret <== NOT EXECUTED 20021ec: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 020021f0 : int devFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 20021f0: 9d e3 bf a0 save %sp, -96, %sp rtems_device_name_t *the_dev; the_dev = (rtems_device_name_t *)loc->node_access; 20021f4: c2 06 00 00 ld [ %i0 ], %g1 if (!the_dev) 20021f8: 80 a0 60 00 cmp %g1, 0 20021fc: 32 80 00 08 bne,a 200221c <== ALWAYS TAKEN 2002200: c4 00 60 0c ld [ %g1 + 0xc ], %g2 rtems_set_errno_and_return_minus_one( EFAULT ); 2002204: 40 00 28 50 call 200c344 <__errno> <== NOT EXECUTED 2002208: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200220c: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 2002210: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2002214: 81 c7 e0 08 ret <== NOT EXECUTED 2002218: 81 e8 00 00 restore <== NOT EXECUTED buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor ); buf->st_mode = the_dev->mode; 200221c: c6 00 60 10 ld [ %g1 + 0x10 ], %g3 rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; 2002220: c2 00 60 08 ld [ %g1 + 8 ], %g1 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 ); 2002224: c4 26 60 1c st %g2, [ %i1 + 0x1c ] buf->st_mode = the_dev->mode; 2002228: c6 26 60 0c st %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 ); 200222c: c2 26 60 18 st %g1, [ %i1 + 0x18 ] buf->st_mode = the_dev->mode; return 0; } 2002230: 81 c7 e0 08 ret 2002234: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 02002238 : ssize_t devFS_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 2002238: 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; 200223c: 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; 2002240: 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; 2002244: 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; 2002248: f4 27 bf f4 st %i2, [ %fp + -12 ] args.flags = iop->flags; args.bytes_moved = 0; 200224c: 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; 2002250: 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( 2002254: d2 00 60 0c ld [ %g1 + 0xc ], %o1 2002258: 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; 200225c: c4 3f bf e8 std %g2, [ %fp + -24 ] args.buffer = (void *) buffer; 2002260: 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; 2002264: 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( 2002268: 40 00 10 5b call 20063d4 200226c: 94 07 bf e0 add %fp, -32, %o2 np->major, np->minor, (void *) &args ); if ( status ) 2002270: 80 a2 20 00 cmp %o0, 0 2002274: 22 80 00 06 be,a 200228c <== ALWAYS TAKEN 2002278: d0 07 bf fc ld [ %fp + -4 ], %o0 return rtems_deviceio_errno(status); 200227c: 40 00 1d 90 call 20098bc <== NOT EXECUTED 2002280: 01 00 00 00 nop <== NOT EXECUTED 2002284: 81 c7 e0 08 ret <== NOT EXECUTED 2002288: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 200228c: b0 10 00 08 mov %o0, %i0 2002290: 81 c7 e0 08 ret 2002294: 81 e8 00 00 restore =============================================================================== 0200f200 : */ int device_close( rtems_libio_t *iop ) { 200f200: 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; 200f204: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; 200f208: f0 27 bf f4 st %i0, [ %fp + -12 ] args.flags = 0; 200f20c: c0 27 bf f8 clr [ %fp + -8 ] args.mode = 0; 200f210: c0 27 bf fc clr [ %fp + -4 ] status = rtems_io_close( 200f214: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 200f218: 94 07 bf f4 add %fp, -12, %o2 200f21c: 40 00 04 8b call 2010448 200f220: b0 10 20 00 clr %i0 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) { 200f224: 80 a2 20 00 cmp %o0, 0 200f228: 02 80 00 05 be 200f23c <== ALWAYS TAKEN 200f22c: 01 00 00 00 nop return rtems_deviceio_errno(status); 200f230: 40 00 05 6c call 20107e0 <== NOT EXECUTED 200f234: 01 00 00 00 nop <== NOT EXECUTED 200f238: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED } return 0; } 200f23c: 81 c7 e0 08 ret 200f240: 81 e8 00 00 restore =============================================================================== 0200f100 : int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 200f100: 9d e3 bf 90 save %sp, -112, %sp args.iop = iop; args.command = command; args.buffer = buffer; the_jnode = iop->file_info; 200f104: 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; 200f108: f2 27 bf f4 st %i1, [ %fp + -12 ] args.buffer = buffer; 200f10c: 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; 200f110: f0 27 bf f0 st %i0, [ %fp + -16 ] args.command = command; args.buffer = buffer; the_jnode = iop->file_info; status = rtems_io_control( 200f114: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 200f118: 40 00 04 e2 call 20104a0 200f11c: 94 07 bf f0 add %fp, -16, %o2 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200f120: 80 a2 20 00 cmp %o0, 0 200f124: 22 80 00 06 be,a 200f13c <== ALWAYS TAKEN 200f128: d0 07 bf fc ld [ %fp + -4 ], %o0 return rtems_deviceio_errno(status); 200f12c: 40 00 05 ad call 20107e0 <== NOT EXECUTED 200f130: 01 00 00 00 nop <== NOT EXECUTED 200f134: 81 c7 e0 08 ret <== NOT EXECUTED 200f138: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return args.ioctl_return; } 200f13c: b0 10 00 08 mov %o0, %i0 200f140: 81 c7 e0 08 ret 200f144: 81 e8 00 00 restore =============================================================================== 0200f244 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 200f244: 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; 200f248: 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; 200f24c: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; 200f250: f0 27 bf f4 st %i0, [ %fp + -12 ] args.flags = iop->flags; 200f254: c4 27 bf f8 st %g2, [ %fp + -8 ] args.mode = mode; 200f258: f6 27 bf fc st %i3, [ %fp + -4 ] status = rtems_io_open( 200f25c: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 200f260: 94 07 bf f4 add %fp, -12, %o2 200f264: 40 00 04 a5 call 20104f8 200f268: b0 10 20 00 clr %i0 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200f26c: 80 a2 20 00 cmp %o0, 0 200f270: 02 80 00 05 be 200f284 <== ALWAYS TAKEN 200f274: 01 00 00 00 nop return rtems_deviceio_errno(status); 200f278: 40 00 05 5a call 20107e0 <== NOT EXECUTED 200f27c: 01 00 00 00 nop <== NOT EXECUTED 200f280: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED return 0; } 200f284: 81 c7 e0 08 ret 200f288: 81 e8 00 00 restore =============================================================================== 0200f1a4 : ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { 200f1a4: 9d e3 bf 80 save %sp, -128, %sp args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; 200f1a8: 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; 200f1ac: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.offset = iop->offset; 200f1b0: d8 1e 20 10 ldd [ %i0 + 0x10 ], %o4 args.buffer = buffer; 200f1b4: 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; 200f1b8: d8 3f bf e8 std %o4, [ %fp + -24 ] args.buffer = buffer; args.count = count; 200f1bc: f4 27 bf f4 st %i2, [ %fp + -12 ] args.flags = iop->flags; 200f1c0: 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; 200f1c4: f0 27 bf e0 st %i0, [ %fp + -32 ] args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; 200f1c8: c0 27 bf fc clr [ %fp + -4 ] status = rtems_io_read( 200f1cc: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 200f1d0: 40 00 04 e0 call 2010550 200f1d4: 94 07 bf e0 add %fp, -32, %o2 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200f1d8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200f1dc: 22 80 00 06 be,a 200f1f4 <== NOT EXECUTED 200f1e0: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED return rtems_deviceio_errno(status); 200f1e4: 40 00 05 7f call 20107e0 <== NOT EXECUTED 200f1e8: 01 00 00 00 nop <== NOT EXECUTED 200f1ec: 81 c7 e0 08 ret <== NOT EXECUTED 200f1f0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 200f1f4: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 200f1f8: 81 c7 e0 08 ret <== NOT EXECUTED 200f1fc: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0200f148 : ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 200f148: 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; 200f14c: 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; 200f150: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.offset = iop->offset; 200f154: d8 1e 20 10 ldd [ %i0 + 0x10 ], %o4 args.buffer = (void *) buffer; 200f158: 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; 200f15c: d8 3f bf e8 std %o4, [ %fp + -24 ] args.buffer = (void *) buffer; args.count = count; 200f160: f4 27 bf f4 st %i2, [ %fp + -12 ] args.flags = iop->flags; 200f164: 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; 200f168: 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; 200f16c: c0 27 bf fc clr [ %fp + -4 ] status = rtems_io_write( 200f170: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 200f174: 40 00 05 0d call 20105a8 200f178: 94 07 bf e0 add %fp, -32, %o2 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200f17c: 80 a2 20 00 cmp %o0, 0 200f180: 22 80 00 06 be,a 200f198 <== ALWAYS TAKEN 200f184: d0 07 bf fc ld [ %fp + -4 ], %o0 return rtems_deviceio_errno(status); 200f188: 40 00 05 96 call 20107e0 <== NOT EXECUTED 200f18c: 01 00 00 00 nop <== NOT EXECUTED 200f190: 81 c7 e0 08 ret <== NOT EXECUTED 200f194: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 200f198: b0 10 00 08 mov %o0, %i0 200f19c: 81 c7 e0 08 ret 200f1a0: 81 e8 00 00 restore =============================================================================== 02002a5c : */ static volatile bool diskdevs_protected; static rtems_status_code disk_lock(void) { 2002a5c: 9d e3 bf a0 save %sp, -96, %sp rtems_status_code sc = RTEMS_SUCCESSFUL; sc = rtems_semaphore_obtain(diskdevs_mutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2002a60: 03 00 80 86 sethi %hi(0x2021800), %g1 2002a64: d0 00 63 10 ld [ %g1 + 0x310 ], %o0 ! 2021b10 2002a68: 92 10 20 00 clr %o1 2002a6c: 94 10 20 00 clr %o2 2002a70: 40 00 13 24 call 2007700 2002a74: b0 10 20 16 mov 0x16, %i0 if (sc == RTEMS_SUCCESSFUL) { 2002a78: 80 a2 20 00 cmp %o0, 0 2002a7c: 12 80 00 05 bne 2002a90 <== NEVER TAKEN 2002a80: 84 10 20 01 mov 1, %g2 diskdevs_protected = true; 2002a84: 03 00 80 86 sethi %hi(0x2021800), %g1 2002a88: b0 10 20 00 clr %i0 2002a8c: c4 28 63 14 stb %g2, [ %g1 + 0x314 ] return RTEMS_SUCCESSFUL; } else { return RTEMS_NOT_CONFIGURED; } } 2002a90: 81 c7 e0 08 ret 2002a94: 81 e8 00 00 restore =============================================================================== 02002a98 : static void disk_unlock(void) { 2002a98: 9d e3 bf a0 save %sp, -96, %sp rtems_status_code sc = RTEMS_SUCCESSFUL; diskdevs_protected = false; sc = rtems_semaphore_release(diskdevs_mutex); 2002a9c: 03 00 80 86 sethi %hi(0x2021800), %g1 2002aa0: d0 00 63 10 ld [ %g1 + 0x310 ], %o0 ! 2021b10 static void disk_unlock(void) { rtems_status_code sc = RTEMS_SUCCESSFUL; diskdevs_protected = false; 2002aa4: 03 00 80 86 sethi %hi(0x2021800), %g1 2002aa8: c0 28 63 14 clrb [ %g1 + 0x314 ] ! 2021b14 sc = rtems_semaphore_release(diskdevs_mutex); 2002aac: 40 00 13 5c call 200781c 2002ab0: 01 00 00 00 nop if (sc != RTEMS_SUCCESSFUL) { 2002ab4: 80 a2 20 00 cmp %o0, 0 2002ab8: 02 80 00 04 be 2002ac8 <== ALWAYS TAKEN 2002abc: 11 37 ab 6f sethi %hi(0xdeadbc00), %o0 /* FIXME: Error number */ rtems_fatal_error_occurred(0xdeadbeef); 2002ac0: 40 00 14 93 call 2007d0c <== NOT EXECUTED 2002ac4: 90 12 22 ef or %o0, 0x2ef, %o0 ! deadbeef <== NOT EXECUTED 2002ac8: 81 c7 e0 08 ret 2002acc: 81 e8 00 00 restore =============================================================================== 02004964 : /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { 2004964: 9d e3 bf a0 save %sp, -96, %sp rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { 2004968: c2 06 20 b4 ld [ %i0 + 0xb4 ], %g1 200496c: 80 a0 60 00 cmp %g1, 0 2004970: 02 80 00 1a be 20049d8 <== ALWAYS TAKEN 2004974: a0 10 00 18 mov %i0, %l0 rtems_interrupt_disable (level); 2004978: 7f ff f5 93 call 2001fc4 <== NOT EXECUTED 200497c: 01 00 00 00 nop <== NOT EXECUTED while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) { 2004980: 10 80 00 0f b 20049bc <== NOT EXECUTED 2004984: a2 10 20 02 mov 2, %l1 ! 2 <== NOT EXECUTED tty->rawOutBufState = rob_wait; rtems_interrupt_enable (level); 2004988: 7f ff f5 93 call 2001fd4 <== NOT EXECUTED 200498c: 01 00 00 00 nop <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 2004990: d0 04 20 8c ld [ %l0 + 0x8c ], %o0 <== NOT EXECUTED 2004994: 92 10 20 00 clr %o1 <== NOT EXECUTED 2004998: 40 00 06 6b call 2006344 <== NOT EXECUTED 200499c: 94 10 20 00 clr %o2 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 20049a0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20049a4: 02 80 00 04 be 20049b4 <== NOT EXECUTED 20049a8: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); 20049ac: 40 00 08 01 call 20069b0 <== NOT EXECUTED 20049b0: 01 00 00 00 nop <== NOT EXECUTED rtems_interrupt_disable (level); 20049b4: 7f ff f5 84 call 2001fc4 <== NOT EXECUTED 20049b8: 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) { 20049bc: c4 04 20 84 ld [ %l0 + 0x84 ], %g2 <== NOT EXECUTED 20049c0: c2 04 20 80 ld [ %l0 + 0x80 ], %g1 <== NOT EXECUTED 20049c4: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 20049c8: 32 bf ff f0 bne,a 2004988 <== NOT EXECUTED 20049cc: 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); 20049d0: 7f ff f5 81 call 2001fd4 <== NOT EXECUTED 20049d4: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 20049d8: 81 c7 e0 08 ret 20049dc: 81 e8 00 00 restore =============================================================================== 02003288 : int dup2( int fildes, int fildes2 ) { 2003288: 9d e3 bf 58 save %sp, -168, %sp /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); 200328c: a0 07 bf b8 add %fp, -72, %l0 2003290: 90 10 00 18 mov %i0, %o0 2003294: 40 00 01 c4 call 20039a4 2003298: 92 10 00 10 mov %l0, %o1 if ( status == -1 ) 200329c: 80 a2 3f ff cmp %o0, -1 20032a0: 02 80 00 0e be 20032d8 <== NEVER TAKEN 20032a4: 90 10 3f ff mov -1, %o0 /* * If fildes2 is not valid, then we should not do anything either. */ status = fstat( fildes2, &buf ); 20032a8: 92 10 00 10 mov %l0, %o1 20032ac: 40 00 01 be call 20039a4 20032b0: 90 10 00 19 mov %i1, %o0 if ( status == -1 ) 20032b4: 80 a2 3f ff cmp %o0, -1 20032b8: 02 80 00 07 be 20032d4 <== ALWAYS TAKEN 20032bc: 90 10 00 18 mov %i0, %o0 /* * This fcntl handles everything else. */ return fcntl( fildes, F_DUPFD, fildes2 ); 20032c0: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED 20032c4: 40 00 00 93 call 2003510 <== NOT EXECUTED 20032c8: 92 10 20 00 clr %o1 <== NOT EXECUTED 20032cc: 81 c7 e0 08 ret <== NOT EXECUTED 20032d0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 20032d4: 90 10 3f ff mov -1, %o0 } 20032d8: b0 10 00 08 mov %o0, %i0 20032dc: 81 c7 e0 08 ret 20032e0: 81 e8 00 00 restore =============================================================================== 020043b0 : /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { 20043b0: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 20043b4: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED 20043b8: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 20043bc: 02 80 00 1c be 200442c <== NOT EXECUTED 20043c0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 20043c4: 03 00 80 76 sethi %hi(0x201d800), %g1 <== NOT EXECUTED 20043c8: c4 00 61 1c ld [ %g1 + 0x11c ], %g2 ! 201d91c <__ctype_ptr__><== NOT EXECUTED 20043cc: 82 0e 20 ff and %i0, 0xff, %g1 <== NOT EXECUTED 20043d0: 84 00 80 01 add %g2, %g1, %g2 <== NOT EXECUTED 20043d4: c4 08 a0 01 ldub [ %g2 + 1 ], %g2 <== NOT EXECUTED 20043d8: 80 88 a0 20 btst 0x20, %g2 <== NOT EXECUTED 20043dc: 02 80 00 15 be 2004430 <== NOT EXECUTED 20043e0: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED 20043e4: 80 a0 60 09 cmp %g1, 9 <== NOT EXECUTED 20043e8: 02 80 00 12 be 2004430 <== NOT EXECUTED 20043ec: 01 00 00 00 nop <== NOT EXECUTED 20043f0: 80 a0 60 0a cmp %g1, 0xa <== NOT EXECUTED 20043f4: 02 80 00 0f be 2004430 <== NOT EXECUTED 20043f8: 82 10 20 5e mov 0x5e, %g1 <== NOT EXECUTED char echobuf[2]; echobuf[0] = '^'; echobuf[1] = c ^ 0x40; 20043fc: 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] = '^'; 2004400: c2 2f bf f8 stb %g1, [ %fp + -8 ] <== NOT EXECUTED echobuf[1] = c ^ 0x40; 2004404: f0 2f bf f9 stb %i0, [ %fp + -7 ] <== NOT EXECUTED rtems_termios_puts (echobuf, 2, tty); 2004408: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED 200440c: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 2004410: 7f ff ff 3b call 20040fc <== NOT EXECUTED 2004414: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED tty->column += 2; 2004418: c2 06 60 28 ld [ %i1 + 0x28 ], %g1 <== NOT EXECUTED 200441c: 82 00 60 02 add %g1, 2, %g1 <== NOT EXECUTED 2004420: 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')) { 2004424: 81 c7 e0 08 ret <== NOT EXECUTED 2004428: 81 e8 00 00 restore <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); tty->column += 2; } else { oproc (c, tty); 200442c: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED 2004430: 7f ff ff 7d call 2004224 <== NOT EXECUTED 2004434: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2004438: 81 c7 e0 08 ret <== NOT EXECUTED 200443c: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02029074 : group_fp = fopen("/etc/group", "r"); } void endgrent(void) { if (group_fp != NULL) 2029074: 03 00 81 ba sethi %hi(0x206e800), %g1 <== NOT EXECUTED 2029078: d0 00 60 9c ld [ %g1 + 0x9c ], %o0 ! 206e89c <== NOT EXECUTED 202907c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029080: 02 80 00 05 be 2029094 <== NOT EXECUTED 2029084: 01 00 00 00 nop <== NOT EXECUTED fclose(group_fp); 2029088: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 202908c: 40 00 6c da call 20443f4 <== NOT EXECUTED 2029090: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2029094: 81 c3 e0 08 retl <== NOT EXECUTED =============================================================================== 0202909c : passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { if (passwd_fp != NULL) 202909c: 03 00 81 b9 sethi %hi(0x206e400), %g1 <== NOT EXECUTED 20290a0: d0 00 63 b4 ld [ %g1 + 0x3b4 ], %o0 ! 206e7b4 <== NOT EXECUTED 20290a4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20290a8: 02 80 00 05 be 20290bc <== NOT EXECUTED 20290ac: 01 00 00 00 nop <== NOT EXECUTED fclose(passwd_fp); 20290b0: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 20290b4: 40 00 6c d0 call 20443f4 <== NOT EXECUTED 20290b8: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 20290bc: 81 c3 e0 08 retl <== NOT EXECUTED =============================================================================== 02004440 : * 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) { 2004440: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (tty->ccount == 0) 2004444: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 <== NOT EXECUTED 2004448: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200444c: 02 80 00 0a be 2004474 <== NOT EXECUTED 2004450: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED return; if (lineFlag) { 2004454: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 2004458: 02 80 00 7a be 2004640 <== NOT EXECUTED 200445c: 25 00 80 76 sethi %hi(0x201d800), %l2 <== NOT EXECUTED if (!(tty->termios.c_lflag & ECHO)) { 2004460: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED 2004464: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED 2004468: 32 80 00 05 bne,a 200447c <== NOT EXECUTED 200446c: 80 88 60 10 btst 0x10, %g1 <== NOT EXECUTED tty->ccount = 0; 2004470: c0 26 20 20 clr [ %i0 + 0x20 ] <== NOT EXECUTED return; 2004474: 81 c7 e0 08 ret <== NOT EXECUTED 2004478: 81 e8 00 00 restore <== NOT EXECUTED } if (!(tty->termios.c_lflag & ECHOE)) { 200447c: 12 80 00 71 bne 2004640 <== NOT EXECUTED 2004480: 25 00 80 76 sethi %hi(0x201d800), %l2 <== NOT EXECUTED tty->ccount = 0; echo (tty->termios.c_cc[VKILL], tty); 2004484: 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; 2004488: c0 26 20 20 clr [ %i0 + 0x20 ] <== NOT EXECUTED echo (tty->termios.c_cc[VKILL], tty); 200448c: 7f ff ff c9 call 20043b0 <== NOT EXECUTED 2004490: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) 2004494: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED echo ('\n', tty); 2004498: 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) 200449c: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 20044a0: 02 bf ff f5 be 2004474 <== NOT EXECUTED 20044a4: b0 10 20 0a mov 0xa, %i0 <== NOT EXECUTED 20044a8: 30 80 00 0f b,a 20044e4 <== NOT EXECUTED } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; if (tty->termios.c_lflag & ECHO) { 20044ac: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED echo ('\n', tty); return; } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; 20044b0: 86 00 ff ff add %g3, -1, %g3 <== NOT EXECUTED 20044b4: c6 24 20 20 st %g3, [ %l0 + 0x20 ] <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { 20044b8: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED 20044bc: 02 80 00 5c be 200462c <== NOT EXECUTED 20044c0: e2 08 80 03 ldub [ %g2 + %g3 ], %l1 <== NOT EXECUTED if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { 20044c4: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 20044c8: 32 80 00 09 bne,a 20044ec <== NOT EXECUTED 20044cc: a2 0c 60 ff and %l1, 0xff, %l1 <== NOT EXECUTED 20044d0: 80 88 60 10 btst 0x10, %g1 <== NOT EXECUTED 20044d4: 32 80 00 06 bne,a 20044ec <== NOT EXECUTED 20044d8: a2 0c 60 ff and %l1, 0xff, %l1 <== NOT EXECUTED echo (tty->termios.c_cc[VERASE], tty); 20044dc: f0 0c 20 43 ldub [ %l0 + 0x43 ], %i0 <== NOT EXECUTED 20044e0: b2 10 00 10 mov %l0, %i1 <== NOT EXECUTED 20044e4: 7f ff ff b3 call 20043b0 <== NOT EXECUTED 20044e8: 81 e8 00 00 restore <== NOT EXECUTED } else if (c == '\t') { 20044ec: 80 a4 60 09 cmp %l1, 9 <== NOT EXECUTED 20044f0: 32 80 00 2a bne,a 2004598 <== NOT EXECUTED 20044f4: 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) 20044f8: 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; 20044fc: 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)) { 2004500: da 04 80 00 ld [ %l2 ], %o5 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 2004504: 10 80 00 13 b 2004550 <== NOT EXECUTED 2004508: 84 10 20 00 clr %g2 <== NOT EXECUTED c = tty->cbuf[i++]; if (c == '\t') { 200450c: c8 09 00 02 ldub [ %g4 + %g2 ], %g4 <== NOT EXECUTED 2004510: 80 a1 20 09 cmp %g4, 9 <== NOT EXECUTED 2004514: 12 80 00 04 bne 2004524 <== NOT EXECUTED 2004518: 98 03 40 04 add %o5, %g4, %o4 <== NOT EXECUTED col = (col | 7) + 1; 200451c: 10 80 00 0b b 2004548 <== NOT EXECUTED 2004520: a2 14 60 07 or %l1, 7, %l1 <== NOT EXECUTED } else if (iscntrl (c)) { 2004524: c8 0b 20 01 ldub [ %o4 + 1 ], %g4 <== NOT EXECUTED 2004528: 80 89 20 20 btst 0x20, %g4 <== NOT EXECUTED 200452c: 22 80 00 08 be,a 200454c <== NOT EXECUTED 2004530: a2 04 60 01 inc %l1 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) 2004534: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004538: 32 80 00 05 bne,a 200454c <== NOT EXECUTED 200453c: a2 04 60 02 add %l1, 2, %l1 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; 2004540: 10 80 00 04 b 2004550 <== NOT EXECUTED 2004544: 84 00 a0 01 inc %g2 <== NOT EXECUTED else if (iscntrl (c)) { if (tty->termios.c_lflag & ECHOCTL) col += 2; } else { col++; 2004548: a2 04 60 01 inc %l1 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; 200454c: 84 00 a0 01 inc %g2 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 2004550: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED 2004554: 32 bf ff ee bne,a 200450c <== NOT EXECUTED 2004558: c8 04 20 1c ld [ %l0 + 0x1c ], %g4 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 200455c: 10 80 00 08 b 200457c <== NOT EXECUTED 2004560: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); 2004564: 7f ff fe e6 call 20040fc <== NOT EXECUTED 2004568: 01 00 00 00 nop <== NOT EXECUTED tty->column--; 200456c: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED 2004570: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 2004574: c2 24 20 28 st %g1, [ %l0 + 0x28 ] <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 2004578: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); 200457c: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED 2004580: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 2004584: 80 a0 40 11 cmp %g1, %l1 <== NOT EXECUTED 2004588: 14 bf ff f7 bg 2004564 <== NOT EXECUTED 200458c: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED if (tty->column) tty->column--; } } } if (!lineFlag) 2004590: 10 80 00 28 b 2004630 <== NOT EXECUTED 2004594: 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)) { 2004598: a2 04 60 01 inc %l1 <== NOT EXECUTED 200459c: c4 08 80 11 ldub [ %g2 + %l1 ], %g2 <== NOT EXECUTED 20045a0: 80 88 a0 20 btst 0x20, %g2 <== NOT EXECUTED 20045a4: 22 80 00 10 be,a 20045e4 <== NOT EXECUTED 20045a8: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED 20045ac: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 20045b0: 22 80 00 0d be,a 20045e4 <== NOT EXECUTED 20045b4: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); 20045b8: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 20045bc: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED 20045c0: 7f ff fe cf call 20040fc <== NOT EXECUTED 20045c4: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED if (tty->column) 20045c8: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED 20045cc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20045d0: 22 80 00 05 be,a 20045e4 <== NOT EXECUTED 20045d4: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED tty->column--; 20045d8: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 20045dc: c2 24 20 28 st %g1, [ %l0 + 0x28 ] <== NOT EXECUTED } if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) { 20045e0: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED 20045e4: c2 08 40 11 ldub [ %g1 + %l1 ], %g1 <== NOT EXECUTED 20045e8: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 20045ec: 02 80 00 07 be 2004608 <== NOT EXECUTED 20045f0: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 20045f4: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED 20045f8: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 20045fc: 02 80 00 0d be 2004630 <== NOT EXECUTED 2004600: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); 2004604: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 2004608: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED 200460c: 7f ff fe bc call 20040fc <== NOT EXECUTED 2004610: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED if (tty->column) 2004614: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED 2004618: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200461c: 02 80 00 05 be 2004630 <== NOT EXECUTED 2004620: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED tty->column--; 2004624: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 2004628: c2 24 20 28 st %g1, [ %l0 + 0x28 ] <== NOT EXECUTED } } } if (!lineFlag) 200462c: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 2004630: 32 80 00 0a bne,a 2004658 <== NOT EXECUTED 2004634: c6 04 20 20 ld [ %l0 + 0x20 ], %g3 <== NOT EXECUTED 2004638: 81 c7 e0 08 ret <== NOT EXECUTED 200463c: 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); 2004640: 27 00 80 71 sethi %hi(0x201c400), %l3 <== NOT EXECUTED /* * Back up over the tab */ while (tty->column > col) { rtems_termios_puts ("\b", 1, tty); 2004644: 29 00 80 71 sethi %hi(0x201c400), %l4 <== NOT EXECUTED 2004648: a4 14 a1 1c or %l2, 0x11c, %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); 200464c: a6 14 e0 80 or %l3, 0x80, %l3 <== NOT EXECUTED /* * Back up over the tab */ while (tty->column > col) { rtems_termios_puts ("\b", 1, tty); 2004650: a8 15 20 78 or %l4, 0x78, %l4 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) echo ('\n', tty); return; } } while (tty->ccount) { 2004654: c6 04 20 20 ld [ %l0 + 0x20 ], %g3 <== NOT EXECUTED 2004658: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED 200465c: 32 bf ff 94 bne,a 20044ac <== NOT EXECUTED 2004660: c4 04 20 1c ld [ %l0 + 0x1c ], %g2 <== NOT EXECUTED 2004664: 81 c7 e0 08 ret <== NOT EXECUTED 2004668: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02025e8c : #include "fat_fat_operations.h" int fat_buf_access(fat_fs_info_t *fs_info, uint32_t blk, int op_type, rtems_bdbuf_buffer **buf) { 2025e8c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED rtems_status_code sc = RTEMS_SUCCESSFUL; uint8_t i; bool sec_of_fat; if (fs_info->c.state == FAT_CACHE_EMPTY) 2025e90: c2 0e 20 85 ldub [ %i0 + 0x85 ], %g1 <== NOT EXECUTED 2025e94: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2025e98: 32 80 00 13 bne,a 2025ee4 <== NOT EXECUTED 2025e9c: c2 06 20 80 ld [ %i0 + 0x80 ], %g1 <== NOT EXECUTED { if (op_type == FAT_OP_TYPE_READ) 2025ea0: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED 2025ea4: d0 1e 20 58 ldd [ %i0 + 0x58 ], %o0 <== NOT EXECUTED 2025ea8: 12 80 00 06 bne 2025ec0 <== NOT EXECUTED 2025eac: 96 06 20 88 add %i0, 0x88, %o3 <== NOT EXECUTED sc = rtems_bdbuf_read(fs_info->vol.dev, blk, &fs_info->c.buf); 2025eb0: 7f ff 7f 7f call 2005cac <== NOT EXECUTED 2025eb4: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED else sc = rtems_bdbuf_get(fs_info->vol.dev, blk, &fs_info->c.buf); if (sc != RTEMS_SUCCESSFUL) 2025eb8: 10 80 00 05 b 2025ecc <== NOT EXECUTED 2025ebc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED if (fs_info->c.state == FAT_CACHE_EMPTY) { if (op_type == FAT_OP_TYPE_READ) sc = rtems_bdbuf_read(fs_info->vol.dev, blk, &fs_info->c.buf); else sc = rtems_bdbuf_get(fs_info->vol.dev, blk, &fs_info->c.buf); 2025ec0: 7f ff 7f 48 call 2005be0 <== NOT EXECUTED 2025ec4: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 2025ec8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025ecc: 12 80 00 63 bne 2026058 <== NOT EXECUTED 2025ed0: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EIO); fs_info->c.blk_num = blk; 2025ed4: f2 26 20 80 st %i1, [ %i0 + 0x80 ] <== NOT EXECUTED fs_info->c.modified = 0; 2025ed8: c0 2e 20 84 clrb [ %i0 + 0x84 ] <== NOT EXECUTED fs_info->c.state = FAT_CACHE_ACTUAL; 2025edc: c2 2e 20 85 stb %g1, [ %i0 + 0x85 ] <== NOT EXECUTED } sec_of_fat = ((fs_info->c.blk_num >= fs_info->vol.fat_loc) && 2025ee0: c2 06 20 80 ld [ %i0 + 0x80 ], %g1 <== NOT EXECUTED 2025ee4: c4 16 20 14 lduh [ %i0 + 0x14 ], %g2 <== NOT EXECUTED 2025ee8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2025eec: 0a 80 00 05 bcs 2025f00 <== NOT EXECUTED 2025ef0: a0 10 20 00 clr %l0 <== NOT EXECUTED 2025ef4: c4 06 20 1c ld [ %i0 + 0x1c ], %g2 <== NOT EXECUTED 2025ef8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2025efc: a0 40 20 00 addx %g0, 0, %l0 <== NOT EXECUTED (fs_info->c.blk_num < fs_info->vol.rdir_loc)); if (fs_info->c.blk_num != blk) 2025f00: 80 a0 40 19 cmp %g1, %i1 <== NOT EXECUTED 2025f04: 22 80 00 5e be,a 202607c <== NOT EXECUTED 2025f08: c2 06 20 88 ld [ %i0 + 0x88 ], %g1 <== NOT EXECUTED { if (fs_info->c.modified) 2025f0c: c2 0e 20 84 ldub [ %i0 + 0x84 ], %g1 <== NOT EXECUTED 2025f10: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2025f14: 02 80 00 3f be 2026010 <== NOT EXECUTED 2025f18: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED { if (sec_of_fat && !fs_info->vol.mirror) 2025f1c: 02 80 00 0b be 2025f48 <== NOT EXECUTED 2025f20: 01 00 00 00 nop <== NOT EXECUTED 2025f24: c2 0e 20 48 ldub [ %i0 + 0x48 ], %g1 <== NOT EXECUTED 2025f28: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2025f2c: 12 80 00 07 bne 2025f48 <== NOT EXECUTED 2025f30: 01 00 00 00 nop <== NOT EXECUTED memcpy(fs_info->sec_buf, fs_info->c.buf->buffer, 2025f34: c2 06 20 88 ld [ %i0 + 0x88 ], %g1 <== NOT EXECUTED 2025f38: d0 06 20 8c ld [ %i0 + 0x8c ], %o0 <== NOT EXECUTED 2025f3c: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED 2025f40: 40 00 86 21 call 20477c4 <== NOT EXECUTED 2025f44: d4 16 00 00 lduh [ %i0 ], %o2 <== NOT EXECUTED fs_info->vol.bps); sc = rtems_bdbuf_release_modified(fs_info->c.buf); 2025f48: 7f ff 7a 9b call 20049b4 <== NOT EXECUTED 2025f4c: d0 06 20 88 ld [ %i0 + 0x88 ], %o0 <== NOT EXECUTED fs_info->c.state = FAT_CACHE_EMPTY; 2025f50: c0 2e 20 85 clrb [ %i0 + 0x85 ] <== NOT EXECUTED fs_info->c.modified = 0; if (sc != RTEMS_SUCCESSFUL) 2025f54: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025f58: 12 80 00 40 bne 2026058 <== NOT EXECUTED 2025f5c: c0 2e 20 84 clrb [ %i0 + 0x84 ] <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EIO); if (sec_of_fat && !fs_info->vol.mirror) 2025f60: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED 2025f64: 02 80 00 31 be 2026028 <== NOT EXECUTED 2025f68: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED 2025f6c: c2 0e 20 48 ldub [ %i0 + 0x48 ], %g1 <== NOT EXECUTED 2025f70: a0 10 20 01 mov 1, %l0 <== NOT EXECUTED 2025f74: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2025f78: 02 80 00 1f be 2025ff4 <== NOT EXECUTED 2025f7c: a2 07 bf fc add %fp, -4, %l1 <== NOT EXECUTED fs_info->c.state = FAT_CACHE_EMPTY; if (sc != RTEMS_SUCCESSFUL) rtems_set_errno_and_return_minus_one(EIO); } if (op_type == FAT_OP_TYPE_READ) 2025f80: 10 80 00 2a b 2026028 <== NOT EXECUTED 2025f84: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED { rtems_bdbuf_buffer *b; for (i = 1; i < fs_info->vol.fats; i++) { sc = rtems_bdbuf_get(fs_info->vol.dev, 2025f88: d2 06 20 18 ld [ %i0 + 0x18 ], %o1 <== NOT EXECUTED 2025f8c: 7f ff 72 9b call 20029f8 <.umul> <== NOT EXECUTED 2025f90: e4 1e 20 58 ldd [ %i0 + 0x58 ], %l2 <== NOT EXECUTED 2025f94: d4 06 20 80 ld [ %i0 + 0x80 ], %o2 <== NOT EXECUTED 2025f98: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED 2025f9c: 94 02 00 0a add %o0, %o2, %o2 <== NOT EXECUTED 2025fa0: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED 2025fa4: 7f ff 7f 0f call 2005be0 <== NOT EXECUTED 2025fa8: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED fs_info->c.blk_num + fs_info->vol.fat_length * i, &b); if ( sc != RTEMS_SUCCESSFUL) 2025fac: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025fb0: 12 80 00 0d bne 2025fe4 <== NOT EXECUTED 2025fb4: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); memcpy(b->buffer, fs_info->sec_buf, fs_info->vol.bps); 2025fb8: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 2025fbc: d2 06 20 8c ld [ %i0 + 0x8c ], %o1 <== NOT EXECUTED 2025fc0: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED 2025fc4: d4 16 00 00 lduh [ %i0 ], %o2 <== NOT EXECUTED 2025fc8: 40 00 85 ff call 20477c4 <== NOT EXECUTED 2025fcc: a0 04 20 01 inc %l0 <== NOT EXECUTED sc = rtems_bdbuf_release_modified(b); 2025fd0: 7f ff 7a 79 call 20049b4 <== NOT EXECUTED 2025fd4: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED if ( sc != RTEMS_SUCCESSFUL) 2025fd8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025fdc: 22 80 00 07 be,a 2025ff8 <== NOT EXECUTED 2025fe0: c4 0e 20 09 ldub [ %i0 + 9 ], %g2 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 2025fe4: 40 00 78 ac call 2044294 <__errno> <== NOT EXECUTED 2025fe8: 01 00 00 00 nop <== NOT EXECUTED 2025fec: 10 80 00 1e b 2026064 <== NOT EXECUTED 2025ff0: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED if (sec_of_fat && !fs_info->vol.mirror) { rtems_bdbuf_buffer *b; for (i = 1; i < fs_info->vol.fats; i++) 2025ff4: c4 0e 20 09 ldub [ %i0 + 9 ], %g2 <== NOT EXECUTED 2025ff8: 82 0c 20 ff and %l0, 0xff, %g1 <== NOT EXECUTED 2025ffc: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2026000: 0a bf ff e2 bcs 2025f88 <== NOT EXECUTED 2026004: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED fs_info->c.state = FAT_CACHE_EMPTY; if (sc != RTEMS_SUCCESSFUL) rtems_set_errno_and_return_minus_one(EIO); } if (op_type == FAT_OP_TYPE_READ) 2026008: 10 80 00 08 b 2026028 <== NOT EXECUTED 202600c: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED } } } else { sc = rtems_bdbuf_release(fs_info->c.buf); 2026010: 7f ff 7a 8f call 2004a4c <== NOT EXECUTED 2026014: d0 06 20 88 ld [ %i0 + 0x88 ], %o0 <== NOT EXECUTED fs_info->c.state = FAT_CACHE_EMPTY; if (sc != RTEMS_SUCCESSFUL) 2026018: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202601c: 12 80 00 0f bne 2026058 <== NOT EXECUTED 2026020: c0 2e 20 85 clrb [ %i0 + 0x85 ] <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EIO); } if (op_type == FAT_OP_TYPE_READ) 2026024: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED 2026028: d0 1e 20 58 ldd [ %i0 + 0x58 ], %o0 <== NOT EXECUTED 202602c: 12 80 00 06 bne 2026044 <== NOT EXECUTED 2026030: 96 06 20 88 add %i0, 0x88, %o3 <== NOT EXECUTED sc = rtems_bdbuf_read(fs_info->vol.dev, blk, &fs_info->c.buf); 2026034: 7f ff 7f 1e call 2005cac <== NOT EXECUTED 2026038: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED else sc = rtems_bdbuf_get(fs_info->vol.dev, blk, &fs_info->c.buf); if (sc != RTEMS_SUCCESSFUL) 202603c: 10 80 00 05 b 2026050 <== NOT EXECUTED 2026040: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED } if (op_type == FAT_OP_TYPE_READ) sc = rtems_bdbuf_read(fs_info->vol.dev, blk, &fs_info->c.buf); else sc = rtems_bdbuf_get(fs_info->vol.dev, blk, &fs_info->c.buf); 2026044: 7f ff 7e e7 call 2005be0 <== NOT EXECUTED 2026048: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 202604c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2026050: 02 80 00 08 be 2026070 <== NOT EXECUTED 2026054: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EIO); 2026058: 40 00 78 8f call 2044294 <__errno> <== NOT EXECUTED 202605c: 01 00 00 00 nop <== NOT EXECUTED 2026060: 82 10 20 05 mov 5, %g1 ! 5 <== NOT EXECUTED 2026064: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2026068: 81 c7 e0 08 ret <== NOT EXECUTED 202606c: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED fs_info->c.blk_num = blk; 2026070: f2 26 20 80 st %i1, [ %i0 + 0x80 ] <== NOT EXECUTED fs_info->c.state = FAT_CACHE_ACTUAL; 2026074: c2 2e 20 85 stb %g1, [ %i0 + 0x85 ] <== NOT EXECUTED } *buf = fs_info->c.buf; 2026078: c2 06 20 88 ld [ %i0 + 0x88 ], %g1 <== NOT EXECUTED 202607c: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED return RC_OK; } 2026080: 81 c7 e0 08 ret <== NOT EXECUTED 2026084: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED =============================================================================== 02025d08 : return RC_OK; } int fat_buf_release(fat_fs_info_t *fs_info) { 2025d08: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED rtems_status_code sc = RTEMS_SUCCESSFUL; uint8_t i; bool sec_of_fat; if (fs_info->c.state == FAT_CACHE_EMPTY) 2025d0c: c2 0e 20 85 ldub [ %i0 + 0x85 ], %g1 <== NOT EXECUTED return RC_OK; } int fat_buf_release(fat_fs_info_t *fs_info) { 2025d10: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED rtems_status_code sc = RTEMS_SUCCESSFUL; uint8_t i; bool sec_of_fat; if (fs_info->c.state == FAT_CACHE_EMPTY) 2025d14: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2025d18: 02 80 00 56 be 2025e70 <== NOT EXECUTED 2025d1c: b0 10 20 00 clr %i0 <== NOT EXECUTED return RC_OK; sec_of_fat = ((fs_info->c.blk_num >= fs_info->vol.fat_loc) && 2025d20: c2 04 20 80 ld [ %l0 + 0x80 ], %g1 <== NOT EXECUTED 2025d24: c4 14 20 14 lduh [ %l0 + 0x14 ], %g2 <== NOT EXECUTED 2025d28: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2025d2c: 0a 80 00 05 bcs 2025d40 <== NOT EXECUTED 2025d30: a2 10 20 00 clr %l1 <== NOT EXECUTED 2025d34: c4 04 20 1c ld [ %l0 + 0x1c ], %g2 <== NOT EXECUTED 2025d38: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2025d3c: a2 40 20 00 addx %g0, 0, %l1 <== NOT EXECUTED (fs_info->c.blk_num < fs_info->vol.rdir_loc)); if (fs_info->c.modified) 2025d40: c2 0c 20 84 ldub [ %l0 + 0x84 ], %g1 <== NOT EXECUTED 2025d44: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2025d48: 02 80 00 3d be 2025e3c <== NOT EXECUTED 2025d4c: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED { if (sec_of_fat && !fs_info->vol.mirror) 2025d50: 02 80 00 0b be 2025d7c <== NOT EXECUTED 2025d54: 01 00 00 00 nop <== NOT EXECUTED 2025d58: c2 0c 20 48 ldub [ %l0 + 0x48 ], %g1 <== NOT EXECUTED 2025d5c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2025d60: 12 80 00 07 bne 2025d7c <== NOT EXECUTED 2025d64: 01 00 00 00 nop <== NOT EXECUTED memcpy(fs_info->sec_buf, fs_info->c.buf->buffer, fs_info->vol.bps); 2025d68: c2 04 20 88 ld [ %l0 + 0x88 ], %g1 <== NOT EXECUTED 2025d6c: d0 04 20 8c ld [ %l0 + 0x8c ], %o0 <== NOT EXECUTED 2025d70: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED 2025d74: 40 00 86 94 call 20477c4 <== NOT EXECUTED 2025d78: d4 14 00 00 lduh [ %l0 ], %o2 <== NOT EXECUTED sc = rtems_bdbuf_release_modified(fs_info->c.buf); 2025d7c: 7f ff 7b 0e call 20049b4 <== NOT EXECUTED 2025d80: d0 04 20 88 ld [ %l0 + 0x88 ], %o0 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 2025d84: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025d88: 12 80 00 32 bne 2025e50 <== NOT EXECUTED 2025d8c: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EIO); fs_info->c.modified = 0; if (sec_of_fat && !fs_info->vol.mirror) 2025d90: 02 80 00 36 be 2025e68 <== NOT EXECUTED 2025d94: c0 2c 20 84 clrb [ %l0 + 0x84 ] <== NOT EXECUTED 2025d98: c2 0c 20 48 ldub [ %l0 + 0x48 ], %g1 <== NOT EXECUTED 2025d9c: a2 10 20 01 mov 1, %l1 <== NOT EXECUTED 2025da0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2025da4: 02 80 00 1f be 2025e20 <== NOT EXECUTED 2025da8: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED { sc = rtems_bdbuf_release(fs_info->c.buf); if (sc != RTEMS_SUCCESSFUL) rtems_set_errno_and_return_minus_one(EIO); } fs_info->c.state = FAT_CACHE_EMPTY; 2025dac: 10 80 00 30 b 2025e6c <== NOT EXECUTED 2025db0: c0 2c 20 85 clrb [ %l0 + 0x85 ] <== NOT EXECUTED { rtems_bdbuf_buffer *b; for (i = 1; i < fs_info->vol.fats; i++) { sc = rtems_bdbuf_get(fs_info->vol.dev, 2025db4: d2 04 20 18 ld [ %l0 + 0x18 ], %o1 <== NOT EXECUTED 2025db8: 7f ff 73 10 call 20029f8 <.umul> <== NOT EXECUTED 2025dbc: e8 1c 20 58 ldd [ %l0 + 0x58 ], %l4 <== NOT EXECUTED 2025dc0: d4 04 20 80 ld [ %l0 + 0x80 ], %o2 <== NOT EXECUTED 2025dc4: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED 2025dc8: 94 02 00 0a add %o0, %o2, %o2 <== NOT EXECUTED 2025dcc: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED 2025dd0: 7f ff 7f 84 call 2005be0 <== NOT EXECUTED 2025dd4: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED fs_info->c.blk_num + fs_info->vol.fat_length * i, &b); if ( sc != RTEMS_SUCCESSFUL) 2025dd8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025ddc: 12 80 00 0d bne 2025e10 <== NOT EXECUTED 2025de0: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); memcpy(b->buffer, fs_info->sec_buf, fs_info->vol.bps); 2025de4: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 2025de8: d2 04 20 8c ld [ %l0 + 0x8c ], %o1 <== NOT EXECUTED 2025dec: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED 2025df0: d4 14 00 00 lduh [ %l0 ], %o2 <== NOT EXECUTED 2025df4: 40 00 86 74 call 20477c4 <== NOT EXECUTED 2025df8: a2 04 60 01 inc %l1 <== NOT EXECUTED sc = rtems_bdbuf_release_modified(b); 2025dfc: 7f ff 7a ee call 20049b4 <== NOT EXECUTED 2025e00: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED if ( sc != RTEMS_SUCCESSFUL) 2025e04: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025e08: 22 80 00 07 be,a 2025e24 <== NOT EXECUTED 2025e0c: c4 0c 20 09 ldub [ %l0 + 9 ], %g2 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 2025e10: 40 00 79 21 call 2044294 <__errno> <== NOT EXECUTED 2025e14: 01 00 00 00 nop <== NOT EXECUTED 2025e18: 10 80 00 11 b 2025e5c <== NOT EXECUTED 2025e1c: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED if (sec_of_fat && !fs_info->vol.mirror) { rtems_bdbuf_buffer *b; for (i = 1; i < fs_info->vol.fats; i++) 2025e20: c4 0c 20 09 ldub [ %l0 + 9 ], %g2 <== NOT EXECUTED 2025e24: 82 0c 60 ff and %l1, 0xff, %g1 <== NOT EXECUTED 2025e28: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2025e2c: 0a bf ff e2 bcs 2025db4 <== NOT EXECUTED 2025e30: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED { sc = rtems_bdbuf_release(fs_info->c.buf); if (sc != RTEMS_SUCCESSFUL) rtems_set_errno_and_return_minus_one(EIO); } fs_info->c.state = FAT_CACHE_EMPTY; 2025e34: 10 80 00 0e b 2025e6c <== NOT EXECUTED 2025e38: c0 2c 20 85 clrb [ %l0 + 0x85 ] <== NOT EXECUTED } } } else { sc = rtems_bdbuf_release(fs_info->c.buf); 2025e3c: 7f ff 7b 04 call 2004a4c <== NOT EXECUTED 2025e40: d0 04 20 88 ld [ %l0 + 0x88 ], %o0 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 2025e44: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025e48: 22 80 00 09 be,a 2025e6c <== NOT EXECUTED 2025e4c: c0 2c 20 85 clrb [ %l0 + 0x85 ] <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EIO); 2025e50: 40 00 79 11 call 2044294 <__errno> <== NOT EXECUTED 2025e54: 01 00 00 00 nop <== NOT EXECUTED 2025e58: 82 10 20 05 mov 5, %g1 ! 5 <== NOT EXECUTED 2025e5c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2025e60: 81 c7 e0 08 ret <== NOT EXECUTED 2025e64: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED } fs_info->c.state = FAT_CACHE_EMPTY; 2025e68: c0 2c 20 85 clrb [ %l0 + 0x85 ] <== NOT EXECUTED 2025e6c: b0 10 20 00 clr %i0 <== NOT EXECUTED return RC_OK; } 2025e70: 81 c7 e0 08 ret <== NOT EXECUTED 2025e74: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02026ba0 : fat_cluster_read( rtems_filesystem_mount_table_entry_t *mt_entry, uint32_t cln, void *buff ) { 2026ba0: 98 10 00 0a mov %o2, %o4 <== NOT EXECUTED uint32_t cln ) { register fat_fs_info_t *fs_info = mt_entry->fs_info; if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) ) 2026ba4: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED 2026ba8: 12 80 00 08 bne 2026bc8 <== NOT EXECUTED 2026bac: c4 02 20 34 ld [ %o0 + 0x34 ], %g2 <== NOT EXECUTED 2026bb0: c2 08 a0 0a ldub [ %g2 + 0xa ], %g1 <== NOT EXECUTED 2026bb4: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED 2026bb8: 22 80 00 05 be,a 2026bcc <== NOT EXECUTED 2026bbc: c6 08 a0 05 ldub [ %g2 + 5 ], %g3 <== NOT EXECUTED return fs_info->vol.rdir_loc; 2026bc0: 10 80 00 07 b 2026bdc <== NOT EXECUTED 2026bc4: d2 00 a0 1c ld [ %g2 + 0x1c ], %o1 <== NOT EXECUTED return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) + 2026bc8: c6 08 a0 05 ldub [ %g2 + 5 ], %g3 <== NOT EXECUTED 2026bcc: c2 00 a0 30 ld [ %g2 + 0x30 ], %g1 <== NOT EXECUTED 2026bd0: 92 02 7f fe add %o1, -2, %o1 <== NOT EXECUTED 2026bd4: 93 2a 40 03 sll %o1, %g3, %o1 <== NOT EXECUTED 2026bd8: 92 02 40 01 add %o1, %g1, %o1 <== NOT EXECUTED fat_fs_info_t *fs_info = mt_entry->fs_info; uint32_t fsec = 0; fsec = fat_cluster_num_to_sector_num(mt_entry, cln); return _fat_block_read(mt_entry, fsec, 0, 2026bdc: c2 08 a0 02 ldub [ %g2 + 2 ], %g1 <== NOT EXECUTED 2026be0: d6 08 a0 04 ldub [ %g2 + 4 ], %o3 <== NOT EXECUTED 2026be4: 94 10 20 00 clr %o2 <== NOT EXECUTED 2026be8: 97 2a c0 01 sll %o3, %g1, %o3 <== NOT EXECUTED 2026bec: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2026bf0: 7f ff fe 0d call 2026424 <_fat_block_read> <== NOT EXECUTED 2026bf4: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED =============================================================================== 02026308 : fat_cluster_write( rtems_filesystem_mount_table_entry_t *mt_entry, uint32_t cln, const void *buff ) { 2026308: 98 10 00 0a mov %o2, %o4 <== NOT EXECUTED uint32_t cln ) { register fat_fs_info_t *fs_info = mt_entry->fs_info; if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) ) 202630c: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED 2026310: 12 80 00 08 bne 2026330 <== NOT EXECUTED 2026314: c4 02 20 34 ld [ %o0 + 0x34 ], %g2 <== NOT EXECUTED 2026318: c2 08 a0 0a ldub [ %g2 + 0xa ], %g1 <== NOT EXECUTED 202631c: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED 2026320: 22 80 00 05 be,a 2026334 <== NOT EXECUTED 2026324: c6 08 a0 05 ldub [ %g2 + 5 ], %g3 <== NOT EXECUTED return fs_info->vol.rdir_loc; 2026328: 10 80 00 07 b 2026344 <== NOT EXECUTED 202632c: d2 00 a0 1c ld [ %g2 + 0x1c ], %o1 <== NOT EXECUTED return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) + 2026330: c6 08 a0 05 ldub [ %g2 + 5 ], %g3 <== NOT EXECUTED 2026334: c2 00 a0 30 ld [ %g2 + 0x30 ], %g1 <== NOT EXECUTED 2026338: 92 02 7f fe add %o1, -2, %o1 <== NOT EXECUTED 202633c: 93 2a 40 03 sll %o1, %g3, %o1 <== NOT EXECUTED 2026340: 92 02 40 01 add %o1, %g1, %o1 <== NOT EXECUTED fat_fs_info_t *fs_info = mt_entry->fs_info; uint32_t fsec = 0; fsec = fat_cluster_num_to_sector_num(mt_entry, cln); return _fat_block_write(mt_entry, fsec, 0, 2026344: c2 08 a0 02 ldub [ %g2 + 2 ], %g1 <== NOT EXECUTED 2026348: d6 08 a0 04 ldub [ %g2 + 4 ], %o3 <== NOT EXECUTED 202634c: 94 10 20 00 clr %o2 <== NOT EXECUTED 2026350: 97 2a c0 01 sll %o3, %g1, %o3 <== NOT EXECUTED 2026354: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2026358: 7f ff ff 4c call 2026088 <_fat_block_write> <== NOT EXECUTED 202635c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED =============================================================================== 02026138 : fat_fat32_update_fsinfo_sector( rtems_filesystem_mount_table_entry_t *mt_entry, uint32_t free_count, uint32_t next_free ) { 2026138: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED ssize_t ret1 = 0, ret2 = 0; register fat_fs_info_t *fs_info = mt_entry->fs_info; 202613c: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED uint32_t le_free_count = 0; uint32_t le_next_free = 0; le_free_count = CT_LE_L(free_count); 2026140: 89 2e 60 18 sll %i1, 0x18, %g4 <== NOT EXECUTED le_next_free = CT_LE_L(next_free); ret1 = _fat_block_write(mt_entry, 2026144: d2 14 20 3c lduh [ %l0 + 0x3c ], %o1 <== NOT EXECUTED ssize_t ret1 = 0, ret2 = 0; register fat_fs_info_t *fs_info = mt_entry->fs_info; uint32_t le_free_count = 0; uint32_t le_next_free = 0; le_free_count = CT_LE_L(free_count); 2026148: 87 36 60 10 srl %i1, 0x10, %g3 <== NOT EXECUTED 202614c: 83 36 60 18 srl %i1, 0x18, %g1 <== NOT EXECUTED 2026150: 86 08 e0 ff and %g3, 0xff, %g3 <== NOT EXECUTED 2026154: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED 2026158: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED 202615c: b3 36 60 08 srl %i1, 8, %i1 <== NOT EXECUTED 2026160: b2 0e 60 ff and %i1, 0xff, %i1 <== NOT EXECUTED 2026164: b3 2e 60 10 sll %i1, 0x10, %i1 <== NOT EXECUTED 2026168: 82 10 40 19 or %g1, %i1, %g1 <== NOT EXECUTED 202616c: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED le_next_free = CT_LE_L(next_free); 2026170: 85 36 a0 10 srl %i2, 0x10, %g2 <== NOT EXECUTED 2026174: 87 2e a0 18 sll %i2, 0x18, %g3 <== NOT EXECUTED ssize_t ret1 = 0, ret2 = 0; register fat_fs_info_t *fs_info = mt_entry->fs_info; uint32_t le_free_count = 0; uint32_t le_next_free = 0; le_free_count = CT_LE_L(free_count); 2026178: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED le_next_free = CT_LE_L(next_free); 202617c: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED 2026180: 83 36 a0 18 srl %i2, 0x18, %g1 <== NOT EXECUTED 2026184: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED 2026188: 82 10 c0 01 or %g3, %g1, %g1 <== NOT EXECUTED 202618c: b5 36 a0 08 srl %i2, 8, %i2 <== NOT EXECUTED 2026190: b4 0e a0 ff and %i2, 0xff, %i2 <== NOT EXECUTED 2026194: b5 2e a0 10 sll %i2, 0x10, %i2 <== NOT EXECUTED 2026198: 82 10 40 1a or %g1, %i2, %g1 <== NOT EXECUTED 202619c: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED ret1 = _fat_block_write(mt_entry, 20261a0: 94 10 21 e8 mov 0x1e8, %o2 <== NOT EXECUTED register fat_fs_info_t *fs_info = mt_entry->fs_info; uint32_t le_free_count = 0; uint32_t le_next_free = 0; le_free_count = CT_LE_L(free_count); le_next_free = CT_LE_L(next_free); 20261a4: c2 27 bf f8 st %g1, [ %fp + -8 ] <== NOT EXECUTED ret1 = _fat_block_write(mt_entry, 20261a8: 96 10 20 04 mov 4, %o3 <== NOT EXECUTED 20261ac: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED 20261b0: 7f ff ff b6 call 2026088 <_fat_block_write> <== NOT EXECUTED 20261b4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED fs_info->vol.info_sec, FAT_FSINFO_FREE_CLUSTER_COUNT_OFFSET, 4, (char *)(&le_free_count)); ret2 = _fat_block_write(mt_entry, 20261b8: d2 14 20 3c lduh [ %l0 + 0x3c ], %o1 <== NOT EXECUTED uint32_t le_next_free = 0; le_free_count = CT_LE_L(free_count); le_next_free = CT_LE_L(next_free); ret1 = _fat_block_write(mt_entry, 20261bc: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED fs_info->vol.info_sec, FAT_FSINFO_FREE_CLUSTER_COUNT_OFFSET, 4, (char *)(&le_free_count)); ret2 = _fat_block_write(mt_entry, 20261c0: 94 10 21 ec mov 0x1ec, %o2 <== NOT EXECUTED 20261c4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 20261c8: 96 10 20 04 mov 4, %o3 <== NOT EXECUTED 20261cc: 7f ff ff af call 2026088 <_fat_block_write> <== NOT EXECUTED 20261d0: 98 07 bf f8 add %fp, -8, %o4 <== NOT EXECUTED fs_info->vol.info_sec, FAT_FSINFO_NEXT_FREE_CLUSTER_OFFSET, 4, (char *)(&le_next_free)); if ( (ret1 < 0) || (ret2 < 0) ) 20261d4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20261d8: 06 80 00 04 bl 20261e8 <== NOT EXECUTED 20261dc: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 20261e0: 16 80 00 03 bge 20261ec <== NOT EXECUTED 20261e4: b0 10 20 00 clr %i0 <== NOT EXECUTED 20261e8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return -1; return RC_OK; } 20261ec: 81 c7 e0 08 ret <== NOT EXECUTED 20261f0: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0202588c : int fat_file_close( rtems_filesystem_mount_table_entry_t *mt_entry, fat_file_fd_t *fat_fd ) { 202588c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED /* * if links_num field of fat-file descriptor is greater than 1 * decrement the count of links and return */ if (fat_fd->links_num > 1) 2025890: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED 2025894: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 2025898: 08 80 00 06 bleu 20258b0 <== NOT EXECUTED 202589c: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 <== NOT EXECUTED { fat_fd->links_num--; 20258a0: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 20258a4: 90 10 20 00 clr %o0 <== NOT EXECUTED return rc; 20258a8: 10 80 00 26 b 2025940 <== NOT EXECUTED 20258ac: c2 26 60 08 st %g1, [ %i1 + 8 ] <== NOT EXECUTED } key = fat_construct_key(mt_entry, &fat_fd->dir_pos.sname); if (fat_fd->flags & FAT_FILE_REMOVED) 20258b0: c2 0e 60 30 ldub [ %i1 + 0x30 ], %g1 <== NOT EXECUTED 20258b4: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 20258b8: 22 80 00 15 be,a 202590c <== NOT EXECUTED 20258bc: d2 06 60 0c ld [ %i1 + 0xc ], %o1 <== NOT EXECUTED { rc = fat_file_truncate(mt_entry, fat_fd, 0); 20258c0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 20258c4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 20258c8: 7f ff fe 18 call 2025128 <== NOT EXECUTED 20258cc: 94 10 20 00 clr %o2 <== NOT EXECUTED if ( rc != RC_OK ) 20258d0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20258d4: 12 80 00 1b bne 2025940 <== NOT EXECUTED 20258d8: 01 00 00 00 nop <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 20258dc: 7f ff 9f b7 call 200d7b8 <_Chain_Extract> <== NOT EXECUTED 20258e0: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED return rc; _hash_delete(fs_info->rhash, key, fat_fd->ino, fat_fd); if ( fat_ino_is_unique(mt_entry, fat_fd->ino) ) 20258e4: d2 06 60 0c ld [ %i1 + 0xc ], %o1 <== NOT EXECUTED 20258e8: 40 00 00 cb call 2025c14 <== NOT EXECUTED 20258ec: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 20258f0: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED 20258f4: 02 80 00 0f be 2025930 <== NOT EXECUTED 20258f8: 01 00 00 00 nop <== NOT EXECUTED fat_free_unique_ino(mt_entry, fat_fd->ino); 20258fc: d2 06 60 0c ld [ %i1 + 0xc ], %o1 <== NOT EXECUTED 2025900: 40 00 00 b7 call 2025bdc <== NOT EXECUTED 2025904: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2025908: 30 80 00 0a b,a 2025930 <== NOT EXECUTED free(fat_fd); } else { if (fat_ino_is_unique(mt_entry, fat_fd->ino)) 202590c: 40 00 00 c2 call 2025c14 <== NOT EXECUTED 2025910: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2025914: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED 2025918: 02 80 00 04 be 2025928 <== NOT EXECUTED 202591c: 01 00 00 00 nop <== NOT EXECUTED { fat_fd->links_num = 0; 2025920: 10 80 00 06 b 2025938 <== NOT EXECUTED 2025924: c0 26 60 08 clr [ %i1 + 8 ] <== NOT EXECUTED 2025928: 7f ff 9f a4 call 200d7b8 <_Chain_Extract> <== NOT EXECUTED 202592c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED } else { _hash_delete(fs_info->vhash, key, fat_fd->ino, fat_fd); free(fat_fd); 2025930: 7f ff 8a 4c call 2008260 <== NOT EXECUTED 2025934: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED } } /* * flush any modified "cached" buffer back to disk */ rc = fat_buf_release(fs_info); 2025938: 40 00 00 f4 call 2025d08 <== NOT EXECUTED 202593c: 91 e8 00 11 restore %g0, %l1, %o0 <== NOT EXECUTED return rc; } 2025940: 81 c7 e0 08 ret <== NOT EXECUTED 2025944: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED =============================================================================== 02024ee8 : int fat_file_datasync( rtems_filesystem_mount_table_entry_t *mt_entry, fat_file_fd_t *fat_fd ) { 2024ee8: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED uint32_t cur_cln = fat_fd->cln; rtems_bdbuf_buffer *block = NULL; uint32_t sec = 0; uint32_t i = 0; if (fat_fd->fat_file_size == 0) 2024eec: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED fat_file_fd_t *fat_fd ) { int rc = RC_OK; rtems_status_code sc = RTEMS_SUCCESSFUL; fat_fs_info_t *fs_info = mt_entry->fs_info; 2024ef0: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 <== NOT EXECUTED uint32_t cur_cln = fat_fd->cln; rtems_bdbuf_buffer *block = NULL; uint32_t sec = 0; uint32_t i = 0; if (fat_fd->fat_file_size == 0) 2024ef4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2024ef8: a0 10 20 00 clr %l0 <== NOT EXECUTED 2024efc: 02 80 00 40 be 2024ffc <== NOT EXECUTED 2024f00: c2 06 60 1c ld [ %i1 + 0x1c ], %g1 <== NOT EXECUTED ) { int rc = RC_OK; rtems_status_code sc = RTEMS_SUCCESSFUL; fat_fs_info_t *fs_info = mt_entry->fs_info; uint32_t cur_cln = fat_fd->cln; 2024f04: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED rtems_bdbuf_buffer *block = NULL; 2024f08: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED /* * we can use only one bdbuf :( and we also know that cache is useless * for sync operation, so don't use it */ rc = fat_buf_release(fs_info); 2024f0c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2024f10: 40 00 03 7e call 2025d08 <== NOT EXECUTED 2024f14: aa 07 bf f8 add %fp, -8, %l5 <== NOT EXECUTED if (rc != RC_OK) 2024f18: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED 2024f1c: 02 80 00 31 be 2024fe0 <== NOT EXECUTED 2024f20: a8 07 bf fc add %fp, -4, %l4 <== NOT EXECUTED rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln); if ( rc != RC_OK ) return rc; } return rc; } 2024f24: 81 c7 e0 08 ret <== NOT EXECUTED 2024f28: 91 e8 00 10 restore %g0, %l0, %o0 <== NOT EXECUTED uint32_t cln ) { register fat_fs_info_t *fs_info = mt_entry->fs_info; if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) ) 2024f2c: 12 80 00 08 bne 2024f4c <== NOT EXECUTED 2024f30: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 <== NOT EXECUTED 2024f34: c6 08 60 0a ldub [ %g1 + 0xa ], %g3 <== NOT EXECUTED 2024f38: 80 88 e0 03 btst 3, %g3 <== NOT EXECUTED 2024f3c: 22 80 00 05 be,a 2024f50 <== NOT EXECUTED 2024f40: c6 00 60 30 ld [ %g1 + 0x30 ], %g3 <== NOT EXECUTED return fs_info->vol.rdir_loc; 2024f44: 10 80 00 07 b 2024f60 <== NOT EXECUTED 2024f48: e6 00 60 1c ld [ %g1 + 0x1c ], %l3 <== NOT EXECUTED return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) + 2024f4c: c6 00 60 30 ld [ %g1 + 0x30 ], %g3 <== NOT EXECUTED 2024f50: c2 08 60 05 ldub [ %g1 + 5 ], %g1 <== NOT EXECUTED 2024f54: a6 00 bf fe add %g2, -2, %l3 <== NOT EXECUTED 2024f58: a7 2c c0 01 sll %l3, %g1, %l3 <== NOT EXECUTED 2024f5c: a6 04 c0 03 add %l3, %g3, %l3 <== NOT EXECUTED /* for each cluster of the file ... */ while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val) { sec = fat_cluster_num_to_sector_num(mt_entry, cur_cln); /* for each sector in cluster ... */ for ( i = 0; i < fs_info->vol.spc; i++ ) 2024f60: 10 80 00 13 b 2024fac <== NOT EXECUTED 2024f64: a4 10 20 00 clr %l2 <== NOT EXECUTED { /* ... sync it */ sc = rtems_bdbuf_read(fs_info->vol.dev, (sec + i), &block); 2024f68: d0 1c 60 58 ldd [ %l1 + 0x58 ], %o0 <== NOT EXECUTED 2024f6c: 96 10 00 15 mov %l5, %o3 <== NOT EXECUTED 2024f70: 7f ff 83 4f call 2005cac <== NOT EXECUTED 2024f74: a4 04 a0 01 inc %l2 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 2024f78: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2024f7c: 12 80 00 07 bne 2024f98 <== NOT EXECUTED 2024f80: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EIO ); sc = rtems_bdbuf_sync(block); 2024f84: 7f ff 81 27 call 2005420 <== NOT EXECUTED 2024f88: d0 07 bf f8 ld [ %fp + -8 ], %o0 <== NOT EXECUTED if ( sc != RTEMS_SUCCESSFUL ) 2024f8c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2024f90: 22 80 00 08 be,a 2024fb0 <== NOT EXECUTED 2024f94: c2 0c 60 04 ldub [ %l1 + 4 ], %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EIO ); 2024f98: 40 00 7c bf call 2044294 <__errno> <== NOT EXECUTED 2024f9c: a0 10 3f ff mov -1, %l0 <== NOT EXECUTED 2024fa0: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED 2024fa4: 10 80 00 16 b 2024ffc <== NOT EXECUTED 2024fa8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED /* for each cluster of the file ... */ while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val) { sec = fat_cluster_num_to_sector_num(mt_entry, cur_cln); /* for each sector in cluster ... */ for ( i = 0; i < fs_info->vol.spc; i++ ) 2024fac: c2 0c 60 04 ldub [ %l1 + 4 ], %g1 <== NOT EXECUTED 2024fb0: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED 2024fb4: 0a bf ff ed bcs 2024f68 <== NOT EXECUTED 2024fb8: 94 04 80 13 add %l2, %l3, %o2 <== NOT EXECUTED sc = rtems_bdbuf_sync(block); if ( sc != RTEMS_SUCCESSFUL ) rtems_set_errno_and_return_minus_one( EIO ); } rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln); 2024fbc: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED 2024fc0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2024fc4: 40 00 69 b6 call 203f69c <== NOT EXECUTED 2024fc8: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED if ( rc != RC_OK ) 2024fcc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2024fd0: 22 80 00 05 be,a 2024fe4 <== NOT EXECUTED 2024fd4: c4 07 bf fc ld [ %fp + -4 ], %g2 <== NOT EXECUTED 2024fd8: 10 80 00 09 b 2024ffc <== NOT EXECUTED 2024fdc: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED rc = fat_buf_release(fs_info); if (rc != RC_OK) return rc; /* for each cluster of the file ... */ while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val) 2024fe0: c4 07 bf fc ld [ %fp + -4 ], %g2 <== NOT EXECUTED 2024fe4: c6 04 60 0c ld [ %l1 + 0xc ], %g3 <== NOT EXECUTED 2024fe8: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED 2024fec: 86 08 80 03 and %g2, %g3, %g3 <== NOT EXECUTED 2024ff0: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 2024ff4: 0a bf ff ce bcs 2024f2c <== NOT EXECUTED 2024ff8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln); if ( rc != RC_OK ) return rc; } return rc; } 2024ffc: b0 10 00 10 mov %l0, %i0 <== NOT EXECUTED 2025000: 81 c7 e0 08 ret <== NOT EXECUTED 2025004: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02025234 : rtems_filesystem_mount_table_entry_t *mt_entry, fat_file_fd_t *fat_fd, uint32_t new_length, uint32_t *a_length ) { 2025234: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED uint32_t old_last_cl; uint32_t last_cl = 0; uint32_t bytes_remain = 0; uint32_t cls_added; *a_length = new_length; 2025238: f4 26 c0 00 st %i2, [ %i3 ] <== NOT EXECUTED if (new_length <= fat_fd->fat_file_size) 202523c: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED uint32_t *a_length ) { int rc = RC_OK; fat_fs_info_t *fs_info = mt_entry->fs_info; uint32_t chain = 0; 2025240: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED uint32_t bytes2add = 0; uint32_t cls2add = 0; uint32_t old_last_cl; uint32_t last_cl = 0; 2025244: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED rtems_filesystem_mount_table_entry_t *mt_entry, fat_file_fd_t *fat_fd, uint32_t new_length, uint32_t *a_length ) { 2025248: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED uint32_t bytes_remain = 0; uint32_t cls_added; *a_length = new_length; if (new_length <= fat_fd->fat_file_size) 202524c: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED 2025250: 08 80 00 73 bleu 202541c <== NOT EXECUTED 2025254: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 <== NOT EXECUTED return RC_OK; if ((FAT_FD_OF_ROOT_DIR(fat_fd)) && 2025258: c4 06 60 20 ld [ %i1 + 0x20 ], %g2 <== NOT EXECUTED 202525c: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED 2025260: 32 80 00 0b bne,a 202528c <== NOT EXECUTED 2025264: c6 14 60 06 lduh [ %l1 + 6 ], %g3 <== NOT EXECUTED 2025268: c4 06 60 24 ld [ %i1 + 0x24 ], %g2 <== NOT EXECUTED 202526c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2025270: 32 80 00 07 bne,a 202528c <== NOT EXECUTED 2025274: c6 14 60 06 lduh [ %l1 + 6 ], %g3 <== NOT EXECUTED (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16))) 2025278: c4 0c 60 0a ldub [ %l1 + 0xa ], %g2 <== NOT EXECUTED 202527c: 80 88 a0 03 btst 3, %g2 <== NOT EXECUTED 2025280: 12 80 00 1f bne 20252fc <== NOT EXECUTED 2025284: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOSPC ); bytes_remain = (fs_info->vol.bpc - (fat_fd->fat_file_size & (fs_info->vol.bpc - 1))) & 2025288: c6 14 60 06 lduh [ %l1 + 6 ], %g3 <== NOT EXECUTED (fs_info->vol.bpc - 1); bytes2add = new_length - fat_fd->fat_file_size; 202528c: a8 26 80 01 sub %i2, %g1, %l4 <== NOT EXECUTED if ((FAT_FD_OF_ROOT_DIR(fat_fd)) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16))) rtems_set_errno_and_return_minus_one( ENOSPC ); bytes_remain = (fs_info->vol.bpc - (fat_fd->fat_file_size & (fs_info->vol.bpc - 1))) & 2025290: 84 00 ff ff add %g3, -1, %g2 <== NOT EXECUTED if ((FAT_FD_OF_ROOT_DIR(fat_fd)) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16))) rtems_set_errno_and_return_minus_one( ENOSPC ); bytes_remain = (fs_info->vol.bpc - 2025294: a4 08 80 01 and %g2, %g1, %l2 <== NOT EXECUTED 2025298: a4 20 c0 12 sub %g3, %l2, %l2 <== NOT EXECUTED 202529c: a4 0c 80 02 and %l2, %g2, %l2 <== NOT EXECUTED (fat_fd->fat_file_size & (fs_info->vol.bpc - 1))) & (fs_info->vol.bpc - 1); bytes2add = new_length - fat_fd->fat_file_size; if (bytes2add > bytes_remain) 20252a0: 80 a5 00 12 cmp %l4, %l2 <== NOT EXECUTED 20252a4: 08 80 00 1a bleu 202530c <== NOT EXECUTED 20252a8: b0 10 20 00 clr %i0 <== NOT EXECUTED /* * if in last cluster allocated for the file there is enough room to * handle extention (hence we don't need to add even one cluster to the * file ) - return */ if (bytes2add == 0) 20252ac: a8 a5 00 12 subcc %l4, %l2, %l4 <== NOT EXECUTED 20252b0: 02 80 00 17 be 202530c <== NOT EXECUTED 20252b4: a6 05 3f ff add %l4, -1, %l3 <== NOT EXECUTED return RC_OK; cls2add = ((bytes2add - 1) >> fs_info->vol.bpc_log2) + 1; 20252b8: c2 0c 60 08 ldub [ %l1 + 8 ], %g1 <== NOT EXECUTED rc = fat_scan_fat_for_free_clusters(mt_entry, &chain, cls2add, 20252bc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED * file ) - return */ if (bytes2add == 0) return RC_OK; cls2add = ((bytes2add - 1) >> fs_info->vol.bpc_log2) + 1; 20252c0: a7 34 c0 01 srl %l3, %g1, %l3 <== NOT EXECUTED rc = fat_scan_fat_for_free_clusters(mt_entry, &chain, cls2add, 20252c4: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED * file ) - return */ if (bytes2add == 0) return RC_OK; cls2add = ((bytes2add - 1) >> fs_info->vol.bpc_log2) + 1; 20252c8: a6 04 e0 01 inc %l3 <== NOT EXECUTED rc = fat_scan_fat_for_free_clusters(mt_entry, &chain, cls2add, 20252cc: 96 07 bf f0 add %fp, -16, %o3 <== NOT EXECUTED 20252d0: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED 20252d4: 40 00 69 a3 call 203f960 <== NOT EXECUTED 20252d8: 98 07 bf f4 add %fp, -12, %o4 <== NOT EXECUTED &cls_added, &last_cl); /* this means that low level I/O error occured */ if (rc != RC_OK) 20252dc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 20252e0: 12 80 00 0b bne 202530c <== NOT EXECUTED 20252e4: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED return rc; /* this means that no space left on device */ if ((cls_added == 0) && (bytes_remain == 0)) 20252e8: 12 80 00 0b bne 2025314 <== NOT EXECUTED 20252ec: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 20252f0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20252f4: 12 80 00 09 bne 2025318 <== NOT EXECUTED 20252f8: 80 a4 c0 01 cmp %l3, %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOSPC); 20252fc: 40 00 7b e6 call 2044294 <__errno> <== NOT EXECUTED 2025300: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2025304: 82 10 20 1c mov 0x1c, %g1 <== NOT EXECUTED 2025308: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202530c: 81 c7 e0 08 ret <== NOT EXECUTED 2025310: 81 e8 00 00 restore <== NOT EXECUTED /* check wether we satisfied request for 'cls2add' clusters */ if (cls2add != cls_added) 2025314: 80 a4 c0 01 cmp %l3, %g1 <== NOT EXECUTED 2025318: 02 80 00 0b be 2025344 <== NOT EXECUTED 202531c: 82 38 00 01 xnor %g0, %g1, %g1 <== NOT EXECUTED *a_length = new_length - 2025320: c6 0c 60 08 ldub [ %l1 + 8 ], %g3 <== NOT EXECUTED 2025324: c4 14 60 06 lduh [ %l1 + 6 ], %g2 <== NOT EXECUTED 2025328: a6 00 40 13 add %g1, %l3, %l3 <== NOT EXECUTED 202532c: 82 00 bf ff add %g2, -1, %g1 <== NOT EXECUTED 2025330: a7 2c c0 03 sll %l3, %g3, %l3 <== NOT EXECUTED 2025334: a8 0d 00 01 and %l4, %g1, %l4 <== NOT EXECUTED 2025338: a6 26 80 13 sub %i2, %l3, %l3 <== NOT EXECUTED 202533c: a8 24 c0 14 sub %l3, %l4, %l4 <== NOT EXECUTED 2025340: e8 26 c0 00 st %l4, [ %i3 ] <== NOT EXECUTED ((cls2add - cls_added - 1) << fs_info->vol.bpc_log2) - (bytes2add & (fs_info->vol.bpc - 1)); /* add new chain to the end of existed */ if ( fat_fd->fat_file_size == 0 ) 2025344: d6 06 60 18 ld [ %i1 + 0x18 ], %o3 <== NOT EXECUTED 2025348: 80 a2 e0 00 cmp %o3, 0 <== NOT EXECUTED 202534c: 32 80 00 07 bne,a 2025368 <== NOT EXECUTED 2025350: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED { fat_fd->map.disk_cln = fat_fd->cln = chain; 2025354: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED fat_fd->map.file_cln = 0; 2025358: c0 26 60 34 clr [ %i1 + 0x34 ] <== NOT EXECUTED (bytes2add & (fs_info->vol.bpc - 1)); /* add new chain to the end of existed */ if ( fat_fd->fat_file_size == 0 ) { fat_fd->map.disk_cln = fat_fd->cln = chain; 202535c: c2 26 60 38 st %g1, [ %i1 + 0x38 ] <== NOT EXECUTED 2025360: 10 80 00 18 b 20253c0 <== NOT EXECUTED 2025364: c2 26 60 1c st %g1, [ %i1 + 0x1c ] <== NOT EXECUTED fat_fd->map.file_cln = 0; } else { if (fat_fd->map.last_cln != FAT_UNDEFINED_VALUE) 2025368: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED 202536c: 02 80 00 04 be 202537c <== NOT EXECUTED 2025370: 96 02 ff ff add %o3, -1, %o3 <== NOT EXECUTED { old_last_cl = fat_fd->map.last_cln; 2025374: 10 80 00 0a b 202539c <== NOT EXECUTED 2025378: c2 27 bf f8 st %g1, [ %fp + -8 ] <== NOT EXECUTED } else { rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM, 202537c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2025380: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2025384: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED 2025388: 7f ff ff 35 call 202505c <== NOT EXECUTED 202538c: 98 07 bf f8 add %fp, -8, %o4 <== NOT EXECUTED (fat_fd->fat_file_size - 1), &old_last_cl); if ( rc != RC_OK ) 2025390: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 2025394: 12 80 00 1b bne 2025400 <== NOT EXECUTED 2025398: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED fat_free_fat_clusters_chain(mt_entry, chain); return rc; } } rc = fat_set_fat_cluster(mt_entry, old_last_cl, chain); 202539c: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED 20253a0: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED 20253a4: 40 00 68 11 call 203f3e8 <== NOT EXECUTED 20253a8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( rc != RC_OK ) 20253ac: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 20253b0: 12 80 00 14 bne 2025400 <== NOT EXECUTED 20253b4: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED { fat_free_fat_clusters_chain(mt_entry, chain); return rc; } fat_buf_release(fs_info); 20253b8: 40 00 02 54 call 2025d08 <== NOT EXECUTED 20253bc: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED } /* update number of the last cluster of the file if it changed */ if (cls_added != 0) 20253c0: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 20253c4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20253c8: 22 80 00 13 be,a 2025414 <== NOT EXECUTED 20253cc: f4 26 60 18 st %i2, [ %i1 + 0x18 ] <== NOT EXECUTED { fat_fd->map.last_cln = last_cl; 20253d0: c4 07 bf f4 ld [ %fp + -12 ], %g2 <== NOT EXECUTED if (fat_fd->fat_file_type == FAT_DIRECTORY) 20253d4: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 <== NOT EXECUTED 20253d8: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 20253dc: 12 80 00 0d bne 2025410 <== NOT EXECUTED 20253e0: c4 26 60 3c st %g2, [ %i1 + 0x3c ] <== NOT EXECUTED { rc = fat_init_clusters_chain(mt_entry, chain); 20253e4: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED 20253e8: 40 00 03 df call 2026364 <== NOT EXECUTED 20253ec: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( rc != RC_OK ) 20253f0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 20253f4: 22 80 00 08 be,a 2025414 <== NOT EXECUTED 20253f8: f4 26 60 18 st %i2, [ %i1 + 0x18 ] <== NOT EXECUTED { fat_free_fat_clusters_chain(mt_entry, chain); 20253fc: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED 2025400: 40 00 69 24 call 203f890 <== NOT EXECUTED 2025404: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return rc; 2025408: 81 c7 e0 08 ret <== NOT EXECUTED 202540c: 81 e8 00 00 restore <== NOT EXECUTED } } } fat_fd->fat_file_size = new_length; 2025410: f4 26 60 18 st %i2, [ %i1 + 0x18 ] <== NOT EXECUTED return RC_OK; 2025414: 81 c7 e0 08 ret <== NOT EXECUTED 2025418: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 202541c: b0 10 20 00 clr %i0 <== NOT EXECUTED } 2025420: 81 c7 e0 08 ret <== NOT EXECUTED 2025424: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0202505c : fat_file_ioctl( rtems_filesystem_mount_table_entry_t *mt_entry, fat_file_fd_t *fat_fd, int cmd, ...) { 202505c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED uint32_t cl_start = 0; uint32_t pos = 0; uint32_t *ret; va_list ap; va_start(ap, cmd); 2025060: 82 07 a0 50 add %fp, 0x50, %g1 <== NOT EXECUTED 2025064: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED 2025068: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED 202506c: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED 2025070: c2 27 bf f8 st %g1, [ %fp + -8 ] <== NOT EXECUTED int cmd, ...) { int rc = RC_OK; fat_fs_info_t *fs_info = mt_entry->fs_info; uint32_t cur_cln = 0; 2025074: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED uint32_t *ret; va_list ap; va_start(ap, cmd); switch (cmd) 2025078: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED fat_file_ioctl( rtems_filesystem_mount_table_entry_t *mt_entry, fat_file_fd_t *fat_fd, int cmd, ...) { 202507c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2025080: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED uint32_t *ret; va_list ap; va_start(ap, cmd); switch (cmd) 2025084: 12 80 00 22 bne 202510c <== NOT EXECUTED 2025088: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 <== NOT EXECUTED case F_CLU_NUM: pos = va_arg(ap, uint32_t ); ret = va_arg(ap, uint32_t *); /* sanity check */ if ( pos >= fat_fd->fat_file_size ) 202508c: c4 06 60 18 ld [ %i1 + 0x18 ], %g2 <== NOT EXECUTED switch (cmd) { case F_CLU_NUM: pos = va_arg(ap, uint32_t ); ret = va_arg(ap, uint32_t *); 2025090: 86 07 a0 58 add %fp, 0x58, %g3 <== NOT EXECUTED /* sanity check */ if ( pos >= fat_fd->fat_file_size ) 2025094: 80 a6 c0 02 cmp %i3, %g2 <== NOT EXECUTED 2025098: 0a 80 00 06 bcs 20250b0 <== NOT EXECUTED 202509c: c6 27 bf f8 st %g3, [ %fp + -8 ] <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EIO ); 20250a0: 40 00 7c 7d call 2044294 <__errno> <== NOT EXECUTED 20250a4: 01 00 00 00 nop <== NOT EXECUTED 20250a8: 10 80 00 1c b 2025118 <== NOT EXECUTED 20250ac: 82 10 20 05 mov 5, %g1 ! 5 <== NOT EXECUTED if ((FAT_FD_OF_ROOT_DIR(fat_fd)) && 20250b0: c4 06 60 20 ld [ %i1 + 0x20 ], %g2 <== NOT EXECUTED 20250b4: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED 20250b8: 32 80 00 0d bne,a 20250ec <== NOT EXECUTED 20250bc: d4 08 60 08 ldub [ %g1 + 8 ], %o2 <== NOT EXECUTED 20250c0: c4 06 60 24 ld [ %i1 + 0x24 ], %g2 <== NOT EXECUTED 20250c4: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 20250c8: 32 80 00 09 bne,a 20250ec <== NOT EXECUTED 20250cc: d4 08 60 08 ldub [ %g1 + 8 ], %o2 <== NOT EXECUTED (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16))) 20250d0: c4 08 60 0a ldub [ %g1 + 0xa ], %g2 <== NOT EXECUTED 20250d4: 80 88 a0 03 btst 3, %g2 <== NOT EXECUTED 20250d8: 22 80 00 05 be,a 20250ec <== NOT EXECUTED 20250dc: d4 08 60 08 ldub [ %g1 + 8 ], %o2 <== NOT EXECUTED { /* cluster 0 (zero) reserved for root dir */ *ret = 0; 20250e0: c0 27 00 00 clr [ %i4 ] <== NOT EXECUTED return RC_OK; 20250e4: 10 80 00 0f b 2025120 <== NOT EXECUTED 20250e8: 92 10 20 00 clr %o1 <== NOT EXECUTED } cl_start = pos >> fs_info->vol.bpc_log2; rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln); 20250ec: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED 20250f0: 7f ff ff 55 call 2024e44 <== NOT EXECUTED 20250f4: 95 36 c0 0a srl %i3, %o2, %o2 <== NOT EXECUTED if ( rc != RC_OK ) 20250f8: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED 20250fc: 12 80 00 09 bne 2025120 <== NOT EXECUTED 2025100: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED return rc; *ret = cur_cln; break; 2025104: 10 80 00 07 b 2025120 <== NOT EXECUTED 2025108: c2 27 00 00 st %g1, [ %i4 ] <== NOT EXECUTED default: errno = EINVAL; 202510c: 40 00 7c 62 call 2044294 <__errno> <== NOT EXECUTED 2025110: 01 00 00 00 nop <== NOT EXECUTED 2025114: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED 2025118: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202511c: 92 10 3f ff mov -1, %o1 <== NOT EXECUTED rc = -1; break; } return rc; } 2025120: 81 c7 e0 08 ret <== NOT EXECUTED 2025124: 91 e8 00 09 restore %g0, %o1, %o0 <== NOT EXECUTED =============================================================================== 02024e44 : rtems_filesystem_mount_table_entry_t *mt_entry, fat_file_fd_t *fat_fd, uint32_t file_cln, uint32_t *disk_cln ) { 2024e44: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED int rc = RC_OK; if (file_cln == fat_fd->map.file_cln) 2024e48: e2 06 60 34 ld [ %i1 + 0x34 ], %l1 <== NOT EXECUTED 2024e4c: 80 a6 80 11 cmp %i2, %l1 <== NOT EXECUTED 2024e50: 12 80 00 06 bne 2024e68 <== NOT EXECUTED 2024e54: 84 10 20 00 clr %g2 <== NOT EXECUTED *disk_cln = fat_fd->map.disk_cln; 2024e58: c2 06 60 38 ld [ %i1 + 0x38 ], %g1 <== NOT EXECUTED 2024e5c: 86 10 20 00 clr %g3 <== NOT EXECUTED 2024e60: 10 80 00 1f b 2024edc <== NOT EXECUTED 2024e64: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED { uint32_t cur_cln; uint32_t count; uint32_t i; if (file_cln > fat_fd->map.file_cln) 2024e68: 28 80 00 05 bleu,a 2024e7c <== NOT EXECUTED 2024e6c: c2 06 60 1c ld [ %i1 + 0x1c ], %g1 <== NOT EXECUTED { cur_cln = fat_fd->map.disk_cln; 2024e70: c2 06 60 38 ld [ %i1 + 0x38 ], %g1 <== NOT EXECUTED count = file_cln - fat_fd->map.file_cln; 2024e74: 10 80 00 03 b 2024e80 <== NOT EXECUTED 2024e78: a2 26 80 11 sub %i2, %l1, %l1 <== NOT EXECUTED } else { cur_cln = fat_fd->cln; 2024e7c: a2 10 00 1a mov %i2, %l1 <== NOT EXECUTED 2024e80: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED 2024e84: a0 10 20 00 clr %l0 <== NOT EXECUTED count = file_cln; } /* skip over the clusters */ for (i = 0; i < count; i++) 2024e88: 10 80 00 0a b 2024eb0 <== NOT EXECUTED 2024e8c: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED { rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln); 2024e90: 40 00 6a 03 call 203f69c <== NOT EXECUTED 2024e94: 01 00 00 00 nop <== NOT EXECUTED if ( rc != RC_OK ) 2024e98: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2024e9c: 02 80 00 06 be 2024eb4 <== NOT EXECUTED 2024ea0: 80 a4 00 11 cmp %l0, %l1 <== NOT EXECUTED return rc; 2024ea4: 86 10 00 08 mov %o0, %g3 <== NOT EXECUTED 2024ea8: 10 80 00 0d b 2024edc <== NOT EXECUTED 2024eac: 85 3a 20 1f sra %o0, 0x1f, %g2 <== NOT EXECUTED cur_cln = fat_fd->cln; count = file_cln; } /* skip over the clusters */ for (i = 0; i < count; i++) 2024eb0: 80 a4 00 11 cmp %l0, %l1 <== NOT EXECUTED { rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln); 2024eb4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2024eb8: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED cur_cln = fat_fd->cln; count = file_cln; } /* skip over the clusters */ for (i = 0; i < count; i++) 2024ebc: a0 04 20 01 inc %l0 <== NOT EXECUTED 2024ec0: 0a bf ff f4 bcs 2024e90 <== NOT EXECUTED 2024ec4: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED if ( rc != RC_OK ) return rc; } /* update cache */ fat_fd->map.file_cln = file_cln; 2024ec8: f4 26 60 34 st %i2, [ %i1 + 0x34 ] <== NOT EXECUTED fat_fd->map.disk_cln = cur_cln; 2024ecc: d2 26 60 38 st %o1, [ %i1 + 0x38 ] <== NOT EXECUTED *disk_cln = cur_cln; 2024ed0: d2 26 c0 00 st %o1, [ %i3 ] <== NOT EXECUTED 2024ed4: 84 10 20 00 clr %g2 <== NOT EXECUTED 2024ed8: 86 10 20 00 clr %g3 <== NOT EXECUTED } return RC_OK; } 2024edc: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED 2024ee0: 81 c7 e0 08 ret <== NOT EXECUTED 2024ee4: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED =============================================================================== 02025008 : void fat_file_mark_removed( rtems_filesystem_mount_table_entry_t *mt_entry, fat_file_fd_t *fat_fd ) { 2025008: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED static inline uint32_t fat_construct_key( rtems_filesystem_mount_table_entry_t *mt_entry, fat_pos_t *pos) { return ( ((fat_cluster_num_to_sector512_num(mt_entry, pos->cln) + 202500c: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED fat_fs_info_t *fs_info = mt_entry->fs_info; 2025010: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED uint32_t cln ) { fat_fs_info_t *fs_info = mt_entry->fs_info; if (cln == 1) 2025014: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED (pos->ofs >> FAT_SECTOR512_BITS)) << 4) + 2025018: e2 06 60 24 ld [ %i1 + 0x24 ], %l1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 202501c: 7f ff a1 e7 call 200d7b8 <_Chain_Extract> <== NOT EXECUTED 2025020: 90 10 00 19 mov %i1, %o0 <== 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 ); 2025024: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED 2025028: a3 34 60 05 srl %l1, 5, %l1 <== NOT EXECUTED 202502c: a2 0c 60 01 and %l1, 1, %l1 <== NOT EXECUTED 2025030: 83 2c 60 04 sll %l1, 4, %g1 <== NOT EXECUTED 2025034: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2025038: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED 202503c: a2 20 40 11 sub %g1, %l1, %l1 <== NOT EXECUTED 2025040: 7f ff a1 d2 call 200d788 <_Chain_Append> <== NOT EXECUTED 2025044: 90 02 00 11 add %o0, %l1, %o0 <== NOT EXECUTED _hash_delete(fs_info->vhash, key, fat_fd->ino, fat_fd); _hash_insert(fs_info->rhash, key, fat_fd->ino, fat_fd); fat_fd->flags |= FAT_FILE_REMOVED; 2025048: c2 0e 60 30 ldub [ %i1 + 0x30 ], %g1 <== NOT EXECUTED 202504c: 82 10 60 01 or %g1, 1, %g1 <== NOT EXECUTED 2025050: c2 2e 60 30 stb %g1, [ %i1 + 0x30 ] <== NOT EXECUTED } 2025054: 81 c7 e0 08 ret <== NOT EXECUTED 2025058: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02025948 : fat_file_open( rtems_filesystem_mount_table_entry_t *mt_entry, fat_dir_pos_t *dir_pos, fat_file_fd_t **fat_fd ) { 2025948: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED static inline uint32_t fat_construct_key( rtems_filesystem_mount_table_entry_t *mt_entry, fat_pos_t *pos) { return ( ((fat_cluster_num_to_sector512_num(mt_entry, pos->cln) + 202594c: c2 06 40 00 ld [ %i1 ], %g1 <== NOT EXECUTED int rc = RC_OK; fat_fs_info_t *fs_info = mt_entry->fs_info; 2025950: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED uint32_t cln ) { fat_fs_info_t *fs_info = mt_entry->fs_info; if (cln == 1) 2025954: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 2025958: 02 80 00 11 be 202599c <== NOT EXECUTED 202595c: 86 10 20 01 mov 1, %g3 <== NOT EXECUTED uint32_t cln ) { register fat_fs_info_t *fs_info = mt_entry->fs_info; if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) ) 2025960: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2025964: 32 80 00 08 bne,a 2025984 <== NOT EXECUTED 2025968: c6 0c 20 05 ldub [ %l0 + 5 ], %g3 <== NOT EXECUTED 202596c: c4 0c 20 0a ldub [ %l0 + 0xa ], %g2 <== NOT EXECUTED 2025970: 80 88 a0 03 btst 3, %g2 <== NOT EXECUTED 2025974: 22 80 00 04 be,a 2025984 <== NOT EXECUTED 2025978: c6 0c 20 05 ldub [ %l0 + 5 ], %g3 <== NOT EXECUTED return fs_info->vol.rdir_loc; 202597c: 10 80 00 06 b 2025994 <== NOT EXECUTED 2025980: c6 04 20 1c ld [ %l0 + 0x1c ], %g3 <== NOT EXECUTED return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) + 2025984: c4 04 20 30 ld [ %l0 + 0x30 ], %g2 <== NOT EXECUTED 2025988: 82 00 7f fe add %g1, -2, %g1 <== NOT EXECUTED 202598c: 87 28 40 03 sll %g1, %g3, %g3 <== NOT EXECUTED 2025990: 86 00 c0 02 add %g3, %g2, %g3 <== NOT EXECUTED fat_fs_info_t *fs_info = mt_entry->fs_info; if (cln == 1) return 1; return (fat_cluster_num_to_sector_num(mt_entry, cln) << 2025994: e4 0c 20 03 ldub [ %l0 + 3 ], %l2 <== NOT EXECUTED 2025998: 87 28 c0 12 sll %g3, %l2, %g3 <== NOT EXECUTED (pos->ofs >> FAT_SECTOR512_BITS)) << 4) + 202599c: c2 06 60 04 ld [ %i1 + 4 ], %g1 <== NOT EXECUTED uint32_t key2, fat_file_fd_t **ret ) { uint32_t mod = (key1) % FAT_HASH_MODULE; rtems_chain_node *the_node = ((rtems_chain_control *)((hash) + mod))->first; 20259a0: c4 04 20 68 ld [ %l0 + 0x68 ], %g2 <== NOT EXECUTED static inline uint32_t fat_construct_key( rtems_filesystem_mount_table_entry_t *mt_entry, fat_pos_t *pos) { return ( ((fat_cluster_num_to_sector512_num(mt_entry, pos->cln) + 20259a4: 89 30 60 05 srl %g1, 5, %g4 <== NOT EXECUTED 20259a8: a5 30 60 09 srl %g1, 9, %l2 <== NOT EXECUTED 20259ac: 88 09 20 0f and %g4, 0xf, %g4 <== NOT EXECUTED 20259b0: a4 00 c0 12 add %g3, %l2, %l2 <== NOT EXECUTED 20259b4: a5 2c a0 04 sll %l2, 4, %l2 <== NOT EXECUTED 20259b8: a4 04 80 04 add %l2, %g4, %l2 <== NOT EXECUTED 20259bc: 82 0c a0 01 and %l2, 1, %g1 <== NOT EXECUTED 20259c0: a7 28 60 04 sll %g1, 4, %l3 <== NOT EXECUTED 20259c4: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED 20259c8: a6 24 c0 01 sub %l3, %g1, %l3 <== NOT EXECUTED 20259cc: c2 00 80 13 ld [ %g2 + %l3 ], %g1 <== NOT EXECUTED 20259d0: 84 00 80 13 add %g2, %l3, %g2 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 20259d4: 10 80 00 24 b 2025a64 <== NOT EXECUTED 20259d8: 9a 00 a0 04 add %g2, 4, %o5 <== NOT EXECUTED uint32_t cln ) { fat_fs_info_t *fs_info = mt_entry->fs_info; if (cln == 1) 20259dc: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED 20259e0: 02 80 00 11 be 2025a24 <== NOT EXECUTED 20259e4: 86 10 20 01 mov 1, %g3 <== NOT EXECUTED uint32_t cln ) { register fat_fs_info_t *fs_info = mt_entry->fs_info; if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) ) 20259e8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 20259ec: 32 80 00 08 bne,a 2025a0c <== NOT EXECUTED 20259f0: c6 0c 20 05 ldub [ %l0 + 5 ], %g3 <== NOT EXECUTED 20259f4: c6 0c 20 0a ldub [ %l0 + 0xa ], %g3 <== NOT EXECUTED 20259f8: 80 88 e0 03 btst 3, %g3 <== NOT EXECUTED 20259fc: 22 80 00 04 be,a 2025a0c <== NOT EXECUTED 2025a00: c6 0c 20 05 ldub [ %l0 + 5 ], %g3 <== NOT EXECUTED return fs_info->vol.rdir_loc; 2025a04: 10 80 00 06 b 2025a1c <== NOT EXECUTED 2025a08: c6 04 20 1c ld [ %l0 + 0x1c ], %g3 <== NOT EXECUTED return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) + 2025a0c: c8 04 20 30 ld [ %l0 + 0x30 ], %g4 <== NOT EXECUTED 2025a10: 84 00 bf fe add %g2, -2, %g2 <== NOT EXECUTED 2025a14: 87 28 80 03 sll %g2, %g3, %g3 <== NOT EXECUTED 2025a18: 86 00 c0 04 add %g3, %g4, %g3 <== NOT EXECUTED fat_fs_info_t *fs_info = mt_entry->fs_info; if (cln == 1) return 1; return (fat_cluster_num_to_sector_num(mt_entry, cln) << 2025a1c: c4 0c 20 03 ldub [ %l0 + 3 ], %g2 <== NOT EXECUTED 2025a20: 87 28 c0 02 sll %g3, %g2, %g3 <== NOT EXECUTED (pos->ofs >> FAT_SECTOR512_BITS)) << 4) + 2025a24: c8 00 60 24 ld [ %g1 + 0x24 ], %g4 <== NOT EXECUTED for ( ; !rtems_chain_is_tail((hash) + mod, the_node) ; ) { fat_file_fd_t *ffd = (fat_file_fd_t *)the_node; uint32_t ck = fat_construct_key(mt_entry, &ffd->dir_pos.sname); if ( (key1) == ck) 2025a28: 85 31 20 05 srl %g4, 5, %g2 <== NOT EXECUTED 2025a2c: 89 31 20 09 srl %g4, 9, %g4 <== NOT EXECUTED 2025a30: 84 08 a0 0f and %g2, 0xf, %g2 <== NOT EXECUTED 2025a34: 86 00 c0 04 add %g3, %g4, %g3 <== NOT EXECUTED 2025a38: 87 28 e0 04 sll %g3, 4, %g3 <== NOT EXECUTED 2025a3c: 86 00 c0 02 add %g3, %g2, %g3 <== NOT EXECUTED 2025a40: 80 a4 80 03 cmp %l2, %g3 <== NOT EXECUTED 2025a44: 32 80 00 08 bne,a 2025a64 <== NOT EXECUTED 2025a48: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED rc = _hash_search(mt_entry, fs_info->vhash, key, 0, &lfat_fd); if ( rc == RC_OK ) { /* return pointer to fat_file_descriptor allocated before */ (*fat_fd) = lfat_fd; lfat_fd->links_num++; 2025a4c: c4 00 60 08 ld [ %g1 + 8 ], %g2 <== NOT EXECUTED /* access "valid" hash table */ rc = _hash_search(mt_entry, fs_info->vhash, key, 0, &lfat_fd); if ( rc == RC_OK ) { /* return pointer to fat_file_descriptor allocated before */ (*fat_fd) = lfat_fd; 2025a50: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED lfat_fd->links_num++; 2025a54: 84 00 a0 01 inc %g2 <== NOT EXECUTED 2025a58: c4 20 60 08 st %g2, [ %g1 + 8 ] <== NOT EXECUTED return rc; 2025a5c: 81 c7 e0 08 ret <== NOT EXECUTED 2025a60: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED ) { uint32_t mod = (key1) % FAT_HASH_MODULE; rtems_chain_node *the_node = ((rtems_chain_control *)((hash) + mod))->first; for ( ; !rtems_chain_is_tail((hash) + mod, the_node) ; ) 2025a64: 80 a0 40 0d cmp %g1, %o5 <== NOT EXECUTED 2025a68: 32 bf ff dd bne,a 20259dc <== NOT EXECUTED 2025a6c: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 <== NOT EXECUTED uint32_t key2, fat_file_fd_t **ret ) { uint32_t mod = (key1) % FAT_HASH_MODULE; rtems_chain_node *the_node = ((rtems_chain_control *)((hash) + mod))->first; 2025a70: 10 80 00 57 b 2025bcc <== NOT EXECUTED 2025a74: c4 04 20 6c ld [ %l0 + 0x6c ], %g2 <== NOT EXECUTED uint32_t cln ) { fat_fs_info_t *fs_info = mt_entry->fs_info; if (cln == 1) 2025a78: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED 2025a7c: 02 80 00 11 be 2025ac0 <== NOT EXECUTED 2025a80: 86 10 20 01 mov 1, %g3 <== NOT EXECUTED uint32_t cln ) { register fat_fs_info_t *fs_info = mt_entry->fs_info; if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) ) 2025a84: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2025a88: 32 80 00 08 bne,a 2025aa8 <== NOT EXECUTED 2025a8c: c6 0c 20 05 ldub [ %l0 + 5 ], %g3 <== NOT EXECUTED 2025a90: c6 0c 20 0a ldub [ %l0 + 0xa ], %g3 <== NOT EXECUTED 2025a94: 80 88 e0 03 btst 3, %g3 <== NOT EXECUTED 2025a98: 22 80 00 04 be,a 2025aa8 <== NOT EXECUTED 2025a9c: c6 0c 20 05 ldub [ %l0 + 5 ], %g3 <== NOT EXECUTED return fs_info->vol.rdir_loc; 2025aa0: 10 80 00 06 b 2025ab8 <== NOT EXECUTED 2025aa4: c6 04 20 1c ld [ %l0 + 0x1c ], %g3 <== NOT EXECUTED return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) + 2025aa8: c8 04 20 30 ld [ %l0 + 0x30 ], %g4 <== NOT EXECUTED 2025aac: 84 00 bf fe add %g2, -2, %g2 <== NOT EXECUTED 2025ab0: 87 28 80 03 sll %g2, %g3, %g3 <== NOT EXECUTED 2025ab4: 86 00 c0 04 add %g3, %g4, %g3 <== NOT EXECUTED fat_fs_info_t *fs_info = mt_entry->fs_info; if (cln == 1) return 1; return (fat_cluster_num_to_sector_num(mt_entry, cln) << 2025ab8: c4 0c 20 03 ldub [ %l0 + 3 ], %g2 <== NOT EXECUTED 2025abc: 87 28 c0 02 sll %g3, %g2, %g3 <== NOT EXECUTED 2025ac0: c8 00 60 24 ld [ %g1 + 0x24 ], %g4 <== NOT EXECUTED for ( ; !rtems_chain_is_tail((hash) + mod, the_node) ; ) { fat_file_fd_t *ffd = (fat_file_fd_t *)the_node; uint32_t ck = fat_construct_key(mt_entry, &ffd->dir_pos.sname); if ( (key1) == ck) 2025ac4: 85 31 20 05 srl %g4, 5, %g2 <== NOT EXECUTED 2025ac8: 89 31 20 09 srl %g4, 9, %g4 <== NOT EXECUTED 2025acc: 84 08 a0 0f and %g2, 0xf, %g2 <== NOT EXECUTED 2025ad0: 86 00 c0 04 add %g3, %g4, %g3 <== NOT EXECUTED 2025ad4: 87 28 e0 04 sll %g3, 4, %g3 <== NOT EXECUTED 2025ad8: 86 00 c0 02 add %g3, %g2, %g3 <== NOT EXECUTED 2025adc: 80 a4 80 03 cmp %l2, %g3 <== NOT EXECUTED 2025ae0: 32 80 00 0a bne,a 2025b08 <== NOT EXECUTED 2025ae4: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED { if ( ((key2) == 0) || ((key2) == ffd->ino) ) 2025ae8: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED 2025aec: 02 80 00 0b be 2025b18 <== NOT EXECUTED 2025af0: a8 10 20 00 clr %l4 <== NOT EXECUTED 2025af4: c4 00 60 0c ld [ %g1 + 0xc ], %g2 <== NOT EXECUTED 2025af8: 80 a4 80 02 cmp %l2, %g2 <== NOT EXECUTED 2025afc: 02 80 00 07 be 2025b18 <== NOT EXECUTED 2025b00: 01 00 00 00 nop <== NOT EXECUTED { *ret = (void *)the_node; return 0; } } the_node = the_node->next; 2025b04: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED ) { uint32_t mod = (key1) % FAT_HASH_MODULE; rtems_chain_node *the_node = ((rtems_chain_control *)((hash) + mod))->first; for ( ; !rtems_chain_is_tail((hash) + mod, the_node) ; ) 2025b08: 80 a0 40 0d cmp %g1, %o5 <== NOT EXECUTED 2025b0c: 32 bf ff db bne,a 2025a78 <== NOT EXECUTED 2025b10: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 <== NOT EXECUTED 2025b14: a8 10 3f ff mov -1, %l4 <== NOT EXECUTED } /* access "removed-but-still-open" hash table */ rc = _hash_search(mt_entry, fs_info->rhash, key, key, &lfat_fd); lfat_fd = (*fat_fd) = (fat_file_fd_t*)malloc(sizeof(fat_file_fd_t)); 2025b18: 7f ff 8b 99 call 200897c <== NOT EXECUTED 2025b1c: 90 10 20 44 mov 0x44, %o0 <== NOT EXECUTED 2025b20: d0 26 80 00 st %o0, [ %i2 ] <== NOT EXECUTED if ( lfat_fd == NULL ) 2025b24: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025b28: 02 80 00 1c be 2025b98 <== NOT EXECUTED 2025b2c: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOMEM ); memset(lfat_fd, 0, sizeof(fat_file_fd_t)); 2025b30: 92 10 20 00 clr %o1 <== NOT EXECUTED 2025b34: 40 00 87 b7 call 2047a10 <== NOT EXECUTED 2025b38: 94 10 20 44 mov 0x44, %o2 <== NOT EXECUTED lfat_fd->links_num = 1; lfat_fd->flags &= ~FAT_FILE_REMOVED; 2025b3c: c2 0c 60 30 ldub [ %l1 + 0x30 ], %g1 <== NOT EXECUTED lfat_fd->map.last_cln = FAT_UNDEFINED_VALUE; lfat_fd->dir_pos = *dir_pos; 2025b40: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOMEM ); memset(lfat_fd, 0, sizeof(fat_file_fd_t)); lfat_fd->links_num = 1; lfat_fd->flags &= ~FAT_FILE_REMOVED; 2025b44: 82 08 7f fe and %g1, -2, %g1 <== NOT EXECUTED 2025b48: c2 2c 60 30 stb %g1, [ %l1 + 0x30 ] <== NOT EXECUTED if ( lfat_fd == NULL ) rtems_set_errno_and_return_minus_one( ENOMEM ); memset(lfat_fd, 0, sizeof(fat_file_fd_t)); lfat_fd->links_num = 1; 2025b4c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 2025b50: c2 24 60 08 st %g1, [ %l1 + 8 ] <== NOT EXECUTED lfat_fd->flags &= ~FAT_FILE_REMOVED; lfat_fd->map.last_cln = FAT_UNDEFINED_VALUE; 2025b54: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED lfat_fd->dir_pos = *dir_pos; 2025b58: 90 04 60 20 add %l1, 0x20, %o0 <== NOT EXECUTED memset(lfat_fd, 0, sizeof(fat_file_fd_t)); lfat_fd->links_num = 1; lfat_fd->flags &= ~FAT_FILE_REMOVED; lfat_fd->map.last_cln = FAT_UNDEFINED_VALUE; 2025b5c: c2 24 60 3c st %g1, [ %l1 + 0x3c ] <== NOT EXECUTED lfat_fd->dir_pos = *dir_pos; 2025b60: 40 00 87 19 call 20477c4 <== NOT EXECUTED 2025b64: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED if ( rc != RC_OK ) 2025b68: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED 2025b6c: 02 80 00 04 be 2025b7c <== NOT EXECUTED 2025b70: 01 00 00 00 nop <== NOT EXECUTED lfat_fd->ino = key; 2025b74: 10 80 00 0f b 2025bb0 <== NOT EXECUTED 2025b78: e4 24 60 0c st %l2, [ %l1 + 0xc ] <== NOT EXECUTED else { lfat_fd->ino = fat_get_unique_ino(mt_entry); 2025b7c: 40 00 00 2b call 2025c28 <== NOT EXECUTED 2025b80: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED if ( lfat_fd->ino == 0 ) 2025b84: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025b88: 12 80 00 0a bne 2025bb0 <== NOT EXECUTED 2025b8c: d0 24 60 0c st %o0, [ %l1 + 0xc ] <== NOT EXECUTED { free((*fat_fd)); 2025b90: 7f ff 89 b4 call 2008260 <== NOT EXECUTED 2025b94: d0 06 80 00 ld [ %i2 ], %o0 <== NOT EXECUTED /* * XXX: kernel resource is unsufficient, but not the memory, * but there is no suitable errno :( */ rtems_set_errno_and_return_minus_one( ENOMEM ); 2025b98: 40 00 79 bf call 2044294 <__errno> <== NOT EXECUTED 2025b9c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2025ba0: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 2025ba4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2025ba8: 81 c7 e0 08 ret <== NOT EXECUTED 2025bac: 81 e8 00 00 restore <== 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 ); 2025bb0: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED 2025bb4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED 2025bb8: 90 02 00 13 add %o0, %l3, %o0 <== NOT EXECUTED 2025bbc: 7f ff 9e f3 call 200d788 <_Chain_Append> <== NOT EXECUTED 2025bc0: b0 10 20 00 clr %i0 <== NOT EXECUTED * other fields of fat-file descriptor will be initialized on upper * level */ return RC_OK; } 2025bc4: 81 c7 e0 08 ret <== NOT EXECUTED 2025bc8: 81 e8 00 00 restore <== NOT EXECUTED uint32_t key2, fat_file_fd_t **ret ) { uint32_t mod = (key1) % FAT_HASH_MODULE; rtems_chain_node *the_node = ((rtems_chain_control *)((hash) + mod))->first; 2025bcc: c2 00 80 13 ld [ %g2 + %l3 ], %g1 <== NOT EXECUTED 2025bd0: 84 00 80 13 add %g2, %l3, %g2 <== NOT EXECUTED 2025bd4: 10 bf ff cd b 2025b08 <== NOT EXECUTED 2025bd8: 9a 00 a0 04 add %g2, 4, %o5 <== NOT EXECUTED =============================================================================== 02025688 : fat_file_fd_t *fat_fd, uint32_t start, uint32_t count, uint8_t *buf ) { 2025688: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED 202568c: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED uint32_t sec = 0; uint32_t byte = 0; uint32_t c = 0; /* it couldn't be removed - otherwise cache update will be broken */ if (count == 0) 2025690: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 2025694: 02 80 00 79 be 2025878 <== NOT EXECUTED 2025698: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 <== NOT EXECUTED /* * >= because start is offset and computed from 0 and file_size * computed from 1 */ if ( start >= fat_fd->fat_file_size ) 202569c: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED 20256a0: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED 20256a4: 1a 80 00 75 bcc 2025878 <== NOT EXECUTED 20256a8: 80 a6 c0 01 cmp %i3, %g1 <== NOT EXECUTED return FAT_EOF; if ((count > fat_fd->fat_file_size) || 20256ac: 38 80 00 07 bgu,a 20256c8 <== NOT EXECUTED 20256b0: b6 20 40 1a sub %g1, %i2, %i3 <== NOT EXECUTED 20256b4: 84 20 40 1b sub %g1, %i3, %g2 <== NOT EXECUTED 20256b8: 80 a6 80 02 cmp %i2, %g2 <== NOT EXECUTED 20256bc: 28 80 00 04 bleu,a 20256cc <== NOT EXECUTED 20256c0: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED (start > fat_fd->fat_file_size - count)) count = fat_fd->fat_file_size - start; 20256c4: b6 20 40 1a sub %g1, %i2, %i3 <== NOT EXECUTED if ((FAT_FD_OF_ROOT_DIR(fat_fd)) && 20256c8: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED 20256cc: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 20256d0: 12 80 00 23 bne 202575c <== NOT EXECUTED 20256d4: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED 20256d8: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 <== NOT EXECUTED 20256dc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20256e0: 32 80 00 20 bne,a 2025760 <== NOT EXECUTED 20256e4: e6 0c 60 08 ldub [ %l1 + 8 ], %l3 <== NOT EXECUTED (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16))) 20256e8: c2 0c 60 0a ldub [ %l1 + 0xa ], %g1 <== NOT EXECUTED 20256ec: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED 20256f0: 22 80 00 1c be,a 2025760 <== NOT EXECUTED 20256f4: e6 0c 60 08 ldub [ %l1 + 8 ], %l3 <== NOT EXECUTED { sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->cln); 20256f8: c4 06 60 1c ld [ %i1 + 0x1c ], %g2 <== NOT EXECUTED uint32_t cln ) { register fat_fs_info_t *fs_info = mt_entry->fs_info; if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) ) 20256fc: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2025700: 32 80 00 04 bne,a 2025710 <== NOT EXECUTED 2025704: c8 0c 60 05 ldub [ %l1 + 5 ], %g4 <== NOT EXECUTED return fs_info->vol.rdir_loc; 2025708: 10 80 00 06 b 2025720 <== NOT EXECUTED 202570c: c2 04 60 1c ld [ %l1 + 0x1c ], %g1 <== NOT EXECUTED return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) + 2025710: c6 04 60 30 ld [ %l1 + 0x30 ], %g3 <== NOT EXECUTED 2025714: 82 00 bf fe add %g2, -2, %g1 <== NOT EXECUTED 2025718: 83 28 40 04 sll %g1, %g4, %g1 <== NOT EXECUTED 202571c: 82 00 40 03 add %g1, %g3, %g1 <== NOT EXECUTED sec += (start >> fs_info->vol.sec_log2); byte = start & (fs_info->vol.bps - 1); ret = _fat_block_read(mt_entry, sec, byte, count, buf); 2025720: d4 14 40 00 lduh [ %l1 ], %o2 <== NOT EXECUTED 2025724: c4 0c 60 02 ldub [ %l1 + 2 ], %g2 <== NOT EXECUTED 2025728: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED 202572c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2025730: 94 0e 80 0a and %i2, %o2, %o2 <== NOT EXECUTED 2025734: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED 2025738: b5 36 80 02 srl %i2, %g2, %i2 <== NOT EXECUTED 202573c: 98 10 00 1c mov %i4, %o4 <== NOT EXECUTED 2025740: 40 00 03 39 call 2026424 <_fat_block_read> <== NOT EXECUTED 2025744: 92 00 40 1a add %g1, %i2, %o1 <== NOT EXECUTED if ( ret < 0 ) 2025748: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202574c: 16 80 00 4e bge 2025884 <== NOT EXECUTED 2025750: 01 00 00 00 nop <== NOT EXECUTED /* XXX: check this - I'm not sure :( */ fat_fd->map.file_cln = cl_start + ((save_ofs + cmpltd - 1) >> fs_info->vol.bpc_log2); fat_fd->map.disk_cln = save_cln; return cmpltd; 2025754: 10 80 00 4c b 2025884 <== NOT EXECUTED 2025758: 90 10 3f ff mov -1, %o0 ! ffffffff <== NOT EXECUTED return -1; return ret; } cl_start = start >> fs_info->vol.bpc_log2; 202575c: e6 0c 60 08 ldub [ %l1 + 8 ], %l3 <== NOT EXECUTED save_ofs = ofs = start & (fs_info->vol.bpc - 1); 2025760: e4 14 60 06 lduh [ %l1 + 6 ], %l2 <== NOT EXECUTED return -1; return ret; } cl_start = start >> fs_info->vol.bpc_log2; 2025764: a7 36 80 13 srl %i2, %l3, %l3 <== NOT EXECUTED save_ofs = ofs = start & (fs_info->vol.bpc - 1); rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln); 2025768: a8 07 bf fc add %fp, -4, %l4 <== NOT EXECUTED 202576c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2025770: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2025774: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED 2025778: 7f ff fd b3 call 2024e44 <== NOT EXECUTED 202577c: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED if (rc != RC_OK) 2025780: 90 92 60 00 orcc %o1, 0, %o0 <== NOT EXECUTED 2025784: 12 80 00 40 bne 2025884 <== NOT EXECUTED 2025788: a5 2c a0 10 sll %l2, 0x10, %l2 <== NOT EXECUTED return ret; } cl_start = start >> fs_info->vol.bpc_log2; save_ofs = ofs = start & (fs_info->vol.bpc - 1); 202578c: a5 34 a0 10 srl %l2, 0x10, %l2 <== NOT EXECUTED 2025790: a4 04 bf ff add %l2, -1, %l2 <== NOT EXECUTED 2025794: aa 10 20 00 clr %l5 <== NOT EXECUTED 2025798: b4 0e 80 12 and %i2, %l2, %i2 <== NOT EXECUTED 202579c: a4 10 20 00 clr %l2 <== NOT EXECUTED 20257a0: 10 80 00 2a b 2025848 <== NOT EXECUTED 20257a4: 82 10 00 1a mov %i2, %g1 <== NOT EXECUTED if (rc != RC_OK) return rc; while (count > 0) { c = MIN(count, (fs_info->vol.bpc - ofs)); 20257a8: 96 22 c0 01 sub %o3, %g1, %o3 <== NOT EXECUTED 20257ac: 80 a2 c0 1b cmp %o3, %i3 <== NOT EXECUTED 20257b0: 08 80 00 03 bleu 20257bc <== NOT EXECUTED 20257b4: c4 07 bf fc ld [ %fp + -4 ], %g2 <== NOT EXECUTED 20257b8: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED uint32_t cln ) { register fat_fs_info_t *fs_info = mt_entry->fs_info; if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) ) 20257bc: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED return fs_info->vol.rdir_loc; return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) + 20257c0: 9a 00 bf fe add %g2, -2, %o5 <== NOT EXECUTED uint32_t cln ) { register fat_fs_info_t *fs_info = mt_entry->fs_info; if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) ) 20257c4: 12 80 00 08 bne 20257e4 <== NOT EXECUTED 20257c8: c4 04 20 34 ld [ %l0 + 0x34 ], %g2 <== NOT EXECUTED 20257cc: c6 08 a0 0a ldub [ %g2 + 0xa ], %g3 <== NOT EXECUTED 20257d0: 80 88 e0 03 btst 3, %g3 <== NOT EXECUTED 20257d4: 22 80 00 05 be,a 20257e8 <== NOT EXECUTED 20257d8: c6 00 a0 30 ld [ %g2 + 0x30 ], %g3 <== NOT EXECUTED return fs_info->vol.rdir_loc; 20257dc: 10 80 00 06 b 20257f4 <== NOT EXECUTED 20257e0: c4 00 a0 1c ld [ %g2 + 0x1c ], %g2 <== NOT EXECUTED return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) + 20257e4: c6 00 a0 30 ld [ %g2 + 0x30 ], %g3 <== NOT EXECUTED 20257e8: c8 08 a0 05 ldub [ %g2 + 5 ], %g4 <== NOT EXECUTED 20257ec: 85 2b 40 04 sll %o5, %g4, %g2 <== NOT EXECUTED 20257f0: 84 00 80 03 add %g2, %g3, %g2 <== NOT EXECUTED sec = fat_cluster_num_to_sector_num(mt_entry, cur_cln); sec += (ofs >> fs_info->vol.sec_log2); byte = ofs & (fs_info->vol.bps - 1); ret = _fat_block_read(mt_entry, sec, byte, c, buf + cmpltd); 20257f4: d2 0c 60 02 ldub [ %l1 + 2 ], %o1 <== NOT EXECUTED 20257f8: d4 14 40 00 lduh [ %l1 ], %o2 <== NOT EXECUTED 20257fc: 93 30 40 09 srl %g1, %o1, %o1 <== NOT EXECUTED 2025800: 98 07 00 12 add %i4, %l2, %o4 <== NOT EXECUTED 2025804: 92 00 80 09 add %g2, %o1, %o1 <== NOT EXECUTED 2025808: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED if ( ret < 0 ) return -1; count -= c; 202580c: b6 26 c0 0b sub %i3, %o3, %i3 <== NOT EXECUTED sec = fat_cluster_num_to_sector_num(mt_entry, cur_cln); sec += (ofs >> fs_info->vol.sec_log2); byte = ofs & (fs_info->vol.bps - 1); ret = _fat_block_read(mt_entry, sec, byte, c, buf + cmpltd); 2025810: 94 08 40 0a and %g1, %o2, %o2 <== NOT EXECUTED if ( ret < 0 ) return -1; count -= c; cmpltd += c; 2025814: a4 04 80 0b add %l2, %o3, %l2 <== NOT EXECUTED sec = fat_cluster_num_to_sector_num(mt_entry, cur_cln); sec += (ofs >> fs_info->vol.sec_log2); byte = ofs & (fs_info->vol.bps - 1); ret = _fat_block_read(mt_entry, sec, byte, c, buf + cmpltd); 2025818: 40 00 03 03 call 2026424 <_fat_block_read> <== NOT EXECUTED 202581c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return -1; count -= c; cmpltd += c; save_cln = cur_cln; rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln); 2025820: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED sec = fat_cluster_num_to_sector_num(mt_entry, cur_cln); sec += (ofs >> fs_info->vol.sec_log2); byte = ofs & (fs_info->vol.bps - 1); ret = _fat_block_read(mt_entry, sec, byte, c, buf + cmpltd); if ( ret < 0 ) 2025824: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025828: 06 80 00 16 bl 2025880 <== NOT EXECUTED 202582c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return -1; count -= c; cmpltd += c; save_cln = cur_cln; 2025830: ea 07 bf fc ld [ %fp + -4 ], %l5 <== NOT EXECUTED rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln); 2025834: 40 00 67 9a call 203f69c <== NOT EXECUTED 2025838: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED if ( rc != RC_OK ) 202583c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025840: 12 80 00 11 bne 2025884 <== NOT EXECUTED 2025844: 82 10 20 00 clr %g1 <== NOT EXECUTED rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln); if (rc != RC_OK) return rc; while (count > 0) 2025848: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 202584c: 32 bf ff d7 bne,a 20257a8 <== NOT EXECUTED 2025850: d6 14 60 06 lduh [ %l1 + 6 ], %o3 <== NOT EXECUTED ofs = 0; } /* update cache */ /* XXX: check this - I'm not sure :( */ fat_fd->map.file_cln = cl_start + 2025854: c2 0c 60 08 ldub [ %l1 + 8 ], %g1 <== NOT EXECUTED 2025858: b4 06 bf ff add %i2, -1, %i2 <== NOT EXECUTED ((save_ofs + cmpltd - 1) >> fs_info->vol.bpc_log2); fat_fd->map.disk_cln = save_cln; return cmpltd; 202585c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED /* update cache */ /* XXX: check this - I'm not sure :( */ fat_fd->map.file_cln = cl_start + ((save_ofs + cmpltd - 1) >> fs_info->vol.bpc_log2); fat_fd->map.disk_cln = save_cln; 2025860: ea 26 60 38 st %l5, [ %i1 + 0x38 ] <== NOT EXECUTED ofs = 0; } /* update cache */ /* XXX: check this - I'm not sure :( */ fat_fd->map.file_cln = cl_start + 2025864: a4 06 80 12 add %i2, %l2, %l2 <== NOT EXECUTED 2025868: a5 34 80 01 srl %l2, %g1, %l2 <== NOT EXECUTED 202586c: a6 04 80 13 add %l2, %l3, %l3 <== NOT EXECUTED ((save_ofs + cmpltd - 1) >> fs_info->vol.bpc_log2); fat_fd->map.disk_cln = save_cln; return cmpltd; 2025870: 10 80 00 05 b 2025884 <== NOT EXECUTED 2025874: e6 26 60 34 st %l3, [ %i1 + 0x34 ] <== NOT EXECUTED 2025878: 10 80 00 03 b 2025884 <== NOT EXECUTED 202587c: 90 10 20 00 clr %o0 <== NOT EXECUTED 2025880: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED } 2025884: 81 c7 e0 08 ret <== NOT EXECUTED 2025888: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED =============================================================================== 02024d74 : * RC_OK */ int fat_file_reopen(fat_file_fd_t *fat_fd) { fat_fd->links_num++; 2024d74: c4 02 20 08 ld [ %o0 + 8 ], %g2 <== NOT EXECUTED * RETURNS: * RC_OK */ int fat_file_reopen(fat_file_fd_t *fat_fd) { 2024d78: 82 10 00 08 mov %o0, %g1 <== NOT EXECUTED fat_fd->links_num++; 2024d7c: 84 00 a0 01 inc %g2 <== NOT EXECUTED return RC_OK; } 2024d80: 90 10 20 00 clr %o0 <== NOT EXECUTED 2024d84: 81 c3 e0 08 retl <== NOT EXECUTED 2024d88: c4 20 60 08 st %g2, [ %g1 + 8 ] <== NOT EXECUTED =============================================================================== 02024d8c : int fat_file_size( rtems_filesystem_mount_table_entry_t *mt_entry, fat_file_fd_t *fat_fd ) { 2024d8c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED fat_fs_info_t *fs_info = mt_entry->fs_info; uint32_t cur_cln = fat_fd->cln; uint32_t save_cln = 0; /* Have we requested root dir size for FAT12/16? */ if ((FAT_FD_OF_ROOT_DIR(fat_fd)) && 2024d90: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED int fat_file_size( rtems_filesystem_mount_table_entry_t *mt_entry, fat_file_fd_t *fat_fd ) { 2024d94: a4 10 00 18 mov %i0, %l2 <== NOT EXECUTED fat_fs_info_t *fs_info = mt_entry->fs_info; uint32_t cur_cln = fat_fd->cln; uint32_t save_cln = 0; /* Have we requested root dir size for FAT12/16? */ if ((FAT_FD_OF_ROOT_DIR(fat_fd)) && 2024d98: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED rtems_filesystem_mount_table_entry_t *mt_entry, fat_file_fd_t *fat_fd ) { int rc = RC_OK; fat_fs_info_t *fs_info = mt_entry->fs_info; 2024d9c: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED uint32_t cur_cln = fat_fd->cln; uint32_t save_cln = 0; /* Have we requested root dir size for FAT12/16? */ if ((FAT_FD_OF_ROOT_DIR(fat_fd)) && 2024da0: 12 80 00 0e bne 2024dd8 <== NOT EXECUTED 2024da4: c2 06 60 1c ld [ %i1 + 0x1c ], %g1 <== NOT EXECUTED 2024da8: c4 06 60 24 ld [ %i1 + 0x24 ], %g2 <== NOT EXECUTED 2024dac: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2024db0: 32 80 00 0b bne,a 2024ddc <== NOT EXECUTED 2024db4: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16))) 2024db8: c4 0c 20 0a ldub [ %l0 + 0xa ], %g2 <== NOT EXECUTED 2024dbc: 80 88 a0 03 btst 3, %g2 <== NOT EXECUTED 2024dc0: 22 80 00 07 be,a 2024ddc <== NOT EXECUTED 2024dc4: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED { fat_fd->fat_file_size = fs_info->vol.rdir_size; 2024dc8: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED 2024dcc: 90 10 20 00 clr %o0 <== NOT EXECUTED return rc; 2024dd0: 10 80 00 1b b 2024e3c <== NOT EXECUTED 2024dd4: c2 26 60 18 st %g1, [ %i1 + 0x18 ] <== NOT EXECUTED fat_file_fd_t *fat_fd ) { int rc = RC_OK; fat_fs_info_t *fs_info = mt_entry->fs_info; uint32_t cur_cln = fat_fd->cln; 2024dd8: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED { fat_fd->fat_file_size = fs_info->vol.rdir_size; return rc; } fat_fd->fat_file_size = 0; 2024ddc: c0 26 60 18 clr [ %i1 + 0x18 ] <== NOT EXECUTED 2024de0: 82 10 20 00 clr %g1 <== NOT EXECUTED while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val) 2024de4: 10 80 00 0b b 2024e10 <== NOT EXECUTED 2024de8: a6 07 bf fc add %fp, -4, %l3 <== NOT EXECUTED { save_cln = cur_cln; rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln); 2024dec: 40 00 6a 2c call 203f69c <== NOT EXECUTED 2024df0: 01 00 00 00 nop <== NOT EXECUTED if ( rc != RC_OK ) 2024df4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2024df8: 12 80 00 11 bne 2024e3c <== NOT EXECUTED 2024dfc: 82 10 00 11 mov %l1, %g1 <== NOT EXECUTED return rc; fat_fd->fat_file_size += fs_info->vol.bpc; 2024e00: c6 06 60 18 ld [ %i1 + 0x18 ], %g3 <== NOT EXECUTED 2024e04: c4 14 20 06 lduh [ %l0 + 6 ], %g2 <== NOT EXECUTED 2024e08: 84 00 c0 02 add %g3, %g2, %g2 <== NOT EXECUTED 2024e0c: c4 26 60 18 st %g2, [ %i1 + 0x18 ] <== NOT EXECUTED return rc; } fat_fd->fat_file_size = 0; while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val) 2024e10: e2 07 bf fc ld [ %fp + -4 ], %l1 <== NOT EXECUTED 2024e14: c6 04 20 0c ld [ %l0 + 0xc ], %g3 <== NOT EXECUTED 2024e18: c4 04 20 10 ld [ %l0 + 0x10 ], %g2 <== NOT EXECUTED 2024e1c: 86 0c 40 03 and %l1, %g3, %g3 <== NOT EXECUTED { save_cln = cur_cln; rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln); 2024e20: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 2024e24: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED return rc; } fat_fd->fat_file_size = 0; while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val) 2024e28: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED 2024e2c: 0a bf ff f0 bcs 2024dec <== NOT EXECUTED 2024e30: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED if ( rc != RC_OK ) return rc; fat_fd->fat_file_size += fs_info->vol.bpc; } fat_fd->map.last_cln = save_cln; 2024e34: c2 26 60 3c st %g1, [ %i1 + 0x3c ] <== NOT EXECUTED 2024e38: 90 10 20 00 clr %o0 <== NOT EXECUTED return rc; } 2024e3c: 81 c7 e0 08 ret <== NOT EXECUTED 2024e40: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED =============================================================================== 02025128 : fat_file_truncate( rtems_filesystem_mount_table_entry_t *mt_entry, fat_file_fd_t *fat_fd, uint32_t new_length ) { 2025128: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED uint32_t cur_cln = 0; uint32_t cl_start = 0; uint32_t new_last_cln = FAT_UNDEFINED_VALUE; if ( new_length >= fat_fd->fat_file_size ) 202512c: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED fat_file_truncate( rtems_filesystem_mount_table_entry_t *mt_entry, fat_file_fd_t *fat_fd, uint32_t new_length ) { 2025130: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED uint32_t cur_cln = 0; uint32_t cl_start = 0; uint32_t new_last_cln = FAT_UNDEFINED_VALUE; if ( new_length >= fat_fd->fat_file_size ) 2025134: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED 2025138: 1a 80 00 3c bcc 2025228 <== NOT EXECUTED 202513c: c4 06 20 34 ld [ %i0 + 0x34 ], %g2 <== NOT EXECUTED { int rc = RC_OK; fat_fs_info_t *fs_info = mt_entry->fs_info; uint32_t cur_cln = 0; uint32_t cl_start = 0; uint32_t new_last_cln = FAT_UNDEFINED_VALUE; 2025140: 86 10 3f ff mov -1, %g3 <== NOT EXECUTED uint32_t new_length ) { int rc = RC_OK; fat_fs_info_t *fs_info = mt_entry->fs_info; uint32_t cur_cln = 0; 2025144: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED if ( new_length >= fat_fd->fat_file_size ) return rc; assert(fat_fd->fat_file_size); 2025148: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202514c: 12 80 00 0a bne 2025174 <== NOT EXECUTED 2025150: c6 27 bf f8 st %g3, [ %fp + -8 ] <== NOT EXECUTED 2025154: 11 00 81 92 sethi %hi(0x2064800), %o0 <== NOT EXECUTED 2025158: 15 00 81 92 sethi %hi(0x2064800), %o2 <== NOT EXECUTED 202515c: 17 00 81 92 sethi %hi(0x2064800), %o3 <== NOT EXECUTED 2025160: 90 12 21 10 or %o0, 0x110, %o0 <== NOT EXECUTED 2025164: 94 12 a1 78 or %o2, 0x178, %o2 <== NOT EXECUTED 2025168: 96 12 e1 60 or %o3, 0x160, %o3 <== NOT EXECUTED 202516c: 40 00 0d a3 call 20287f8 <__assert_func> <== NOT EXECUTED 2025170: 92 10 22 6d mov 0x26d, %o1 <== NOT EXECUTED cl_start = (new_length + fs_info->vol.bpc - 1) >> fs_info->vol.bpc_log2; 2025174: c6 10 a0 06 lduh [ %g2 + 6 ], %g3 <== NOT EXECUTED 2025178: c4 08 a0 08 ldub [ %g2 + 8 ], %g2 <== NOT EXECUTED 202517c: 86 00 ff ff add %g3, -1, %g3 <== NOT EXECUTED 2025180: b4 00 c0 1a add %g3, %i2, %i2 <== NOT EXECUTED 2025184: b5 36 80 02 srl %i2, %g2, %i2 <== NOT EXECUTED if ((cl_start << fs_info->vol.bpc_log2) >= fat_fd->fat_file_size) 2025188: 85 2e 80 02 sll %i2, %g2, %g2 <== NOT EXECUTED 202518c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2025190: 1a 80 00 26 bcc 2025228 <== NOT EXECUTED 2025194: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED return RC_OK; if (cl_start != 0) 2025198: 02 80 00 0a be 20251c0 <== NOT EXECUTED 202519c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED { rc = fat_file_lseek(mt_entry, fat_fd, cl_start - 1, &new_last_cln); 20251a0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 20251a4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 20251a8: 94 06 bf ff add %i2, -1, %o2 <== NOT EXECUTED 20251ac: 7f ff ff 26 call 2024e44 <== NOT EXECUTED 20251b0: 96 07 bf f8 add %fp, -8, %o3 <== NOT EXECUTED if (rc != RC_OK) 20251b4: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED 20251b8: 12 80 00 1d bne 202522c <== NOT EXECUTED 20251bc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return rc; } rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln); 20251c0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 20251c4: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED 20251c8: 7f ff ff 1f call 2024e44 <== NOT EXECUTED 20251cc: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED if (rc != RC_OK) 20251d0: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED 20251d4: 12 80 00 16 bne 202522c <== NOT EXECUTED 20251d8: 01 00 00 00 nop <== NOT EXECUTED return rc; rc = fat_free_fat_clusters_chain(mt_entry, cur_cln); 20251dc: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED 20251e0: 40 00 69 ac call 203f890 <== NOT EXECUTED 20251e4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if (rc != RC_OK) 20251e8: 92 92 20 00 orcc %o0, 0, %o1 <== NOT EXECUTED 20251ec: 12 80 00 10 bne 202522c <== NOT EXECUTED 20251f0: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED return rc; if (cl_start != 0) 20251f4: 02 80 00 0e be 202522c <== NOT EXECUTED 20251f8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED { rc = fat_set_fat_cluster(mt_entry, new_last_cln, FAT_GENFAT_EOC); 20251fc: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED 2025200: 40 00 68 7a call 203f3e8 <== NOT EXECUTED 2025204: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED if ( rc != RC_OK ) 2025208: 92 92 20 00 orcc %o0, 0, %o1 <== NOT EXECUTED 202520c: 12 80 00 08 bne 202522c <== NOT EXECUTED 2025210: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED return rc; fat_fd->map.file_cln = cl_start - 1; 2025214: b4 06 bf ff add %i2, -1, %i2 <== NOT EXECUTED fat_fd->map.disk_cln = new_last_cln; fat_fd->map.last_cln = new_last_cln; 2025218: c2 26 60 3c st %g1, [ %i1 + 0x3c ] <== NOT EXECUTED if (cl_start != 0) { rc = fat_set_fat_cluster(mt_entry, new_last_cln, FAT_GENFAT_EOC); if ( rc != RC_OK ) return rc; fat_fd->map.file_cln = cl_start - 1; 202521c: f4 26 60 34 st %i2, [ %i1 + 0x34 ] <== NOT EXECUTED fat_fd->map.disk_cln = new_last_cln; 2025220: 10 80 00 03 b 202522c <== NOT EXECUTED 2025224: c2 26 60 38 st %g1, [ %i1 + 0x38 ] <== NOT EXECUTED fat_fd->map.last_cln = new_last_cln; 2025228: 92 10 20 00 clr %o1 <== NOT EXECUTED } return RC_OK; } 202522c: 81 c7 e0 08 ret <== NOT EXECUTED 2025230: 91 e8 00 09 restore %g0, %o1, %o0 <== NOT EXECUTED =============================================================================== 02025428 : fat_file_fd_t *fat_fd, uint32_t start, uint32_t count, const uint8_t *buf ) { 2025428: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED uint32_t save_ofs; uint32_t sec = 0; uint32_t byte = 0; uint32_t c = 0; if ( count == 0 ) 202542c: 90 10 20 00 clr %o0 <== NOT EXECUTED fat_file_fd_t *fat_fd, uint32_t start, uint32_t count, const uint8_t *buf ) { 2025430: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED uint32_t save_ofs; uint32_t sec = 0; uint32_t byte = 0; uint32_t c = 0; if ( count == 0 ) 2025434: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 2025438: 02 80 00 92 be 2025680 <== NOT EXECUTED 202543c: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 <== NOT EXECUTED return cmpltd; if ( start > fat_fd->fat_file_size ) 2025440: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED { int rc = 0; ssize_t ret = 0; fat_fs_info_t *fs_info = mt_entry->fs_info; uint32_t cmpltd = 0; uint32_t cur_cln = 0; 2025444: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED uint32_t c = 0; if ( count == 0 ) return cmpltd; if ( start > fat_fd->fat_file_size ) 2025448: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED 202544c: 18 80 00 09 bgu 2025470 <== NOT EXECUTED 2025450: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EIO ); if ((count > fat_fd->size_limit) || 2025454: c2 06 60 14 ld [ %i1 + 0x14 ], %g1 <== NOT EXECUTED 2025458: 80 a6 c0 01 cmp %i3, %g1 <== NOT EXECUTED 202545c: 18 80 00 05 bgu 2025470 <== NOT EXECUTED 2025460: 82 20 40 1b sub %g1, %i3, %g1 <== NOT EXECUTED 2025464: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED 2025468: 08 80 00 07 bleu 2025484 <== NOT EXECUTED 202546c: a4 06 c0 1a add %i3, %i2, %l2 <== NOT EXECUTED (start > fat_fd->size_limit - count)) rtems_set_errno_and_return_minus_one( EIO ); 2025470: 40 00 7b 89 call 2044294 <__errno> <== NOT EXECUTED 2025474: 01 00 00 00 nop <== NOT EXECUTED 2025478: 82 10 20 05 mov 5, %g1 ! 5 <== NOT EXECUTED 202547c: 10 80 00 80 b 202567c <== NOT EXECUTED 2025480: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED rc = fat_file_extend(mt_entry, fat_fd, start + count, &c); 2025484: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2025488: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 202548c: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED 2025490: 7f ff ff 69 call 2025234 <== NOT EXECUTED 2025494: 96 07 bf f8 add %fp, -8, %o3 <== NOT EXECUTED if (rc != RC_OK) 2025498: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202549c: 12 80 00 79 bne 2025680 <== NOT EXECUTED 20254a0: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED /* * check whether there was enough room on device to locate * file of 'start + count' bytes */ if (c != (start + count)) 20254a4: 80 a0 40 12 cmp %g1, %l2 <== NOT EXECUTED 20254a8: 32 80 00 02 bne,a 20254b0 <== NOT EXECUTED 20254ac: b6 20 40 1a sub %g1, %i2, %i3 <== NOT EXECUTED count = c - start; if ((FAT_FD_OF_ROOT_DIR(fat_fd)) && 20254b0: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED 20254b4: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 20254b8: 32 80 00 28 bne,a 2025558 <== NOT EXECUTED 20254bc: e6 0c 60 08 ldub [ %l1 + 8 ], %l3 <== NOT EXECUTED 20254c0: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 <== NOT EXECUTED 20254c4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20254c8: 32 80 00 24 bne,a 2025558 <== NOT EXECUTED 20254cc: e6 0c 60 08 ldub [ %l1 + 8 ], %l3 <== NOT EXECUTED (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16))) 20254d0: c2 0c 60 0a ldub [ %l1 + 0xa ], %g1 <== NOT EXECUTED 20254d4: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED 20254d8: 22 80 00 20 be,a 2025558 <== NOT EXECUTED 20254dc: e6 0c 60 08 ldub [ %l1 + 8 ], %l3 <== NOT EXECUTED { sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->cln); 20254e0: c6 06 60 1c ld [ %i1 + 0x1c ], %g3 <== NOT EXECUTED uint32_t cln ) { register fat_fs_info_t *fs_info = mt_entry->fs_info; if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) ) 20254e4: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED 20254e8: 12 80 00 08 bne 2025508 <== NOT EXECUTED 20254ec: c4 04 20 34 ld [ %l0 + 0x34 ], %g2 <== NOT EXECUTED 20254f0: c2 08 a0 0a ldub [ %g2 + 0xa ], %g1 <== NOT EXECUTED 20254f4: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED 20254f8: 22 80 00 05 be,a 202550c <== NOT EXECUTED 20254fc: c8 00 a0 30 ld [ %g2 + 0x30 ], %g4 <== NOT EXECUTED return fs_info->vol.rdir_loc; 2025500: 10 80 00 07 b 202551c <== NOT EXECUTED 2025504: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) + 2025508: c8 00 a0 30 ld [ %g2 + 0x30 ], %g4 <== NOT EXECUTED 202550c: c4 08 a0 05 ldub [ %g2 + 5 ], %g2 <== NOT EXECUTED 2025510: 82 00 ff fe add %g3, -2, %g1 <== NOT EXECUTED 2025514: 83 28 40 02 sll %g1, %g2, %g1 <== NOT EXECUTED 2025518: 82 00 40 04 add %g1, %g4, %g1 <== NOT EXECUTED sec += (start >> fs_info->vol.sec_log2); byte = start & (fs_info->vol.bps - 1); ret = _fat_block_write(mt_entry, sec, byte, count, buf); 202551c: d4 14 40 00 lduh [ %l1 ], %o2 <== NOT EXECUTED 2025520: c4 0c 60 02 ldub [ %l1 + 2 ], %g2 <== NOT EXECUTED 2025524: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED 2025528: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 202552c: 94 0e 80 0a and %i2, %o2, %o2 <== NOT EXECUTED 2025530: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED 2025534: b5 36 80 02 srl %i2, %g2, %i2 <== NOT EXECUTED 2025538: 98 10 00 1c mov %i4, %o4 <== NOT EXECUTED 202553c: 40 00 02 d3 call 2026088 <_fat_block_write> <== NOT EXECUTED 2025540: 92 00 40 1a add %g1, %i2, %o1 <== NOT EXECUTED if ( ret < 0 ) 2025544: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025548: 16 80 00 4e bge 2025680 <== NOT EXECUTED 202554c: 01 00 00 00 nop <== NOT EXECUTED /* XXX: check this - I'm not sure :( */ fat_fd->map.file_cln = cl_start + ((save_ofs + cmpltd - 1) >> fs_info->vol.bpc_log2); fat_fd->map.disk_cln = save_cln; return cmpltd; 2025550: 10 80 00 4c b 2025680 <== NOT EXECUTED 2025554: 90 10 3f ff mov -1, %o0 ! ffffffff <== NOT EXECUTED return ret; } cl_start = start >> fs_info->vol.bpc_log2; save_ofs = ofs = start & (fs_info->vol.bpc - 1); 2025558: e4 14 60 06 lduh [ %l1 + 6 ], %l2 <== NOT EXECUTED return -1; return ret; } cl_start = start >> fs_info->vol.bpc_log2; 202555c: a7 36 80 13 srl %i2, %l3, %l3 <== NOT EXECUTED save_ofs = ofs = start & (fs_info->vol.bpc - 1); rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln); 2025560: a8 07 bf fc add %fp, -4, %l4 <== NOT EXECUTED 2025564: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2025568: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 202556c: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED 2025570: 7f ff fe 35 call 2024e44 <== NOT EXECUTED 2025574: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED if (rc != RC_OK) 2025578: 90 92 60 00 orcc %o1, 0, %o0 <== NOT EXECUTED 202557c: 12 80 00 41 bne 2025680 <== NOT EXECUTED 2025580: a5 2c a0 10 sll %l2, 0x10, %l2 <== NOT EXECUTED return ret; } cl_start = start >> fs_info->vol.bpc_log2; save_ofs = ofs = start & (fs_info->vol.bpc - 1); 2025584: a5 34 a0 10 srl %l2, 0x10, %l2 <== NOT EXECUTED 2025588: a4 04 bf ff add %l2, -1, %l2 <== NOT EXECUTED 202558c: aa 10 20 00 clr %l5 <== NOT EXECUTED 2025590: b4 0e 80 12 and %i2, %l2, %i2 <== NOT EXECUTED 2025594: a4 10 20 00 clr %l2 <== NOT EXECUTED 2025598: 10 80 00 2d b 202564c <== NOT EXECUTED 202559c: 84 10 00 1a mov %i2, %g2 <== NOT EXECUTED if (rc != RC_OK) return rc; while (count > 0) { c = MIN(count, (fs_info->vol.bpc - ofs)); 20255a0: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 20255a4: 80 a0 40 1b cmp %g1, %i3 <== NOT EXECUTED 20255a8: 08 80 00 03 bleu 20255b4 <== NOT EXECUTED 20255ac: c6 07 bf fc ld [ %fp + -4 ], %g3 <== NOT EXECUTED 20255b0: 82 10 00 1b mov %i3, %g1 <== NOT EXECUTED uint32_t cln ) { register fat_fs_info_t *fs_info = mt_entry->fs_info; if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) ) 20255b4: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED return fs_info->vol.rdir_loc; return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) + 20255b8: 98 00 ff fe add %g3, -2, %o4 <== NOT EXECUTED uint32_t cln ) { register fat_fs_info_t *fs_info = mt_entry->fs_info; if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) ) 20255bc: 12 80 00 08 bne 20255dc <== NOT EXECUTED 20255c0: c6 04 20 34 ld [ %l0 + 0x34 ], %g3 <== NOT EXECUTED 20255c4: c8 08 e0 0a ldub [ %g3 + 0xa ], %g4 <== NOT EXECUTED 20255c8: 80 89 20 03 btst 3, %g4 <== NOT EXECUTED 20255cc: 22 80 00 05 be,a 20255e0 <== NOT EXECUTED 20255d0: c8 00 e0 30 ld [ %g3 + 0x30 ], %g4 <== NOT EXECUTED return fs_info->vol.rdir_loc; 20255d4: 10 80 00 06 b 20255ec <== NOT EXECUTED 20255d8: c6 00 e0 1c ld [ %g3 + 0x1c ], %g3 <== NOT EXECUTED return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) + 20255dc: c8 00 e0 30 ld [ %g3 + 0x30 ], %g4 <== NOT EXECUTED 20255e0: da 08 e0 05 ldub [ %g3 + 5 ], %o5 <== NOT EXECUTED 20255e4: 87 2b 00 0d sll %o4, %o5, %g3 <== NOT EXECUTED 20255e8: 86 00 c0 04 add %g3, %g4, %g3 <== NOT EXECUTED sec = fat_cluster_num_to_sector_num(mt_entry, cur_cln); sec += (ofs >> fs_info->vol.sec_log2); 20255ec: d2 0c 60 02 ldub [ %l1 + 2 ], %o1 <== NOT EXECUTED byte = ofs & (fs_info->vol.bps - 1); 20255f0: d4 14 40 00 lduh [ %l1 ], %o2 <== NOT EXECUTED while (count > 0) { c = MIN(count, (fs_info->vol.bpc - ofs)); sec = fat_cluster_num_to_sector_num(mt_entry, cur_cln); sec += (ofs >> fs_info->vol.sec_log2); 20255f4: 93 30 80 09 srl %g2, %o1, %o1 <== NOT EXECUTED byte = ofs & (fs_info->vol.bps - 1); 20255f8: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED ret = _fat_block_write(mt_entry, sec, byte, c, buf + cmpltd); 20255fc: 92 00 c0 09 add %g3, %o1, %o1 <== NOT EXECUTED 2025600: 94 08 80 0a and %g2, %o2, %o2 <== NOT EXECUTED 2025604: 96 10 00 01 mov %g1, %o3 <== NOT EXECUTED if (rc != RC_OK) return rc; while (count > 0) { c = MIN(count, (fs_info->vol.bpc - ofs)); 2025608: c2 27 bf f8 st %g1, [ %fp + -8 ] <== NOT EXECUTED sec = fat_cluster_num_to_sector_num(mt_entry, cur_cln); sec += (ofs >> fs_info->vol.sec_log2); byte = ofs & (fs_info->vol.bps - 1); ret = _fat_block_write(mt_entry, sec, byte, c, buf + cmpltd); 202560c: 98 07 00 12 add %i4, %l2, %o4 <== NOT EXECUTED 2025610: 40 00 02 9e call 2026088 <_fat_block_write> <== NOT EXECUTED 2025614: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return -1; count -= c; cmpltd += c; save_cln = cur_cln; rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln); 2025618: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED sec = fat_cluster_num_to_sector_num(mt_entry, cur_cln); sec += (ofs >> fs_info->vol.sec_log2); byte = ofs & (fs_info->vol.bps - 1); ret = _fat_block_write(mt_entry, sec, byte, c, buf + cmpltd); if ( ret < 0 ) 202561c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025620: 06 80 00 17 bl 202567c <== NOT EXECUTED 2025624: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return -1; count -= c; cmpltd += c; save_cln = cur_cln; 2025628: ea 07 bf fc ld [ %fp + -4 ], %l5 <== NOT EXECUTED ret = _fat_block_write(mt_entry, sec, byte, c, buf + cmpltd); if ( ret < 0 ) return -1; count -= c; 202562c: ec 07 bf f8 ld [ %fp + -8 ], %l6 <== NOT EXECUTED cmpltd += c; save_cln = cur_cln; rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln); 2025630: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED 2025634: 40 00 68 1a call 203f69c <== NOT EXECUTED 2025638: a4 04 80 16 add %l2, %l6, %l2 <== NOT EXECUTED if ( rc != RC_OK ) 202563c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025640: 12 80 00 10 bne 2025680 <== NOT EXECUTED 2025644: b6 26 c0 16 sub %i3, %l6, %i3 <== NOT EXECUTED ret = _fat_block_write(mt_entry, sec, byte, c, buf + cmpltd); if ( ret < 0 ) return -1; count -= c; cmpltd += c; 2025648: 84 10 20 00 clr %g2 <== NOT EXECUTED rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln); if (rc != RC_OK) return rc; while (count > 0) 202564c: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 2025650: 32 bf ff d4 bne,a 20255a0 <== NOT EXECUTED 2025654: c2 14 60 06 lduh [ %l1 + 6 ], %g1 <== NOT EXECUTED ofs = 0; } /* update cache */ /* XXX: check this - I'm not sure :( */ fat_fd->map.file_cln = cl_start + 2025658: c2 0c 60 08 ldub [ %l1 + 8 ], %g1 <== NOT EXECUTED 202565c: b4 06 bf ff add %i2, -1, %i2 <== NOT EXECUTED ((save_ofs + cmpltd - 1) >> fs_info->vol.bpc_log2); fat_fd->map.disk_cln = save_cln; return cmpltd; 2025660: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED /* update cache */ /* XXX: check this - I'm not sure :( */ fat_fd->map.file_cln = cl_start + ((save_ofs + cmpltd - 1) >> fs_info->vol.bpc_log2); fat_fd->map.disk_cln = save_cln; 2025664: ea 26 60 38 st %l5, [ %i1 + 0x38 ] <== NOT EXECUTED ofs = 0; } /* update cache */ /* XXX: check this - I'm not sure :( */ fat_fd->map.file_cln = cl_start + 2025668: a4 06 80 12 add %i2, %l2, %l2 <== NOT EXECUTED 202566c: a5 34 80 01 srl %l2, %g1, %l2 <== NOT EXECUTED 2025670: a6 04 80 13 add %l2, %l3, %l3 <== NOT EXECUTED ((save_ofs + cmpltd - 1) >> fs_info->vol.bpc_log2); fat_fd->map.disk_cln = save_cln; return cmpltd; 2025674: 10 80 00 03 b 2025680 <== NOT EXECUTED 2025678: e6 26 60 34 st %l3, [ %i1 + 0x34 ] <== NOT EXECUTED 202567c: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED } 2025680: 81 c7 e0 08 ret <== NOT EXECUTED 2025684: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED =============================================================================== 0203f890 : int fat_free_fat_clusters_chain( rtems_filesystem_mount_table_entry_t *mt_entry, uint32_t chain ) { 203f890: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED int rc = RC_OK, rc1 = RC_OK; fat_fs_info_t *fs_info = mt_entry->fs_info; uint32_t cur_cln = chain; uint32_t next_cln = 0; 203f894: a4 10 20 00 clr %l2 <== NOT EXECUTED int fat_free_fat_clusters_chain( rtems_filesystem_mount_table_entry_t *mt_entry, uint32_t chain ) { 203f898: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED int rc = RC_OK, rc1 = RC_OK; fat_fs_info_t *fs_info = mt_entry->fs_info; uint32_t cur_cln = chain; uint32_t next_cln = 0; 203f89c: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED rtems_filesystem_mount_table_entry_t *mt_entry, uint32_t chain ) { int rc = RC_OK, rc1 = RC_OK; fat_fs_info_t *fs_info = mt_entry->fs_info; 203f8a0: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 <== NOT EXECUTED uint32_t cur_cln = chain; uint32_t next_cln = 0; 203f8a4: a6 10 00 19 mov %i1, %l3 <== NOT EXECUTED 203f8a8: a8 10 20 00 clr %l4 <== NOT EXECUTED uint32_t freed_cls_cnt = 0; while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val) 203f8ac: 10 80 00 1a b 203f914 <== NOT EXECUTED 203f8b0: aa 07 bf fc add %fp, -4, %l5 <== NOT EXECUTED { rc = fat_get_fat_cluster(mt_entry, cur_cln, &next_cln); 203f8b4: 7f ff ff 7a call 203f69c <== NOT EXECUTED 203f8b8: 01 00 00 00 nop <== NOT EXECUTED fat_buf_release(fs_info); return rc; } rc = fat_set_fat_cluster(mt_entry, cur_cln, FAT_GENFAT_FREE); 203f8bc: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED uint32_t next_cln = 0; uint32_t freed_cls_cnt = 0; while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val) { rc = fat_get_fat_cluster(mt_entry, cur_cln, &next_cln); 203f8c0: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED fat_buf_release(fs_info); return rc; } rc = fat_set_fat_cluster(mt_entry, cur_cln, FAT_GENFAT_FREE); 203f8c4: 94 10 20 00 clr %o2 <== NOT EXECUTED uint32_t freed_cls_cnt = 0; while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val) { rc = fat_get_fat_cluster(mt_entry, cur_cln, &next_cln); if ( rc != RC_OK ) 203f8c8: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 203f8cc: 02 80 00 0b be 203f8f8 <== NOT EXECUTED 203f8d0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED { if(fs_info->vol.free_cls != FAT_UNDEFINED_VALUE) 203f8d4: c2 04 60 40 ld [ %l1 + 0x40 ], %g1 <== NOT EXECUTED 203f8d8: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED 203f8dc: 02 80 00 03 be 203f8e8 <== NOT EXECUTED 203f8e0: a4 04 80 01 add %l2, %g1, %l2 <== NOT EXECUTED fs_info->vol.free_cls += freed_cls_cnt; 203f8e4: e4 24 60 40 st %l2, [ %l1 + 0x40 ] <== NOT EXECUTED fat_buf_release(fs_info); 203f8e8: 7f ff 99 08 call 2025d08 <== NOT EXECUTED 203f8ec: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED return rc; 203f8f0: 81 c7 e0 08 ret <== NOT EXECUTED 203f8f4: 81 e8 00 00 restore <== NOT EXECUTED } rc = fat_set_fat_cluster(mt_entry, cur_cln, FAT_GENFAT_FREE); 203f8f8: 7f ff fe bc call 203f3e8 <== NOT EXECUTED 203f8fc: 01 00 00 00 nop <== NOT EXECUTED if ( rc != RC_OK ) 203f900: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 203f904: 02 80 00 03 be 203f910 <== NOT EXECUTED 203f908: e6 07 bf fc ld [ %fp + -4 ], %l3 <== NOT EXECUTED 203f90c: a8 10 00 08 mov %o0, %l4 <== NOT EXECUTED rc1 = rc; freed_cls_cnt++; 203f910: a4 04 a0 01 inc %l2 <== NOT EXECUTED fat_fs_info_t *fs_info = mt_entry->fs_info; uint32_t cur_cln = chain; uint32_t next_cln = 0; uint32_t freed_cls_cnt = 0; while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val) 203f914: c4 04 60 0c ld [ %l1 + 0xc ], %g2 <== NOT EXECUTED 203f918: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED 203f91c: 84 0c c0 02 and %l3, %g2, %g2 <== NOT EXECUTED { rc = fat_get_fat_cluster(mt_entry, cur_cln, &next_cln); 203f920: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED 203f924: 94 10 00 15 mov %l5, %o2 <== NOT EXECUTED fat_fs_info_t *fs_info = mt_entry->fs_info; uint32_t cur_cln = chain; uint32_t next_cln = 0; uint32_t freed_cls_cnt = 0; while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val) 203f928: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 203f92c: 0a bf ff e2 bcs 203f8b4 <== NOT EXECUTED 203f930: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED freed_cls_cnt++; cur_cln = next_cln; } fs_info->vol.next_cl = chain; if (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE) 203f934: c2 04 60 40 ld [ %l1 + 0x40 ], %g1 <== NOT EXECUTED 203f938: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED 203f93c: 02 80 00 04 be 203f94c <== NOT EXECUTED 203f940: f2 24 60 44 st %i1, [ %l1 + 0x44 ] <== NOT EXECUTED fs_info->vol.free_cls += freed_cls_cnt; 203f944: a4 04 80 01 add %l2, %g1, %l2 <== NOT EXECUTED 203f948: e4 24 60 40 st %l2, [ %l1 + 0x40 ] <== NOT EXECUTED fat_buf_release(fs_info); 203f94c: b0 10 00 14 mov %l4, %i0 <== NOT EXECUTED 203f950: 7f ff 98 ee call 2025d08 <== NOT EXECUTED 203f954: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED if (rc1 != RC_OK) return rc1; return RC_OK; } 203f958: 81 c7 e0 08 ret <== NOT EXECUTED 203f95c: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02025bdc : void fat_free_unique_ino( rtems_filesystem_mount_table_entry_t *mt_entry, uint32_t ino ) { 2025bdc: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED fat_fs_info_t *fs_info = mt_entry->fs_info; 2025be0: c4 06 20 34 ld [ %i0 + 0x34 ], %g2 <== NOT EXECUTED FAT_SET_UNIQ_INO_FREE((ino - fs_info->uino_base), fs_info->uino); 2025be4: 9a 10 20 01 mov 1, %o5 <== NOT EXECUTED 2025be8: c2 00 a0 70 ld [ %g2 + 0x70 ], %g1 <== NOT EXECUTED 2025bec: c4 00 a0 7c ld [ %g2 + 0x7c ], %g2 <== NOT EXECUTED 2025bf0: 84 26 40 02 sub %i1, %g2, %g2 <== NOT EXECUTED 2025bf4: 87 30 a0 03 srl %g2, 3, %g3 <== NOT EXECUTED 2025bf8: c8 08 40 03 ldub [ %g1 + %g3 ], %g4 <== NOT EXECUTED 2025bfc: 84 08 a0 07 and %g2, 7, %g2 <== NOT EXECUTED 2025c00: 85 2b 40 02 sll %o5, %g2, %g2 <== NOT EXECUTED 2025c04: 84 29 00 02 andn %g4, %g2, %g2 <== NOT EXECUTED 2025c08: c4 28 40 03 stb %g2, [ %g1 + %g3 ] <== NOT EXECUTED } 2025c0c: 81 c7 e0 08 ret <== NOT EXECUTED 2025c10: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0203f69c : fat_get_fat_cluster( rtems_filesystem_mount_table_entry_t *mt_entry, uint32_t cln, uint32_t *ret_val ) { 203f69c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED int rc = RC_OK; register fat_fs_info_t *fs_info = mt_entry->fs_info; rtems_bdbuf_buffer *block0 = NULL; 203f6a0: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED uint32_t sec = 0; uint32_t ofs = 0; /* sanity check */ if ( (cln < 2) || (cln > (fs_info->vol.data_cls + 1)) ) 203f6a4: 80 a6 60 01 cmp %i1, 1 <== NOT EXECUTED 203f6a8: 08 80 00 07 bleu 203f6c4 <== NOT EXECUTED 203f6ac: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED 203f6b0: c2 04 20 34 ld [ %l0 + 0x34 ], %g1 <== NOT EXECUTED 203f6b4: 82 00 60 01 inc %g1 <== NOT EXECUTED 203f6b8: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 203f6bc: 28 80 00 08 bleu,a 203f6dc <== NOT EXECUTED 203f6c0: c2 0c 20 0a ldub [ %l0 + 0xa ], %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EIO); 203f6c4: 40 00 12 f4 call 2044294 <__errno> <== NOT EXECUTED 203f6c8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 203f6cc: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED 203f6d0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 203f6d4: 81 c7 e0 08 ret <== NOT EXECUTED 203f6d8: 81 e8 00 00 restore <== NOT EXECUTED sec = (FAT_FAT_OFFSET(fs_info->vol.type, cln) >> fs_info->vol.sec_log2) + 203f6dc: 88 88 60 01 andcc %g1, 1, %g4 <== NOT EXECUTED 203f6e0: 02 80 00 05 be 203f6f4 <== NOT EXECUTED 203f6e4: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED 203f6e8: 85 36 60 01 srl %i1, 1, %g2 <== NOT EXECUTED 203f6ec: 10 80 00 05 b 203f700 <== NOT EXECUTED 203f6f0: 84 00 80 19 add %g2, %i1, %g2 <== NOT EXECUTED 203f6f4: 02 80 00 03 be 203f700 <== NOT EXECUTED 203f6f8: 85 2e 60 02 sll %i1, 2, %g2 <== NOT EXECUTED 203f6fc: 85 2e 60 01 sll %i1, 1, %g2 <== NOT EXECUTED 203f700: e6 0c 20 02 ldub [ %l0 + 2 ], %l3 <== NOT EXECUTED 203f704: c6 04 20 4c ld [ %l0 + 0x4c ], %g3 <== NOT EXECUTED 203f708: a7 30 80 13 srl %g2, %l3, %l3 <== NOT EXECUTED fs_info->vol.afat_loc; ofs = FAT_FAT_OFFSET(fs_info->vol.type, cln) & (fs_info->vol.bps - 1); 203f70c: a3 36 60 01 srl %i1, 1, %l1 <== NOT EXECUTED 203f710: 80 a1 20 00 cmp %g4, 0 <== NOT EXECUTED /* sanity check */ if ( (cln < 2) || (cln > (fs_info->vol.data_cls + 1)) ) rtems_set_errno_and_return_minus_one(EIO); sec = (FAT_FAT_OFFSET(fs_info->vol.type, cln) >> fs_info->vol.sec_log2) + 203f714: a6 04 c0 03 add %l3, %g3, %l3 <== NOT EXECUTED fs_info->vol.afat_loc; ofs = FAT_FAT_OFFSET(fs_info->vol.type, cln) & (fs_info->vol.bps - 1); 203f718: 12 80 00 06 bne 203f730 <== NOT EXECUTED 203f71c: a2 04 40 19 add %l1, %i1, %l1 <== NOT EXECUTED 203f720: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED 203f724: 02 80 00 03 be 203f730 <== NOT EXECUTED 203f728: a3 2e 60 02 sll %i1, 2, %l1 <== NOT EXECUTED 203f72c: a3 2e 60 01 sll %i1, 1, %l1 <== NOT EXECUTED 203f730: e8 14 00 00 lduh [ %l0 ], %l4 <== NOT EXECUTED rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &block0); 203f734: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED 203f738: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 203f73c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED 203f740: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED 203f744: 7f ff 99 d2 call 2025e8c <== NOT EXECUTED 203f748: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED if (rc != RC_OK) 203f74c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 203f750: 12 bf ff e1 bne 203f6d4 <== NOT EXECUTED 203f754: a9 2d 20 10 sll %l4, 0x10, %l4 <== NOT EXECUTED return rc; switch ( fs_info->vol.type ) 203f758: c2 0c 20 0a ldub [ %l0 + 0xa ], %g1 <== NOT EXECUTED 203f75c: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED if ( (cln < 2) || (cln > (fs_info->vol.data_cls + 1)) ) rtems_set_errno_and_return_minus_one(EIO); sec = (FAT_FAT_OFFSET(fs_info->vol.type, cln) >> fs_info->vol.sec_log2) + fs_info->vol.afat_loc; ofs = FAT_FAT_OFFSET(fs_info->vol.type, cln) & (fs_info->vol.bps - 1); 203f760: a9 35 20 10 srl %l4, 0x10, %l4 <== NOT EXECUTED 203f764: a8 05 3f ff add %l4, -1, %l4 <== NOT EXECUTED rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &block0); if (rc != RC_OK) return rc; switch ( fs_info->vol.type ) 203f768: 02 80 00 29 be 203f80c <== NOT EXECUTED 203f76c: a2 0c 40 14 and %l1, %l4, %l1 <== NOT EXECUTED 203f770: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED 203f774: 02 80 00 30 be 203f834 <== NOT EXECUTED 203f778: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 203f77c: 12 80 00 3f bne 203f878 <== NOT EXECUTED 203f780: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED /* * we are enforced in complex computations for FAT12 to escape CPU * align problems for some architectures */ *ret_val = (*((uint8_t *)(block0->buffer + ofs))); if ( ofs == (fs_info->vol.bps - 1) ) 203f784: c6 14 00 00 lduh [ %l0 ], %g3 <== NOT EXECUTED case FAT_FAT12: /* * we are enforced in complex computations for FAT12 to escape CPU * align problems for some architectures */ *ret_val = (*((uint8_t *)(block0->buffer + ofs))); 203f788: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 <== NOT EXECUTED if ( ofs == (fs_info->vol.bps - 1) ) 203f78c: 86 00 ff ff add %g3, -1, %g3 <== NOT EXECUTED case FAT_FAT12: /* * we are enforced in complex computations for FAT12 to escape CPU * align problems for some architectures */ *ret_val = (*((uint8_t *)(block0->buffer + ofs))); 203f790: c2 08 80 11 ldub [ %g2 + %l1 ], %g1 <== NOT EXECUTED if ( ofs == (fs_info->vol.bps - 1) ) 203f794: 80 a4 40 03 cmp %l1, %g3 <== NOT EXECUTED 203f798: 12 80 00 11 bne 203f7dc <== NOT EXECUTED 203f79c: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED { rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ, 203f7a0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 203f7a4: 92 04 e0 01 add %l3, 1, %o1 <== NOT EXECUTED 203f7a8: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED 203f7ac: 7f ff 99 b8 call 2025e8c <== NOT EXECUTED 203f7b0: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED &block0); if (rc != RC_OK) 203f7b4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 203f7b8: 02 80 00 04 be 203f7c8 <== NOT EXECUTED 203f7bc: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 203f7c0: 81 c7 e0 08 ret <== NOT EXECUTED 203f7c4: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return rc; *ret_val |= (*((uint8_t *)(block0->buffer)))<<8; 203f7c8: c4 06 80 00 ld [ %i2 ], %g2 <== NOT EXECUTED 203f7cc: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED 203f7d0: c2 08 40 00 ldub [ %g1 ], %g1 <== NOT EXECUTED 203f7d4: 10 80 00 05 b 203f7e8 <== NOT EXECUTED 203f7d8: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED } else { *ret_val |= (*((uint8_t *)(block0->buffer + ofs + 1)))<<8; 203f7dc: a2 00 80 11 add %g2, %l1, %l1 <== NOT EXECUTED 203f7e0: c4 0c 60 01 ldub [ %l1 + 1 ], %g2 <== NOT EXECUTED 203f7e4: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED 203f7e8: 82 10 80 01 or %g2, %g1, %g1 <== NOT EXECUTED 203f7ec: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED } if ( FAT_CLUSTER_IS_ODD(cln) ) 203f7f0: 80 8e 60 01 btst 1, %i1 <== NOT EXECUTED 203f7f4: 02 80 00 04 be 203f804 <== NOT EXECUTED 203f7f8: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED *ret_val = (*ret_val) >> FAT12_SHIFT; 203f7fc: 10 80 00 1c b 203f86c <== NOT EXECUTED 203f800: 83 30 60 04 srl %g1, 4, %g1 <== NOT EXECUTED else *ret_val = (*ret_val) & FAT_FAT12_MASK; 203f804: 10 80 00 1a b 203f86c <== NOT EXECUTED 203f808: 82 08 6f ff and %g1, 0xfff, %g1 <== NOT EXECUTED break; case FAT_FAT16: *ret_val = *((uint16_t *)(block0->buffer + ofs)); 203f80c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED *ret_val = CF_LE_W(*ret_val); 203f810: 07 00 00 3f sethi %hi(0xfc00), %g3 <== NOT EXECUTED else *ret_val = (*ret_val) & FAT_FAT12_MASK; break; case FAT_FAT16: *ret_val = *((uint16_t *)(block0->buffer + ofs)); 203f814: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED *ret_val = CF_LE_W(*ret_val); 203f818: 86 10 e3 ff or %g3, 0x3ff, %g3 <== NOT EXECUTED else *ret_val = (*ret_val) & FAT_FAT12_MASK; break; case FAT_FAT16: *ret_val = *((uint16_t *)(block0->buffer + ofs)); 203f81c: c2 10 40 11 lduh [ %g1 + %l1 ], %g1 <== NOT EXECUTED *ret_val = CF_LE_W(*ret_val); 203f820: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED 203f824: 85 30 60 18 srl %g1, 0x18, %g2 <== NOT EXECUTED 203f828: 83 30 60 08 srl %g1, 8, %g1 <== NOT EXECUTED 203f82c: 10 80 00 0f b 203f868 <== NOT EXECUTED 203f830: 82 08 40 03 and %g1, %g3, %g1 <== NOT EXECUTED break; case FAT_FAT32: *ret_val = *((uint32_t *)(block0->buffer + ofs)); 203f834: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 203f838: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED 203f83c: c2 00 40 11 ld [ %g1 + %l1 ], %g1 <== NOT EXECUTED *ret_val = CF_LE_L(*ret_val); 203f840: 87 30 60 18 srl %g1, 0x18, %g3 <== NOT EXECUTED 203f844: 85 30 60 10 srl %g1, 0x10, %g2 <== NOT EXECUTED 203f848: 89 28 60 18 sll %g1, 0x18, %g4 <== NOT EXECUTED 203f84c: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED 203f850: 88 11 00 03 or %g4, %g3, %g4 <== NOT EXECUTED 203f854: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED 203f858: 87 30 60 08 srl %g1, 8, %g3 <== NOT EXECUTED 203f85c: 86 08 e0 ff and %g3, 0xff, %g3 <== NOT EXECUTED 203f860: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED 203f864: 82 11 00 03 or %g4, %g3, %g1 <== NOT EXECUTED 203f868: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED 203f86c: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED break; 203f870: 81 c7 e0 08 ret <== NOT EXECUTED 203f874: 81 e8 00 00 restore <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one(EIO); 203f878: 40 00 12 87 call 2044294 <__errno> <== NOT EXECUTED 203f87c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 203f880: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED 203f884: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED break; } return RC_OK; } 203f888: 81 c7 e0 08 ret <== NOT EXECUTED 203f88c: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02025c28 : * 0 means FAILED !!! * */ uint32_t fat_get_unique_ino(rtems_filesystem_mount_table_entry_t *mt_entry) { 2025c28: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED fs_info->index++; if (fs_info->index >= fs_info->uino_pool_size) fs_info->index = 0; } if ((fs_info->uino_pool_size << 1) < (0x0FFFFFFF - fs_info->uino_base)) 2025c2c: 23 03 ff ff sethi %hi(0xffffc00), %l1 <== NOT EXECUTED * */ uint32_t fat_get_unique_ino(rtems_filesystem_mount_table_entry_t *mt_entry) { register fat_fs_info_t *fs_info = mt_entry->fs_info; 2025c30: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED fs_info->index++; if (fs_info->index >= fs_info->uino_pool_size) fs_info->index = 0; } if ((fs_info->uino_pool_size << 1) < (0x0FFFFFFF - fs_info->uino_base)) 2025c34: 10 80 00 30 b 2025cf4 <== NOT EXECUTED 2025c38: a2 14 63 ff or %l1, 0x3ff, %l1 <== NOT EXECUTED while (!resrc_unsuff) { for (j = 0; j < fs_info->uino_pool_size; j++) { if (!FAT_UNIQ_INO_IS_BUSY(fs_info->index, fs_info->uino)) 2025c3c: c6 04 20 70 ld [ %l0 + 0x70 ], %g3 <== NOT EXECUTED 2025c40: 85 31 20 03 srl %g4, 3, %g2 <== NOT EXECUTED 2025c44: d6 48 c0 02 ldsb [ %g3 + %g2 ], %o3 <== NOT EXECUTED { FAT_SET_UNIQ_INO_BUSY(fs_info->index, fs_info->uino); return (fs_info->uino_base + fs_info->index); } fs_info->index++; 2025c48: 9a 01 20 01 add %g4, 1, %o5 <== NOT EXECUTED while (!resrc_unsuff) { for (j = 0; j < fs_info->uino_pool_size; j++) { if (!FAT_UNIQ_INO_IS_BUSY(fs_info->index, fs_info->uino)) 2025c4c: d8 08 c0 02 ldub [ %g3 + %g2 ], %o4 <== NOT EXECUTED 2025c50: 88 09 20 07 and %g4, 7, %g4 <== NOT EXECUTED uint32_t j = 0; bool resrc_unsuff = false; while (!resrc_unsuff) { for (j = 0; j < fs_info->uino_pool_size; j++) 2025c54: 82 00 60 01 inc %g1 <== NOT EXECUTED { if (!FAT_UNIQ_INO_IS_BUSY(fs_info->index, fs_info->uino)) 2025c58: 97 3a c0 04 sra %o3, %g4, %o3 <== NOT EXECUTED 2025c5c: 80 8a e0 01 btst 1, %o3 <== NOT EXECUTED 2025c60: 12 80 00 0a bne 2025c88 <== NOT EXECUTED 2025c64: 84 00 c0 02 add %g3, %g2, %g2 <== NOT EXECUTED { FAT_SET_UNIQ_INO_BUSY(fs_info->index, fs_info->uino); 2025c68: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 2025c6c: 89 28 40 04 sll %g1, %g4, %g4 <== NOT EXECUTED 2025c70: 88 11 00 0c or %g4, %o4, %g4 <== NOT EXECUTED 2025c74: c8 28 80 00 stb %g4, [ %g2 ] <== NOT EXECUTED return (fs_info->uino_base + fs_info->index); 2025c78: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED 2025c7c: f0 04 20 74 ld [ %l0 + 0x74 ], %i0 <== NOT EXECUTED 2025c80: 81 c7 e0 08 ret <== NOT EXECUTED 2025c84: 91 ee 00 01 restore %i0, %g1, %o0 <== NOT EXECUTED } fs_info->index++; if (fs_info->index >= fs_info->uino_pool_size) 2025c88: c4 04 20 78 ld [ %l0 + 0x78 ], %g2 <== NOT EXECUTED 2025c8c: 80 a3 40 02 cmp %o5, %g2 <== NOT EXECUTED 2025c90: 0a 80 00 03 bcs 2025c9c <== NOT EXECUTED 2025c94: da 24 20 74 st %o5, [ %l0 + 0x74 ] <== NOT EXECUTED fs_info->index = 0; 2025c98: c0 24 20 74 clr [ %l0 + 0x74 ] <== NOT EXECUTED uint32_t j = 0; bool resrc_unsuff = false; while (!resrc_unsuff) { for (j = 0; j < fs_info->uino_pool_size; j++) 2025c9c: 80 a0 40 09 cmp %g1, %o1 <== NOT EXECUTED 2025ca0: 2a bf ff e7 bcs,a 2025c3c <== NOT EXECUTED 2025ca4: c8 04 20 74 ld [ %l0 + 0x74 ], %g4 <== NOT EXECUTED fs_info->index++; if (fs_info->index >= fs_info->uino_pool_size) fs_info->index = 0; } if ((fs_info->uino_pool_size << 1) < (0x0FFFFFFF - fs_info->uino_base)) 2025ca8: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED 2025cac: 93 2a 60 01 sll %o1, 1, %o1 <== NOT EXECUTED 2025cb0: 82 24 40 01 sub %l1, %g1, %g1 <== NOT EXECUTED 2025cb4: 80 a2 40 01 cmp %o1, %g1 <== NOT EXECUTED 2025cb8: 1a 80 00 12 bcc 2025d00 <== NOT EXECUTED 2025cbc: 01 00 00 00 nop <== NOT EXECUTED { fs_info->uino_pool_size <<= 1; fs_info->uino = realloc(fs_info->uino, fs_info->uino_pool_size); 2025cc0: d0 04 20 70 ld [ %l0 + 0x70 ], %o0 <== NOT EXECUTED 2025cc4: 7f ff 8e c9 call 20097e8 <== NOT EXECUTED 2025cc8: d2 24 20 78 st %o1, [ %l0 + 0x78 ] <== NOT EXECUTED 2025ccc: d0 24 20 70 st %o0, [ %l0 + 0x70 ] <== NOT EXECUTED if (fs_info->uino != NULL) 2025cd0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025cd4: 02 80 00 05 be 2025ce8 <== NOT EXECUTED 2025cd8: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED fs_info->index = fs_info->uino_pool_size; 2025cdc: c4 04 20 78 ld [ %l0 + 0x78 ], %g2 <== NOT EXECUTED 2025ce0: 82 10 20 00 clr %g1 <== NOT EXECUTED 2025ce4: c4 24 20 74 st %g2, [ %l0 + 0x74 ] <== NOT EXECUTED { register fat_fs_info_t *fs_info = mt_entry->fs_info; uint32_t j = 0; bool resrc_unsuff = false; while (!resrc_unsuff) 2025ce8: 80 88 60 ff btst 0xff, %g1 <== NOT EXECUTED 2025cec: 12 80 00 05 bne 2025d00 <== NOT EXECUTED 2025cf0: 01 00 00 00 nop <== NOT EXECUTED { for (j = 0; j < fs_info->uino_pool_size; j++) 2025cf4: d2 04 20 78 ld [ %l0 + 0x78 ], %o1 <== NOT EXECUTED 2025cf8: 10 bf ff e9 b 2025c9c <== NOT EXECUTED 2025cfc: 82 10 20 00 clr %g1 <== NOT EXECUTED } else resrc_unsuff = true; } return 0; } 2025d00: 81 c7 e0 08 ret <== NOT EXECUTED 2025d04: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED =============================================================================== 02026364 : int fat_init_clusters_chain( rtems_filesystem_mount_table_entry_t *mt_entry, uint32_t start_cln ) { 2026364: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED int rc = RC_OK; ssize_t ret = 0; register fat_fs_info_t *fs_info = mt_entry->fs_info; 2026368: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED uint32_t cur_cln = start_cln; 202636c: f2 27 bf fc st %i1, [ %fp + -4 ] <== NOT EXECUTED char *buf; buf = calloc(fs_info->vol.bpc, sizeof(char)); 2026370: d0 14 20 06 lduh [ %l0 + 6 ], %o0 <== NOT EXECUTED 2026374: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 2026378: 7f ff 86 2b call 2007c24 <== NOT EXECUTED 202637c: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED if ( buf == NULL ) 2026380: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED 2026384: 12 80 00 1c bne 20263f4 <== NOT EXECUTED 2026388: a6 07 bf fc add %fp, -4, %l3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EIO ); 202638c: 40 00 77 c2 call 2044294 <__errno> <== NOT EXECUTED 2026390: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2026394: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED 2026398: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202639c: 81 c7 e0 08 ret <== NOT EXECUTED 20263a0: 81 e8 00 00 restore <== NOT EXECUTED while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val) { ret = fat_cluster_write(mt_entry, cur_cln, buf); 20263a4: 7f ff ff d9 call 2026308 <== NOT EXECUTED 20263a8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED { free(buf); return -1; } rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln); 20263ac: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EIO ); while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val) { ret = fat_cluster_write(mt_entry, cur_cln, buf); if ( ret == -1 ) 20263b0: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 20263b4: 12 80 00 07 bne 20263d0 <== NOT EXECUTED 20263b8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED { free(buf); 20263bc: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 20263c0: 7f ff 87 a8 call 2008260 <== NOT EXECUTED 20263c4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return -1; 20263c8: 81 c7 e0 08 ret <== NOT EXECUTED 20263cc: 81 e8 00 00 restore <== NOT EXECUTED } rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln); 20263d0: 40 00 64 b3 call 203f69c <== NOT EXECUTED 20263d4: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED if ( rc != RC_OK ) 20263d8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 20263dc: 02 80 00 07 be 20263f8 <== NOT EXECUTED 20263e0: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED { free(buf); 20263e4: 7f ff 87 9f call 2008260 <== NOT EXECUTED 20263e8: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED return rc; 20263ec: 81 c7 e0 08 ret <== NOT EXECUTED 20263f0: 81 e8 00 00 restore <== NOT EXECUTED buf = calloc(fs_info->vol.bpc, sizeof(char)); if ( buf == NULL ) rtems_set_errno_and_return_minus_one( EIO ); while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val) 20263f4: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED 20263f8: c4 04 20 0c ld [ %l0 + 0xc ], %g2 <== NOT EXECUTED 20263fc: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 2026400: 84 0a 40 02 and %o1, %g2, %g2 <== NOT EXECUTED 2026404: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2026408: 0a bf ff e7 bcs 20263a4 <== NOT EXECUTED 202640c: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED free(buf); return rc; } } free(buf); 2026410: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 2026414: 7f ff 87 93 call 2008260 <== NOT EXECUTED 2026418: b0 10 20 00 clr %i0 <== NOT EXECUTED return rc; } 202641c: 81 c7 e0 08 ret <== NOT EXECUTED 2026420: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 020264a8 : * RC_OK on success, or -1 if error occured * and errno set appropriately */ int fat_init_volume_info(rtems_filesystem_mount_table_entry_t *mt_entry) { 20264a8: 9d e3 be e8 save %sp, -280, %sp <== NOT EXECUTED ssize_t ret = 0; struct stat stat_buf; int i = 0; rtems_bdbuf_buffer *block = NULL; rc = stat(mt_entry->dev, &stat_buf); 20264ac: d0 06 20 70 ld [ %i0 + 0x70 ], %o0 <== NOT EXECUTED int fat_init_volume_info(rtems_filesystem_mount_table_entry_t *mt_entry) { rtems_status_code sc = RTEMS_SUCCESSFUL; int rc = RC_OK; fat_fs_info_t *fs_info = mt_entry->fs_info; 20264b0: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED * RC_OK on success, or -1 if error occured * and errno set appropriately */ int fat_init_volume_info(rtems_filesystem_mount_table_entry_t *mt_entry) { 20264b4: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED char boot_rec[FAT_MAX_BPB_SIZE]; char fs_info_sector[FAT_USEFUL_INFO_SIZE]; ssize_t ret = 0; struct stat stat_buf; int i = 0; rtems_bdbuf_buffer *block = NULL; 20264b8: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED rc = stat(mt_entry->dev, &stat_buf); 20264bc: 7f ff 8d aa call 2009b64 <== NOT EXECUTED 20264c0: 92 07 bf a8 add %fp, -88, %o1 <== NOT EXECUTED if (rc == -1) 20264c4: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 20264c8: 02 80 01 4c be 20269f8 <== NOT EXECUTED 20264cc: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED return rc; /* Must be a block device. */ if (!S_ISBLK(stat_buf.st_mode)) 20264d0: c4 07 bf b4 ld [ %fp + -76 ], %g2 <== NOT EXECUTED 20264d4: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED 20264d8: 84 08 80 01 and %g2, %g1, %g2 <== NOT EXECUTED 20264dc: 03 00 00 18 sethi %hi(0x6000), %g1 <== NOT EXECUTED 20264e0: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 20264e4: 22 80 00 06 be,a 20264fc <== NOT EXECUTED 20264e8: d0 1f bf c0 ldd [ %fp + -64 ], %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOTTY); 20264ec: 40 00 77 6a call 2044294 <__errno> <== NOT EXECUTED 20264f0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20264f4: 10 80 01 92 b 2026b3c <== NOT EXECUTED 20264f8: 82 10 20 19 mov 0x19, %g1 <== NOT EXECUTED /* check that device is registred as block device and lock it */ vol->dd = rtems_disk_obtain(stat_buf.st_rdev); 20264fc: 7f ff 82 90 call 2006f3c <== NOT EXECUTED 2026500: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED if (vol->dd == NULL) 2026504: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2026508: 02 80 00 16 be 2026560 <== NOT EXECUTED 202650c: d0 24 20 60 st %o0, [ %l0 + 0x60 ] <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EIO); vol->dev = stat_buf.st_rdev; 2026510: d0 1f bf c0 ldd [ %fp + -64 ], %o0 <== NOT EXECUTED /* Read boot record */ /* FIXME: Asserts FAT_MAX_BPB_SIZE < bdbuf block size */ sc = rtems_bdbuf_read( vol->dev, 0, &block); 2026514: 94 10 20 00 clr %o2 <== NOT EXECUTED /* check that device is registred as block device and lock it */ vol->dd = rtems_disk_obtain(stat_buf.st_rdev); if (vol->dd == NULL) rtems_set_errno_and_return_minus_one(EIO); vol->dev = stat_buf.st_rdev; 2026518: d0 3c 20 58 std %o0, [ %l0 + 0x58 ] <== NOT EXECUTED /* Read boot record */ /* FIXME: Asserts FAT_MAX_BPB_SIZE < bdbuf block size */ sc = rtems_bdbuf_read( vol->dev, 0, &block); 202651c: 7f ff 7d e4 call 2005cac <== NOT EXECUTED 2026520: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 2026524: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2026528: 12 80 00 0b bne 2026554 <== NOT EXECUTED 202652c: 94 10 20 5a mov 0x5a, %o2 <== NOT EXECUTED { rtems_disk_release(vol->dd); rtems_set_errno_and_return_minus_one( EIO); } memcpy( boot_rec, block->buffer, FAT_MAX_BPB_SIZE); 2026530: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 2026534: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED 2026538: 40 00 84 a3 call 20477c4 <== NOT EXECUTED 202653c: 90 07 bf 48 add %fp, -184, %o0 <== NOT EXECUTED sc = rtems_bdbuf_release( block); 2026540: 7f ff 79 43 call 2004a4c <== NOT EXECUTED 2026544: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 2026548: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202654c: 02 80 00 09 be 2026570 <== NOT EXECUTED 2026550: c4 0f bf 54 ldub [ %fp + -172 ], %g2 <== NOT EXECUTED { rtems_disk_release(vol->dd); 2026554: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED 2026558: 7f ff 82 67 call 2006ef4 <== NOT EXECUTED 202655c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EIO ); 2026560: 40 00 77 4d call 2044294 <__errno> <== NOT EXECUTED 2026564: 01 00 00 00 nop <== NOT EXECUTED 2026568: 10 80 01 75 b 2026b3c <== NOT EXECUTED 202656c: 82 10 20 05 mov 5, %g1 ! 5 <== NOT EXECUTED } /* Evaluate boot record */ vol->bps = FAT_GET_BR_BYTES_PER_SECTOR(boot_rec); 2026570: c6 0f bf 53 ldub [ %fp + -173 ], %g3 <== NOT EXECUTED 2026574: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED 2026578: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED if ( (vol->bps != 512) && 202657c: 83 28 a0 10 sll %g2, 0x10, %g1 <== NOT EXECUTED 2026580: 83 30 60 10 srl %g1, 0x10, %g1 <== NOT EXECUTED 2026584: 80 a0 64 00 cmp %g1, 0x400 <== NOT EXECUTED 2026588: 02 80 00 0b be 20265b4 <== NOT EXECUTED 202658c: c4 34 00 00 sth %g2, [ %l0 ] <== NOT EXECUTED 2026590: 80 a0 62 00 cmp %g1, 0x200 <== NOT EXECUTED 2026594: 22 80 00 09 be,a 20265b8 <== NOT EXECUTED 2026598: 83 28 a0 10 sll %g2, 0x10, %g1 <== NOT EXECUTED 202659c: 80 a0 68 00 cmp %g1, 0x800 <== NOT EXECUTED 20265a0: 02 80 00 05 be 20265b4 <== NOT EXECUTED 20265a4: 07 00 00 04 sethi %hi(0x1000), %g3 <== NOT EXECUTED 20265a8: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 20265ac: 32 80 00 c1 bne,a 20268b0 <== NOT EXECUTED 20265b0: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED { rtems_disk_release(vol->dd); rtems_set_errno_and_return_minus_one( EINVAL ); } for (vol->sec_mul = 0, i = (vol->bps >> FAT_SECTOR512_BITS); (i & 1) == 0; 20265b4: 83 28 a0 10 sll %g2, 0x10, %g1 <== NOT EXECUTED 20265b8: c0 2c 20 03 clrb [ %l0 + 3 ] <== NOT EXECUTED 20265bc: 10 80 00 05 b 20265d0 <== NOT EXECUTED 20265c0: 83 30 60 19 srl %g1, 0x19, %g1 <== NOT EXECUTED i >>= 1, vol->sec_mul++); 20265c4: 83 38 60 01 sra %g1, 1, %g1 <== NOT EXECUTED 20265c8: 84 00 a0 01 inc %g2 <== NOT EXECUTED 20265cc: c4 2c 20 03 stb %g2, [ %l0 + 3 ] <== NOT EXECUTED { rtems_disk_release(vol->dd); rtems_set_errno_and_return_minus_one( EINVAL ); } for (vol->sec_mul = 0, i = (vol->bps >> FAT_SECTOR512_BITS); (i & 1) == 0; 20265d0: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 20265d4: 22 bf ff fc be,a 20265c4 <== NOT EXECUTED 20265d8: c4 0c 20 03 ldub [ %l0 + 3 ], %g2 <== NOT EXECUTED i >>= 1, vol->sec_mul++); for (vol->sec_log2 = 0, i = vol->bps; (i & 1) == 0; 20265dc: c0 2c 20 02 clrb [ %l0 + 2 ] <== NOT EXECUTED 20265e0: 10 80 00 05 b 20265f4 <== NOT EXECUTED 20265e4: c2 14 00 00 lduh [ %l0 ], %g1 <== NOT EXECUTED i >>= 1, vol->sec_log2++); 20265e8: 83 38 60 01 sra %g1, 1, %g1 <== NOT EXECUTED 20265ec: 84 00 a0 01 inc %g2 <== NOT EXECUTED 20265f0: c4 2c 20 02 stb %g2, [ %l0 + 2 ] <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); } for (vol->sec_mul = 0, i = (vol->bps >> FAT_SECTOR512_BITS); (i & 1) == 0; i >>= 1, vol->sec_mul++); for (vol->sec_log2 = 0, i = vol->bps; (i & 1) == 0; 20265f4: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 20265f8: 22 bf ff fc be,a 20265e8 <== NOT EXECUTED 20265fc: c4 0c 20 02 ldub [ %l0 + 2 ], %g2 <== NOT EXECUTED if ( (ret1 < 0) || (ret2 < 0) ) return -1; return RC_OK; } 2026600: c4 0f bf 55 ldub [ %fp + -171 ], %g2 <== NOT EXECUTED for (vol->sec_mul = 0, i = (vol->bps >> FAT_SECTOR512_BITS); (i & 1) == 0; i >>= 1, vol->sec_mul++); for (vol->sec_log2 = 0, i = vol->bps; (i & 1) == 0; i >>= 1, vol->sec_log2++); vol->spc = FAT_GET_BR_SECTORS_PER_CLUSTER(boot_rec); 2026604: c4 2c 20 04 stb %g2, [ %l0 + 4 ] <== NOT EXECUTED /* * "sectors per cluster" of zero is invalid * (and would hang the following loop) */ if (vol->spc == 0) 2026608: 84 88 a0 ff andcc %g2, 0xff, %g2 <== NOT EXECUTED 202660c: 22 80 00 a9 be,a 20268b0 <== NOT EXECUTED 2026610: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED { rtems_disk_release(vol->dd); rtems_set_errno_and_return_minus_one(EINVAL); } for (vol->spc_log2 = 0, i = vol->spc; (i & 1) == 0; 2026614: 10 80 00 04 b 2026624 <== NOT EXECUTED 2026618: c0 2c 20 05 clrb [ %l0 + 5 ] <== NOT EXECUTED i >>= 1, vol->spc_log2++); 202661c: 82 00 60 01 inc %g1 <== NOT EXECUTED 2026620: c2 2c 20 05 stb %g1, [ %l0 + 5 ] <== NOT EXECUTED { rtems_disk_release(vol->dd); rtems_set_errno_and_return_minus_one(EINVAL); } for (vol->spc_log2 = 0, i = vol->spc; (i & 1) == 0; 2026624: 80 88 a0 01 btst 1, %g2 <== NOT EXECUTED 2026628: c2 0c 20 05 ldub [ %l0 + 5 ], %g1 <== NOT EXECUTED 202662c: 02 bf ff fc be 202661c <== NOT EXECUTED 2026630: 85 38 a0 01 sra %g2, 1, %g2 <== NOT EXECUTED i >>= 1, vol->spc_log2++); /* * "bytes per cluster" value greater than 32K is invalid */ if ((vol->bpc = vol->bps << vol->spc_log2) > MS_BYTES_PER_CLUSTER_LIMIT) 2026634: c4 14 00 00 lduh [ %l0 ], %g2 <== NOT EXECUTED 2026638: 83 28 80 01 sll %g2, %g1, %g1 <== NOT EXECUTED 202663c: c2 34 20 06 sth %g1, [ %l0 + 6 ] <== NOT EXECUTED 2026640: 05 00 00 20 sethi %hi(0x8000), %g2 <== NOT EXECUTED 2026644: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED 2026648: 83 30 60 10 srl %g1, 0x10, %g1 <== NOT EXECUTED 202664c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2026650: 38 80 00 98 bgu,a 20268b0 <== NOT EXECUTED 2026654: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED { rtems_disk_release(vol->dd); rtems_set_errno_and_return_minus_one(EINVAL); } for (vol->bpc_log2 = 0, i = vol->bpc; (i & 1) == 0; 2026658: 10 80 00 05 b 202666c <== NOT EXECUTED 202665c: c0 2c 20 08 clrb [ %l0 + 8 ] <== NOT EXECUTED i >>= 1, vol->bpc_log2++); 2026660: 83 38 60 01 sra %g1, 1, %g1 <== NOT EXECUTED 2026664: 84 00 a0 01 inc %g2 <== NOT EXECUTED 2026668: c4 2c 20 08 stb %g2, [ %l0 + 8 ] <== NOT EXECUTED { rtems_disk_release(vol->dd); rtems_set_errno_and_return_minus_one(EINVAL); } for (vol->bpc_log2 = 0, i = vol->bpc; (i & 1) == 0; 202666c: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 2026670: 22 bf ff fc be,a 2026660 <== NOT EXECUTED 2026674: c4 0c 20 08 ldub [ %l0 + 8 ], %g2 <== NOT EXECUTED i >>= 1, vol->bpc_log2++); vol->fats = FAT_GET_BR_FAT_NUM(boot_rec); 2026678: c4 0f bf 58 ldub [ %fp + -168 ], %g2 <== NOT EXECUTED vol->fat_loc = FAT_GET_BR_RESERVED_SECTORS_NUM(boot_rec); vol->rdir_entrs = FAT_GET_BR_FILES_PER_ROOT_DIR(boot_rec); /* calculate the count of sectors occupied by the root directory */ vol->rdir_secs = ((vol->rdir_entrs * FAT_DIRENTRY_SIZE) + (vol->bps - 1)) / 202667c: c2 14 00 00 lduh [ %l0 ], %g1 <== NOT EXECUTED } for (vol->bpc_log2 = 0, i = vol->bpc; (i & 1) == 0; i >>= 1, vol->bpc_log2++); vol->fats = FAT_GET_BR_FAT_NUM(boot_rec); 2026680: c4 2c 20 09 stb %g2, [ %l0 + 9 ] <== NOT EXECUTED vol->fat_loc = FAT_GET_BR_RESERVED_SECTORS_NUM(boot_rec); 2026684: c6 0f bf 56 ldub [ %fp + -170 ], %g3 <== NOT EXECUTED 2026688: c4 0f bf 57 ldub [ %fp + -169 ], %g2 <== NOT EXECUTED vol->rdir_entrs = FAT_GET_BR_FILES_PER_ROOT_DIR(boot_rec); /* calculate the count of sectors occupied by the root directory */ vol->rdir_secs = ((vol->rdir_entrs * FAT_DIRENTRY_SIZE) + (vol->bps - 1)) / 202668c: 92 10 00 01 mov %g1, %o1 <== NOT EXECUTED for (vol->bpc_log2 = 0, i = vol->bpc; (i & 1) == 0; i >>= 1, vol->bpc_log2++); vol->fats = FAT_GET_BR_FAT_NUM(boot_rec); vol->fat_loc = FAT_GET_BR_RESERVED_SECTORS_NUM(boot_rec); 2026690: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED 2026694: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED 2026698: c4 34 20 14 sth %g2, [ %l0 + 0x14 ] <== NOT EXECUTED vol->rdir_entrs = FAT_GET_BR_FILES_PER_ROOT_DIR(boot_rec); 202669c: c6 0f bf 59 ldub [ %fp + -167 ], %g3 <== NOT EXECUTED 20266a0: c4 0f bf 5a ldub [ %fp + -166 ], %g2 <== NOT EXECUTED /* calculate the count of sectors occupied by the root directory */ vol->rdir_secs = ((vol->rdir_entrs * FAT_DIRENTRY_SIZE) + (vol->bps - 1)) / 20266a4: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED i >>= 1, vol->bpc_log2++); vol->fats = FAT_GET_BR_FAT_NUM(boot_rec); vol->fat_loc = FAT_GET_BR_RESERVED_SECTORS_NUM(boot_rec); vol->rdir_entrs = FAT_GET_BR_FILES_PER_ROOT_DIR(boot_rec); 20266a8: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED 20266ac: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED /* calculate the count of sectors occupied by the root directory */ vol->rdir_secs = ((vol->rdir_entrs * FAT_DIRENTRY_SIZE) + (vol->bps - 1)) / 20266b0: 87 28 a0 10 sll %g2, 0x10, %g3 <== NOT EXECUTED i >>= 1, vol->bpc_log2++); vol->fats = FAT_GET_BR_FAT_NUM(boot_rec); vol->fat_loc = FAT_GET_BR_RESERVED_SECTORS_NUM(boot_rec); vol->rdir_entrs = FAT_GET_BR_FILES_PER_ROOT_DIR(boot_rec); 20266b4: c4 34 20 20 sth %g2, [ %l0 + 0x20 ] <== NOT EXECUTED /* calculate the count of sectors occupied by the root directory */ vol->rdir_secs = ((vol->rdir_entrs * FAT_DIRENTRY_SIZE) + (vol->bps - 1)) / 20266b8: 85 30 e0 0b srl %g3, 0xb, %g2 <== NOT EXECUTED 20266bc: 40 00 d8 39 call 205c7a0 <.div> <== NOT EXECUTED 20266c0: 90 00 40 02 add %g1, %g2, %o0 <== NOT EXECUTED vol->bps; vol->rdir_size = vol->rdir_secs << vol->sec_log2; 20266c4: c2 0c 20 02 ldub [ %l0 + 2 ], %g1 <== NOT EXECUTED vol->fat_loc = FAT_GET_BR_RESERVED_SECTORS_NUM(boot_rec); vol->rdir_entrs = FAT_GET_BR_FILES_PER_ROOT_DIR(boot_rec); /* calculate the count of sectors occupied by the root directory */ vol->rdir_secs = ((vol->rdir_entrs * FAT_DIRENTRY_SIZE) + (vol->bps - 1)) / 20266c8: d0 24 20 24 st %o0, [ %l0 + 0x24 ] <== NOT EXECUTED vol->bps; vol->rdir_size = vol->rdir_secs << vol->sec_log2; 20266cc: 91 2a 00 01 sll %o0, %g1, %o0 <== NOT EXECUTED 20266d0: d0 24 20 28 st %o0, [ %l0 + 0x28 ] <== NOT EXECUTED if ( (FAT_GET_BR_SECTORS_PER_FAT(boot_rec)) != 0) 20266d4: c2 0f bf 5f ldub [ %fp + -161 ], %g1 <== NOT EXECUTED 20266d8: c4 0f bf 5e ldub [ %fp + -162 ], %g2 <== NOT EXECUTED 20266dc: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED 20266e0: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED 20266e4: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED 20266e8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20266ec: 02 80 00 04 be 20266fc <== NOT EXECUTED 20266f0: c8 0f bf 6d ldub [ %fp + -147 ], %g4 <== NOT EXECUTED vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT(boot_rec); 20266f4: 10 80 00 0b b 2026720 <== NOT EXECUTED 20266f8: 83 30 60 10 srl %g1, 0x10, %g1 <== NOT EXECUTED else vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT32(boot_rec); 20266fc: c2 0f bf 6e ldub [ %fp + -146 ], %g1 <== NOT EXECUTED 2026700: c6 0f bf 6c ldub [ %fp + -148 ], %g3 <== NOT EXECUTED 2026704: c4 0f bf 6f ldub [ %fp + -145 ], %g2 <== NOT EXECUTED 2026708: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED 202670c: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED 2026710: 85 28 a0 18 sll %g2, 0x18, %g2 <== NOT EXECUTED 2026714: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED 2026718: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED 202671c: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED 2026720: c2 24 20 18 st %g1, [ %l0 + 0x18 ] <== NOT EXECUTED vol->data_fsec = vol->fat_loc + vol->fats * vol->fat_length + 2026724: d0 0c 20 09 ldub [ %l0 + 9 ], %o0 <== NOT EXECUTED 2026728: d2 04 20 18 ld [ %l0 + 0x18 ], %o1 <== NOT EXECUTED 202672c: e4 14 20 14 lduh [ %l0 + 0x14 ], %l2 <== NOT EXECUTED 2026730: 7f ff 70 b2 call 20029f8 <.umul> <== NOT EXECUTED 2026734: e6 04 20 24 ld [ %l0 + 0x24 ], %l3 <== NOT EXECUTED 2026738: a6 04 80 13 add %l2, %l3, %l3 <== NOT EXECUTED vol->rdir_secs; /* for FAT12/16 root dir starts at(sector) */ vol->rdir_loc = vol->fat_loc + vol->fats * vol->fat_length; 202673c: a4 02 00 12 add %o0, %l2, %l2 <== NOT EXECUTED if ( (FAT_GET_BR_SECTORS_PER_FAT(boot_rec)) != 0) vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT(boot_rec); else vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT32(boot_rec); vol->data_fsec = vol->fat_loc + vol->fats * vol->fat_length + 2026740: a6 04 c0 08 add %l3, %o0, %l3 <== NOT EXECUTED vol->rdir_secs; /* for FAT12/16 root dir starts at(sector) */ vol->rdir_loc = vol->fat_loc + vol->fats * vol->fat_length; 2026744: e4 24 20 1c st %l2, [ %l0 + 0x1c ] <== NOT EXECUTED if ( (FAT_GET_BR_SECTORS_PER_FAT(boot_rec)) != 0) vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT(boot_rec); else vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT32(boot_rec); vol->data_fsec = vol->fat_loc + vol->fats * vol->fat_length + 2026748: e6 24 20 30 st %l3, [ %l0 + 0x30 ] <== NOT EXECUTED vol->rdir_secs; /* for FAT12/16 root dir starts at(sector) */ vol->rdir_loc = vol->fat_loc + vol->fats * vol->fat_length; if ( (FAT_GET_BR_TOTAL_SECTORS_NUM16(boot_rec)) != 0) 202674c: c2 0f bf 5c ldub [ %fp + -164 ], %g1 <== NOT EXECUTED 2026750: c4 0f bf 5b ldub [ %fp + -165 ], %g2 <== NOT EXECUTED 2026754: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED 2026758: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED 202675c: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED 2026760: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026764: 02 80 00 04 be 2026774 <== NOT EXECUTED 2026768: c8 0f bf 69 ldub [ %fp + -151 ], %g4 <== NOT EXECUTED vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM16(boot_rec); 202676c: 10 80 00 0b b 2026798 <== NOT EXECUTED 2026770: 83 30 60 10 srl %g1, 0x10, %g1 <== NOT EXECUTED else vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM32(boot_rec); 2026774: c2 0f bf 6a ldub [ %fp + -150 ], %g1 <== NOT EXECUTED 2026778: c6 0f bf 68 ldub [ %fp + -152 ], %g3 <== NOT EXECUTED 202677c: c4 0f bf 6b ldub [ %fp + -149 ], %g2 <== NOT EXECUTED 2026780: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED 2026784: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED 2026788: 85 28 a0 18 sll %g2, 0x18, %g2 <== NOT EXECUTED 202678c: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED 2026790: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED 2026794: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED 2026798: c2 24 20 2c st %g1, [ %l0 + 0x2c ] <== NOT EXECUTED data_secs = vol->tot_secs - vol->data_fsec; vol->data_cls = data_secs / vol->spc; 202679c: d2 0c 20 04 ldub [ %l0 + 4 ], %o1 <== NOT EXECUTED 20267a0: c2 04 20 30 ld [ %l0 + 0x30 ], %g1 <== NOT EXECUTED 20267a4: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED 20267a8: 40 00 d7 fc call 205c798 <.udiv> <== NOT EXECUTED 20267ac: 90 22 00 01 sub %o0, %g1, %o0 <== NOT EXECUTED /* determine FAT type at least */ if ( vol->data_cls < FAT_FAT12_MAX_CLN) 20267b0: 80 a2 2f f4 cmp %o0, 0xff4 <== NOT EXECUTED 20267b4: 18 80 00 09 bgu 20267d8 <== NOT EXECUTED 20267b8: d0 24 20 34 st %o0, [ %l0 + 0x34 ] <== NOT EXECUTED { vol->type = FAT_FAT12; 20267bc: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 20267c0: c2 2c 20 0a stb %g1, [ %l0 + 0xa ] <== NOT EXECUTED vol->mask = FAT_FAT12_MASK; 20267c4: 82 10 2f ff mov 0xfff, %g1 <== NOT EXECUTED 20267c8: c2 24 20 0c st %g1, [ %l0 + 0xc ] <== NOT EXECUTED vol->eoc_val = FAT_FAT12_EOC; 20267cc: 82 10 2f f8 mov 0xff8, %g1 <== NOT EXECUTED 20267d0: 10 80 00 11 b 2026814 <== NOT EXECUTED 20267d4: c2 24 20 10 st %g1, [ %l0 + 0x10 ] <== NOT EXECUTED } else { if ( vol->data_cls < FAT_FAT16_MAX_CLN) 20267d8: 03 00 00 3f sethi %hi(0xfc00), %g1 <== NOT EXECUTED 20267dc: 84 10 63 f4 or %g1, 0x3f4, %g2 ! fff4 <== NOT EXECUTED 20267e0: 80 a2 00 02 cmp %o0, %g2 <== NOT EXECUTED 20267e4: 38 80 00 06 bgu,a 20267fc <== NOT EXECUTED 20267e8: 03 03 ff ff sethi %hi(0xffffc00), %g1 <== NOT EXECUTED { vol->type = FAT_FAT16; vol->mask = FAT_FAT16_MASK; vol->eoc_val = FAT_FAT16_EOC; 20267ec: 84 10 63 f8 or %g1, 0x3f8, %g2 ! ffffff8 <== NOT EXECUTED 20267f0: c4 24 20 10 st %g2, [ %l0 + 0x10 ] <== NOT EXECUTED } else { if ( vol->data_cls < FAT_FAT16_MAX_CLN) { vol->type = FAT_FAT16; 20267f4: 10 80 00 05 b 2026808 <== NOT EXECUTED 20267f8: 84 10 20 02 mov 2, %g2 <== NOT EXECUTED } else { vol->type = FAT_FAT32; vol->mask = FAT_FAT32_MASK; vol->eoc_val = FAT_FAT32_EOC; 20267fc: 84 10 63 f8 or %g1, 0x3f8, %g2 <== NOT EXECUTED 2026800: c4 24 20 10 st %g2, [ %l0 + 0x10 ] <== NOT EXECUTED vol->mask = FAT_FAT16_MASK; vol->eoc_val = FAT_FAT16_EOC; } else { vol->type = FAT_FAT32; 2026804: 84 10 20 04 mov 4, %g2 <== NOT EXECUTED vol->mask = FAT_FAT32_MASK; 2026808: 82 10 63 ff or %g1, 0x3ff, %g1 <== NOT EXECUTED vol->mask = FAT_FAT16_MASK; vol->eoc_val = FAT_FAT16_EOC; } else { vol->type = FAT_FAT32; 202680c: c4 2c 20 0a stb %g2, [ %l0 + 0xa ] <== NOT EXECUTED vol->mask = FAT_FAT32_MASK; 2026810: c2 24 20 0c st %g1, [ %l0 + 0xc ] <== NOT EXECUTED fat_init_volume_info(rtems_filesystem_mount_table_entry_t *mt_entry) { rtems_status_code sc = RTEMS_SUCCESSFUL; int rc = RC_OK; fat_fs_info_t *fs_info = mt_entry->fs_info; register fat_vol_t *vol = &fs_info->vol; 2026814: c2 0c 20 0a ldub [ %l0 + 0xa ], %g1 <== NOT EXECUTED 2026818: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED 202681c: 12 80 00 79 bne 2026a00 <== NOT EXECUTED 2026820: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED } } if (vol->type == FAT_FAT32) { vol->rdir_cl = FAT_GET_BR_FAT32_ROOT_CLUSTER(boot_rec); 2026824: c8 0f bf 75 ldub [ %fp + -139 ], %g4 <== NOT EXECUTED 2026828: c2 0f bf 76 ldub [ %fp + -138 ], %g1 <== NOT EXECUTED 202682c: c6 0f bf 74 ldub [ %fp + -140 ], %g3 <== NOT EXECUTED 2026830: c4 0f bf 77 ldub [ %fp + -137 ], %g2 <== NOT EXECUTED 2026834: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED 2026838: 85 28 a0 18 sll %g2, 0x18, %g2 <== NOT EXECUTED 202683c: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED 2026840: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED 2026844: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED 2026848: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED 202684c: c2 24 20 38 st %g1, [ %l0 + 0x38 ] <== NOT EXECUTED vol->mirror = FAT_GET_BR_EXT_FLAGS(boot_rec) & FAT_BR_EXT_FLAGS_MIRROR; 2026850: c2 0f bf 71 ldub [ %fp + -143 ], %g1 <== NOT EXECUTED 2026854: c4 0f bf 70 ldub [ %fp + -144 ], %g2 <== NOT EXECUTED 2026858: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED 202685c: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED 2026860: 82 08 7f 80 and %g1, -128, %g1 <== NOT EXECUTED if (vol->mirror) 2026864: 80 88 60 80 btst 0x80, %g1 <== NOT EXECUTED 2026868: 02 80 00 06 be 2026880 <== NOT EXECUTED 202686c: c2 2c 20 48 stb %g1, [ %l0 + 0x48 ] <== NOT EXECUTED vol->afat = FAT_GET_BR_EXT_FLAGS(boot_rec) & FAT_BR_EXT_FLAGS_FAT_NUM; 2026870: c2 0f bf 70 ldub [ %fp + -144 ], %g1 <== NOT EXECUTED 2026874: 82 08 60 0f and %g1, 0xf, %g1 <== NOT EXECUTED 2026878: 10 80 00 03 b 2026884 <== NOT EXECUTED 202687c: c2 2c 20 50 stb %g1, [ %l0 + 0x50 ] <== NOT EXECUTED else vol->afat = 0; 2026880: c0 2c 20 50 clrb [ %l0 + 0x50 ] <== NOT EXECUTED vol->info_sec = FAT_GET_BR_FAT32_FS_INFO_SECTOR(boot_rec); 2026884: d2 0f bf 79 ldub [ %fp + -135 ], %o1 <== NOT EXECUTED 2026888: c2 0f bf 78 ldub [ %fp + -136 ], %g1 <== NOT EXECUTED 202688c: 93 2a 60 08 sll %o1, 8, %o1 <== NOT EXECUTED 2026890: 92 12 40 01 or %o1, %g1, %o1 <== NOT EXECUTED 2026894: d2 34 20 3c sth %o1, [ %l0 + 0x3c ] <== NOT EXECUTED if( vol->info_sec == 0 ) 2026898: 93 2a 60 10 sll %o1, 0x10, %o1 <== NOT EXECUTED 202689c: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED 20268a0: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED 20268a4: 32 80 00 05 bne,a 20268b8 <== NOT EXECUTED 20268a8: a4 07 bf f0 add %fp, -16, %l2 <== NOT EXECUTED { rtems_disk_release(vol->dd); 20268ac: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); 20268b0: 10 80 00 1f b 202692c <== NOT EXECUTED 20268b4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED } else { ret = _fat_block_read(mt_entry, vol->info_sec , 0, 20268b8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 20268bc: 94 10 20 00 clr %o2 <== NOT EXECUTED 20268c0: 96 10 20 04 mov 4, %o3 <== NOT EXECUTED 20268c4: 7f ff fe d8 call 2026424 <_fat_block_read> <== NOT EXECUTED 20268c8: 98 10 00 12 mov %l2, %o4 <== NOT EXECUTED FAT_FSI_LEADSIG_SIZE, fs_info_sector); if ( ret < 0 ) 20268cc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20268d0: 16 80 00 05 bge 20268e4 <== NOT EXECUTED 20268d4: c2 0f bf f3 ldub [ %fp + -13 ], %g1 <== NOT EXECUTED { rtems_disk_release(vol->dd); 20268d8: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED 20268dc: 10 80 00 45 b 20269f0 <== NOT EXECUTED 20268e0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return -1; } if (FAT_GET_FSINFO_LEAD_SIGNATURE(fs_info_sector) != 20268e4: c8 0f bf f1 ldub [ %fp + -15 ], %g4 <== NOT EXECUTED 20268e8: c4 0f bf f2 ldub [ %fp + -14 ], %g2 <== NOT EXECUTED 20268ec: c6 0f bf f0 ldub [ %fp + -16 ], %g3 <== NOT EXECUTED 20268f0: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED 20268f4: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED 20268f8: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED 20268fc: 84 11 00 02 or %g4, %g2, %g2 <== NOT EXECUTED 2026900: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED 2026904: 84 10 80 01 or %g2, %g1, %g2 <== NOT EXECUTED 2026908: 03 10 58 54 sethi %hi(0x41615000), %g1 <== NOT EXECUTED 202690c: 82 10 62 52 or %g1, 0x252, %g1 ! 41615252 <== NOT EXECUTED 2026910: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2026914: 22 80 00 0c be,a 2026944 <== NOT EXECUTED 2026918: d2 14 20 3c lduh [ %l0 + 0x3c ], %o1 <== NOT EXECUTED int _fat_block_release( rtems_filesystem_mount_table_entry_t *mt_entry) { fat_fs_info_t *fs_info = mt_entry->fs_info; return fat_buf_release(fs_info); 202691c: d0 04 60 34 ld [ %l1 + 0x34 ], %o0 <== NOT EXECUTED 2026920: 7f ff fc fa call 2025d08 <== NOT EXECUTED 2026924: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED if (FAT_GET_FSINFO_LEAD_SIGNATURE(fs_info_sector) != FAT_FSINFO_LEAD_SIGNATURE_VALUE) { _fat_block_release(mt_entry); rtems_disk_release(vol->dd); 2026928: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED 202692c: 7f ff 81 72 call 2006ef4 <== NOT EXECUTED 2026930: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); 2026934: 40 00 76 58 call 2044294 <__errno> <== NOT EXECUTED 2026938: 01 00 00 00 nop <== NOT EXECUTED 202693c: 10 80 00 80 b 2026b3c <== NOT EXECUTED 2026940: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED } else { ret = _fat_block_read(mt_entry, vol->info_sec , FAT_FSI_INFO, 2026944: 98 10 00 12 mov %l2, %o4 <== NOT EXECUTED 2026948: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 202694c: 94 10 21 e4 mov 0x1e4, %o2 <== NOT EXECUTED 2026950: 7f ff fe b5 call 2026424 <_fat_block_read> <== NOT EXECUTED 2026954: 96 10 20 0c mov 0xc, %o3 <== NOT EXECUTED FAT_USEFUL_INFO_SIZE, fs_info_sector); if ( ret < 0 ) 2026958: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202695c: 16 80 00 05 bge 2026970 <== NOT EXECUTED 2026960: c6 0f bf f4 ldub [ %fp + -12 ], %g3 <== NOT EXECUTED int _fat_block_release( rtems_filesystem_mount_table_entry_t *mt_entry) { fat_fs_info_t *fs_info = mt_entry->fs_info; return fat_buf_release(fs_info); 2026964: d0 04 60 34 ld [ %l1 + 0x34 ], %o0 <== NOT EXECUTED ret = _fat_block_read(mt_entry, vol->info_sec , FAT_FSI_INFO, FAT_USEFUL_INFO_SIZE, fs_info_sector); if ( ret < 0 ) { _fat_block_release(mt_entry); rtems_disk_release(vol->dd); 2026968: 10 80 00 1f b 20269e4 <== NOT EXECUTED 202696c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return -1; } vol->free_cls = FAT_GET_FSINFO_FREE_CLUSTER_COUNT(fs_info_sector); 2026970: c8 0f bf f5 ldub [ %fp + -11 ], %g4 <== NOT EXECUTED 2026974: c2 0f bf f6 ldub [ %fp + -10 ], %g1 <== NOT EXECUTED 2026978: c4 0f bf f7 ldub [ %fp + -9 ], %g2 <== NOT EXECUTED 202697c: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED 2026980: 85 28 a0 18 sll %g2, 0x18, %g2 <== NOT EXECUTED 2026984: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED 2026988: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED 202698c: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED 2026990: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED 2026994: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED vol->next_cl = FAT_GET_FSINFO_NEXT_FREE_CLUSTER(fs_info_sector); 2026998: c8 0f bf f9 ldub [ %fp + -7 ], %g4 <== NOT EXECUTED 202699c: c2 0f bf fa ldub [ %fp + -6 ], %g1 <== NOT EXECUTED 20269a0: c6 0f bf f8 ldub [ %fp + -8 ], %g3 <== NOT EXECUTED 20269a4: c4 0f bf fb ldub [ %fp + -5 ], %g2 <== NOT EXECUTED 20269a8: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED 20269ac: 85 28 a0 18 sll %g2, 0x18, %g2 <== NOT EXECUTED 20269b0: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED 20269b4: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED 20269b8: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED 20269bc: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED rc = fat_fat32_update_fsinfo_sector(mt_entry, 0xFFFFFFFF, 20269c0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED rtems_disk_release(vol->dd); return -1; } vol->free_cls = FAT_GET_FSINFO_FREE_CLUSTER_COUNT(fs_info_sector); vol->next_cl = FAT_GET_FSINFO_NEXT_FREE_CLUSTER(fs_info_sector); 20269c4: c2 24 20 44 st %g1, [ %l0 + 0x44 ] <== NOT EXECUTED rc = fat_fat32_update_fsinfo_sector(mt_entry, 0xFFFFFFFF, 20269c8: 92 10 3f ff mov -1, %o1 <== NOT EXECUTED 20269cc: 7f ff fd db call 2026138 <== NOT EXECUTED 20269d0: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED 0xFFFFFFFF); if ( rc != RC_OK ) 20269d4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 20269d8: 02 80 00 0f be 2026a14 <== NOT EXECUTED 20269dc: 01 00 00 00 nop <== NOT EXECUTED int _fat_block_release( rtems_filesystem_mount_table_entry_t *mt_entry) { fat_fs_info_t *fs_info = mt_entry->fs_info; return fat_buf_release(fs_info); 20269e0: d0 04 60 34 ld [ %l1 + 0x34 ], %o0 <== NOT EXECUTED 20269e4: 7f ff fc c9 call 2025d08 <== NOT EXECUTED 20269e8: 01 00 00 00 nop <== NOT EXECUTED rc = fat_fat32_update_fsinfo_sector(mt_entry, 0xFFFFFFFF, 0xFFFFFFFF); if ( rc != RC_OK ) { _fat_block_release(mt_entry); rtems_disk_release(vol->dd); 20269ec: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED 20269f0: 7f ff 81 41 call 2006ef4 <== NOT EXECUTED 20269f4: 01 00 00 00 nop <== NOT EXECUTED return rc; 20269f8: 81 c7 e0 08 ret <== NOT EXECUTED 20269fc: 81 e8 00 00 restore <== NOT EXECUTED } } } else { vol->rdir_cl = 0; 2026a00: c0 24 20 38 clr [ %l0 + 0x38 ] <== NOT EXECUTED vol->mirror = 0; 2026a04: c0 2c 20 48 clrb [ %l0 + 0x48 ] <== NOT EXECUTED vol->afat = 0; 2026a08: c0 2c 20 50 clrb [ %l0 + 0x50 ] <== NOT EXECUTED vol->free_cls = 0xFFFFFFFF; vol->next_cl = 0xFFFFFFFF; 2026a0c: c2 24 20 44 st %g1, [ %l0 + 0x44 ] <== NOT EXECUTED else { vol->rdir_cl = 0; vol->mirror = 0; vol->afat = 0; vol->free_cls = 0xFFFFFFFF; 2026a10: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED int _fat_block_release( rtems_filesystem_mount_table_entry_t *mt_entry) { fat_fs_info_t *fs_info = mt_entry->fs_info; return fat_buf_release(fs_info); 2026a14: 7f ff fc bd call 2025d08 <== NOT EXECUTED 2026a18: d0 04 60 34 ld [ %l1 + 0x34 ], %o0 <== NOT EXECUTED vol->next_cl = 0xFFFFFFFF; } _fat_block_release(mt_entry); vol->afat_loc = vol->fat_loc + vol->fat_length * vol->afat; 2026a1c: d2 04 20 18 ld [ %l0 + 0x18 ], %o1 <== NOT EXECUTED 2026a20: 7f ff 6f f6 call 20029f8 <.umul> <== NOT EXECUTED 2026a24: d0 0c 20 50 ldub [ %l0 + 0x50 ], %o0 <== NOT EXECUTED 2026a28: c2 14 20 14 lduh [ %l0 + 0x14 ], %g1 <== NOT EXECUTED /* set up collection of fat-files fd */ fs_info->vhash = calloc(FAT_HASH_SIZE, sizeof(rtems_chain_control)); 2026a2c: 92 10 20 0c mov 0xc, %o1 <== NOT EXECUTED vol->next_cl = 0xFFFFFFFF; } _fat_block_release(mt_entry); vol->afat_loc = vol->fat_loc + vol->fat_length * vol->afat; 2026a30: 82 02 00 01 add %o0, %g1, %g1 <== NOT EXECUTED /* set up collection of fat-files fd */ fs_info->vhash = calloc(FAT_HASH_SIZE, sizeof(rtems_chain_control)); 2026a34: 90 10 20 02 mov 2, %o0 <== NOT EXECUTED 2026a38: 7f ff 84 7b call 2007c24 <== NOT EXECUTED 2026a3c: c2 24 20 4c st %g1, [ %l0 + 0x4c ] <== NOT EXECUTED if ( fs_info->vhash == NULL ) 2026a40: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2026a44: 02 80 00 13 be 2026a90 <== NOT EXECUTED 2026a48: d0 24 20 68 st %o0, [ %l0 + 0x68 ] <== NOT EXECUTED rtems_disk_release(vol->dd); rtems_set_errno_and_return_minus_one( ENOMEM ); } for (i = 0; i < FAT_HASH_SIZE; i++) rtems_chain_initialize_empty(fs_info->vhash + i); 2026a4c: 82 02 20 0c add %o0, 0xc, %g1 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 2026a50: c0 22 20 04 clr [ %o0 + 4 ] <== NOT EXECUTED the_chain->last = _Chain_Head(the_chain); 2026a54: d0 22 20 08 st %o0, [ %o0 + 8 ] <== NOT EXECUTED 2026a58: c2 20 60 08 st %g1, [ %g1 + 8 ] <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 2026a5c: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 2026a60: 82 02 20 04 add %o0, 4, %g1 <== NOT EXECUTED 2026a64: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2026a68: 82 02 20 10 add %o0, 0x10, %g1 <== NOT EXECUTED fs_info->rhash = calloc(FAT_HASH_SIZE, sizeof(rtems_chain_control)); 2026a6c: 92 10 20 0c mov 0xc, %o1 <== NOT EXECUTED 2026a70: c2 22 20 0c st %g1, [ %o0 + 0xc ] <== NOT EXECUTED 2026a74: 7f ff 84 6c call 2007c24 <== NOT EXECUTED 2026a78: 90 10 20 02 mov 2, %o0 <== NOT EXECUTED if ( fs_info->rhash == NULL ) 2026a7c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2026a80: 12 80 00 08 bne 2026aa0 <== NOT EXECUTED 2026a84: d0 24 20 6c st %o0, [ %l0 + 0x6c ] <== NOT EXECUTED { rtems_disk_release(vol->dd); 2026a88: 10 80 00 1f b 2026b04 <== NOT EXECUTED 2026a8c: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED /* set up collection of fat-files fd */ fs_info->vhash = calloc(FAT_HASH_SIZE, sizeof(rtems_chain_control)); if ( fs_info->vhash == NULL ) { rtems_disk_release(vol->dd); 2026a90: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED 2026a94: 7f ff 81 18 call 2006ef4 <== NOT EXECUTED 2026a98: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2026a9c: 30 80 00 25 b,a 2026b30 <== NOT EXECUTED the_chain->permanent_null = NULL; 2026aa0: c0 22 20 04 clr [ %o0 + 4 ] <== NOT EXECUTED the_chain->last = _Chain_Head(the_chain); 2026aa4: d0 22 20 08 st %o0, [ %o0 + 8 ] <== NOT EXECUTED rtems_disk_release(vol->dd); free(fs_info->vhash); rtems_set_errno_and_return_minus_one( ENOMEM ); } for (i = 0; i < FAT_HASH_SIZE; i++) rtems_chain_initialize_empty(fs_info->rhash + i); 2026aa8: 82 02 20 0c add %o0, 0xc, %g1 <== NOT EXECUTED 2026aac: c2 20 60 08 st %g1, [ %g1 + 8 ] <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 2026ab0: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 2026ab4: 82 02 20 04 add %o0, 4, %g1 <== NOT EXECUTED 2026ab8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2026abc: 82 02 20 10 add %o0, 0x10, %g1 <== NOT EXECUTED fs_info->uino_pool_size = FAT_UINO_POOL_INIT_SIZE; fs_info->uino_base = (vol->tot_secs << vol->sec_mul) << 4; 2026ac0: c4 04 20 2c ld [ %l0 + 0x2c ], %g2 <== NOT EXECUTED 2026ac4: c2 22 20 0c st %g1, [ %o0 + 0xc ] <== NOT EXECUTED 2026ac8: c2 0c 20 03 ldub [ %l0 + 3 ], %g1 <== NOT EXECUTED fs_info->index = 0; 2026acc: c0 24 20 74 clr [ %l0 + 0x74 ] <== NOT EXECUTED } for (i = 0; i < FAT_HASH_SIZE; i++) rtems_chain_initialize_empty(fs_info->rhash + i); fs_info->uino_pool_size = FAT_UINO_POOL_INIT_SIZE; fs_info->uino_base = (vol->tot_secs << vol->sec_mul) << 4; 2026ad0: 83 28 80 01 sll %g2, %g1, %g1 <== NOT EXECUTED 2026ad4: 83 28 60 04 sll %g1, 4, %g1 <== NOT EXECUTED 2026ad8: c2 24 20 7c st %g1, [ %l0 + 0x7c ] <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOMEM ); } for (i = 0; i < FAT_HASH_SIZE; i++) rtems_chain_initialize_empty(fs_info->rhash + i); fs_info->uino_pool_size = FAT_UINO_POOL_INIT_SIZE; 2026adc: 82 10 21 00 mov 0x100, %g1 <== NOT EXECUTED fs_info->uino_base = (vol->tot_secs << vol->sec_mul) << 4; fs_info->index = 0; fs_info->uino = (char *)calloc(fs_info->uino_pool_size, sizeof(char)); 2026ae0: 90 10 21 00 mov 0x100, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOMEM ); } for (i = 0; i < FAT_HASH_SIZE; i++) rtems_chain_initialize_empty(fs_info->rhash + i); fs_info->uino_pool_size = FAT_UINO_POOL_INIT_SIZE; 2026ae4: c2 24 20 78 st %g1, [ %l0 + 0x78 ] <== NOT EXECUTED fs_info->uino_base = (vol->tot_secs << vol->sec_mul) << 4; fs_info->index = 0; fs_info->uino = (char *)calloc(fs_info->uino_pool_size, sizeof(char)); 2026ae8: 7f ff 84 4f call 2007c24 <== NOT EXECUTED 2026aec: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED if ( fs_info->uino == NULL ) 2026af0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2026af4: 12 80 00 15 bne 2026b48 <== NOT EXECUTED 2026af8: d0 24 20 70 st %o0, [ %l0 + 0x70 ] <== NOT EXECUTED { rtems_disk_release(vol->dd); 2026afc: 10 80 00 06 b 2026b14 <== NOT EXECUTED 2026b00: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED rtems_chain_initialize_empty(fs_info->vhash + i); fs_info->rhash = calloc(FAT_HASH_SIZE, sizeof(rtems_chain_control)); if ( fs_info->rhash == NULL ) { rtems_disk_release(vol->dd); 2026b04: 7f ff 80 fc call 2006ef4 <== NOT EXECUTED 2026b08: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED free(fs_info->vhash); 2026b0c: 10 80 00 07 b 2026b28 <== NOT EXECUTED 2026b10: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED fs_info->uino_base = (vol->tot_secs << vol->sec_mul) << 4; fs_info->index = 0; fs_info->uino = (char *)calloc(fs_info->uino_pool_size, sizeof(char)); if ( fs_info->uino == NULL ) { rtems_disk_release(vol->dd); 2026b14: 7f ff 80 f8 call 2006ef4 <== NOT EXECUTED 2026b18: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED free(fs_info->vhash); 2026b1c: 7f ff 85 d1 call 2008260 <== NOT EXECUTED 2026b20: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED free(fs_info->rhash); 2026b24: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED 2026b28: 7f ff 85 ce call 2008260 <== NOT EXECUTED 2026b2c: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOMEM ); 2026b30: 40 00 75 d9 call 2044294 <__errno> <== NOT EXECUTED 2026b34: 01 00 00 00 nop <== NOT EXECUTED 2026b38: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 2026b3c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2026b40: 81 c7 e0 08 ret <== NOT EXECUTED 2026b44: 81 e8 00 00 restore <== NOT EXECUTED } fs_info->sec_buf = (uint8_t *)calloc(vol->bps, sizeof(uint8_t)); 2026b48: d0 14 00 00 lduh [ %l0 ], %o0 <== NOT EXECUTED 2026b4c: 7f ff 84 36 call 2007c24 <== NOT EXECUTED 2026b50: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 2026b54: d0 24 20 8c st %o0, [ %l0 + 0x8c ] <== NOT EXECUTED if (fs_info->sec_buf == NULL) 2026b58: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2026b5c: 12 bf ff a7 bne 20269f8 <== NOT EXECUTED 2026b60: b0 10 20 00 clr %i0 <== NOT EXECUTED { rtems_disk_release(vol->dd); 2026b64: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED 2026b68: 7f ff 80 e3 call 2006ef4 <== NOT EXECUTED 2026b6c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED free(fs_info->vhash); 2026b70: 7f ff 85 bc call 2008260 <== NOT EXECUTED 2026b74: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED free(fs_info->rhash); 2026b78: 7f ff 85 ba call 2008260 <== NOT EXECUTED 2026b7c: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED free(fs_info->uino); 2026b80: 7f ff 85 b8 call 2008260 <== NOT EXECUTED 2026b84: d0 04 20 70 ld [ %l0 + 0x70 ], %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOMEM ); 2026b88: 40 00 75 c3 call 2044294 <__errno> <== NOT EXECUTED 2026b8c: 01 00 00 00 nop <== NOT EXECUTED 2026b90: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 2026b94: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED } return RC_OK; } 2026b98: 81 c7 e0 08 ret <== NOT EXECUTED 2026b9c: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02025c14 : inline bool fat_ino_is_unique( rtems_filesystem_mount_table_entry_t *mt_entry, uint32_t ino ) { 2025c14: c2 02 20 34 ld [ %o0 + 0x34 ], %g1 <== NOT EXECUTED 2025c18: c2 00 60 7c ld [ %g1 + 0x7c ], %g1 <== NOT EXECUTED 2025c1c: 80 a2 40 01 cmp %o1, %g1 <== NOT EXECUTED fat_fs_info_t *fs_info = mt_entry->fs_info; return (ino >= fs_info->uino_base); } 2025c20: 81 c3 e0 08 retl <== NOT EXECUTED 2025c24: 90 60 3f ff subx %g0, -1, %o0 <== NOT EXECUTED =============================================================================== 0203f960 : uint32_t *chain, uint32_t count, uint32_t *cls_added, uint32_t *last_cl ) { 203f960: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED int rc = RC_OK; fat_fs_info_t *fs_info = mt_entry->fs_info; 203f964: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED uint32_t *chain, uint32_t count, uint32_t *cls_added, uint32_t *last_cl ) { 203f968: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED int rc = RC_OK; fat_fs_info_t *fs_info = mt_entry->fs_info; uint32_t cl4find = 2; uint32_t next_cln = 0; uint32_t save_cln = 0; uint32_t data_cls_val = fs_info->vol.data_cls + 2; 203f96c: ea 04 20 34 ld [ %l0 + 0x34 ], %l5 <== NOT EXECUTED ) { int rc = RC_OK; fat_fs_info_t *fs_info = mt_entry->fs_info; uint32_t cl4find = 2; uint32_t next_cln = 0; 203f970: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED uint32_t save_cln = 0; uint32_t data_cls_val = fs_info->vol.data_cls + 2; uint32_t i = 2; *cls_added = 0; 203f974: c0 26 c0 00 clr [ %i3 ] <== NOT EXECUTED int rc = RC_OK; fat_fs_info_t *fs_info = mt_entry->fs_info; uint32_t cl4find = 2; uint32_t next_cln = 0; uint32_t save_cln = 0; uint32_t data_cls_val = fs_info->vol.data_cls + 2; 203f978: aa 05 60 02 add %l5, 2, %l5 <== NOT EXECUTED uint32_t i = 2; *cls_added = 0; if (count == 0) 203f97c: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 203f980: 02 80 00 24 be 203fa10 <== NOT EXECUTED 203f984: b0 10 20 00 clr %i0 <== NOT EXECUTED return rc; if (fs_info->vol.next_cl != FAT_UNDEFINED_VALUE) 203f988: e4 04 20 44 ld [ %l0 + 0x44 ], %l2 <== NOT EXECUTED 203f98c: 80 a4 bf ff cmp %l2, -1 <== NOT EXECUTED 203f990: 22 80 00 02 be,a 203f998 <== NOT EXECUTED 203f994: a4 10 20 02 mov 2, %l2 <== NOT EXECUTED 203f998: a8 10 20 02 mov 2, %l4 <== NOT EXECUTED 203f99c: a6 10 20 00 clr %l3 <== NOT EXECUTED * starting at cluster 2, so the maximum valid cluster number is * (fs_info->vol.data_cls + 1) */ while (i < data_cls_val) { rc = fat_get_fat_cluster(mt_entry, cl4find, &next_cln); 203f9a0: 10 80 00 50 b 203fae0 <== NOT EXECUTED 203f9a4: ac 07 bf fc add %fp, -4, %l6 <== NOT EXECUTED 203f9a8: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED 203f9ac: 7f ff ff 3c call 203f69c <== NOT EXECUTED 203f9b0: 94 10 00 16 mov %l6, %o2 <== NOT EXECUTED if ( rc != RC_OK ) 203f9b4: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 203f9b8: 22 80 00 08 be,a 203f9d8 <== NOT EXECUTED 203f9bc: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED { if (*cls_added != 0) 203f9c0: c4 06 c0 00 ld [ %i3 ], %g2 <== NOT EXECUTED 203f9c4: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 203f9c8: 02 80 00 12 be 203fa10 <== NOT EXECUTED 203f9cc: b0 10 00 01 mov %g1, %i0 <== NOT EXECUTED /* set EOC value to new allocated cluster */ rc = fat_set_fat_cluster(mt_entry, cl4find, FAT_GENFAT_EOC); if ( rc != RC_OK ) { /* cleanup activity */ fat_free_fat_clusters_chain(mt_entry, (*chain)); 203f9d0: 10 80 00 19 b 203fa34 <== NOT EXECUTED 203f9d4: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED if (*cls_added != 0) fat_free_fat_clusters_chain(mt_entry, (*chain)); return rc; } if (next_cln == FAT_GENFAT_FREE) 203f9d8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 203f9dc: 32 80 00 3d bne,a 203fad0 <== NOT EXECUTED 203f9e0: a4 04 a0 01 inc %l2 <== NOT EXECUTED /* * We are enforced to process allocation of the first free cluster * by separate 'if' statement because otherwise undo function * wouldn't work properly */ if (*cls_added == 0) 203f9e4: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED 203f9e8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 203f9ec: 12 80 00 0b bne 203fa18 <== NOT EXECUTED 203f9f0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED { *chain = cl4find; 203f9f4: e4 26 40 00 st %l2, [ %i1 ] <== NOT EXECUTED rc = fat_set_fat_cluster(mt_entry, cl4find, FAT_GENFAT_EOC); 203f9f8: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED 203f9fc: 7f ff fe 7b call 203f3e8 <== NOT EXECUTED 203fa00: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED if ( rc != RC_OK ) 203fa04: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 203fa08: 22 80 00 1e be,a 203fa80 <== NOT EXECUTED 203fa0c: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED 203fa10: 81 c7 e0 08 ret <== NOT EXECUTED 203fa14: 81 e8 00 00 restore <== NOT EXECUTED } } else { /* set EOC value to new allocated cluster */ rc = fat_set_fat_cluster(mt_entry, cl4find, FAT_GENFAT_EOC); 203fa18: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED 203fa1c: 7f ff fe 73 call 203f3e8 <== NOT EXECUTED 203fa20: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED if ( rc != RC_OK ) 203fa24: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 203fa28: 02 80 00 07 be 203fa44 <== NOT EXECUTED 203fa2c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED { /* cleanup activity */ fat_free_fat_clusters_chain(mt_entry, (*chain)); 203fa30: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED 203fa34: 7f ff ff 97 call 203f890 <== NOT EXECUTED 203fa38: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED return rc; 203fa3c: 81 c7 e0 08 ret <== NOT EXECUTED 203fa40: 81 e8 00 00 restore <== NOT EXECUTED } rc = fat_set_fat_cluster(mt_entry, save_cln, cl4find); 203fa44: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 203fa48: 7f ff fe 68 call 203f3e8 <== NOT EXECUTED 203fa4c: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED if ( rc != RC_OK ) 203fa50: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 203fa54: 22 80 00 0b be,a 203fa80 <== NOT EXECUTED 203fa58: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED { /* cleanup activity */ fat_free_fat_clusters_chain(mt_entry, (*chain)); 203fa5c: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED 203fa60: 7f ff ff 8c call 203f890 <== NOT EXECUTED 203fa64: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED /* trying to save last allocated cluster for future use */ fat_set_fat_cluster(mt_entry, cl4find, FAT_GENFAT_FREE); 203fa68: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 203fa6c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED 203fa70: 7f ff fe 5e call 203f3e8 <== NOT EXECUTED 203fa74: 94 10 20 00 clr %o2 <== NOT EXECUTED fat_buf_release(fs_info); 203fa78: 10 80 00 10 b 203fab8 <== NOT EXECUTED 203fa7c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return rc; } } save_cln = cl4find; (*cls_added)++; 203fa80: 82 00 60 01 inc %g1 <== NOT EXECUTED /* have we satisfied request ? */ if (*cls_added == count) 203fa84: 80 a0 40 1a cmp %g1, %i2 <== NOT EXECUTED 203fa88: 12 80 00 10 bne 203fac8 <== NOT EXECUTED 203fa8c: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED { fs_info->vol.next_cl = save_cln; if (fs_info->vol.free_cls != 0xFFFFFFFF) 203fa90: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 <== NOT EXECUTED 203fa94: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED 203fa98: 02 80 00 05 be 203faac <== NOT EXECUTED 203fa9c: e4 24 20 44 st %l2, [ %l0 + 0x44 ] <== NOT EXECUTED fs_info->vol.free_cls -= (*cls_added); 203faa0: c4 06 c0 00 ld [ %i3 ], %g2 <== NOT EXECUTED 203faa4: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 203faa8: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED *last_cl = save_cln; 203faac: e4 27 00 00 st %l2, [ %i4 ] <== NOT EXECUTED fat_buf_release(fs_info); 203fab0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 203fab4: b0 10 20 00 clr %i0 <== NOT EXECUTED 203fab8: 7f ff 98 94 call 2025d08 <== NOT EXECUTED 203fabc: 01 00 00 00 nop <== NOT EXECUTED return rc; 203fac0: 81 c7 e0 08 ret <== NOT EXECUTED 203fac4: 81 e8 00 00 restore <== NOT EXECUTED 203fac8: a6 10 00 12 mov %l2, %l3 <== NOT EXECUTED } } i++; cl4find++; 203facc: a4 04 a0 01 inc %l2 <== NOT EXECUTED if (cl4find >= data_cls_val) 203fad0: 80 a4 80 15 cmp %l2, %l5 <== NOT EXECUTED 203fad4: 3a 80 00 02 bcc,a 203fadc <== NOT EXECUTED 203fad8: a4 10 20 02 mov 2, %l2 <== NOT EXECUTED *last_cl = save_cln; fat_buf_release(fs_info); return rc; } } i++; 203fadc: a8 05 20 01 inc %l4 <== NOT EXECUTED /* * fs_info->vol.data_cls is exactly the count of data clusters * starting at cluster 2, so the maximum valid cluster number is * (fs_info->vol.data_cls + 1) */ while (i < data_cls_val) 203fae0: 80 a5 00 15 cmp %l4, %l5 <== NOT EXECUTED 203fae4: 0a bf ff b1 bcs 203f9a8 <== NOT EXECUTED 203fae8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED if (cl4find >= data_cls_val) cl4find = 2; } fs_info->vol.next_cl = save_cln; if (fs_info->vol.free_cls != 0xFFFFFFFF) 203faec: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 <== NOT EXECUTED 203faf0: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED 203faf4: 02 80 00 05 be 203fb08 <== NOT EXECUTED 203faf8: e6 24 20 44 st %l3, [ %l0 + 0x44 ] <== NOT EXECUTED fs_info->vol.free_cls -= (*cls_added); 203fafc: c4 06 c0 00 ld [ %i3 ], %g2 <== NOT EXECUTED 203fb00: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 203fb04: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED *last_cl = save_cln; 203fb08: e6 27 00 00 st %l3, [ %i4 ] <== NOT EXECUTED fat_buf_release(fs_info); 203fb0c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 203fb10: 7f ff 98 7e call 2025d08 <== NOT EXECUTED 203fb14: b0 10 20 00 clr %i0 <== NOT EXECUTED return RC_OK; } 203fb18: 81 c7 e0 08 ret <== NOT EXECUTED 203fb1c: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0203f3e8 : fat_set_fat_cluster( rtems_filesystem_mount_table_entry_t *mt_entry, uint32_t cln, uint32_t in_val ) { 203f3e8: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED fat_fs_info_t *fs_info = mt_entry->fs_info; uint32_t sec = 0; uint32_t ofs = 0; uint16_t fat16_clv = 0; uint32_t fat32_clv = 0; rtems_bdbuf_buffer *block0 = NULL; 203f3ec: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED /* sanity check */ if ( (cln < 2) || (cln > (fs_info->vol.data_cls + 1)) ) 203f3f0: 80 a6 60 01 cmp %i1, 1 <== NOT EXECUTED 203f3f4: 08 80 00 a3 bleu 203f680 <== NOT EXECUTED 203f3f8: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED 203f3fc: c2 04 20 34 ld [ %l0 + 0x34 ], %g1 <== NOT EXECUTED 203f400: 82 00 60 01 inc %g1 <== NOT EXECUTED 203f404: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 203f408: 18 80 00 9e bgu 203f680 <== NOT EXECUTED 203f40c: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EIO); sec = (FAT_FAT_OFFSET(fs_info->vol.type, cln) >> fs_info->vol.sec_log2) + 203f410: c2 0c 20 0a ldub [ %l0 + 0xa ], %g1 <== NOT EXECUTED 203f414: 88 88 60 01 andcc %g1, 1, %g4 <== NOT EXECUTED 203f418: 02 80 00 05 be 203f42c <== NOT EXECUTED 203f41c: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED 203f420: 85 36 60 01 srl %i1, 1, %g2 <== NOT EXECUTED 203f424: 10 80 00 05 b 203f438 <== NOT EXECUTED 203f428: 84 00 80 19 add %g2, %i1, %g2 <== NOT EXECUTED 203f42c: 02 80 00 03 be 203f438 <== NOT EXECUTED 203f430: 85 2e 60 02 sll %i1, 2, %g2 <== NOT EXECUTED 203f434: 85 2e 60 01 sll %i1, 1, %g2 <== NOT EXECUTED 203f438: e6 0c 20 02 ldub [ %l0 + 2 ], %l3 <== NOT EXECUTED 203f43c: c6 04 20 4c ld [ %l0 + 0x4c ], %g3 <== NOT EXECUTED 203f440: a7 30 80 13 srl %g2, %l3, %l3 <== NOT EXECUTED fs_info->vol.afat_loc; ofs = FAT_FAT_OFFSET(fs_info->vol.type, cln) & (fs_info->vol.bps - 1); 203f444: a9 36 60 01 srl %i1, 1, %l4 <== NOT EXECUTED 203f448: 80 a1 20 00 cmp %g4, 0 <== NOT EXECUTED /* sanity check */ if ( (cln < 2) || (cln > (fs_info->vol.data_cls + 1)) ) rtems_set_errno_and_return_minus_one(EIO); sec = (FAT_FAT_OFFSET(fs_info->vol.type, cln) >> fs_info->vol.sec_log2) + 203f44c: a6 04 c0 03 add %l3, %g3, %l3 <== NOT EXECUTED fs_info->vol.afat_loc; ofs = FAT_FAT_OFFSET(fs_info->vol.type, cln) & (fs_info->vol.bps - 1); 203f450: 12 80 00 06 bne 203f468 <== NOT EXECUTED 203f454: a8 05 00 19 add %l4, %i1, %l4 <== NOT EXECUTED 203f458: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED 203f45c: 02 80 00 03 be 203f468 <== NOT EXECUTED 203f460: a9 2e 60 02 sll %i1, 2, %l4 <== NOT EXECUTED 203f464: a9 2e 60 01 sll %i1, 1, %l4 <== NOT EXECUTED 203f468: ea 14 00 00 lduh [ %l0 ], %l5 <== NOT EXECUTED rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &block0); 203f46c: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED 203f470: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 203f474: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED 203f478: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED 203f47c: 7f ff 9a 84 call 2025e8c <== NOT EXECUTED 203f480: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED if (rc != RC_OK) 203f484: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 203f488: 12 80 00 83 bne 203f694 <== NOT EXECUTED 203f48c: ab 2d 60 10 sll %l5, 0x10, %l5 <== NOT EXECUTED return rc; switch ( fs_info->vol.type ) 203f490: e2 0c 20 0a ldub [ %l0 + 0xa ], %l1 <== NOT EXECUTED 203f494: 80 a4 60 02 cmp %l1, 2 <== NOT EXECUTED if ( (cln < 2) || (cln > (fs_info->vol.data_cls + 1)) ) rtems_set_errno_and_return_minus_one(EIO); sec = (FAT_FAT_OFFSET(fs_info->vol.type, cln) >> fs_info->vol.sec_log2) + fs_info->vol.afat_loc; ofs = FAT_FAT_OFFSET(fs_info->vol.type, cln) & (fs_info->vol.bps - 1); 203f498: ab 35 60 10 srl %l5, 0x10, %l5 <== NOT EXECUTED 203f49c: aa 05 7f ff add %l5, -1, %l5 <== NOT EXECUTED rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &block0); if (rc != RC_OK) return rc; switch ( fs_info->vol.type ) 203f4a0: 02 80 00 5a be 203f608 <== NOT EXECUTED 203f4a4: a8 0d 00 15 and %l4, %l5, %l4 <== NOT EXECUTED 203f4a8: 80 a4 60 04 cmp %l1, 4 <== NOT EXECUTED 203f4ac: 02 80 00 5f be 203f628 <== NOT EXECUTED 203f4b0: 80 a4 60 01 cmp %l1, 1 <== NOT EXECUTED 203f4b4: 12 80 00 73 bne 203f680 <== NOT EXECUTED 203f4b8: 80 8e 60 01 btst 1, %i1 <== NOT EXECUTED { case FAT_FAT12: if ( FAT_CLUSTER_IS_ODD(cln) ) 203f4bc: 02 80 00 25 be 203f550 <== NOT EXECUTED 203f4c0: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED { fat16_clv = ((uint16_t )in_val) << FAT_FAT12_SHIFT; *((uint8_t *)(block0->buffer + ofs)) = (*((uint8_t *)(block0->buffer + ofs))) & 0x0F; 203f4c4: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED *((uint8_t *)(block0->buffer + ofs)) = 203f4c8: 85 2e a0 04 sll %i2, 4, %g2 <== NOT EXECUTED { case FAT_FAT12: if ( FAT_CLUSTER_IS_ODD(cln) ) { fat16_clv = ((uint16_t )in_val) << FAT_FAT12_SHIFT; *((uint8_t *)(block0->buffer + ofs)) = 203f4cc: c6 08 40 14 ldub [ %g1 + %l4 ], %g3 <== NOT EXECUTED 203f4d0: 86 08 e0 0f and %g3, 0xf, %g3 <== NOT EXECUTED 203f4d4: c6 28 40 14 stb %g3, [ %g1 + %l4 ] <== NOT EXECUTED (*((uint8_t *)(block0->buffer + ofs))) & 0x0F; *((uint8_t *)(block0->buffer + ofs)) = (*((uint8_t *)(block0->buffer + ofs))) | 203f4d8: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 203f4dc: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED { fat16_clv = ((uint16_t )in_val) << FAT_FAT12_SHIFT; *((uint8_t *)(block0->buffer + ofs)) = (*((uint8_t *)(block0->buffer + ofs))) & 0x0F; *((uint8_t *)(block0->buffer + ofs)) = 203f4e0: c6 08 40 14 ldub [ %g1 + %l4 ], %g3 <== NOT EXECUTED 203f4e4: 84 10 c0 02 or %g3, %g2, %g2 <== NOT EXECUTED 203f4e8: c4 28 40 14 stb %g2, [ %g1 + %l4 ] <== NOT EXECUTED (*((uint8_t *)(block0->buffer + ofs))) | (uint8_t )(fat16_clv & 0x00FF); fat_buf_mark_modified(fs_info); if ( ofs == (fs_info->vol.bps - 1) ) 203f4ec: c2 14 00 00 lduh [ %l0 ], %g1 <== NOT EXECUTED 203f4f0: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 203f4f4: 80 a5 00 01 cmp %l4, %g1 <== NOT EXECUTED 203f4f8: 12 80 00 0f bne 203f534 <== NOT EXECUTED 203f4fc: e2 2c 20 84 stb %l1, [ %l0 + 0x84 ] <== NOT EXECUTED { rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ, 203f500: 92 04 e0 01 add %l3, 1, %o1 <== NOT EXECUTED 203f504: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED 203f508: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 203f50c: 7f ff 9a 60 call 2025e8c <== NOT EXECUTED 203f510: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED &block0); if (rc != RC_OK) 203f514: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 203f518: 12 80 00 5f bne 203f694 <== NOT EXECUTED 203f51c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED return rc; *((uint8_t *)(block0->buffer)) &= 0x00; *((uint8_t *)(block0->buffer)) = 203f520: b5 2e a0 14 sll %i2, 0x14, %i2 <== NOT EXECUTED rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ, &block0); if (rc != RC_OK) return rc; *((uint8_t *)(block0->buffer)) &= 0x00; 203f524: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED *((uint8_t *)(block0->buffer)) = 203f528: b5 36 a0 18 srl %i2, 0x18, %i2 <== NOT EXECUTED rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ, &block0); if (rc != RC_OK) return rc; *((uint8_t *)(block0->buffer)) &= 0x00; 203f52c: 10 80 00 23 b 203f5b8 <== NOT EXECUTED 203f530: c0 28 40 00 clrb [ %g1 ] <== NOT EXECUTED fat_buf_mark_modified(fs_info); } else { *((uint8_t *)(block0->buffer + ofs + 1)) &= 0x00; 203f534: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 203f538: a8 05 20 01 inc %l4 <== NOT EXECUTED 203f53c: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED *((uint8_t *)(block0->buffer + ofs + 1)) = 203f540: b5 2e a0 14 sll %i2, 0x14, %i2 <== NOT EXECUTED fat_buf_mark_modified(fs_info); } else { *((uint8_t *)(block0->buffer + ofs + 1)) &= 0x00; 203f544: c0 28 40 14 clrb [ %g1 + %l4 ] <== NOT EXECUTED *((uint8_t *)(block0->buffer + ofs + 1)) = 203f548: 10 80 00 2a b 203f5f0 <== NOT EXECUTED 203f54c: b5 36 a0 18 srl %i2, 0x18, %i2 <== NOT EXECUTED } } else { fat16_clv = ((uint16_t )in_val) & FAT_FAT12_MASK; *((uint8_t *)(block0->buffer + ofs)) &= 0x00; 203f550: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED (uint8_t )((fat16_clv & 0xFF00)>>8); } } else { fat16_clv = ((uint16_t )in_val) & FAT_FAT12_MASK; 203f554: b4 0e af ff and %i2, 0xfff, %i2 <== NOT EXECUTED *((uint8_t *)(block0->buffer + ofs)) &= 0x00; 203f558: c0 28 40 14 clrb [ %g1 + %l4 ] <== NOT EXECUTED *((uint8_t *)(block0->buffer + ofs)) = (*((uint8_t *)(block0->buffer + ofs))) | 203f55c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 203f560: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED else { fat16_clv = ((uint16_t )in_val) & FAT_FAT12_MASK; *((uint8_t *)(block0->buffer + ofs)) &= 0x00; *((uint8_t *)(block0->buffer + ofs)) = 203f564: c4 08 40 14 ldub [ %g1 + %l4 ], %g2 <== NOT EXECUTED 203f568: 84 16 80 02 or %i2, %g2, %g2 <== NOT EXECUTED 203f56c: c4 28 40 14 stb %g2, [ %g1 + %l4 ] <== NOT EXECUTED (*((uint8_t *)(block0->buffer + ofs))) | (uint8_t )(fat16_clv & 0x00FF); fat_buf_mark_modified(fs_info); if ( ofs == (fs_info->vol.bps - 1) ) 203f570: c2 14 00 00 lduh [ %l0 ], %g1 <== NOT EXECUTED 203f574: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 203f578: 80 a5 00 01 cmp %l4, %g1 <== NOT EXECUTED 203f57c: 12 80 00 16 bne 203f5d4 <== NOT EXECUTED 203f580: e2 2c 20 84 stb %l1, [ %l0 + 0x84 ] <== NOT EXECUTED { rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ, 203f584: 92 04 e0 01 add %l3, 1, %o1 <== NOT EXECUTED 203f588: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED 203f58c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 203f590: 7f ff 9a 3f call 2025e8c <== NOT EXECUTED 203f594: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED &block0); if (rc != RC_OK) 203f598: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 203f59c: 12 80 00 3e bne 203f694 <== NOT EXECUTED 203f5a0: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED return rc; *((uint8_t *)(block0->buffer)) = (*((uint8_t *)(block0->buffer))) & 0xF0; *((uint8_t *)(block0->buffer)) = 203f5a4: b5 36 a0 08 srl %i2, 8, %i2 <== NOT EXECUTED &block0); if (rc != RC_OK) return rc; *((uint8_t *)(block0->buffer)) = (*((uint8_t *)(block0->buffer))) & 0xF0; 203f5a8: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ, &block0); if (rc != RC_OK) return rc; *((uint8_t *)(block0->buffer)) = 203f5ac: c4 08 40 00 ldub [ %g1 ], %g2 <== NOT EXECUTED 203f5b0: 84 08 bf f0 and %g2, -16, %g2 <== NOT EXECUTED 203f5b4: c4 28 40 00 stb %g2, [ %g1 ] <== NOT EXECUTED (*((uint8_t *)(block0->buffer))) & 0xF0; *((uint8_t *)(block0->buffer)) = (*((uint8_t *)(block0->buffer))) | 203f5b8: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 203f5bc: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED return rc; *((uint8_t *)(block0->buffer)) = (*((uint8_t *)(block0->buffer))) & 0xF0; *((uint8_t *)(block0->buffer)) = 203f5c0: c4 08 40 00 ldub [ %g1 ], %g2 <== NOT EXECUTED 203f5c4: b4 16 80 02 or %i2, %g2, %i2 <== NOT EXECUTED 203f5c8: f4 28 40 00 stb %i2, [ %g1 ] <== NOT EXECUTED } static inline void fat_buf_mark_modified(fat_fs_info_t *fs_info) { fs_info->c.modified = true; 203f5cc: 10 80 00 32 b 203f694 <== NOT EXECUTED 203f5d0: e2 2c 20 84 stb %l1, [ %l0 + 0x84 ] <== NOT EXECUTED fat_buf_mark_modified(fs_info); } else { *((uint8_t *)(block0->buffer + ofs + 1)) = (*((uint8_t *)(block0->buffer + ofs + 1))) & 0xF0; 203f5d4: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 203f5d8: a8 05 20 01 inc %l4 <== NOT EXECUTED 203f5dc: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED *((uint8_t *)(block0->buffer + ofs+1)) = 203f5e0: b5 36 a0 08 srl %i2, 8, %i2 <== NOT EXECUTED fat_buf_mark_modified(fs_info); } else { *((uint8_t *)(block0->buffer + ofs + 1)) = 203f5e4: c4 08 40 14 ldub [ %g1 + %l4 ], %g2 <== NOT EXECUTED 203f5e8: 84 08 bf f0 and %g2, -16, %g2 <== NOT EXECUTED 203f5ec: c4 28 40 14 stb %g2, [ %g1 + %l4 ] <== NOT EXECUTED (*((uint8_t *)(block0->buffer + ofs + 1))) & 0xF0; *((uint8_t *)(block0->buffer + ofs+1)) = (*((uint8_t *)(block0->buffer + ofs+1))) | 203f5f0: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 203f5f4: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED else { *((uint8_t *)(block0->buffer + ofs + 1)) = (*((uint8_t *)(block0->buffer + ofs + 1))) & 0xF0; *((uint8_t *)(block0->buffer + ofs+1)) = 203f5f8: c4 08 40 14 ldub [ %g1 + %l4 ], %g2 <== NOT EXECUTED 203f5fc: b4 10 80 1a or %g2, %i2, %i2 <== NOT EXECUTED 203f600: 10 80 00 25 b 203f694 <== NOT EXECUTED 203f604: f4 28 40 14 stb %i2, [ %g1 + %l4 ] <== NOT EXECUTED } } break; case FAT_FAT16: *((uint16_t *)(block0->buffer + ofs)) = 203f608: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 203f60c: b5 2e a0 10 sll %i2, 0x10, %i2 <== NOT EXECUTED 203f610: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED 203f614: 85 36 a0 18 srl %i2, 0x18, %g2 <== NOT EXECUTED 203f618: b5 36 a0 08 srl %i2, 8, %i2 <== NOT EXECUTED 203f61c: b4 16 80 02 or %i2, %g2, %i2 <== NOT EXECUTED 203f620: 10 80 00 15 b 203f674 <== NOT EXECUTED 203f624: f4 30 40 14 sth %i2, [ %g1 + %l4 ] <== NOT EXECUTED case FAT_FAT32: fat32_clv = CT_LE_L((in_val & FAT_FAT32_MASK)); *((uint32_t *)(block0->buffer + ofs)) = (*((uint32_t *)(block0->buffer + ofs))) & (CT_LE_L(0xF0000000)); 203f628: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED (uint16_t )(CT_LE_W(in_val)); fat_buf_mark_modified(fs_info); break; case FAT_FAT32: fat32_clv = CT_LE_L((in_val & FAT_FAT32_MASK)); 203f62c: 05 3c 00 00 sethi %hi(0xf0000000), %g2 <== NOT EXECUTED *((uint32_t *)(block0->buffer + ofs)) = (*((uint32_t *)(block0->buffer + ofs))) & (CT_LE_L(0xF0000000)); 203f630: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED *((uint32_t *)(block0->buffer + ofs)) = 203f634: 9b 2e a0 18 sll %i2, 0x18, %o5 <== NOT EXECUTED break; case FAT_FAT32: fat32_clv = CT_LE_L((in_val & FAT_FAT32_MASK)); *((uint32_t *)(block0->buffer + ofs)) = 203f638: c6 00 40 14 ld [ %g1 + %l4 ], %g3 <== NOT EXECUTED (uint16_t )(CT_LE_W(in_val)); fat_buf_mark_modified(fs_info); break; case FAT_FAT32: fat32_clv = CT_LE_L((in_val & FAT_FAT32_MASK)); 203f63c: b4 2e 80 02 andn %i2, %g2, %i2 <== NOT EXECUTED *((uint32_t *)(block0->buffer + ofs)) = 203f640: 86 08 e0 f0 and %g3, 0xf0, %g3 <== NOT EXECUTED (*((uint32_t *)(block0->buffer + ofs))) & (CT_LE_L(0xF0000000)); *((uint32_t *)(block0->buffer + ofs)) = 203f644: 89 36 a0 10 srl %i2, 0x10, %g4 <== NOT EXECUTED 203f648: 85 36 a0 18 srl %i2, 0x18, %g2 <== NOT EXECUTED 203f64c: 88 09 20 ff and %g4, 0xff, %g4 <== NOT EXECUTED 203f650: 84 13 40 02 or %o5, %g2, %g2 <== NOT EXECUTED 203f654: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED 203f658: b5 36 a0 08 srl %i2, 8, %i2 <== NOT EXECUTED 203f65c: b4 0e a0 ff and %i2, 0xff, %i2 <== NOT EXECUTED 203f660: b5 2e a0 10 sll %i2, 0x10, %i2 <== NOT EXECUTED 203f664: 84 10 80 1a or %g2, %i2, %g2 <== NOT EXECUTED 203f668: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED 203f66c: 84 10 c0 02 or %g3, %g2, %g2 <== NOT EXECUTED 203f670: c4 20 40 14 st %g2, [ %g1 + %l4 ] <== NOT EXECUTED 203f674: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 203f678: 10 80 00 07 b 203f694 <== NOT EXECUTED 203f67c: c2 2c 20 84 stb %g1, [ %l0 + 0x84 ] <== NOT EXECUTED fat_buf_mark_modified(fs_info); break; default: rtems_set_errno_and_return_minus_one(EIO); 203f680: 40 00 13 05 call 2044294 <__errno> <== NOT EXECUTED 203f684: 01 00 00 00 nop <== NOT EXECUTED 203f688: 82 10 20 05 mov 5, %g1 ! 5 <== NOT EXECUTED 203f68c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 203f690: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED break; } return RC_OK; } 203f694: 81 c7 e0 08 ret <== NOT EXECUTED 203f698: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED =============================================================================== 020261f4 : * RC_OK on success, or -1 if error occured * and errno set appropriately */ int fat_shutdown_drive(rtems_filesystem_mount_table_entry_t *mt_entry) { 20261f4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED int rc = RC_OK; fat_fs_info_t *fs_info = mt_entry->fs_info; 20261f8: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED * RC_OK on success, or -1 if error occured * and errno set appropriately */ int fat_shutdown_drive(rtems_filesystem_mount_table_entry_t *mt_entry) { 20261fc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED int rc = RC_OK; fat_fs_info_t *fs_info = mt_entry->fs_info; int i = 0; if (fs_info->vol.type & FAT_FAT32) 2026200: c2 0c 20 0a ldub [ %l0 + 0xa ], %g1 <== NOT EXECUTED 2026204: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED 2026208: 02 80 00 08 be 2026228 <== NOT EXECUTED 202620c: a2 10 20 00 clr %l1 <== NOT EXECUTED { rc = fat_fat32_update_fsinfo_sector(mt_entry, fs_info->vol.free_cls, 2026210: d2 04 20 40 ld [ %l0 + 0x40 ], %o1 <== NOT EXECUTED 2026214: 7f ff ff c9 call 2026138 <== NOT EXECUTED 2026218: d4 04 20 44 ld [ %l0 + 0x44 ], %o2 <== NOT EXECUTED fs_info->vol.next_cl); if ( rc != RC_OK ) 202621c: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED 2026220: 32 80 00 02 bne,a 2026228 <== NOT EXECUTED 2026224: a2 10 3f ff mov -1, %l1 <== NOT EXECUTED rc = -1; } fat_buf_release(fs_info); 2026228: 7f ff fe b8 call 2025d08 <== NOT EXECUTED 202622c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if (rtems_bdbuf_syncdev(fs_info->vol.dev) != RTEMS_SUCCESSFUL) 2026230: 7f ff 77 36 call 2003f08 <== NOT EXECUTED 2026234: d0 1c 20 58 ldd [ %l0 + 0x58 ], %o0 <== NOT EXECUTED 2026238: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202623c: 32 80 00 02 bne,a 2026244 <== NOT EXECUTED 2026240: a2 10 3f ff mov -1, %l1 <== NOT EXECUTED 2026244: a4 10 20 00 clr %l2 <== NOT EXECUTED rc = -1; for (i = 0; i < FAT_HASH_SIZE; i++) { rtems_chain_node *node = NULL; rtems_chain_control *the_chain = fs_info->vhash + i; 2026248: e6 04 20 68 ld [ %l0 + 0x68 ], %l3 <== NOT EXECUTED while ( (node = rtems_chain_get(the_chain)) != NULL ) 202624c: 10 80 00 04 b 202625c <== NOT EXECUTED 2026250: a6 04 c0 12 add %l3, %l2, %l3 <== NOT EXECUTED free(node); 2026254: 7f ff 88 03 call 2008260 <== NOT EXECUTED 2026258: 01 00 00 00 nop <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get( rtems_chain_control *the_chain ) { return _Chain_Get( the_chain ); 202625c: 7f ff 9d 61 call 200d7e0 <_Chain_Get> <== NOT EXECUTED 2026260: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED for (i = 0; i < FAT_HASH_SIZE; i++) { rtems_chain_node *node = NULL; rtems_chain_control *the_chain = fs_info->vhash + i; while ( (node = rtems_chain_get(the_chain)) != NULL ) 2026264: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2026268: 12 bf ff fb bne 2026254 <== NOT EXECUTED 202626c: 01 00 00 00 nop <== NOT EXECUTED 2026270: a4 04 a0 0c add %l2, 0xc, %l2 <== NOT EXECUTED fat_buf_release(fs_info); if (rtems_bdbuf_syncdev(fs_info->vol.dev) != RTEMS_SUCCESSFUL) rc = -1; for (i = 0; i < FAT_HASH_SIZE; i++) 2026274: 80 a4 a0 18 cmp %l2, 0x18 <== NOT EXECUTED 2026278: 32 bf ff f5 bne,a 202624c <== NOT EXECUTED 202627c: e6 04 20 68 ld [ %l0 + 0x68 ], %l3 <== NOT EXECUTED 2026280: a4 10 20 00 clr %l2 <== NOT EXECUTED } for (i = 0; i < FAT_HASH_SIZE; i++) { rtems_chain_node *node = NULL; rtems_chain_control *the_chain = fs_info->rhash + i; 2026284: e6 04 20 6c ld [ %l0 + 0x6c ], %l3 <== NOT EXECUTED while ( (node = rtems_chain_get(the_chain)) != NULL ) 2026288: 10 80 00 04 b 2026298 <== NOT EXECUTED 202628c: a6 04 c0 12 add %l3, %l2, %l3 <== NOT EXECUTED free(node); 2026290: 7f ff 87 f4 call 2008260 <== NOT EXECUTED 2026294: 01 00 00 00 nop <== NOT EXECUTED 2026298: 7f ff 9d 52 call 200d7e0 <_Chain_Get> <== NOT EXECUTED 202629c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED for (i = 0; i < FAT_HASH_SIZE; i++) { rtems_chain_node *node = NULL; rtems_chain_control *the_chain = fs_info->rhash + i; while ( (node = rtems_chain_get(the_chain)) != NULL ) 20262a0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20262a4: 12 bf ff fb bne 2026290 <== NOT EXECUTED 20262a8: 01 00 00 00 nop <== NOT EXECUTED 20262ac: a4 04 a0 0c add %l2, 0xc, %l2 <== NOT EXECUTED while ( (node = rtems_chain_get(the_chain)) != NULL ) free(node); } for (i = 0; i < FAT_HASH_SIZE; i++) 20262b0: 80 a4 a0 18 cmp %l2, 0x18 <== NOT EXECUTED 20262b4: 32 bf ff f5 bne,a 2026288 <== NOT EXECUTED 20262b8: e6 04 20 6c ld [ %l0 + 0x6c ], %l3 <== NOT EXECUTED while ( (node = rtems_chain_get(the_chain)) != NULL ) free(node); } free(fs_info->vhash); 20262bc: 7f ff 87 e9 call 2008260 <== NOT EXECUTED 20262c0: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED free(fs_info->rhash); 20262c4: 7f ff 87 e7 call 2008260 <== NOT EXECUTED 20262c8: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED free(fs_info->uino); 20262cc: 7f ff 87 e5 call 2008260 <== NOT EXECUTED 20262d0: d0 04 20 70 ld [ %l0 + 0x70 ], %o0 <== NOT EXECUTED free(fs_info->sec_buf); 20262d4: 7f ff 87 e3 call 2008260 <== NOT EXECUTED 20262d8: d0 04 20 8c ld [ %l0 + 0x8c ], %o0 <== NOT EXECUTED rtems_disk_release(fs_info->vol.dd); 20262dc: 7f ff 83 06 call 2006ef4 <== NOT EXECUTED 20262e0: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED if (rc) 20262e4: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 20262e8: 02 80 00 06 be 2026300 <== NOT EXECUTED 20262ec: 01 00 00 00 nop <== NOT EXECUTED errno = EIO; 20262f0: 40 00 77 e9 call 2044294 <__errno> <== NOT EXECUTED 20262f4: 01 00 00 00 nop <== NOT EXECUTED 20262f8: 82 10 20 05 mov 5, %g1 ! 5 <== NOT EXECUTED 20262fc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return rc; } 2026300: 81 c7 e0 08 ret <== NOT EXECUTED 2026304: 91 e8 00 11 restore %g0, %l1, %o0 <== NOT EXECUTED =============================================================================== 0203ff08 : #include int fchdir( int fd ) { 203ff08: 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 ); 203ff0c: 03 00 81 aa sethi %hi(0x206a800), %g1 <== NOT EXECUTED 203ff10: c2 00 61 34 ld [ %g1 + 0x134 ], %g1 ! 206a934 <== NOT EXECUTED 203ff14: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 203ff18: 1a 80 00 0c bcc 203ff48 <== NOT EXECUTED 203ff1c: 01 00 00 00 nop <== NOT EXECUTED iop = rtems_libio_iop( fd ); 203ff20: 03 00 81 ba sethi %hi(0x206e800), %g1 <== NOT EXECUTED 203ff24: e4 00 63 a4 ld [ %g1 + 0x3a4 ], %l2 ! 206eba4 <== NOT EXECUTED 203ff28: 83 2e 20 06 sll %i0, 6, %g1 <== NOT EXECUTED 203ff2c: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED 203ff30: b0 06 00 01 add %i0, %g1, %i0 <== NOT EXECUTED 203ff34: a4 04 80 18 add %l2, %i0, %l2 <== NOT EXECUTED rtems_libio_check_is_open(iop); 203ff38: c2 04 a0 18 ld [ %l2 + 0x18 ], %g1 <== NOT EXECUTED 203ff3c: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 203ff40: 32 80 00 06 bne,a 203ff58 <== NOT EXECUTED 203ff44: c2 04 a0 28 ld [ %l2 + 0x28 ], %g1 <== NOT EXECUTED 203ff48: 40 00 10 d3 call 2044294 <__errno> <== NOT EXECUTED 203ff4c: 01 00 00 00 nop <== NOT EXECUTED 203ff50: 10 80 00 15 b 203ffa4 <== NOT EXECUTED 203ff54: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !iop->pathinfo.ops ) { 203ff58: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 203ff5c: 02 80 00 06 be 203ff74 <== NOT EXECUTED 203ff60: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { 203ff64: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 <== NOT EXECUTED 203ff68: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 203ff6c: 32 80 00 06 bne,a 203ff84 <== NOT EXECUTED 203ff70: a4 04 a0 1c add %l2, 0x1c, %l2 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 203ff74: 40 00 10 c8 call 2044294 <__errno> <== NOT EXECUTED 203ff78: 01 00 00 00 nop <== NOT EXECUTED 203ff7c: 10 80 00 0a b 203ffa4 <== NOT EXECUTED 203ff80: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != 203ff84: 9f c0 40 00 call %g1 <== NOT EXECUTED 203ff88: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 203ff8c: 80 a2 20 01 cmp %o0, 1 <== NOT EXECUTED 203ff90: 02 80 00 07 be 203ffac <== NOT EXECUTED 203ff94: 23 00 81 ab sethi %hi(0x206ac00), %l1 <== NOT EXECUTED RTEMS_FILESYSTEM_DIRECTORY ) { rtems_set_errno_and_return_minus_one( ENOTDIR ); 203ff98: 40 00 10 bf call 2044294 <__errno> <== NOT EXECUTED 203ff9c: 01 00 00 00 nop <== NOT EXECUTED 203ffa0: 82 10 20 14 mov 0x14, %g1 ! 14 <== NOT EXECUTED 203ffa4: 10 80 00 1c b 2040014 <== NOT EXECUTED 203ffa8: 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; 203ffac: e6 04 61 64 ld [ %l1 + 0x164 ], %l3 <== NOT EXECUTED 203ffb0: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 203ffb4: a6 04 e0 04 add %l3, 4, %l3 <== NOT EXECUTED 203ffb8: a0 07 bf d8 add %fp, -40, %l0 <== NOT EXECUTED 203ffbc: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED 203ffc0: 40 00 1e 01 call 20477c4 <== NOT EXECUTED 203ffc4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; 203ffc8: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED 203ffcc: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 203ffd0: 40 00 1d fd call 20477c4 <== NOT EXECUTED 203ffd4: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 203ffd8: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 203ffdc: 11 00 81 a3 sethi %hi(0x2068c00), %o0 <== NOT EXECUTED 203ffe0: 94 10 20 00 clr %o2 <== NOT EXECUTED 203ffe4: 90 12 22 88 or %o0, 0x288, %o0 <== NOT EXECUTED 203ffe8: 96 07 bf ec add %fp, -20, %o3 <== NOT EXECUTED 203ffec: 7f ff 20 80 call 20081ec <== NOT EXECUTED 203fff0: 98 10 20 00 clr %o4 <== NOT EXECUTED 203fff4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 203fff8: 02 80 00 09 be 204001c <== NOT EXECUTED 203fffc: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; 2040000: d0 04 61 64 ld [ %l1 + 0x164 ], %o0 <== NOT EXECUTED 2040004: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2040008: 90 02 20 04 add %o0, 4, %o0 <== NOT EXECUTED 204000c: 40 00 1d ee call 20477c4 <== NOT EXECUTED 2040010: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED return -1; 2040014: 81 c7 e0 08 ret <== NOT EXECUTED 2040018: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED } /* release the old one */ rtems_filesystem_freenode( &saved ); 204001c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2040020: 22 80 00 09 be,a 2040044 <== NOT EXECUTED 2040024: 03 00 81 ab sethi %hi(0x206ac00), %g1 <== NOT EXECUTED 2040028: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 206ac1c <== NOT EXECUTED 204002c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2040030: 22 80 00 05 be,a 2040044 <== NOT EXECUTED 2040034: 03 00 81 ab sethi %hi(0x206ac00), %g1 <== NOT EXECUTED 2040038: 9f c0 40 00 call %g1 <== NOT EXECUTED 204003c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_current = loc; 2040040: 03 00 81 ab sethi %hi(0x206ac00), %g1 <== NOT EXECUTED 2040044: d0 00 61 64 ld [ %g1 + 0x164 ], %o0 ! 206ad64 <== NOT EXECUTED 2040048: 92 07 bf ec add %fp, -20, %o1 <== NOT EXECUTED 204004c: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 2040050: 90 02 20 04 add %o0, 4, %o0 <== NOT EXECUTED 2040054: 40 00 1d dc call 20477c4 <== NOT EXECUTED 2040058: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; } 204005c: 81 c7 e0 08 ret <== NOT EXECUTED 2040060: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02028c88 : int fchmod( int fd, mode_t mode ) { 2028c88: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 2028c8c: 03 00 81 aa sethi %hi(0x206a800), %g1 <== NOT EXECUTED 2028c90: c2 00 61 34 ld [ %g1 + 0x134 ], %g1 ! 206a934 <== NOT EXECUTED 2028c94: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 2028c98: 1a 80 00 0c bcc 2028cc8 <== NOT EXECUTED 2028c9c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 2028ca0: 03 00 81 ba sethi %hi(0x206e800), %g1 <== NOT EXECUTED 2028ca4: d0 00 63 a4 ld [ %g1 + 0x3a4 ], %o0 ! 206eba4 <== NOT EXECUTED 2028ca8: 83 2e 20 06 sll %i0, 6, %g1 <== NOT EXECUTED 2028cac: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED 2028cb0: b0 06 00 01 add %i0, %g1, %i0 <== NOT EXECUTED 2028cb4: 90 02 00 18 add %o0, %i0, %o0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 2028cb8: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 <== NOT EXECUTED 2028cbc: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 2028cc0: 32 80 00 06 bne,a 2028cd8 <== NOT EXECUTED 2028cc4: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 <== NOT EXECUTED 2028cc8: 40 00 6d 73 call 2044294 <__errno> <== NOT EXECUTED 2028ccc: 01 00 00 00 nop <== NOT EXECUTED 2028cd0: 10 80 00 09 b 2028cf4 <== NOT EXECUTED 2028cd4: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED /* * Now process the fchmod(). */ if ( !iop->handlers->fchmod_h ) 2028cd8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2028cdc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2028ce0: 32 80 00 08 bne,a 2028d00 <== NOT EXECUTED 2028ce4: c2 02 20 24 ld [ %o0 + 0x24 ], %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2028ce8: 40 00 6d 6b call 2044294 <__errno> <== NOT EXECUTED 2028cec: 01 00 00 00 nop <== NOT EXECUTED 2028cf0: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 2028cf4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2028cf8: 10 80 00 05 b 2028d0c <== NOT EXECUTED 2028cfc: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); 2028d00: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2028d04: 9f c0 40 00 call %g1 <== NOT EXECUTED 2028d08: 90 02 20 1c add %o0, 0x1c, %o0 <== NOT EXECUTED } 2028d0c: 81 c7 e0 08 ret <== NOT EXECUTED 2028d10: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED =============================================================================== 02028d14 : int fchown( int fd, uid_t owner, gid_t group ) { 2028d14: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 2028d18: 03 00 81 aa sethi %hi(0x206a800), %g1 <== NOT EXECUTED 2028d1c: c2 00 61 34 ld [ %g1 + 0x134 ], %g1 ! 206a934 <== NOT EXECUTED 2028d20: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 2028d24: 1a 80 00 0c bcc 2028d54 <== NOT EXECUTED 2028d28: 01 00 00 00 nop <== NOT EXECUTED iop = rtems_libio_iop( fd ); 2028d2c: 03 00 81 ba sethi %hi(0x206e800), %g1 <== NOT EXECUTED 2028d30: d0 00 63 a4 ld [ %g1 + 0x3a4 ], %o0 ! 206eba4 <== NOT EXECUTED 2028d34: 83 2e 20 06 sll %i0, 6, %g1 <== NOT EXECUTED 2028d38: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED 2028d3c: b0 06 00 01 add %i0, %g1, %i0 <== NOT EXECUTED 2028d40: 90 02 00 18 add %o0, %i0, %o0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 2028d44: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 <== NOT EXECUTED 2028d48: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 2028d4c: 12 80 00 06 bne 2028d64 <== NOT EXECUTED 2028d50: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED 2028d54: 40 00 6d 50 call 2044294 <__errno> <== NOT EXECUTED 2028d58: 01 00 00 00 nop <== NOT EXECUTED 2028d5c: 10 80 00 0f b 2028d98 <== NOT EXECUTED 2028d60: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 2028d64: 32 80 00 06 bne,a 2028d7c <== NOT EXECUTED 2028d68: c2 02 20 28 ld [ %o0 + 0x28 ], %g1 <== NOT EXECUTED 2028d6c: 40 00 6d 4a call 2044294 <__errno> <== NOT EXECUTED 2028d70: 01 00 00 00 nop <== NOT EXECUTED 2028d74: 10 80 00 09 b 2028d98 <== NOT EXECUTED 2028d78: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) 2028d7c: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 2028d80: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2028d84: 12 80 00 08 bne 2028da4 <== NOT EXECUTED 2028d88: 93 2e 60 10 sll %i1, 0x10, %o1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2028d8c: 40 00 6d 42 call 2044294 <__errno> <== NOT EXECUTED 2028d90: 01 00 00 00 nop <== NOT EXECUTED 2028d94: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 2028d98: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2028d9c: 10 80 00 07 b 2028db8 <== NOT EXECUTED 2028da0: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); 2028da4: 95 2e a0 10 sll %i2, 0x10, %o2 <== NOT EXECUTED 2028da8: 90 02 20 1c add %o0, 0x1c, %o0 <== NOT EXECUTED 2028dac: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED 2028db0: 9f c0 40 00 call %g1 <== NOT EXECUTED 2028db4: 95 32 a0 10 srl %o2, 0x10, %o2 <== NOT EXECUTED } 2028db8: 81 c7 e0 08 ret <== NOT EXECUTED 2028dbc: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED =============================================================================== 0204008c : int fcntl( int fd, int cmd, ... ) { 204008c: 9d e3 bf 98 save %sp, -104, %sp int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 2040090: 03 00 81 aa sethi %hi(0x206a800), %g1 2040094: c2 00 61 34 ld [ %g1 + 0x134 ], %g1 ! 206a934 ... ) { int ret; va_list ap; va_start( ap, cmd ); 2040098: 84 07 a0 4c add %fp, 0x4c, %g2 204009c: f4 27 a0 4c st %i2, [ %fp + 0x4c ] 20400a0: f6 27 a0 50 st %i3, [ %fp + 0x50 ] 20400a4: f8 27 a0 54 st %i4, [ %fp + 0x54 ] 20400a8: fa 27 a0 58 st %i5, [ %fp + 0x58 ] int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 20400ac: 80 a6 00 01 cmp %i0, %g1 20400b0: 1a 80 00 0c bcc 20400e0 <== NEVER TAKEN 20400b4: c4 27 bf fc st %g2, [ %fp + -4 ] iop = rtems_libio_iop( fd ); 20400b8: 07 00 81 ba sethi %hi(0x206e800), %g3 20400bc: c6 00 e3 a4 ld [ %g3 + 0x3a4 ], %g3 ! 206eba4 20400c0: 89 2e 20 06 sll %i0, 6, %g4 20400c4: a1 2e 20 03 sll %i0, 3, %l0 20400c8: a0 04 00 04 add %l0, %g4, %l0 20400cc: a0 00 c0 10 add %g3, %l0, %l0 rtems_libio_check_is_open(iop); 20400d0: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 20400d4: 80 8a 21 00 btst 0x100, %o0 20400d8: 12 80 00 06 bne 20400f0 <== ALWAYS TAKEN 20400dc: 80 a6 60 09 cmp %i1, 9 20400e0: 40 00 10 6d call 2044294 <__errno> <== NOT EXECUTED 20400e4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20400e8: 10 80 00 51 b 204022c <== NOT EXECUTED 20400ec: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { 20400f0: 18 80 00 4c bgu 2040220 20400f4: 89 2e 60 02 sll %i1, 2, %g4 20400f8: 1b 00 81 00 sethi %hi(0x2040000), %o5 20400fc: 9a 13 60 64 or %o5, 0x64, %o5 ! 2040064 2040100: c8 03 40 04 ld [ %o5 + %g4 ], %g4 2040104: 81 c1 00 00 jmp %g4 2040108: 01 00 00 00 nop case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); 204010c: c4 00 80 00 ld [ %g2 ], %g2 if ( fd2 ) 2040110: 80 a0 a0 00 cmp %g2, 0 2040114: 02 80 00 09 be 2040138 <== ALWAYS TAKEN 2040118: 80 a0 80 01 cmp %g2, %g1 diop = rtems_libio_iop( fd2 ); 204011c: 1a 80 00 0c bcc 204014c <== NOT EXECUTED 2040120: a2 10 20 00 clr %l1 <== NOT EXECUTED 2040124: 83 28 a0 06 sll %g2, 6, %g1 <== NOT EXECUTED 2040128: a3 28 a0 03 sll %g2, 3, %l1 <== NOT EXECUTED 204012c: a2 04 40 01 add %l1, %g1, %l1 <== NOT EXECUTED 2040130: 10 80 00 07 b 204014c <== NOT EXECUTED 2040134: a2 00 c0 11 add %g3, %l1, %l1 <== NOT EXECUTED else { /* allocate a file control block */ diop = rtems_libio_allocate(); 2040138: 7f ff 21 66 call 20086d0 204013c: b0 10 3f ff mov -1, %i0 if ( diop == 0 ) { 2040140: a2 92 20 00 orcc %o0, 0, %l1 2040144: 02 80 00 4d be 2040278 <== NEVER TAKEN 2040148: 01 00 00 00 nop break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; 204014c: c4 04 20 3c ld [ %l0 + 0x3c ], %g2 diop->flags = iop->flags; 2040150: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 ret = -1; break; } } diop->handlers = iop->handlers; 2040154: c6 04 20 40 ld [ %l0 + 0x40 ], %g3 diop->file_info = iop->file_info; 2040158: c4 24 60 3c st %g2, [ %l1 + 0x3c ] diop->flags = iop->flags; 204015c: c2 24 60 18 st %g1, [ %l1 + 0x18 ] ret = -1; break; } } diop->handlers = iop->handlers; 2040160: c6 24 60 40 st %g3, [ %l1 + 0x40 ] diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 2040164: 90 04 60 1c add %l1, 0x1c, %o0 2040168: 92 04 20 1c add %l0, 0x1c, %o1 204016c: 40 00 1d 96 call 20477c4 2040170: 94 10 20 14 mov 0x14, %o2 ret = (int) (diop - rtems_libio_iops); 2040174: 03 00 81 ba sethi %hi(0x206e800), %g1 2040178: f0 00 63 a4 ld [ %g1 + 0x3a4 ], %i0 ! 206eba4 204017c: a2 24 40 18 sub %l1, %i0, %l1 2040180: a3 3c 60 03 sra %l1, 3, %l1 2040184: 85 2c 60 06 sll %l1, 6, %g2 2040188: 83 2c 60 03 sll %l1, 3, %g1 204018c: 82 20 80 01 sub %g2, %g1, %g1 2040190: 85 28 60 06 sll %g1, 6, %g2 2040194: 82 00 40 02 add %g1, %g2, %g1 2040198: 82 00 40 11 add %g1, %l1, %g1 204019c: b1 28 60 0f sll %g1, 0xf, %i0 20401a0: b0 26 00 01 sub %i0, %g1, %i0 20401a4: b1 2e 20 03 sll %i0, 3, %i0 20401a8: 10 80 00 24 b 2040238 20401ac: b0 06 00 11 add %i0, %l1, %i0 break; case F_GETFD: /* get f_flags */ ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0); 20401b0: b1 32 20 0b srl %o0, 0xb, %i0 20401b4: 10 80 00 24 b 2040244 20401b8: 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 ) ) 20401bc: c2 00 80 00 ld [ %g2 ], %g1 20401c0: 80 a0 60 00 cmp %g1, 0 20401c4: 22 80 00 03 be,a 20401d0 <== NEVER TAKEN 20401c8: 90 0a 37 ff and %o0, -2049, %o0 <== NOT EXECUTED 20401cc: 90 12 28 00 or %o0, 0x800, %o0 iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; 20401d0: d0 24 20 18 st %o0, [ %l0 + 0x18 ] 20401d4: 10 80 00 1c b 2040244 20401d8: b0 10 20 00 clr %i0 break; case F_GETFL: /* more flags (cloexec) */ ret = rtems_libio_to_fcntl_flags( iop->flags ); 20401dc: 7f ff 20 d2 call 2008524 20401e0: 01 00 00 00 nop 20401e4: 10 80 00 15 b 2040238 20401e8: b0 10 00 08 mov %o0, %i0 break; case F_SETFL: flags = rtems_libio_fcntl_flags( va_arg( ap, int ) ); 20401ec: d0 00 80 00 ld [ %g2 ], %o0 20401f0: 7f ff 21 6c call 20087a0 20401f4: 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); 20401f8: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 20401fc: 90 0a 22 01 and %o0, 0x201, %o0 2040200: 82 08 7d fe and %g1, -514, %g1 2040204: 82 12 00 01 or %o0, %g1, %g1 2040208: 10 80 00 0f b 2040244 204020c: c2 24 20 18 st %g1, [ %l0 + 0x18 ] errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP; 2040210: 40 00 10 21 call 2044294 <__errno> 2040214: b0 10 3f ff mov -1, %i0 2040218: 10 80 00 05 b 204022c 204021c: 82 10 20 86 mov 0x86, %g1 ret = -1; break; default: errno = EINVAL; 2040220: 40 00 10 1d call 2044294 <__errno> 2040224: b0 10 3f ff mov -1, %i0 2040228: 82 10 20 16 mov 0x16, %g1 204022c: c2 22 00 00 st %g1, [ %o0 ] 2040230: 81 c7 e0 08 ret 2040234: 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) { 2040238: 80 a6 20 00 cmp %i0, 0 204023c: 06 80 00 0f bl 2040278 <== NEVER TAKEN 2040240: 01 00 00 00 nop if (iop->handlers->fcntl_h) { 2040244: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 2040248: c2 00 60 30 ld [ %g1 + 0x30 ], %g1 204024c: 80 a0 60 00 cmp %g1, 0 2040250: 02 bf ff f8 be 2040230 <== NEVER TAKEN 2040254: 92 10 00 10 mov %l0, %o1 int err = (*iop->handlers->fcntl_h)( cmd, iop ); 2040258: 9f c0 40 00 call %g1 204025c: 90 10 00 19 mov %i1, %o0 if (err) { 2040260: a0 92 20 00 orcc %o0, 0, %l0 2040264: 02 80 00 05 be 2040278 <== ALWAYS TAKEN 2040268: 01 00 00 00 nop errno = err; 204026c: 40 00 10 0a call 2044294 <__errno> <== NOT EXECUTED 2040270: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 2040274: 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; } 2040278: 81 c7 e0 08 ret 204027c: 81 e8 00 00 restore =============================================================================== 02003720 : #include int fdatasync( int fd ) { 2003720: 9d e3 bf a0 save %sp, -96, %sp rtems_libio_t *iop; rtems_libio_check_fd( fd ); 2003724: 03 00 80 7d sethi %hi(0x201f400), %g1 2003728: c2 00 62 04 ld [ %g1 + 0x204 ], %g1 ! 201f604 200372c: 80 a6 00 01 cmp %i0, %g1 2003730: 1a 80 00 0e bcc 2003768 <== NEVER TAKEN 2003734: 01 00 00 00 nop iop = rtems_libio_iop( fd ); 2003738: 03 00 80 80 sethi %hi(0x2020000), %g1 200373c: d0 00 60 18 ld [ %g1 + 0x18 ], %o0 ! 2020018 2003740: 83 2e 20 06 sll %i0, 6, %g1 2003744: b1 2e 20 03 sll %i0, 3, %i0 2003748: b0 06 00 01 add %i0, %g1, %i0 200374c: 90 02 00 18 add %o0, %i0, %o0 rtems_libio_check_is_open(iop); 2003750: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 2003754: 80 88 61 00 btst 0x100, %g1 2003758: 02 80 00 04 be 2003768 <== NEVER TAKEN 200375c: 80 88 60 04 btst 4, %g1 rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF ); 2003760: 32 80 00 06 bne,a 2003778 2003764: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 2003768: 40 00 39 7b call 2011d54 <__errno> 200376c: 01 00 00 00 nop 2003770: 10 80 00 09 b 2003794 2003774: 82 10 20 09 mov 9, %g1 ! 9 /* * Now process the fdatasync(). */ if ( !iop->handlers->fdatasync_h ) 2003778: c2 00 60 2c ld [ %g1 + 0x2c ], %g1 200377c: 80 a0 60 00 cmp %g1, 0 2003780: 12 80 00 08 bne 20037a0 <== NEVER TAKEN 2003784: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); 2003788: 40 00 39 73 call 2011d54 <__errno> 200378c: 01 00 00 00 nop 2003790: 82 10 20 86 mov 0x86, %g1 ! 86 2003794: c2 22 00 00 st %g1, [ %o0 ] 2003798: 10 80 00 04 b 20037a8 200379c: 90 10 3f ff mov -1, %o0 return (*iop->handlers->fdatasync_h)( iop ); 20037a0: 9f c0 40 00 call %g1 <== NOT EXECUTED 20037a4: 01 00 00 00 nop <== NOT EXECUTED } 20037a8: 81 c7 e0 08 ret 20037ac: 91 e8 00 08 restore %g0, %o0, %o0 =============================================================================== 0200a764 : */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 200a764: 9d e3 bf 98 save %sp, -104, %sp ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 200a768: 03 00 80 77 sethi %hi(0x201dc00), %g1 200a76c: d0 00 63 38 ld [ %g1 + 0x338 ], %o0 ! 201df38 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 200a770: a0 10 00 18 mov %i0, %l0 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 200a774: 92 10 20 00 clr %o1 200a778: 94 10 20 00 clr %o2 200a77c: 7f ff ee f2 call 2006344 200a780: b0 10 3f fc mov -4, %i0 200a784: 80 a2 20 00 cmp %o0, 0 200a788: 12 80 00 ed bne 200ab3c <== ALWAYS TAKEN 200a78c: 01 00 00 00 nop RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL) return -EINTR; pipe = *pipep; 200a790: e2 04 00 00 ld [ %l0 ], %l1 <== NOT EXECUTED if (pipe == NULL) { 200a794: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 200a798: 32 80 00 58 bne,a 200a8f8 <== NOT EXECUTED 200a79c: 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)); 200a7a0: 7f ff e1 b6 call 2002e78 <== NOT EXECUTED 200a7a4: 90 10 20 34 mov 0x34, %o0 <== NOT EXECUTED if (pipe == NULL) 200a7a8: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED 200a7ac: 02 80 00 50 be 200a8ec <== NOT EXECUTED 200a7b0: a6 10 00 11 mov %l1, %l3 <== NOT EXECUTED return err; memset(pipe, 0, sizeof(pipe_control_t)); 200a7b4: 92 10 20 00 clr %o1 <== NOT EXECUTED 200a7b8: 40 00 1a df call 2011334 <== NOT EXECUTED 200a7bc: 94 10 20 34 mov 0x34, %o2 <== NOT EXECUTED pipe->Size = PIPE_BUF; 200a7c0: 82 10 22 00 mov 0x200, %g1 <== NOT EXECUTED pipe->Buffer = malloc(pipe->Size); 200a7c4: 90 10 22 00 mov 0x200, %o0 <== NOT EXECUTED 200a7c8: 7f ff e1 ac call 2002e78 <== NOT EXECUTED 200a7cc: c2 24 60 04 st %g1, [ %l1 + 4 ] <== NOT EXECUTED if (! pipe->Buffer) 200a7d0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200a7d4: 02 80 00 44 be 200a8e4 <== NOT EXECUTED 200a7d8: d0 24 40 00 st %o0, [ %l1 ] <== NOT EXECUTED goto err_buf; err = -ENOMEM; if (rtems_barrier_create( 200a7dc: 25 00 80 76 sethi %hi(0x201d800), %l2 <== NOT EXECUTED 200a7e0: d0 4c a0 74 ldsb [ %l2 + 0x74 ], %o0 ! 201d874 <== NOT EXECUTED 200a7e4: 29 14 12 5c sethi %hi(0x50497000), %l4 <== NOT EXECUTED 200a7e8: 82 15 22 00 or %l4, 0x200, %g1 ! 50497200 <== NOT EXECUTED 200a7ec: 92 10 20 00 clr %o1 <== NOT EXECUTED 200a7f0: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 200a7f4: 94 10 20 00 clr %o2 <== NOT EXECUTED 200a7f8: 40 00 09 83 call 200ce04 <== NOT EXECUTED 200a7fc: 96 04 60 2c add %l1, 0x2c, %o3 <== NOT EXECUTED 200a800: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200a804: 12 80 00 36 bne 200a8dc <== NOT EXECUTED 200a808: d0 4c a0 74 ldsb [ %l2 + 0x74 ], %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( 200a80c: 03 14 12 5d sethi %hi(0x50497400), %g1 <== NOT EXECUTED 200a810: 82 10 63 00 or %g1, 0x300, %g1 ! 50497700 <== NOT EXECUTED 200a814: 92 10 20 00 clr %o1 <== NOT EXECUTED 200a818: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 200a81c: 94 10 20 00 clr %o2 <== NOT EXECUTED 200a820: 40 00 09 79 call 200ce04 <== NOT EXECUTED 200a824: 96 04 60 30 add %l1, 0x30, %o3 <== NOT EXECUTED 200a828: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200a82c: 12 80 00 2a bne 200a8d4 <== NOT EXECUTED 200a830: d0 4c a0 74 ldsb [ %l2 + 0x74 ], %o0 <== 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( 200a834: a8 15 23 00 or %l4, 0x300, %l4 <== NOT EXECUTED 200a838: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 200a83c: 90 12 00 14 or %o0, %l4, %o0 <== NOT EXECUTED 200a840: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 200a844: 96 10 20 00 clr %o3 <== NOT EXECUTED 200a848: 7f ff ee 1d call 20060bc <== NOT EXECUTED 200a84c: 98 04 60 28 add %l1, 0x28, %o4 <== NOT EXECUTED 200a850: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200a854: 12 80 00 1e bne 200a8cc <== NOT EXECUTED 200a858: 29 00 80 7a sethi %hi(0x201e800), %l4 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get ( Objects_Id id, Objects_Locations *location ) { return (Barrier_Control *) 200a85c: d2 04 60 2c ld [ %l1 + 0x2c ], %o1 <== NOT EXECUTED 200a860: b0 07 bf f8 add %fp, -8, %i0 <== NOT EXECUTED 200a864: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED 200a868: 7f ff f4 ec call 2007c18 <_Objects_Get> <== NOT EXECUTED 200a86c: 90 15 23 b8 or %l4, 0x3b8, %o0 <== NOT EXECUTED /* Set barriers to be interruptible by signals. */ static void pipe_interruptible(pipe_control_t *pipe) { Objects_Locations location; _Barrier_Get(pipe->readBarrier, &location)->Barrier.Wait_queue.state 200a870: c2 02 20 4c ld [ %o0 + 0x4c ], %g1 <== NOT EXECUTED 200a874: 27 04 00 00 sethi %hi(0x10000000), %l3 <== NOT EXECUTED 200a878: 82 10 40 13 or %g1, %l3, %g1 <== NOT EXECUTED |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); 200a87c: 7f ff f7 6a call 2008624 <_Thread_Enable_dispatch> <== NOT EXECUTED 200a880: c2 22 20 4c st %g1, [ %o0 + 0x4c ] <== NOT EXECUTED 200a884: d2 04 60 30 ld [ %l1 + 0x30 ], %o1 <== NOT EXECUTED 200a888: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED 200a88c: 7f ff f4 e3 call 2007c18 <_Objects_Get> <== NOT EXECUTED 200a890: 90 15 23 b8 or %l4, 0x3b8, %o0 <== NOT EXECUTED _Barrier_Get(pipe->writeBarrier, &location)->Barrier.Wait_queue.state 200a894: c2 02 20 4c ld [ %o0 + 0x4c ], %g1 <== NOT EXECUTED 200a898: a6 10 40 13 or %g1, %l3, %l3 <== NOT EXECUTED |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); 200a89c: 7f ff f7 62 call 2008624 <_Thread_Enable_dispatch> <== NOT EXECUTED 200a8a0: e6 22 20 4c st %l3, [ %o0 + 0x4c ] <== NOT EXECUTED #ifdef RTEMS_POSIX_API pipe_interruptible(pipe); #endif *pipep = pipe; if (c ++ == 'z') 200a8a4: c2 0c a0 74 ldub [ %l2 + 0x74 ], %g1 <== NOT EXECUTED 200a8a8: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED 200a8ac: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED 200a8b0: 83 38 60 18 sra %g1, 0x18, %g1 <== NOT EXECUTED 200a8b4: 80 a0 60 7a cmp %g1, 0x7a <== NOT EXECUTED 200a8b8: 12 80 00 0f bne 200a8f4 <== NOT EXECUTED 200a8bc: c4 2c a0 74 stb %g2, [ %l2 + 0x74 ] <== NOT EXECUTED c = 'a'; 200a8c0: 82 10 20 61 mov 0x61, %g1 <== NOT EXECUTED 200a8c4: 10 80 00 0c b 200a8f4 <== NOT EXECUTED 200a8c8: c2 2c a0 74 stb %g1, [ %l2 + 0x74 ] <== NOT EXECUTED return 0; err_sem: rtems_barrier_delete(pipe->writeBarrier); 200a8cc: 40 00 09 7c call 200cebc <== NOT EXECUTED 200a8d0: d0 04 60 30 ld [ %l1 + 0x30 ], %o0 <== NOT EXECUTED err_wbar: rtems_barrier_delete(pipe->readBarrier); 200a8d4: 40 00 09 7a call 200cebc <== NOT EXECUTED 200a8d8: d0 04 e0 2c ld [ %l3 + 0x2c ], %o0 <== NOT EXECUTED err_rbar: free(pipe->Buffer); 200a8dc: 7f ff e0 88 call 2002afc <== NOT EXECUTED 200a8e0: d0 04 c0 00 ld [ %l3 ], %o0 <== NOT EXECUTED err_buf: free(pipe); 200a8e4: 7f ff e0 86 call 2002afc <== NOT EXECUTED 200a8e8: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 200a8ec: 10 80 00 14 b 200a93c <== NOT EXECUTED 200a8f0: b0 10 3f f4 mov -12, %i0 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 200a8f4: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED 200a8f8: 92 10 20 00 clr %o1 <== NOT EXECUTED 200a8fc: 7f ff ee 92 call 2006344 <== NOT EXECUTED 200a900: 94 10 20 00 clr %o2 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 200a904: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 200a908: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED 200a90c: b0 40 3f ff addx %g0, -1, %i0 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 200a910: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 200a914: b0 0e 20 04 and %i0, 4, %i0 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 200a918: 12 80 00 09 bne 200a93c <== NOT EXECUTED 200a91c: b0 06 3f fc add %i0, -4, %i0 <== NOT EXECUTED if (err) 200a920: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200a924: 22 80 00 06 be,a 200a93c <== NOT EXECUTED 200a928: e2 24 00 00 st %l1, [ %l0 ] <== NOT EXECUTED pipe_free(pipe); 200a92c: 7f ff ff 3e call 200a624 <== NOT EXECUTED 200a930: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 200a934: 10 80 00 03 b 200a940 <== NOT EXECUTED 200a938: 03 00 80 77 sethi %hi(0x201dc00), %g1 <== NOT EXECUTED 200a93c: 03 00 80 77 sethi %hi(0x201dc00), %g1 <== NOT EXECUTED 200a940: 7f ff ee c8 call 2006460 <== NOT EXECUTED 200a944: d0 00 63 38 ld [ %g1 + 0x338 ], %o0 ! 201df38 <== NOT EXECUTED pipe_control_t *pipe; unsigned int prevCounter; int err; err = pipe_new(pipep); if (err) 200a948: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200a94c: 12 80 00 7c bne 200ab3c <== NOT EXECUTED 200a950: 01 00 00 00 nop <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { 200a954: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED 200a958: 82 08 60 06 and %g1, 6, %g1 <== NOT EXECUTED 200a95c: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED 200a960: 02 80 00 2e be 200aa18 <== NOT EXECUTED 200a964: e2 04 00 00 ld [ %l0 ], %l1 <== NOT EXECUTED 200a968: 80 a0 60 06 cmp %g1, 6 <== NOT EXECUTED 200a96c: 02 80 00 56 be 200aac4 <== NOT EXECUTED 200a970: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 200a974: 12 80 00 6a bne 200ab1c <== NOT EXECUTED 200a978: 01 00 00 00 nop <== NOT EXECUTED case LIBIO_FLAGS_READ: pipe->readerCounter ++; if (pipe->Readers ++ == 0) 200a97c: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; 200a980: c4 04 60 20 ld [ %l1 + 0x20 ], %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 200a984: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; 200a988: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 200a98c: c6 24 60 10 st %g3, [ %l1 + 0x10 ] <== NOT EXECUTED 200a990: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200a994: 12 80 00 05 bne 200a9a8 <== NOT EXECUTED 200a998: c4 24 60 20 st %g2, [ %l1 + 0x20 ] <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); 200a99c: d0 04 60 30 ld [ %l1 + 0x30 ], %o0 <== NOT EXECUTED 200a9a0: 40 00 09 61 call 200cf24 <== NOT EXECUTED 200a9a4: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED if (pipe->Writers == 0) { 200a9a8: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 200a9ac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200a9b0: 12 80 00 5b bne 200ab1c <== NOT EXECUTED 200a9b4: 01 00 00 00 nop <== NOT EXECUTED /* Not an error */ if (LIBIO_NODELAY(iop)) 200a9b8: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED 200a9bc: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 200a9c0: 12 80 00 57 bne 200ab1c <== NOT EXECUTED 200a9c4: 01 00 00 00 nop <== NOT EXECUTED break; prevCounter = pipe->writerCounter; 200a9c8: e4 04 60 24 ld [ %l1 + 0x24 ], %l2 <== NOT EXECUTED err = -EINTR; /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); 200a9cc: 7f ff ee a5 call 2006460 <== NOT EXECUTED 200a9d0: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 200a9d4: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED 200a9d8: 40 00 09 6a call 200cf80 <== NOT EXECUTED 200a9dc: 92 10 20 00 clr %o1 <== NOT EXECUTED 200a9e0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200a9e4: 12 80 00 52 bne 200ab2c <== NOT EXECUTED 200a9e8: 92 10 20 00 clr %o1 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) 200a9ec: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED 200a9f0: 7f ff ee 55 call 2006344 <== NOT EXECUTED 200a9f4: 94 10 20 00 clr %o2 <== NOT EXECUTED 200a9f8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200a9fc: 32 80 00 4d bne,a 200ab30 <== NOT EXECUTED 200aa00: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->writerCounter); 200aa04: c2 04 60 24 ld [ %l1 + 0x24 ], %g1 <== NOT EXECUTED 200aa08: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED 200aa0c: 02 bf ff f0 be 200a9cc <== NOT EXECUTED 200aa10: 01 00 00 00 nop <== NOT EXECUTED 200aa14: 30 80 00 42 b,a 200ab1c <== NOT EXECUTED break; case LIBIO_FLAGS_WRITE: pipe->writerCounter ++; if (pipe->Writers ++ == 0) 200aa18: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED } while (prevCounter == pipe->writerCounter); } break; case LIBIO_FLAGS_WRITE: pipe->writerCounter ++; 200aa1c: c4 04 60 24 ld [ %l1 + 0x24 ], %g2 <== NOT EXECUTED if (pipe->Writers ++ == 0) 200aa20: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED } while (prevCounter == pipe->writerCounter); } break; case LIBIO_FLAGS_WRITE: pipe->writerCounter ++; 200aa24: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Writers ++ == 0) 200aa28: c6 24 60 14 st %g3, [ %l1 + 0x14 ] <== NOT EXECUTED 200aa2c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200aa30: 12 80 00 05 bne 200aa44 <== NOT EXECUTED 200aa34: c4 24 60 24 st %g2, [ %l1 + 0x24 ] <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 200aa38: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED 200aa3c: 40 00 09 3a call 200cf24 <== NOT EXECUTED 200aa40: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { 200aa44: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED 200aa48: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200aa4c: 12 80 00 34 bne 200ab1c <== NOT EXECUTED 200aa50: 01 00 00 00 nop <== NOT EXECUTED 200aa54: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED 200aa58: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 200aa5c: 22 80 00 07 be,a 200aa78 <== NOT EXECUTED 200aa60: e4 04 60 20 ld [ %l1 + 0x20 ], %l2 <== NOT EXECUTED PIPE_UNLOCK(pipe); 200aa64: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED 200aa68: 7f ff ee 7e call 2006460 <== NOT EXECUTED 200aa6c: b0 10 3f fa mov -6, %i0 <== NOT EXECUTED err = -ENXIO; goto out_error; 200aa70: 10 80 00 31 b 200ab34 <== NOT EXECUTED 200aa74: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if (pipe->Readers == 0) { prevCounter = pipe->readerCounter; err = -EINTR; do { PIPE_UNLOCK(pipe); 200aa78: 7f ff ee 7a call 2006460 <== NOT EXECUTED 200aa7c: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 200aa80: d0 04 60 30 ld [ %l1 + 0x30 ], %o0 <== NOT EXECUTED 200aa84: 40 00 09 3f call 200cf80 <== NOT EXECUTED 200aa88: 92 10 20 00 clr %o1 <== NOT EXECUTED 200aa8c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200aa90: 12 80 00 27 bne 200ab2c <== NOT EXECUTED 200aa94: 92 10 20 00 clr %o1 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) 200aa98: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED 200aa9c: 7f ff ee 2a call 2006344 <== NOT EXECUTED 200aaa0: 94 10 20 00 clr %o2 <== NOT EXECUTED 200aaa4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200aaa8: 32 80 00 22 bne,a 200ab30 <== NOT EXECUTED 200aaac: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->readerCounter); 200aab0: c2 04 60 20 ld [ %l1 + 0x20 ], %g1 <== NOT EXECUTED 200aab4: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED 200aab8: 02 bf ff f0 be 200aa78 <== NOT EXECUTED 200aabc: 01 00 00 00 nop <== NOT EXECUTED 200aac0: 30 80 00 17 b,a 200ab1c <== NOT EXECUTED } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) 200aac4: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; 200aac8: c4 04 60 20 ld [ %l1 + 0x20 ], %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 200aacc: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; 200aad0: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 200aad4: c6 24 60 10 st %g3, [ %l1 + 0x10 ] <== NOT EXECUTED 200aad8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200aadc: 12 80 00 05 bne 200aaf0 <== NOT EXECUTED 200aae0: c4 24 60 20 st %g2, [ %l1 + 0x20 ] <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); 200aae4: d0 04 60 30 ld [ %l1 + 0x30 ], %o0 <== NOT EXECUTED 200aae8: 40 00 09 0f call 200cf24 <== NOT EXECUTED 200aaec: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED pipe->writerCounter ++; if (pipe->Writers ++ == 0) 200aaf0: 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 ++; 200aaf4: c4 04 60 24 ld [ %l1 + 0x24 ], %g2 <== NOT EXECUTED if (pipe->Writers ++ == 0) 200aaf8: 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 ++; 200aafc: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Writers ++ == 0) 200ab00: c6 24 60 14 st %g3, [ %l1 + 0x14 ] <== NOT EXECUTED 200ab04: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200ab08: 12 80 00 05 bne 200ab1c <== NOT EXECUTED 200ab0c: c4 24 60 24 st %g2, [ %l1 + 0x24 ] <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 200ab10: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED 200ab14: 40 00 09 04 call 200cf24 <== NOT EXECUTED 200ab18: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED break; } PIPE_UNLOCK(pipe); 200ab1c: 7f ff ee 51 call 2006460 <== NOT EXECUTED 200ab20: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED return 0; 200ab24: 81 c7 e0 08 ret <== NOT EXECUTED 200ab28: 81 e8 00 00 restore <== NOT EXECUTED 200ab2c: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED out_error: pipe_release(pipep, iop); 200ab30: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 200ab34: 7f ff fe c8 call 200a654 <== NOT EXECUTED 200ab38: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED return err; } 200ab3c: 81 c7 e0 08 ret 200ab40: 81 e8 00 00 restore =============================================================================== 020037e0 : long fpathconf( int fd, int name ) { 20037e0: 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); 20037e4: 03 00 80 7d sethi %hi(0x201f400), %g1 20037e8: c2 00 62 04 ld [ %g1 + 0x204 ], %g1 ! 201f604 20037ec: 80 a6 00 01 cmp %i0, %g1 20037f0: 1a 80 00 0b bcc 200381c 20037f4: 03 00 80 80 sethi %hi(0x2020000), %g1 iop = rtems_libio_iop(fd); 20037f8: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 ! 2020018 20037fc: 85 2e 20 06 sll %i0, 6, %g2 2003800: b1 2e 20 03 sll %i0, 3, %i0 2003804: b0 06 00 02 add %i0, %g2, %i0 2003808: b0 00 40 18 add %g1, %i0, %i0 rtems_libio_check_is_open(iop); 200380c: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 2003810: 80 88 61 00 btst 0x100, %g1 2003814: 12 80 00 08 bne 2003834 <== ALWAYS TAKEN 2003818: 80 a6 60 0b cmp %i1, 0xb 200381c: 40 00 39 4e call 2011d54 <__errno> 2003820: b0 10 3f ff mov -1, %i0 2003824: 82 10 20 09 mov 9, %g1 2003828: c2 22 00 00 st %g1, [ %o0 ] 200382c: 81 c7 e0 08 ret 2003830: 81 e8 00 00 restore * Now process the information request. */ the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; switch ( name ) { 2003834: 18 80 00 2c bgu 20038e4 2003838: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 200383c: b3 2e 60 02 sll %i1, 2, %i1 2003840: 05 00 80 0d sethi %hi(0x2003400), %g2 2003844: 84 10 a3 b0 or %g2, 0x3b0, %g2 ! 20037b0 2003848: c4 00 80 19 ld [ %g2 + %i1 ], %g2 200384c: 81 c0 80 00 jmp %g2 2003850: 01 00 00 00 nop case _PC_LINK_MAX: return_value = the_limits->link_max; 2003854: f0 00 60 38 ld [ %g1 + 0x38 ], %i0 break; 2003858: 81 c7 e0 08 ret 200385c: 81 e8 00 00 restore case _PC_MAX_CANON: return_value = the_limits->max_canon; 2003860: f0 00 60 3c ld [ %g1 + 0x3c ], %i0 break; 2003864: 81 c7 e0 08 ret 2003868: 81 e8 00 00 restore case _PC_MAX_INPUT: return_value = the_limits->max_input; 200386c: f0 00 60 40 ld [ %g1 + 0x40 ], %i0 break; 2003870: 81 c7 e0 08 ret 2003874: 81 e8 00 00 restore case _PC_NAME_MAX: return_value = the_limits->name_max; 2003878: f0 00 60 44 ld [ %g1 + 0x44 ], %i0 break; 200387c: 81 c7 e0 08 ret 2003880: 81 e8 00 00 restore case _PC_PATH_MAX: return_value = the_limits->path_max; 2003884: f0 00 60 48 ld [ %g1 + 0x48 ], %i0 break; 2003888: 81 c7 e0 08 ret 200388c: 81 e8 00 00 restore case _PC_PIPE_BUF: return_value = the_limits->pipe_buf; 2003890: f0 00 60 4c ld [ %g1 + 0x4c ], %i0 break; 2003894: 81 c7 e0 08 ret 2003898: 81 e8 00 00 restore case _PC_CHOWN_RESTRICTED: return_value = the_limits->posix_chown_restrictions; 200389c: f0 00 60 54 ld [ %g1 + 0x54 ], %i0 break; 20038a0: 81 c7 e0 08 ret 20038a4: 81 e8 00 00 restore case _PC_NO_TRUNC: return_value = the_limits->posix_no_trunc; 20038a8: f0 00 60 58 ld [ %g1 + 0x58 ], %i0 break; 20038ac: 81 c7 e0 08 ret 20038b0: 81 e8 00 00 restore case _PC_VDISABLE: return_value = the_limits->posix_vdisable; 20038b4: f0 00 60 64 ld [ %g1 + 0x64 ], %i0 break; 20038b8: 81 c7 e0 08 ret 20038bc: 81 e8 00 00 restore case _PC_ASYNC_IO: return_value = the_limits->posix_async_io; 20038c0: f0 00 60 50 ld [ %g1 + 0x50 ], %i0 break; 20038c4: 81 c7 e0 08 ret 20038c8: 81 e8 00 00 restore case _PC_PRIO_IO: return_value = the_limits->posix_prio_io; 20038cc: f0 00 60 5c ld [ %g1 + 0x5c ], %i0 break; 20038d0: 81 c7 e0 08 ret 20038d4: 81 e8 00 00 restore case _PC_SYNC_IO: return_value = the_limits->posix_sync_io; 20038d8: f0 00 60 60 ld [ %g1 + 0x60 ], %i0 break; 20038dc: 81 c7 e0 08 ret 20038e0: 81 e8 00 00 restore default: rtems_set_errno_and_return_minus_one( EINVAL ); 20038e4: 40 00 39 1c call 2011d54 <__errno> 20038e8: b0 10 3f ff mov -1, %i0 20038ec: 82 10 20 16 mov 0x16, %g1 20038f0: c2 22 00 00 st %g1, [ %o0 ] break; } return return_value; } 20038f4: 81 c7 e0 08 ret 20038f8: 81 e8 00 00 restore =============================================================================== 02002afc : void free( void *ptr ) { MSBUMP(free_calls, 1); 2002afc: 9d e3 bf a0 save %sp, -96, %sp 2002b00: 03 00 80 78 sethi %hi(0x201e000), %g1 2002b04: 82 10 60 d0 or %g1, 0xd0, %g1 ! 201e0d0 2002b08: c4 00 60 0c ld [ %g1 + 0xc ], %g2 2002b0c: b2 10 00 18 mov %i0, %i1 2002b10: 84 00 a0 01 inc %g2 if ( !ptr ) 2002b14: 80 a6 20 00 cmp %i0, 0 2002b18: 02 80 00 21 be 2002b9c 2002b1c: 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()) && 2002b20: 03 00 80 79 sethi %hi(0x201e400), %g1 2002b24: c2 00 60 30 ld [ %g1 + 0x30 ], %g1 ! 201e430 <_System_state_Current> 2002b28: 80 a0 60 03 cmp %g1, 3 2002b2c: 12 80 00 09 bne 2002b50 <== NEVER TAKEN 2002b30: 03 00 80 77 sethi %hi(0x201dc00), %g1 2002b34: 40 00 00 6f call 2002cf0 2002b38: 01 00 00 00 nop 2002b3c: 80 8a 20 ff btst 0xff, %o0 2002b40: 12 80 00 04 bne 2002b50 <== ALWAYS TAKEN 2002b44: 03 00 80 77 sethi %hi(0x201dc00), %g1 !malloc_is_system_state_OK() ) { malloc_deferred_free(ptr); 2002b48: 40 00 00 7c call 2002d38 <== NOT EXECUTED 2002b4c: 81 e8 00 00 restore <== NOT EXECUTED #endif /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 2002b50: c2 00 61 d8 ld [ %g1 + 0x1d8 ], %g1 2002b54: 80 a0 60 00 cmp %g1, 0 2002b58: 02 80 00 06 be 2002b70 <== ALWAYS TAKEN 2002b5c: 21 00 80 75 sethi %hi(0x201d400), %l0 (*rtems_malloc_statistics_helpers->at_free)(ptr); 2002b60: c2 00 60 08 ld [ %g1 + 8 ], %g1 <== NOT EXECUTED 2002b64: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002b68: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) { 2002b6c: 21 00 80 75 sethi %hi(0x201d400), %l0 <== NOT EXECUTED 2002b70: d0 04 22 b0 ld [ %l0 + 0x2b0 ], %o0 ! 201d6b0 2002b74: 40 00 14 fe call 2007f6c <_Protected_heap_Free> 2002b78: 92 10 00 19 mov %i1, %o1 2002b7c: 80 8a 20 ff btst 0xff, %o0 2002b80: 12 80 00 07 bne 2002b9c <== ALWAYS TAKEN 2002b84: c2 04 22 b0 ld [ %l0 + 0x2b0 ], %g1 printk( "Program heap: free of bad pointer %p -- range %p - %p \n", 2002b88: 31 00 80 70 sethi %hi(0x201c000), %i0 <== NOT EXECUTED 2002b8c: f6 00 60 1c ld [ %g1 + 0x1c ], %i3 <== NOT EXECUTED 2002b90: f4 00 60 18 ld [ %g1 + 0x18 ], %i2 <== NOT EXECUTED 2002b94: 40 00 03 ac call 2003a44 <== NOT EXECUTED 2002b98: 91 ee 23 d8 restore %i0, 0x3d8, %o0 <== NOT EXECUTED 2002b9c: 81 c7 e0 08 ret 2002ba0: 81 e8 00 00 restore =============================================================================== 0202a304 : * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { 202a304: 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 202a308: 03 00 81 ba sethi %hi(0x206e800), %g1 <== NOT EXECUTED 202a30c: 82 10 63 fc or %g1, 0x3fc, %g1 ! 206ebfc <== NOT EXECUTED 202a310: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 202a314: 02 80 00 18 be 202a374 <== NOT EXECUTED 202a318: 01 00 00 00 nop <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); 202a31c: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED 202a320: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202a324: 22 80 00 09 be,a 202a348 <== NOT EXECUTED 202a328: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED 202a32c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 202a330: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202a334: 22 80 00 05 be,a 202a348 <== NOT EXECUTED 202a338: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED 202a33c: 9f c0 40 00 call %g1 <== NOT EXECUTED 202a340: 90 06 20 04 add %i0, 4, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); 202a344: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED 202a348: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202a34c: 02 80 00 08 be 202a36c <== NOT EXECUTED 202a350: 01 00 00 00 nop <== NOT EXECUTED 202a354: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 202a358: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202a35c: 02 80 00 04 be 202a36c <== NOT EXECUTED 202a360: 01 00 00 00 nop <== NOT EXECUTED 202a364: 9f c0 40 00 call %g1 <== NOT EXECUTED 202a368: 90 06 20 18 add %i0, 0x18, %o0 <== NOT EXECUTED free(env); 202a36c: 7f ff 77 bd call 2008260 <== NOT EXECUTED 202a370: 81 e8 00 00 restore <== NOT EXECUTED 202a374: 81 c7 e0 08 ret <== NOT EXECUTED 202a378: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0201b2ec : int fstat( int fd, struct stat *sbuf ) { 201b2ec: 9d e3 bf a0 save %sp, -96, %sp /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) 201b2f0: 80 a6 60 00 cmp %i1, 0 201b2f4: 32 80 00 06 bne,a 201b30c 201b2f8: 03 00 80 75 sethi %hi(0x201d400), %g1 rtems_set_errno_and_return_minus_one( EFAULT ); 201b2fc: 7f ff d5 93 call 2010948 <__errno> 201b300: 01 00 00 00 nop 201b304: 10 80 00 12 b 201b34c 201b308: 82 10 20 0e mov 0xe, %g1 ! e /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); 201b30c: c2 00 62 a4 ld [ %g1 + 0x2a4 ], %g1 201b310: 80 a6 00 01 cmp %i0, %g1 201b314: 1a 80 00 0b bcc 201b340 201b318: 03 00 80 78 sethi %hi(0x201e000), %g1 201b31c: c2 00 60 b4 ld [ %g1 + 0xb4 ], %g1 ! 201e0b4 201b320: 85 2e 20 06 sll %i0, 6, %g2 201b324: b1 2e 20 03 sll %i0, 3, %i0 201b328: b0 06 00 02 add %i0, %g2, %i0 201b32c: b0 00 40 18 add %g1, %i0, %i0 rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); 201b330: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 201b334: 80 88 61 00 btst 0x100, %g1 201b338: 32 80 00 08 bne,a 201b358 <== ALWAYS TAKEN 201b33c: c2 06 20 40 ld [ %i0 + 0x40 ], %g1 /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); rtems_libio_check_fd( fd ); 201b340: 7f ff d5 82 call 2010948 <__errno> 201b344: 01 00 00 00 nop 201b348: 82 10 20 09 mov 9, %g1 ! 9 201b34c: c2 22 00 00 st %g1, [ %o0 ] 201b350: 10 80 00 15 b 201b3a4 201b354: 90 10 3f ff mov -1, %o0 rtems_libio_check_is_open(iop); if ( !iop->handlers ) 201b358: 80 a0 60 00 cmp %g1, 0 201b35c: 02 bf ff f9 be 201b340 <== NEVER TAKEN 201b360: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h ) 201b364: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 201b368: 80 a0 60 00 cmp %g1, 0 201b36c: 12 80 00 06 bne 201b384 <== ALWAYS TAKEN 201b370: 92 10 20 00 clr %o1 rtems_set_errno_and_return_minus_one( ENOTSUP ); 201b374: 7f ff d5 75 call 2010948 <__errno> <== NOT EXECUTED 201b378: 01 00 00 00 nop <== NOT EXECUTED 201b37c: 10 bf ff f4 b 201b34c <== NOT EXECUTED 201b380: 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) ); 201b384: 94 10 20 48 mov 0x48, %o2 201b388: 7f ff d7 eb call 2011334 201b38c: 90 10 00 19 mov %i1, %o0 return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); 201b390: c2 06 20 40 ld [ %i0 + 0x40 ], %g1 201b394: 90 06 20 1c add %i0, 0x1c, %o0 201b398: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 201b39c: 9f c0 40 00 call %g1 201b3a0: 92 10 00 19 mov %i1, %o1 } 201b3a4: 81 c7 e0 08 ret 201b3a8: 91 e8 00 08 restore %g0, %o0, %o0 =============================================================================== 02028e98 : #include int fsync( int fd ) { 2028e98: 9d e3 bf a0 save %sp, -96, %sp rtems_libio_t *iop; rtems_libio_check_fd( fd ); 2028e9c: 03 00 81 aa sethi %hi(0x206a800), %g1 2028ea0: c2 00 61 34 ld [ %g1 + 0x134 ], %g1 ! 206a934 2028ea4: 80 a6 00 01 cmp %i0, %g1 2028ea8: 1a 80 00 10 bcc 2028ee8 <== NEVER TAKEN 2028eac: 01 00 00 00 nop iop = rtems_libio_iop( fd ); 2028eb0: 03 00 81 ba sethi %hi(0x206e800), %g1 2028eb4: d0 00 63 a4 ld [ %g1 + 0x3a4 ], %o0 ! 206eba4 2028eb8: 83 2e 20 06 sll %i0, 6, %g1 2028ebc: b1 2e 20 03 sll %i0, 3, %i0 2028ec0: b0 06 00 01 add %i0, %g1, %i0 2028ec4: 90 02 00 18 add %o0, %i0, %o0 rtems_libio_check_is_open(iop); 2028ec8: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 2028ecc: 80 88 61 00 btst 0x100, %g1 2028ed0: 02 80 00 06 be 2028ee8 <== NEVER TAKEN 2028ed4: 01 00 00 00 nop /* * Now process the fsync(). */ if ( !iop->handlers ) 2028ed8: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 2028edc: 80 a0 60 00 cmp %g1, 0 2028ee0: 32 80 00 06 bne,a 2028ef8 <== ALWAYS TAKEN 2028ee4: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 rtems_set_errno_and_return_minus_one( EBADF ); 2028ee8: 40 00 6c eb call 2044294 <__errno> <== NOT EXECUTED 2028eec: 01 00 00 00 nop <== NOT EXECUTED 2028ef0: 10 80 00 08 b 2028f10 <== NOT EXECUTED 2028ef4: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED if ( !iop->handlers->fsync_h ) 2028ef8: 80 a0 60 00 cmp %g1, 0 2028efc: 12 80 00 08 bne 2028f1c 2028f00: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); 2028f04: 40 00 6c e4 call 2044294 <__errno> 2028f08: 01 00 00 00 nop 2028f0c: 82 10 20 86 mov 0x86, %g1 ! 86 2028f10: c2 22 00 00 st %g1, [ %o0 ] 2028f14: 10 80 00 04 b 2028f24 2028f18: 90 10 3f ff mov -1, %o0 return (*iop->handlers->fsync_h)( iop ); 2028f1c: 9f c0 40 00 call %g1 2028f20: 01 00 00 00 nop } 2028f24: 81 c7 e0 08 ret 2028f28: 91 e8 00 08 restore %g0, %o0, %o0 =============================================================================== 0200be64 : int ftruncate( int fd, off_t length ) { 200be64: 9d e3 bf 88 save %sp, -120, %sp rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 200be68: 03 00 80 75 sethi %hi(0x201d400), %g1 200be6c: c2 00 62 a4 ld [ %g1 + 0x2a4 ], %g1 ! 201d6a4 200be70: 80 a6 00 01 cmp %i0, %g1 200be74: 1a 80 00 0b bcc 200bea0 <== NEVER TAKEN 200be78: 85 2e 20 06 sll %i0, 6, %g2 iop = rtems_libio_iop( fd ); 200be7c: 03 00 80 78 sethi %hi(0x201e000), %g1 200be80: c2 00 60 b4 ld [ %g1 + 0xb4 ], %g1 ! 201e0b4 200be84: b1 2e 20 03 sll %i0, 3, %i0 200be88: b0 06 00 02 add %i0, %g2, %i0 200be8c: b0 00 40 18 add %g1, %i0, %i0 rtems_libio_check_is_open(iop); 200be90: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 200be94: 80 88 61 00 btst 0x100, %g1 200be98: 12 80 00 06 bne 200beb0 <== ALWAYS TAKEN 200be9c: 80 88 60 04 btst 4, %g1 200bea0: 40 00 12 aa call 2010948 <__errno> <== NOT EXECUTED 200bea4: 01 00 00 00 nop <== NOT EXECUTED 200bea8: 10 80 00 24 b 200bf38 <== NOT EXECUTED 200beac: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 200beb0: 02 80 00 17 be 200bf0c <== NEVER TAKEN 200beb4: a0 07 bf ec add %fp, -20, %l0 /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 200beb8: 92 06 20 1c add %i0, 0x1c, %o1 200bebc: 90 10 00 10 mov %l0, %o0 200bec0: 40 00 14 de call 2011238 200bec4: 94 10 20 14 mov 0x14, %o2 if ( !loc.ops->node_type_h ) 200bec8: c2 07 bf f8 ld [ %fp + -8 ], %g1 200becc: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 200bed0: 80 a0 60 00 cmp %g1, 0 200bed4: 02 80 00 16 be 200bf2c <== NEVER TAKEN 200bed8: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) 200bedc: 9f c0 40 00 call %g1 200bee0: 90 10 00 10 mov %l0, %o0 200bee4: 80 a2 20 01 cmp %o0, 1 200bee8: 32 80 00 06 bne,a 200bf00 200beec: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 rtems_set_errno_and_return_minus_one( EISDIR ); 200bef0: 40 00 12 96 call 2010948 <__errno> 200bef4: 01 00 00 00 nop 200bef8: 10 80 00 10 b 200bf38 200befc: 82 10 20 15 mov 0x15, %g1 ! 15 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 200bf00: 80 88 60 04 btst 4, %g1 200bf04: 32 80 00 06 bne,a 200bf1c <== ALWAYS TAKEN 200bf08: c2 06 20 40 ld [ %i0 + 0x40 ], %g1 200bf0c: 40 00 12 8f call 2010948 <__errno> <== NOT EXECUTED 200bf10: 01 00 00 00 nop <== NOT EXECUTED 200bf14: 10 80 00 09 b 200bf38 <== NOT EXECUTED 200bf18: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) 200bf1c: c2 00 60 20 ld [ %g1 + 0x20 ], %g1 200bf20: 80 a0 60 00 cmp %g1, 0 200bf24: 32 80 00 08 bne,a 200bf44 <== ALWAYS TAKEN 200bf28: 90 10 00 18 mov %i0, %o0 rtems_set_errno_and_return_minus_one( ENOTSUP ); 200bf2c: 40 00 12 87 call 2010948 <__errno> <== NOT EXECUTED 200bf30: 01 00 00 00 nop <== NOT EXECUTED 200bf34: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 200bf38: c2 22 00 00 st %g1, [ %o0 ] 200bf3c: 10 80 00 05 b 200bf50 200bf40: 90 10 3f ff mov -1, %o0 return (*iop->handlers->ftruncate_h)( iop, length ); 200bf44: 92 10 00 19 mov %i1, %o1 200bf48: 9f c0 40 00 call %g1 200bf4c: 94 10 00 1a mov %i2, %o2 } 200bf50: 81 c7 e0 08 ret 200bf54: 91 e8 00 08 restore %g0, %o0, %o0 =============================================================================== 02002810 : rtems_device_major_number major = 0; rtems_device_minor_number minor = 0; rtems_filesystem_split_dev_t(dev, major, minor); if (major < disktab_size && disktab != NULL) { 2002810: 03 00 80 86 sethi %hi(0x2021800), %g1 2002814: c2 00 63 0c ld [ %g1 + 0x30c ], %g1 ! 2021b0c 2002818: 80 a2 00 01 cmp %o0, %g1 200281c: 3a 80 00 20 bcc,a 200289c <== NEVER TAKEN 2002820: 90 10 20 00 clr %o0 <== NOT EXECUTED 2002824: 03 00 80 86 sethi %hi(0x2021800), %g1 2002828: c2 00 63 08 ld [ %g1 + 0x308 ], %g1 ! 2021b08 200282c: 80 a0 60 00 cmp %g1, 0 2002830: 22 80 00 1b be,a 200289c <== NEVER TAKEN 2002834: 90 10 20 00 clr %o0 <== NOT EXECUTED rtems_disk_device_table *dtab = disktab + major; 2002838: 91 2a 20 03 sll %o0, 3, %o0 200283c: 84 00 40 08 add %g1, %o0, %g2 if (minor < dtab->size && dtab->minor != NULL) { 2002840: c4 00 a0 04 ld [ %g2 + 4 ], %g2 2002844: 80 a2 40 02 cmp %o1, %g2 2002848: 3a 80 00 15 bcc,a 200289c <== NEVER TAKEN 200284c: 90 10 20 00 clr %o0 <== NOT EXECUTED 2002850: c2 00 40 08 ld [ %g1 + %o0 ], %g1 2002854: 80 a0 60 00 cmp %g1, 0 2002858: 02 80 00 10 be 2002898 <== NEVER TAKEN 200285c: 93 2a 60 02 sll %o1, 2, %o1 rtems_disk_device *dd = dtab->minor [minor]; 2002860: d0 00 40 09 ld [ %g1 + %o1 ], %o0 if (dd != NULL && !lookup_only) { 2002864: 80 a2 20 00 cmp %o0, 0 2002868: 02 80 00 0d be 200289c 200286c: 80 8a a0 ff btst 0xff, %o2 2002870: 12 80 00 0b bne 200289c 2002874: 01 00 00 00 nop if (!dd->deleted) { 2002878: c2 0a 20 30 ldub [ %o0 + 0x30 ], %g1 200287c: 80 a0 60 00 cmp %g1, 0 2002880: 32 80 00 07 bne,a 200289c 2002884: 90 10 20 00 clr %o0 ++dd->uses; 2002888: c2 02 20 14 ld [ %o0 + 0x14 ], %g1 200288c: 82 00 60 01 inc %g1 2002890: 81 c3 e0 08 retl 2002894: c2 22 20 14 st %g1, [ %o0 + 0x14 ] 2002898: 90 10 20 00 clr %o0 <== NOT EXECUTED return dd; } } return NULL; } 200289c: 81 c3 e0 08 retl =============================================================================== 0205de08 : int getdents( int dd_fd, char *dd_buf, int dd_len ) { 205de08: 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 ); 205de0c: 03 00 81 aa sethi %hi(0x206a800), %g1 205de10: c2 00 61 34 ld [ %g1 + 0x134 ], %g1 ! 206a934 205de14: 80 a6 00 01 cmp %i0, %g1 205de18: 1a 80 00 08 bcc 205de38 <== NEVER TAKEN 205de1c: a0 10 20 00 clr %l0 205de20: 03 00 81 ba sethi %hi(0x206e800), %g1 205de24: e0 00 63 a4 ld [ %g1 + 0x3a4 ], %l0 ! 206eba4 205de28: 83 2e 20 06 sll %i0, 6, %g1 205de2c: b1 2e 20 03 sll %i0, 3, %i0 205de30: b0 06 00 01 add %i0, %g1, %i0 205de34: a0 04 00 18 add %l0, %i0, %l0 /* * Make sure we are working on a directory */ loc = iop->pathinfo; 205de38: a2 07 bf ec add %fp, -20, %l1 205de3c: 92 04 20 1c add %l0, 0x1c, %o1 205de40: 90 10 00 11 mov %l1, %o0 205de44: 7f ff a6 60 call 20477c4 205de48: 94 10 20 14 mov 0x14, %o2 if ( !loc.ops->node_type_h ) 205de4c: c2 07 bf f8 ld [ %fp + -8 ], %g1 205de50: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 205de54: 80 a0 60 00 cmp %g1, 0 205de58: 02 80 00 11 be 205de9c <== NEVER TAKEN 205de5c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) 205de60: 9f c0 40 00 call %g1 205de64: 90 10 00 11 mov %l1, %o0 205de68: 80 a2 20 01 cmp %o0, 1 205de6c: 22 80 00 08 be,a 205de8c 205de70: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 rtems_set_errno_and_return_minus_one( ENOTDIR ); 205de74: 7f ff 99 08 call 2044294 <__errno> 205de78: 01 00 00 00 nop 205de7c: 82 10 20 14 mov 0x14, %g1 ! 14 205de80: c2 22 00 00 st %g1, [ %o0 ] 205de84: 10 80 00 0d b 205deb8 205de88: 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 ) 205de8c: c2 00 60 08 ld [ %g1 + 8 ], %g1 205de90: 80 a0 60 00 cmp %g1, 0 205de94: 32 80 00 06 bne,a 205deac <== ALWAYS TAKEN 205de98: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( ENOTSUP ); 205de9c: 7f ff 98 fe call 2044294 <__errno> <== NOT EXECUTED 205dea0: 01 00 00 00 nop <== NOT EXECUTED 205dea4: 10 bf ff f7 b 205de80 <== NOT EXECUTED 205dea8: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); 205deac: 92 10 00 19 mov %i1, %o1 205deb0: 9f c0 40 00 call %g1 205deb4: 94 10 00 1a mov %i2, %o2 } 205deb8: 81 c7 e0 08 ret 205debc: 91 e8 00 08 restore %g0, %o0, %o0 =============================================================================== 02029040 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getgid( void ) { 2029040: 03 00 81 ab sethi %hi(0x206ac00), %g1 <== NOT EXECUTED 2029044: c2 00 61 64 ld [ %g1 + 0x164 ], %g1 ! 206ad64 <== NOT EXECUTED return _POSIX_types_Gid; } 2029048: 81 c3 e0 08 retl <== NOT EXECUTED 202904c: d0 10 60 34 lduh [ %g1 + 0x34 ], %o0 <== NOT EXECUTED =============================================================================== 020296cc : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 20296cc: 9d e3 bf a0 save %sp, -96, %sp FILE *fp; int match; init_etc_passwd_group(); 20296d0: 7f ff ff b6 call 20295a8 20296d4: 01 00 00 00 nop if ((fp = fopen("/etc/group", "r")) == NULL) { 20296d8: 11 00 81 93 sethi %hi(0x2064c00), %o0 20296dc: 13 00 81 93 sethi %hi(0x2064c00), %o1 20296e0: 90 12 21 58 or %o0, 0x158, %o0 20296e4: 40 00 6d 94 call 2044d34 20296e8: 92 12 60 e0 or %o1, 0xe0, %o1 20296ec: a0 92 20 00 orcc %o0, 0, %l0 20296f0: 12 80 00 08 bne 2029710 <== ALWAYS TAKEN 20296f4: 92 10 00 1a mov %i2, %o1 errno = EINVAL; 20296f8: 40 00 6a e7 call 2044294 <__errno> <== NOT EXECUTED 20296fc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2029700: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2029704: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2029708: 81 c7 e0 08 ret <== NOT EXECUTED 202970c: 81 e8 00 00 restore <== NOT EXECUTED return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { 2029710: 94 10 00 1b mov %i3, %o2 2029714: 96 10 00 1c mov %i4, %o3 2029718: 7f ff fe ea call 20292c0 202971c: 90 10 00 10 mov %l0, %o0 2029720: 80 a2 20 00 cmp %o0, 0 2029724: 12 80 00 0a bne 202974c <== ALWAYS TAKEN 2029728: 80 a6 20 00 cmp %i0, 0 errno = EINVAL; 202972c: 40 00 6a da call 2044294 <__errno> <== NOT EXECUTED 2029730: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2029734: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2029738: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED fclose(fp); 202973c: 40 00 6b 2e call 20443f4 <== NOT EXECUTED 2029740: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return -1; 2029744: 81 c7 e0 08 ret <== NOT EXECUTED 2029748: 81 e8 00 00 restore <== NOT EXECUTED } if (name) { 202974c: 22 80 00 07 be,a 2029768 <== NEVER TAKEN 2029750: c2 16 a0 08 lduh [ %i2 + 8 ], %g1 <== NOT EXECUTED match = (strcmp(grp->gr_name, name) == 0); 2029754: d0 06 80 00 ld [ %i2 ], %o0 2029758: 40 00 84 8a call 204a980 202975c: 92 10 00 18 mov %i0, %o1 2029760: 10 80 00 04 b 2029770 2029764: 80 a0 00 08 cmp %g0, %o0 } else { match = (grp->gr_gid == gid); 2029768: 82 18 40 19 xor %g1, %i1, %g1 <== NOT EXECUTED 202976c: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED 2029770: 82 60 3f ff subx %g0, -1, %g1 } if (match) { 2029774: 80 a0 60 00 cmp %g1, 0 2029778: 02 bf ff e6 be 2029710 202977c: 92 10 00 1a mov %i2, %o1 fclose(fp); 2029780: 90 10 00 10 mov %l0, %o0 2029784: 40 00 6b 1c call 20443f4 2029788: b0 10 20 00 clr %i0 *result = grp; 202978c: f4 27 40 00 st %i2, [ %i5 ] } } fclose(fp); errno = EINVAL; return -1; } 2029790: 81 c7 e0 08 ret 2029794: 81 e8 00 00 restore =============================================================================== 020293fc : return NULL; return p; } struct group *getgrent(void) { 20293fc: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (group_fp == NULL) 2029400: 03 00 81 ba sethi %hi(0x206e800), %g1 <== NOT EXECUTED 2029404: d0 00 60 9c ld [ %g1 + 0x9c ], %o0 ! 206e89c <== NOT EXECUTED 2029408: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202940c: 22 80 00 0c be,a 202943c <== NOT EXECUTED 2029410: b0 10 20 00 clr %i0 <== NOT EXECUTED return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) 2029414: 31 00 81 ba sethi %hi(0x206e800), %i0 <== NOT EXECUTED 2029418: 15 00 81 ba sethi %hi(0x206e800), %o2 <== NOT EXECUTED 202941c: 92 16 21 68 or %i0, 0x168, %o1 <== NOT EXECUTED 2029420: 94 12 a0 a0 or %o2, 0xa0, %o2 <== NOT EXECUTED 2029424: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 2029428: 7f ff ff a6 call 20292c0 <== NOT EXECUTED 202942c: b0 16 21 68 or %i0, 0x168, %i0 <== NOT EXECUTED 2029430: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029434: 22 80 00 02 be,a 202943c <== NOT EXECUTED 2029438: b0 10 20 00 clr %i0 <== NOT EXECUTED return NULL; return &grent; } 202943c: 81 c7 e0 08 ret <== NOT EXECUTED 2029440: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 020297cc : } struct group *getgrgid( gid_t gid ) { 20297cc: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 20297d0: 13 00 81 ba sethi %hi(0x206e800), %o1 <== NOT EXECUTED 20297d4: 91 2e 20 10 sll %i0, 0x10, %o0 <== NOT EXECUTED 20297d8: 92 12 61 68 or %o1, 0x168, %o1 <== NOT EXECUTED 20297dc: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED 20297e0: 15 00 81 ba sethi %hi(0x206e800), %o2 <== NOT EXECUTED 20297e4: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 20297e8: 94 12 a0 a0 or %o2, 0xa0, %o2 <== NOT EXECUTED 20297ec: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED 20297f0: 7f ff ff ea call 2029798 <== NOT EXECUTED 20297f4: b0 10 20 00 clr %i0 <== NOT EXECUTED 20297f8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20297fc: 22 80 00 02 be,a 2029804 <== NOT EXECUTED 2029800: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED return NULL; return p; } 2029804: 81 c7 e0 08 ret <== NOT EXECUTED 2029808: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02029798 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 2029798: 84 10 00 0a mov %o2, %g2 <== NOT EXECUTED 202979c: 82 10 00 0b mov %o3, %g1 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 20297a0: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 20297a4: 9a 10 00 0c mov %o4, %o5 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 20297a8: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED 20297ac: 96 10 00 02 mov %g2, %o3 <== NOT EXECUTED 20297b0: 93 32 20 10 srl %o0, 0x10, %o1 <== NOT EXECUTED 20297b4: 98 10 00 01 mov %g1, %o4 <== NOT EXECUTED 20297b8: 90 10 20 00 clr %o0 <== NOT EXECUTED 20297bc: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 20297c0: 7f ff ff c3 call 20296cc <== NOT EXECUTED 20297c4: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED =============================================================================== 02029838 : } struct group *getgrnam( const char *name ) { 2029838: 9d e3 bf 98 save %sp, -104, %sp struct group *p; if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p)) 202983c: 13 00 81 ba sethi %hi(0x206e800), %o1 2029840: 90 10 00 18 mov %i0, %o0 2029844: 92 12 61 68 or %o1, 0x168, %o1 2029848: 15 00 81 ba sethi %hi(0x206e800), %o2 202984c: 96 10 20 c8 mov 0xc8, %o3 2029850: 94 12 a0 a0 or %o2, 0xa0, %o2 2029854: 98 07 bf fc add %fp, -4, %o4 2029858: 7f ff ff ed call 202980c 202985c: b0 10 20 00 clr %i0 2029860: 80 a2 20 00 cmp %o0, 0 2029864: 22 80 00 02 be,a 202986c <== ALWAYS TAKEN 2029868: f0 07 bf fc ld [ %fp + -4 ], %i0 return NULL; return p; } 202986c: 81 c7 e0 08 ret 2029870: 81 e8 00 00 restore =============================================================================== 020298c0 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 20298c0: 9d e3 bf a0 save %sp, -96, %sp FILE *fp; int match; init_etc_passwd_group(); 20298c4: 7f ff ff 39 call 20295a8 20298c8: 01 00 00 00 nop if ((fp = fopen("/etc/passwd", "r")) == NULL) { 20298cc: 11 00 81 93 sethi %hi(0x2064c00), %o0 20298d0: 13 00 81 93 sethi %hi(0x2064c00), %o1 20298d4: 90 12 20 d0 or %o0, 0xd0, %o0 20298d8: 40 00 6d 17 call 2044d34 20298dc: 92 12 60 e0 or %o1, 0xe0, %o1 20298e0: a0 92 20 00 orcc %o0, 0, %l0 20298e4: 12 80 00 08 bne 2029904 <== ALWAYS TAKEN 20298e8: 92 10 00 1a mov %i2, %o1 errno = EINVAL; 20298ec: 40 00 6a 6a call 2044294 <__errno> <== NOT EXECUTED 20298f0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20298f4: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 20298f8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20298fc: 81 c7 e0 08 ret <== NOT EXECUTED 2029900: 81 e8 00 00 restore <== NOT EXECUTED return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { 2029904: 94 10 00 1b mov %i3, %o2 2029908: 96 10 00 1c mov %i4, %o3 202990c: 7f ff fe ce call 2029444 2029910: 90 10 00 10 mov %l0, %o0 2029914: 80 a2 20 00 cmp %o0, 0 2029918: 12 80 00 0a bne 2029940 <== ALWAYS TAKEN 202991c: 80 a6 20 00 cmp %i0, 0 errno = EINVAL; 2029920: 40 00 6a 5d call 2044294 <__errno> <== NOT EXECUTED 2029924: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2029928: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 202992c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED fclose(fp); 2029930: 40 00 6a b1 call 20443f4 <== NOT EXECUTED 2029934: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return -1; 2029938: 81 c7 e0 08 ret <== NOT EXECUTED 202993c: 81 e8 00 00 restore <== NOT EXECUTED } if (name) { 2029940: 22 80 00 07 be,a 202995c <== NEVER TAKEN 2029944: c2 16 a0 08 lduh [ %i2 + 8 ], %g1 <== NOT EXECUTED match = (strcmp(pwd->pw_name, name) == 0); 2029948: d0 06 80 00 ld [ %i2 ], %o0 202994c: 40 00 84 0d call 204a980 2029950: 92 10 00 18 mov %i0, %o1 2029954: 10 80 00 04 b 2029964 2029958: 80 a0 00 08 cmp %g0, %o0 } else { match = (pwd->pw_uid == uid); 202995c: 82 18 40 19 xor %g1, %i1, %g1 <== NOT EXECUTED 2029960: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED 2029964: 82 60 3f ff subx %g0, -1, %g1 } if (match) { 2029968: 80 a0 60 00 cmp %g1, 0 202996c: 02 bf ff e6 be 2029904 2029970: 92 10 00 1a mov %i2, %o1 fclose(fp); 2029974: 90 10 00 10 mov %l0, %o0 2029978: 40 00 6a 9f call 20443f4 202997c: b0 10 20 00 clr %i0 *result = pwd; 2029980: f4 27 40 00 st %i2, [ %i5 ] } } fclose(fp); errno = EINVAL; return -1; } 2029984: 81 c7 e0 08 ret 2029988: 81 e8 00 00 restore =============================================================================== 02029560 : return NULL; return p; } struct passwd *getpwent(void) { 2029560: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (passwd_fp == NULL) 2029564: 03 00 81 b9 sethi %hi(0x206e400), %g1 <== NOT EXECUTED 2029568: d0 00 63 b4 ld [ %g1 + 0x3b4 ], %o0 ! 206e7b4 <== NOT EXECUTED 202956c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029570: 22 80 00 0c be,a 20295a0 <== NOT EXECUTED 2029574: b0 10 20 00 clr %i0 <== NOT EXECUTED return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) 2029578: 31 00 81 ba sethi %hi(0x206e800), %i0 <== NOT EXECUTED 202957c: 15 00 81 b9 sethi %hi(0x206e400), %o2 <== NOT EXECUTED 2029580: 92 16 20 80 or %i0, 0x80, %o1 <== NOT EXECUTED 2029584: 94 12 a3 b8 or %o2, 0x3b8, %o2 <== NOT EXECUTED 2029588: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 202958c: 7f ff ff ae call 2029444 <== NOT EXECUTED 2029590: b0 16 20 80 or %i0, 0x80, %i0 <== NOT EXECUTED 2029594: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029598: 22 80 00 02 be,a 20295a0 <== NOT EXECUTED 202959c: b0 10 20 00 clr %i0 <== NOT EXECUTED return NULL; return &pwent; } 20295a0: 81 c7 e0 08 ret <== NOT EXECUTED 20295a4: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02029a2c : } struct passwd *getpwnam( const char *name ) { 2029a2c: 9d e3 bf 98 save %sp, -104, %sp struct passwd *p; if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p)) 2029a30: 13 00 81 ba sethi %hi(0x206e800), %o1 2029a34: 90 10 00 18 mov %i0, %o0 2029a38: 92 12 60 80 or %o1, 0x80, %o1 2029a3c: 15 00 81 b9 sethi %hi(0x206e400), %o2 2029a40: 96 10 20 c8 mov 0xc8, %o3 2029a44: 94 12 a3 b8 or %o2, 0x3b8, %o2 2029a48: 98 07 bf fc add %fp, -4, %o4 2029a4c: 7f ff ff ed call 2029a00 2029a50: b0 10 20 00 clr %i0 2029a54: 80 a2 20 00 cmp %o0, 0 2029a58: 22 80 00 02 be,a 2029a60 <== ALWAYS TAKEN 2029a5c: f0 07 bf fc ld [ %fp + -4 ], %i0 return NULL; return p; } 2029a60: 81 c7 e0 08 ret 2029a64: 81 e8 00 00 restore =============================================================================== 020299c0 : } struct passwd *getpwuid( uid_t uid ) { 20299c0: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 20299c4: 13 00 81 ba sethi %hi(0x206e800), %o1 <== NOT EXECUTED 20299c8: 91 2e 20 10 sll %i0, 0x10, %o0 <== NOT EXECUTED 20299cc: 92 12 60 80 or %o1, 0x80, %o1 <== NOT EXECUTED 20299d0: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED 20299d4: 15 00 81 b9 sethi %hi(0x206e400), %o2 <== NOT EXECUTED 20299d8: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 20299dc: 94 12 a3 b8 or %o2, 0x3b8, %o2 <== NOT EXECUTED 20299e0: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED 20299e4: 7f ff ff ea call 202998c <== NOT EXECUTED 20299e8: b0 10 20 00 clr %i0 <== NOT EXECUTED 20299ec: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20299f0: 22 80 00 02 be,a 20299f8 <== NOT EXECUTED 20299f4: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED return NULL; return p; } 20299f8: 81 c7 e0 08 ret <== NOT EXECUTED 20299fc: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0202998c : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 202998c: 84 10 00 0a mov %o2, %g2 <== NOT EXECUTED 2029990: 82 10 00 0b mov %o3, %g1 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 2029994: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 2029998: 9a 10 00 0c mov %o4, %o5 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 202999c: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED 20299a0: 96 10 00 02 mov %g2, %o3 <== NOT EXECUTED 20299a4: 93 32 20 10 srl %o0, 0x10, %o1 <== NOT EXECUTED 20299a8: 98 10 00 01 mov %g1, %o4 <== NOT EXECUTED 20299ac: 90 10 20 00 clr %o0 <== NOT EXECUTED 20299b0: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 20299b4: 7f ff ff c3 call 20298c0 <== NOT EXECUTED 20299b8: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED =============================================================================== 02002ba4 : */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) { 2002ba4: 9d e3 bf 98 save %sp, -104, %sp /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { 2002ba8: 80 a6 20 00 cmp %i0, 0 2002bac: 12 80 00 08 bne 2002bcc <== ALWAYS TAKEN 2002bb0: 01 00 00 00 nop errno = EFAULT; 2002bb4: 40 00 37 65 call 2010948 <__errno> <== NOT EXECUTED 2002bb8: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 2002bbc: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 2002bc0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return -1; 2002bc4: 81 c7 e0 08 ret <== NOT EXECUTED 2002bc8: 81 e8 00 00 restore <== NOT EXECUTED { ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); 2002bcc: 7f ff fc fe call 2001fc4 2002bd0: 01 00 00 00 nop 2002bd4: a0 10 00 08 mov %o0, %l0 _TOD_Get( &now ); 2002bd8: 40 00 11 70 call 2007198 <_TOD_Get> 2002bdc: 90 07 bf f8 add %fp, -8, %o0 _ISR_Enable(level); 2002be0: 7f ff fc fd call 2001fd4 2002be4: 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; 2002be8: 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; 2002bec: c2 07 bf f8 ld [ %fp + -8 ], %g1 time->tv_usec = useconds; 2002bf0: 92 10 23 e8 mov 0x3e8, %o1 2002bf4: 40 00 5c aa call 2019e9c <.div> 2002bf8: c2 26 00 00 st %g1, [ %i0 ] 2002bfc: 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; } 2002c00: 81 c7 e0 08 ret 2002c04: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 02008394 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t getuid( void ) { 2008394: 03 00 81 ab sethi %hi(0x206ac00), %g1 <== NOT EXECUTED 2008398: c2 00 61 64 ld [ %g1 + 0x164 ], %g1 ! 206ad64 <== NOT EXECUTED return _POSIX_types_Uid; } 200839c: 81 c3 e0 08 retl <== NOT EXECUTED 20083a0: d0 10 60 32 lduh [ %g1 + 0x32 ], %o0 <== NOT EXECUTED =============================================================================== 0200f28c : ) { IMFS_jnode_t *the_jnode; /* Is the node a directory ? */ the_jnode = (IMFS_jnode_t *) iop->file_info; 200f28c: c4 02 20 3c ld [ %o0 + 0x3c ], %g2 200f290: c4 00 a0 4c ld [ %g2 + 0x4c ], %g2 200f294: 80 a0 a0 01 cmp %g2, 1 200f298: 12 80 00 05 bne 200f2ac <== NEVER TAKEN 200f29c: 82 10 3f ff mov -1, %g1 if ( the_jnode->type != IMFS_DIRECTORY ) return -1; /* It wasn't a directory --> return error */ iop->offset = 0; 200f2a0: c0 22 20 10 clr [ %o0 + 0x10 ] 200f2a4: c0 22 20 14 clr [ %o0 + 0x14 ] 200f2a8: 82 10 20 00 clr %g1 return 0; } 200f2ac: 81 c3 e0 08 retl 200f2b0: 90 10 00 01 mov %g1, %o0 =============================================================================== 0200f3e8 : int imfs_dir_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 200f3e8: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 200f3ec: e0 06 40 00 ld [ %i1 ], %l0 200f3f0: c4 04 20 50 ld [ %l0 + 0x50 ], %g2 200f3f4: 82 04 20 54 add %l0, 0x54, %g1 200f3f8: 80 a0 80 01 cmp %g2, %g1 200f3fc: 22 80 00 06 be,a 200f414 200f400: 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 ); 200f404: 40 00 05 51 call 2010948 <__errno> 200f408: 01 00 00 00 nop 200f40c: 10 80 00 0d b 200f440 200f410: 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 ) 200f414: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200f418: 80 a0 40 10 cmp %g1, %l0 200f41c: 02 80 00 06 be 200f434 200f420: 01 00 00 00 nop /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) 200f424: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 200f428: 80 a0 60 00 cmp %g1, 0 200f42c: 22 80 00 08 be,a 200f44c <== ALWAYS TAKEN 200f430: c2 04 20 08 ld [ %l0 + 8 ], %g1 rtems_set_errno_and_return_minus_one( EBUSY ); 200f434: 40 00 05 45 call 2010948 <__errno> 200f438: 01 00 00 00 nop 200f43c: 82 10 20 10 mov 0x10, %g1 ! 10 200f440: c2 22 00 00 st %g1, [ %o0 ] 200f444: 81 c7 e0 08 ret 200f448: 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 ) { 200f44c: 80 a0 60 00 cmp %g1, 0 200f450: 22 80 00 06 be,a 200f468 200f454: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 200f458: 7f ff de 3d call 2006d4c <_Chain_Extract> 200f45c: 90 10 00 10 mov %l0, %o0 rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 200f460: c0 24 20 08 clr [ %l0 + 8 ] /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 200f464: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 IMFS_update_ctime( the_jnode ); 200f468: 92 10 20 00 clr %o1 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 200f46c: 82 00 7f ff add %g1, -1, %g1 IMFS_update_ctime( the_jnode ); 200f470: 90 07 bf f8 add %fp, -8, %o0 200f474: 7f ff cd cc call 2002ba4 200f478: c2 34 20 34 sth %g1, [ %l0 + 0x34 ] 200f47c: 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) ) { 200f480: 90 10 00 10 mov %l0, %o0 200f484: 7f ff f2 d6 call 200bfdc 200f488: c2 24 20 48 st %g1, [ %l0 + 0x48 ] 200f48c: 80 a2 20 00 cmp %o0, 0 200f490: 12 80 00 11 bne 200f4d4 200f494: 01 00 00 00 nop 200f498: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 200f49c: 80 a0 60 00 cmp %g1, 0 200f4a0: 12 80 00 0d bne 200f4d4 200f4a4: 03 00 80 76 sethi %hi(0x201d800), %g1 /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 200f4a8: c2 00 60 70 ld [ %g1 + 0x70 ], %g1 ! 201d870 200f4ac: c4 06 40 00 ld [ %i1 ], %g2 200f4b0: c6 00 60 04 ld [ %g1 + 4 ], %g3 200f4b4: 80 a0 c0 02 cmp %g3, %g2 200f4b8: 22 80 00 02 be,a 200f4c0 <== NEVER TAKEN 200f4bc: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED /* * Free memory associated with a memory file. */ free( the_jnode ); 200f4c0: 90 10 00 10 mov %l0, %o0 200f4c4: 7f ff cd 8e call 2002afc 200f4c8: b0 10 20 00 clr %i0 200f4cc: 81 c7 e0 08 ret 200f4d0: 81 e8 00 00 restore } return 0; } 200f4d4: 81 c7 e0 08 ret 200f4d8: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 020295a8 : /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) { 20295a8: 9d e3 bf a0 save %sp, -96, %sp FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) 20295ac: 03 00 81 b9 sethi %hi(0x206e400), %g1 20295b0: c4 48 63 b0 ldsb [ %g1 + 0x3b0 ], %g2 ! 206e7b0 20295b4: 80 a0 a0 00 cmp %g2, 0 20295b8: 12 80 00 30 bne 2029678 20295bc: 84 10 20 01 mov 1, %g2 return; etc_passwd_initted = 1; mkdir("/etc", 0777); 20295c0: 92 10 21 ff mov 0x1ff, %o1 FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) return; etc_passwd_initted = 1; 20295c4: c4 28 63 b0 stb %g2, [ %g1 + 0x3b0 ] mkdir("/etc", 0777); 20295c8: 11 00 81 93 sethi %hi(0x2064c00), %o0 20295cc: 7f ff 7d 5d call 2008b40 20295d0: 90 12 20 c8 or %o0, 0xc8, %o0 ! 2064cc8 /* * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { 20295d4: 21 00 81 93 sethi %hi(0x2064c00), %l0 20295d8: 13 00 81 93 sethi %hi(0x2064c00), %o1 20295dc: 90 14 20 d0 or %l0, 0xd0, %o0 20295e0: 40 00 6d d5 call 2044d34 20295e4: 92 12 60 e0 or %o1, 0xe0, %o1 20295e8: 80 a2 20 00 cmp %o0, 0 20295ec: 12 80 00 0d bne 2029620 <== NEVER TAKEN 20295f0: 01 00 00 00 nop fclose(fp); } else if ((fp = fopen("/etc/passwd", "w")) != NULL) { 20295f4: 90 14 20 d0 or %l0, 0xd0, %o0 20295f8: 13 00 81 93 sethi %hi(0x2064c00), %o1 20295fc: 40 00 6d ce call 2044d34 2029600: 92 12 60 e8 or %o1, 0xe8, %o1 ! 2064ce8 2029604: b0 92 20 00 orcc %o0, 0, %i0 2029608: 02 80 00 08 be 2029628 <== NEVER TAKEN 202960c: 11 00 81 93 sethi %hi(0x2064c00), %o0 fprintf(fp, "root:*:0:0:root::/:/bin/sh\n" 2029610: 92 10 00 18 mov %i0, %o1 2029614: 40 00 6e 2e call 2044ecc 2029618: 90 12 20 f0 or %o0, 0xf0, %o0 "rtems:*:1:1:RTEMS Application::/:/bin/sh\n" "tty:!:2:2:tty owner::/:/bin/false\n" ); fclose(fp); 202961c: 90 10 00 18 mov %i0, %o0 2029620: 40 00 6b 75 call 20443f4 2029624: 01 00 00 00 nop } /* * Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) { 2029628: 21 00 81 93 sethi %hi(0x2064c00), %l0 202962c: 13 00 81 93 sethi %hi(0x2064c00), %o1 2029630: 90 14 21 58 or %l0, 0x158, %o0 2029634: 40 00 6d c0 call 2044d34 2029638: 92 12 60 e0 or %o1, 0xe0, %o1 202963c: 80 a2 20 00 cmp %o0, 0 2029640: 12 80 00 0c bne 2029670 <== NEVER TAKEN 2029644: b0 10 00 08 mov %o0, %i0 fclose(fp); } else if ((fp = fopen("/etc/group", "w")) != NULL) { 2029648: 90 14 21 58 or %l0, 0x158, %o0 202964c: 13 00 81 93 sethi %hi(0x2064c00), %o1 2029650: 40 00 6d b9 call 2044d34 2029654: 92 12 60 e8 or %o1, 0xe8, %o1 ! 2064ce8 2029658: b0 92 20 00 orcc %o0, 0, %i0 202965c: 02 80 00 07 be 2029678 <== NEVER TAKEN 2029660: 11 00 81 93 sethi %hi(0x2064c00), %o0 fprintf( fp, "root:x:0:root\n" 2029664: 92 10 00 18 mov %i0, %o1 2029668: 40 00 6e 19 call 2044ecc 202966c: 90 12 21 68 or %o0, 0x168, %o0 "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); 2029670: 40 00 6b 61 call 20443f4 2029674: 81 e8 00 00 restore 2029678: 81 c7 e0 08 ret 202967c: 81 e8 00 00 restore =============================================================================== 02006360 : int ioctl( int fd, ioctl_command_t command, ... ) { 2006360: 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 ); 2006364: 03 00 80 85 sethi %hi(0x2021400), %g1 2006368: c2 00 63 94 ld [ %g1 + 0x394 ], %g1 ! 2021794 iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); va_start(ap, command); 200636c: f6 27 a0 50 st %i3, [ %fp + 0x50 ] 2006370: f8 27 a0 54 st %i4, [ %fp + 0x54 ] 2006374: fa 27 a0 58 st %i5, [ %fp + 0x58 ] 2006378: 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 ); 200637c: 80 a6 00 01 cmp %i0, %g1 2006380: 1a 80 00 11 bcc 20063c4 2006384: 92 10 00 19 mov %i1, %o1 iop = rtems_libio_iop( fd ); 2006388: 03 00 80 88 sethi %hi(0x2022000), %g1 200638c: d0 00 62 78 ld [ %g1 + 0x278 ], %o0 ! 2022278 2006390: 83 2e 20 06 sll %i0, 6, %g1 2006394: b1 2e 20 03 sll %i0, 3, %i0 2006398: b0 06 00 01 add %i0, %g1, %i0 200639c: 90 02 00 18 add %o0, %i0, %o0 rtems_libio_check_is_open(iop); 20063a0: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 20063a4: 80 88 61 00 btst 0x100, %g1 20063a8: 02 80 00 07 be 20063c4 <== NEVER TAKEN 20063ac: 84 07 a0 50 add %fp, 0x50, %g2 /* * Now process the ioctl(). */ if ( !iop->handlers ) 20063b0: 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 *); 20063b4: c4 27 bf fc st %g2, [ %fp + -4 ] /* * Now process the ioctl(). */ if ( !iop->handlers ) 20063b8: 80 a0 60 00 cmp %g1, 0 20063bc: 12 80 00 06 bne 20063d4 <== ALWAYS TAKEN 20063c0: 94 10 00 1a mov %i2, %o2 rtems_set_errno_and_return_minus_one( EBADF ); 20063c4: 40 00 3a 4c call 2014cf4 <__errno> 20063c8: 01 00 00 00 nop 20063cc: 10 80 00 09 b 20063f0 20063d0: 82 10 20 09 mov 9, %g1 ! 9 if ( !iop->handlers->ioctl_h ) 20063d4: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 20063d8: 80 a0 60 00 cmp %g1, 0 20063dc: 12 80 00 08 bne 20063fc <== ALWAYS TAKEN 20063e0: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); 20063e4: 40 00 3a 44 call 2014cf4 <__errno> <== NOT EXECUTED 20063e8: 01 00 00 00 nop <== NOT EXECUTED 20063ec: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 20063f0: c2 22 00 00 st %g1, [ %o0 ] 20063f4: 10 80 00 04 b 2006404 20063f8: 90 10 3f ff mov -1, %o0 rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); 20063fc: 9f c0 40 00 call %g1 2006400: 01 00 00 00 nop return rc; } 2006404: 81 c7 e0 08 ret 2006408: 91 e8 00 08 restore %g0, %o0, %o0 =============================================================================== 0200466c : /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { 200466c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) 2004670: c2 06 60 30 ld [ %i1 + 0x30 ], %g1 <== NOT EXECUTED 2004674: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 2004678: 02 80 00 03 be 2004684 <== NOT EXECUTED 200467c: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED c &= 0x7f; 2004680: a0 0e 20 7f and %i0, 0x7f, %l0 <== NOT EXECUTED if (tty->termios.c_iflag & IUCLC) 2004684: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 2004688: 02 80 00 0c be 20046b8 <== NOT EXECUTED 200468c: 84 0c 20 ff and %l0, 0xff, %g2 <== NOT EXECUTED c = tolower (c); 2004690: 05 00 80 76 sethi %hi(0x201d800), %g2 <== NOT EXECUTED 2004694: c4 00 a1 1c ld [ %g2 + 0x11c ], %g2 ! 201d91c <__ctype_ptr__><== NOT EXECUTED 2004698: a0 0c 20 ff and %l0, 0xff, %l0 <== NOT EXECUTED 200469c: 84 00 80 10 add %g2, %l0, %g2 <== NOT EXECUTED 20046a0: c4 08 a0 01 ldub [ %g2 + 1 ], %g2 <== NOT EXECUTED 20046a4: 84 08 a0 03 and %g2, 3, %g2 <== NOT EXECUTED 20046a8: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED 20046ac: 22 80 00 02 be,a 20046b4 <== NOT EXECUTED 20046b0: a0 04 20 20 add %l0, 0x20, %l0 <== NOT EXECUTED if (c == '\r') { 20046b4: 84 0c 20 ff and %l0, 0xff, %g2 <== NOT EXECUTED 20046b8: 80 a0 a0 0d cmp %g2, 0xd <== NOT EXECUTED 20046bc: 12 80 00 09 bne 20046e0 <== NOT EXECUTED 20046c0: 80 a0 a0 0a cmp %g2, 0xa <== NOT EXECUTED if (tty->termios.c_iflag & IGNCR) 20046c4: 80 88 60 80 btst 0x80, %g1 <== NOT EXECUTED 20046c8: 12 80 00 5d bne 200483c <== NOT EXECUTED 20046cc: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED return 0; if (tty->termios.c_iflag & ICRNL) 20046d0: 32 80 00 0d bne,a 2004704 <== NOT EXECUTED 20046d4: 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)) { 20046d8: 10 80 00 0c b 2004708 <== NOT EXECUTED 20046dc: 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)) { 20046e0: 12 80 00 07 bne 20046fc <== NOT EXECUTED 20046e4: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 20046e8: 80 88 60 40 btst 0x40, %g1 <== NOT EXECUTED 20046ec: 32 80 00 06 bne,a 2004704 <== NOT EXECUTED 20046f0: a0 10 20 0d mov 0xd, %l0 <== NOT EXECUTED c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { 20046f4: 10 80 00 05 b 2004708 <== NOT EXECUTED 20046f8: c4 06 60 3c ld [ %i1 + 0x3c ], %g2 <== NOT EXECUTED 20046fc: 02 80 00 3c be 20047ec <== NOT EXECUTED 2004700: 03 00 80 76 sethi %hi(0x201d800), %g1 <== NOT EXECUTED 2004704: c4 06 60 3c ld [ %i1 + 0x3c ], %g2 <== NOT EXECUTED 2004708: 80 88 a0 02 btst 2, %g2 <== NOT EXECUTED 200470c: 02 80 00 38 be 20047ec <== NOT EXECUTED 2004710: 03 00 80 76 sethi %hi(0x201d800), %g1 <== NOT EXECUTED if (c == tty->termios.c_cc[VERASE]) { 2004714: c6 0e 60 43 ldub [ %i1 + 0x43 ], %g3 <== NOT EXECUTED 2004718: 82 0c 20 ff and %l0, 0xff, %g1 <== NOT EXECUTED erase (tty, 0); 200471c: 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]) { 2004720: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 2004724: 02 80 00 08 be 2004744 <== NOT EXECUTED 2004728: 92 10 20 00 clr %o1 <== NOT EXECUTED erase (tty, 0); return 0; } else if (c == tty->termios.c_cc[VKILL]) { 200472c: c6 0e 60 44 ldub [ %i1 + 0x44 ], %g3 <== NOT EXECUTED 2004730: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 2004734: 32 80 00 07 bne,a 2004750 <== NOT EXECUTED 2004738: c6 0e 60 45 ldub [ %i1 + 0x45 ], %g3 <== NOT EXECUTED erase (tty, 1); 200473c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 2004740: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 2004744: 7f ff ff 3f call 2004440 <== NOT EXECUTED 2004748: b0 10 20 00 clr %i0 <== NOT EXECUTED 200474c: 30 80 00 3d b,a 2004840 <== NOT EXECUTED return 0; } else if (c == tty->termios.c_cc[VEOF]) { 2004750: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 2004754: 02 80 00 3b be 2004840 <== NOT EXECUTED 2004758: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED return 1; } else if (c == '\n') { 200475c: 80 a0 60 0a cmp %g1, 0xa <== NOT EXECUTED 2004760: 32 80 00 0f bne,a 200479c <== NOT EXECUTED 2004764: c6 0e 60 4c ldub [ %i1 + 0x4c ], %g3 <== NOT EXECUTED if (tty->termios.c_lflag & (ECHO | ECHONL)) 2004768: 80 88 a0 48 btst 0x48, %g2 <== NOT EXECUTED 200476c: 22 80 00 06 be,a 2004784 <== NOT EXECUTED 2004770: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED echo (c, tty); 2004774: 90 10 20 0a mov 0xa, %o0 <== NOT EXECUTED 2004778: 7f ff ff 0e call 20043b0 <== NOT EXECUTED 200477c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 2004780: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED 2004784: c4 06 60 1c ld [ %i1 + 0x1c ], %g2 <== NOT EXECUTED 2004788: 86 10 20 0a mov 0xa, %g3 <== NOT EXECUTED 200478c: c6 28 80 01 stb %g3, [ %g2 + %g1 ] <== NOT EXECUTED 2004790: 82 00 60 01 inc %g1 <== NOT EXECUTED 2004794: 10 80 00 14 b 20047e4 <== NOT EXECUTED 2004798: c2 26 60 20 st %g1, [ %i1 + 0x20 ] <== NOT EXECUTED return 1; } else if ((c == tty->termios.c_cc[VEOL]) 200479c: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 20047a0: 02 80 00 07 be 20047bc <== NOT EXECUTED 20047a4: 80 88 a0 08 btst 8, %g2 <== NOT EXECUTED || (c == tty->termios.c_cc[VEOL2])) { 20047a8: c6 0e 60 51 ldub [ %i1 + 0x51 ], %g3 <== NOT EXECUTED 20047ac: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 20047b0: 12 80 00 0f bne 20047ec <== NOT EXECUTED 20047b4: 03 00 80 76 sethi %hi(0x201d800), %g1 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) 20047b8: 80 88 a0 08 btst 8, %g2 <== NOT EXECUTED 20047bc: 22 80 00 06 be,a 20047d4 <== NOT EXECUTED 20047c0: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED echo (c, tty); 20047c4: 90 0c 20 ff and %l0, 0xff, %o0 <== NOT EXECUTED 20047c8: 7f ff fe fa call 20043b0 <== NOT EXECUTED 20047cc: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 20047d0: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED 20047d4: c6 06 60 1c ld [ %i1 + 0x1c ], %g3 <== NOT EXECUTED 20047d8: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED 20047dc: e0 28 c0 01 stb %l0, [ %g3 + %g1 ] <== NOT EXECUTED 20047e0: c4 26 60 20 st %g2, [ %i1 + 0x20 ] <== NOT EXECUTED return 1; 20047e4: 81 c7 e0 08 ret <== NOT EXECUTED 20047e8: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED } /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { 20047ec: c4 06 60 20 ld [ %i1 + 0x20 ], %g2 <== NOT EXECUTED 20047f0: c2 00 60 60 ld [ %g1 + 0x60 ], %g1 <== NOT EXECUTED 20047f4: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 20047f8: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 20047fc: 16 80 00 11 bge 2004840 <== NOT EXECUTED 2004800: b0 10 20 00 clr %i0 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) 2004804: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED 2004808: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED 200480c: 22 80 00 06 be,a 2004824 <== NOT EXECUTED 2004810: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED echo (c, tty); 2004814: 90 0c 20 ff and %l0, 0xff, %o0 <== NOT EXECUTED 2004818: 7f ff fe e6 call 20043b0 <== NOT EXECUTED 200481c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 2004820: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED 2004824: c6 06 60 1c ld [ %i1 + 0x1c ], %g3 <== NOT EXECUTED 2004828: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED 200482c: e0 28 c0 01 stb %l0, [ %g3 + %g1 ] <== NOT EXECUTED 2004830: c4 26 60 20 st %g2, [ %i1 + 0x20 ] <== NOT EXECUTED 2004834: 81 c7 e0 08 ret <== NOT EXECUTED 2004838: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 200483c: b0 10 20 00 clr %i0 <== NOT EXECUTED } return 0; } 2004840: 81 c7 e0 08 ret <== NOT EXECUTED 2004844: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0200fab4 : int killinfo( pid_t pid, int sig, const union sigval *value ) { 200fab4: 9d e3 bf 90 save %sp, -112, %sp POSIX_signals_Siginfo_node *psiginfo; /* * Only supported for the "calling process" (i.e. this node). */ if ( pid != getpid() ) 200fab8: 7f ff f1 30 call 200bf78 200fabc: 01 00 00 00 nop 200fac0: 80 a6 00 08 cmp %i0, %o0 200fac4: 02 80 00 06 be 200fadc <== ALWAYS TAKEN 200fac8: 80 a6 60 00 cmp %i1, 0 rtems_set_errno_and_return_minus_one( ESRCH ); 200facc: 40 00 03 9f call 2010948 <__errno> <== NOT EXECUTED 200fad0: 01 00 00 00 nop <== NOT EXECUTED 200fad4: 10 80 00 07 b 200faf0 <== NOT EXECUTED 200fad8: 82 10 20 03 mov 3, %g1 ! 3 <== NOT EXECUTED /* * Validate the signal passed. */ if ( !sig ) 200fadc: 12 80 00 08 bne 200fafc <== ALWAYS TAKEN 200fae0: 82 06 7f ff add %i1, -1, %g1 rtems_set_errno_and_return_minus_one( EINVAL ); 200fae4: 40 00 03 99 call 2010948 <__errno> <== NOT EXECUTED 200fae8: 01 00 00 00 nop <== NOT EXECUTED 200faec: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED 200faf0: c2 22 00 00 st %g1, [ %o0 ] 200faf4: 10 80 00 a5 b 200fd88 200faf8: 90 10 3f ff mov -1, %o0 if ( !is_valid_signo(sig) ) 200fafc: 80 a0 60 1f cmp %g1, 0x1f 200fb00: 18 bf ff f9 bgu 200fae4 <== NEVER TAKEN 200fb04: 85 2e 60 02 sll %i1, 2, %g2 rtems_set_errno_and_return_minus_one( EINVAL ); /* * If the signal is being ignored, then we are out of here. */ if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN ) 200fb08: 87 2e 60 04 sll %i1, 4, %g3 200fb0c: 86 20 c0 02 sub %g3, %g2, %g3 200fb10: 05 00 80 7a sethi %hi(0x201e800), %g2 200fb14: 84 10 a0 18 or %g2, 0x18, %g2 ! 201e818 <_POSIX_signals_Vectors> 200fb18: 84 00 80 03 add %g2, %g3, %g2 200fb1c: c4 00 a0 08 ld [ %g2 + 8 ], %g2 200fb20: 80 a0 a0 01 cmp %g2, 1 200fb24: 02 80 00 99 be 200fd88 200fb28: 90 10 20 00 clr %o0 /* * P1003.1c/Draft 10, p. 33 says that certain signals should always * be directed to the executing thread such as those caused by hardware * faults. */ if ( (sig == SIGFPE) || (sig == SIGILL) || (sig == SIGSEGV ) ) 200fb2c: 80 a6 60 04 cmp %i1, 4 200fb30: 02 80 00 06 be 200fb48 200fb34: 80 a6 60 08 cmp %i1, 8 200fb38: 02 80 00 04 be 200fb48 200fb3c: 80 a6 60 0b cmp %i1, 0xb 200fb40: 12 80 00 08 bne 200fb60 200fb44: a0 10 20 01 mov 1, %l0 return pthread_kill( pthread_self(), sig ); 200fb48: 40 00 01 df call 20102c4 200fb4c: 01 00 00 00 nop 200fb50: 40 00 01 a2 call 20101d8 200fb54: 92 10 00 19 mov %i1, %o1 200fb58: 81 c7 e0 08 ret 200fb5c: 91 e8 00 08 restore %g0, %o0, %o0 /* * Build up a siginfo structure */ siginfo = &siginfo_struct; siginfo->si_signo = sig; 200fb60: f2 27 bf f4 st %i1, [ %fp + -12 ] siginfo->si_code = SI_USER; 200fb64: e0 27 bf f8 st %l0, [ %fp + -8 ] if ( !value ) { 200fb68: 80 a6 a0 00 cmp %i2, 0 200fb6c: 12 80 00 04 bne 200fb7c 200fb70: a1 2c 00 01 sll %l0, %g1, %l0 siginfo->si_value.sival_int = 0; 200fb74: 10 80 00 04 b 200fb84 200fb78: c0 27 bf fc clr [ %fp + -4 ] } else { siginfo->si_value = *value; 200fb7c: c2 06 80 00 ld [ %i2 ], %g1 200fb80: c2 27 bf fc st %g1, [ %fp + -4 ] rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 200fb84: 03 00 80 78 sethi %hi(0x201e000), %g1 200fb88: c4 00 62 90 ld [ %g1 + 0x290 ], %g2 ! 201e290 <_Thread_Dispatch_disable_level> 200fb8c: 84 00 a0 01 inc %g2 200fb90: c4 20 62 90 st %g2, [ %g1 + 0x290 ] /* * Is the currently executing thread interested? If so then it will * get it an execute it as soon as the dispatcher executes. */ the_thread = _Thread_Executing; 200fb94: 03 00 80 78 sethi %hi(0x201e000), %g1 200fb98: c2 00 63 50 ld [ %g1 + 0x350 ], %g1 ! 201e350 <_Thread_Executing> api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 200fb9c: c4 00 61 6c ld [ %g1 + 0x16c ], %g2 200fba0: c4 00 a0 cc ld [ %g2 + 0xcc ], %g2 200fba4: 80 ac 00 02 andncc %l0, %g2, %g0 200fba8: 12 80 00 4e bne 200fce0 200fbac: 07 00 80 7a sethi %hi(0x201e800), %g3 /* XXX violation of visibility -- need to define thread queue support */ the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo; for ( the_node = the_chain->first ; 200fbb0: 03 00 80 7a sethi %hi(0x201e800), %g1 200fbb4: c4 00 61 a4 ld [ %g1 + 0x1a4 ], %g2 ! 201e9a4 <_POSIX_signals_Wait_queue> 200fbb8: 10 80 00 0b b 200fbe4 200fbbc: 86 10 e1 a8 or %g3, 0x1a8, %g3 !_Chain_Is_tail( the_chain, the_node ) ; the_node = the_node->next ) { the_thread = (Thread_Control *)the_node; api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 200fbc0: c8 00 a1 6c ld [ %g2 + 0x16c ], %g4 #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) 200fbc4: 80 8c 00 01 btst %l0, %g1 200fbc8: 12 80 00 46 bne 200fce0 200fbcc: 82 10 00 02 mov %g2, %g1 /* * Is this thread is blocked waiting for another signal but has * not blocked this one? */ if (~api->signals_blocked & mask) 200fbd0: c8 01 20 cc ld [ %g4 + 0xcc ], %g4 200fbd4: 80 ac 00 04 andncc %l0, %g4, %g0 200fbd8: 32 80 00 43 bne,a 200fce4 200fbdc: 84 10 20 01 mov 1, %g2 the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo; for ( the_node = the_chain->first ; !_Chain_Is_tail( the_chain, the_node ) ; the_node = the_node->next ) { 200fbe0: c4 00 80 00 ld [ %g2 ], %g2 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 200fbe4: 80 a0 80 03 cmp %g2, %g3 200fbe8: 32 bf ff f6 bne,a 200fbc0 200fbec: c2 00 a0 30 ld [ %g2 + 0x30 ], %g1 * NOTES: * * + rtems internal threads do not receive signals. */ interested = NULL; interested_priority = PRIORITY_MAXIMUM + 1; 200fbf0: 03 00 80 75 sethi %hi(0x201d400), %g1 200fbf4: c8 08 63 54 ldub [ %g1 + 0x354 ], %g4 ! 201d754 200fbf8: 05 00 80 78 sethi %hi(0x201e000), %g2 200fbfc: 88 01 20 01 inc %g4 200fc00: 84 10 a1 f8 or %g2, 0x1f8, %g2 */ #define _POSIX_signals_Is_interested( _api, _mask ) \ ( ~(_api)->signals_blocked & (_mask) ) int killinfo( 200fc04: 82 10 20 00 clr %g1 200fc08: 90 00 a0 0c add %g2, 0xc, %o0 continue; } DEBUG_STEP("6"); /* prefer blocked/interruptible over blocked/not interruptible */ if ( !_States_Is_interruptible_by_signal(interested->current_state) ) { 200fc0c: 17 04 00 00 sethi %hi(0x10000000), %o3 for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) { /* * This can occur when no one is interested and ITRON is not configured. */ if ( !_Objects_Information_table[ the_api ] ) 200fc10: c6 00 80 00 ld [ %g2 ], %g3 200fc14: 80 a0 e0 00 cmp %g3, 0 200fc18: 22 80 00 2c be,a 200fcc8 200fc1c: 84 00 a0 04 add %g2, 4, %g2 continue; the_info = _Objects_Information_table[ the_api ][ 1 ]; 200fc20: c6 00 e0 04 ld [ %g3 + 4 ], %g3 if ( !the_info ) continue; #endif maximum = the_info->maximum; object_table = the_info->local_table; 200fc24: 9a 10 20 01 mov 1, %o5 200fc28: f4 00 e0 1c ld [ %g3 + 0x1c ], %i2 for ( index = 1 ; index <= maximum ; index++ ) { 200fc2c: 10 80 00 23 b 200fcb8 200fc30: de 10 e0 10 lduh [ %g3 + 0x10 ], %o7 the_thread = (Thread_Control *) object_table[ index ]; 200fc34: c6 06 80 03 ld [ %i2 + %g3 ], %g3 if ( !the_thread ) 200fc38: 80 a0 e0 00 cmp %g3, 0 200fc3c: 02 80 00 1d be 200fcb0 200fc40: 98 10 00 04 mov %g4, %o4 /* * If this thread is of lower priority than the interested thread, * go on to the next thread. */ if ( the_thread->current_priority > interested_priority ) 200fc44: d8 00 e0 14 ld [ %g3 + 0x14 ], %o4 200fc48: 80 a3 00 04 cmp %o4, %g4 200fc4c: 38 80 00 19 bgu,a 200fcb0 200fc50: 98 10 00 04 mov %g4, %o4 DEBUG_STEP("2"); /* * If this thread is not interested, then go on to the next thread. */ api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 200fc54: d4 00 e1 6c ld [ %g3 + 0x16c ], %o2 200fc58: d4 02 a0 cc ld [ %o2 + 0xcc ], %o2 200fc5c: 80 ac 00 0a andncc %l0, %o2, %g0 200fc60: 22 80 00 14 be,a 200fcb0 200fc64: 98 10 00 04 mov %g4, %o4 * * NOTE: We initialized interested_priority to PRIORITY_MAXIMUM + 1 * so we never have to worry about deferencing a NULL * interested thread. */ if ( the_thread->current_priority < interested_priority ) { 200fc68: 80 a3 00 04 cmp %o4, %g4 200fc6c: 2a 80 00 11 bcs,a 200fcb0 200fc70: 82 10 00 03 mov %g3, %g1 * and blocking interruptibutable by signal. * * If the interested thread is ready, don't think about changing. */ if ( !_States_Is_ready( interested->current_state ) ) { 200fc74: d2 00 60 10 ld [ %g1 + 0x10 ], %o1 200fc78: 80 a2 60 00 cmp %o1, 0 200fc7c: 22 80 00 0d be,a 200fcb0 <== NEVER TAKEN 200fc80: 98 10 00 04 mov %g4, %o4 <== NOT EXECUTED /* preferred ready over blocked */ DEBUG_STEP("5"); if ( _States_Is_ready( the_thread->current_state ) ) { 200fc84: d4 00 e0 10 ld [ %g3 + 0x10 ], %o2 200fc88: 80 a2 a0 00 cmp %o2, 0 200fc8c: 22 80 00 09 be,a 200fcb0 200fc90: 82 10 00 03 mov %g3, %g1 continue; } DEBUG_STEP("6"); /* prefer blocked/interruptible over blocked/not interruptible */ if ( !_States_Is_interruptible_by_signal(interested->current_state) ) { 200fc94: 80 8a 40 0b btst %o1, %o3 200fc98: 32 80 00 06 bne,a 200fcb0 200fc9c: 98 10 00 04 mov %g4, %o4 DEBUG_STEP("7"); if ( _States_Is_interruptible_by_signal(the_thread->current_state) ) { 200fca0: 80 8a 80 0b btst %o2, %o3 200fca4: 32 80 00 03 bne,a 200fcb0 200fca8: 82 10 00 03 mov %g3, %g1 200fcac: 98 10 00 04 mov %g4, %o4 #endif maximum = the_info->maximum; object_table = the_info->local_table; for ( index = 1 ; index <= maximum ; index++ ) { 200fcb0: 9a 03 60 01 inc %o5 200fcb4: 88 10 00 0c mov %o4, %g4 200fcb8: 80 a3 40 0f cmp %o5, %o7 200fcbc: 28 bf ff de bleu,a 200fc34 200fcc0: 87 2b 60 02 sll %o5, 2, %g3 200fcc4: 84 00 a0 04 add %g2, 4, %g2 * + rtems internal threads do not receive signals. */ interested = NULL; interested_priority = PRIORITY_MAXIMUM + 1; for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) { 200fcc8: 80 a0 80 08 cmp %g2, %o0 200fccc: 32 bf ff d2 bne,a 200fc14 200fcd0: c6 00 80 00 ld [ %g2 ], %g3 } } } } if ( interested ) { 200fcd4: 80 a0 60 00 cmp %g1, 0 200fcd8: 02 80 00 0b be 200fd04 200fcdc: 01 00 00 00 nop * thread needs to do the post context switch extension so it can * evaluate the signals pending. */ process_it: the_thread->do_post_task_switch_extension = true; 200fce0: 84 10 20 01 mov 1, %g2 ! 1 /* * Returns true if the signal was synchronously given to a thread * blocked waiting for the signal. */ if ( _POSIX_signals_Unblock_thread( the_thread, sig, siginfo ) ) { 200fce4: 90 10 00 01 mov %g1, %o0 * thread needs to do the post context switch extension so it can * evaluate the signals pending. */ process_it: the_thread->do_post_task_switch_extension = true; 200fce8: c4 28 60 74 stb %g2, [ %g1 + 0x74 ] /* * Returns true if the signal was synchronously given to a thread * blocked waiting for the signal. */ if ( _POSIX_signals_Unblock_thread( the_thread, sig, siginfo ) ) { 200fcec: 92 10 00 19 mov %i1, %o1 200fcf0: 40 00 00 aa call 200ff98 <_POSIX_signals_Unblock_thread> 200fcf4: 94 07 bf f4 add %fp, -12, %o2 200fcf8: 80 8a 20 ff btst 0xff, %o0 200fcfc: 12 80 00 20 bne 200fd7c 200fd00: 01 00 00 00 nop /* * We may have woken up a thread but we definitely need to post the * signal to the process wide information set. */ _POSIX_signals_Set_process_signals( mask ); 200fd04: 40 00 00 94 call 200ff54 <_POSIX_signals_Set_process_signals> 200fd08: 90 10 00 10 mov %l0, %o0 if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) { 200fd0c: 83 2e 60 04 sll %i1, 4, %g1 200fd10: b3 2e 60 02 sll %i1, 2, %i1 200fd14: b2 20 40 19 sub %g1, %i1, %i1 200fd18: 03 00 80 7a sethi %hi(0x201e800), %g1 200fd1c: 82 10 60 18 or %g1, 0x18, %g1 ! 201e818 <_POSIX_signals_Vectors> 200fd20: c2 00 40 19 ld [ %g1 + %i1 ], %g1 200fd24: 80 a0 60 02 cmp %g1, 2 200fd28: 12 80 00 15 bne 200fd7c 200fd2c: 11 00 80 7a sethi %hi(0x201e800), %o0 psiginfo = (POSIX_signals_Siginfo_node *) 200fd30: 7f ff dc 11 call 2006d74 <_Chain_Get> 200fd34: 90 12 21 98 or %o0, 0x198, %o0 ! 201e998 <_POSIX_signals_Inactive_siginfo> _Chain_Get( &_POSIX_signals_Inactive_siginfo ); if ( !psiginfo ) { 200fd38: a0 92 20 00 orcc %o0, 0, %l0 200fd3c: 12 80 00 08 bne 200fd5c 200fd40: 92 07 bf f4 add %fp, -12, %o1 _Thread_Enable_dispatch(); 200fd44: 7f ff e2 38 call 2008624 <_Thread_Enable_dispatch> 200fd48: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EAGAIN ); 200fd4c: 40 00 02 ff call 2010948 <__errno> 200fd50: 01 00 00 00 nop 200fd54: 10 bf ff 67 b 200faf0 200fd58: 82 10 20 0b mov 0xb, %g1 ! b } psiginfo->Info = *siginfo; 200fd5c: 90 04 20 08 add %l0, 8, %o0 200fd60: 40 00 05 36 call 2011238 200fd64: 94 10 20 0c mov 0xc, %o2 _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); 200fd68: 11 00 80 7a sethi %hi(0x201e800), %o0 200fd6c: 92 10 00 10 mov %l0, %o1 200fd70: 90 12 22 10 or %o0, 0x210, %o0 200fd74: 7f ff db ea call 2006d1c <_Chain_Append> 200fd78: 90 02 00 19 add %o0, %i1, %o0 } DEBUG_STEP("\n"); _Thread_Enable_dispatch(); 200fd7c: 7f ff e2 2a call 2008624 <_Thread_Enable_dispatch> 200fd80: 01 00 00 00 nop 200fd84: 90 10 20 00 clr %o0 ! 0 return 0; } 200fd88: b0 10 00 08 mov %o0, %i0 200fd8c: 81 c7 e0 08 ret 200fd90: 81 e8 00 00 restore =============================================================================== 0201b528 : extern void _wrapup_reent(struct _reent *); extern void _reclaim_reent(struct _reent *); void libc_wrapup(void) { 201b528: 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())) 201b52c: 03 00 80 79 sethi %hi(0x201e400), %g1 201b530: c2 00 60 30 ld [ %g1 + 0x30 ], %g1 ! 201e430 <_System_state_Current> 201b534: 80 a0 60 03 cmp %g1, 3 201b538: 12 80 00 16 bne 201b590 <== NEVER TAKEN 201b53c: 03 00 80 74 sethi %hi(0x201d000), %g1 /* * This was already done if the user called exit() directly . _wrapup_reent(0); */ if (_REENT != _global_impure_ptr) { 201b540: 23 00 80 76 sethi %hi(0x201d800), %l1 201b544: e0 00 61 c0 ld [ %g1 + 0x1c0 ], %l0 201b548: c2 04 61 20 ld [ %l1 + 0x120 ], %g1 201b54c: 80 a0 40 10 cmp %g1, %l0 201b550: 22 80 00 06 be,a 201b568 201b554: 21 00 80 76 sethi %hi(0x201d800), %l0 _wrapup_reent(_global_impure_ptr); 201b558: 40 00 01 83 call 201bb64 <_wrapup_reent> 201b55c: 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; 201b560: e0 24 61 20 st %l0, [ %l1 + 0x120 ] * * Should this be changed to do *all* file streams? * _fwalk (_REENT, fclose); */ fclose (stdin); 201b564: 21 00 80 76 sethi %hi(0x201d800), %l0 201b568: c2 04 21 20 ld [ %l0 + 0x120 ], %g1 ! 201d920 <_impure_ptr> 201b56c: 7f ff d5 4f call 2010aa8 201b570: d0 00 60 04 ld [ %g1 + 4 ], %o0 fclose (stdout); 201b574: c2 04 21 20 ld [ %l0 + 0x120 ], %g1 201b578: 7f ff d5 4c call 2010aa8 201b57c: d0 00 60 08 ld [ %g1 + 8 ], %o0 fclose (stderr); 201b580: c2 04 21 20 ld [ %l0 + 0x120 ], %g1 201b584: f0 00 60 0c ld [ %g1 + 0xc ], %i0 201b588: 7f ff d5 48 call 2010aa8 201b58c: 81 e8 00 00 restore 201b590: 81 c7 e0 08 ret <== NOT EXECUTED 201b594: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02029a68 : int link( const char *existing, const char *new ) { 2029a68: 9d e3 bf 70 save %sp, -144, %sp /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, strlen( existing ), 2029a6c: 40 00 85 c6 call 204b184 2029a70: 90 10 00 18 mov %i0, %o0 2029a74: a0 07 bf e4 add %fp, -28, %l0 2029a78: 92 10 00 08 mov %o0, %o1 2029a7c: 94 10 20 00 clr %o2 2029a80: 90 10 00 18 mov %i0, %o0 2029a84: 96 10 00 10 mov %l0, %o3 2029a88: 98 10 20 01 mov 1, %o4 2029a8c: 7f ff 79 d8 call 20081ec 2029a90: b0 10 3f ff mov -1, %i0 0, &existing_loc, true ); if ( result != 0 ) 2029a94: 80 a2 20 00 cmp %o0, 0 2029a98: 12 80 00 28 bne 2029b38 2029a9c: a2 07 bf d0 add %fp, -48, %l1 /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 2029aa0: 90 10 00 19 mov %i1, %o0 2029aa4: 92 07 bf fc add %fp, -4, %o1 2029aa8: 7f ff 80 72 call 2009c70 2029aac: 94 10 00 11 mov %l1, %o2 if ( !parent_loc.ops->evalformake_h ) { 2029ab0: c2 07 bf dc ld [ %fp + -36 ], %g1 2029ab4: c2 00 60 04 ld [ %g1 + 4 ], %g1 2029ab8: 80 a0 60 00 cmp %g1, 0 2029abc: 12 80 00 0b bne 2029ae8 <== ALWAYS TAKEN 2029ac0: d0 07 bf fc ld [ %fp + -4 ], %o0 rtems_filesystem_freenode( &existing_loc ); 2029ac4: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2029ac8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029acc: 02 80 00 51 be 2029c10 <== NOT EXECUTED 2029ad0: 01 00 00 00 nop <== NOT EXECUTED 2029ad4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2029ad8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029adc: 12 80 00 4b bne 2029c08 <== NOT EXECUTED 2029ae0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2029ae4: 30 80 00 4b b,a 2029c10 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start ); 2029ae8: 92 10 00 11 mov %l1, %o1 2029aec: 90 06 40 08 add %i1, %o0, %o0 2029af0: 9f c0 40 00 call %g1 2029af4: 94 07 bf f8 add %fp, -8, %o2 if ( result != 0 ) { 2029af8: b2 92 20 00 orcc %o0, 0, %i1 2029afc: 02 80 00 11 be 2029b40 2029b00: c2 07 bf f4 ld [ %fp + -12 ], %g1 rtems_filesystem_freenode( &existing_loc ); 2029b04: c2 07 bf f0 ld [ %fp + -16 ], %g1 2029b08: 80 a0 60 00 cmp %g1, 0 2029b0c: 02 80 00 08 be 2029b2c <== NEVER TAKEN 2029b10: 01 00 00 00 nop 2029b14: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2029b18: 80 a0 60 00 cmp %g1, 0 2029b1c: 02 80 00 04 be 2029b2c <== NEVER TAKEN 2029b20: 01 00 00 00 nop 2029b24: 9f c0 40 00 call %g1 2029b28: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( result ); 2029b2c: 40 00 69 da call 2044294 <__errno> 2029b30: b0 10 3f ff mov -1, %i0 2029b34: f2 22 00 00 st %i1, [ %o0 ] 2029b38: 81 c7 e0 08 ret 2029b3c: 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 ) { 2029b40: c4 07 bf e0 ld [ %fp + -32 ], %g2 2029b44: 80 a0 80 01 cmp %g2, %g1 2029b48: 02 80 00 1a be 2029bb0 2029b4c: c2 07 bf dc ld [ %fp + -36 ], %g1 rtems_filesystem_freenode( &existing_loc ); 2029b50: c2 07 bf f0 ld [ %fp + -16 ], %g1 2029b54: 80 a0 60 00 cmp %g1, 0 2029b58: 22 80 00 09 be,a 2029b7c <== NEVER TAKEN 2029b5c: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED 2029b60: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2029b64: 80 a0 60 00 cmp %g1, 0 2029b68: 22 80 00 05 be,a 2029b7c <== NEVER TAKEN 2029b6c: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED 2029b70: 9f c0 40 00 call %g1 2029b74: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &parent_loc ); 2029b78: c2 07 bf dc ld [ %fp + -36 ], %g1 2029b7c: 80 a0 60 00 cmp %g1, 0 2029b80: 02 80 00 08 be 2029ba0 <== NEVER TAKEN 2029b84: 01 00 00 00 nop 2029b88: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2029b8c: 80 a0 60 00 cmp %g1, 0 2029b90: 02 80 00 04 be 2029ba0 <== NEVER TAKEN 2029b94: 01 00 00 00 nop 2029b98: 9f c0 40 00 call %g1 2029b9c: 90 07 bf d0 add %fp, -48, %o0 rtems_set_errno_and_return_minus_one( EXDEV ); 2029ba0: 40 00 69 bd call 2044294 <__errno> 2029ba4: b0 10 3f ff mov -1, %i0 2029ba8: 10 80 00 1d b 2029c1c 2029bac: 82 10 20 12 mov 0x12, %g1 } if ( !parent_loc.ops->link_h ) { 2029bb0: c2 00 60 08 ld [ %g1 + 8 ], %g1 2029bb4: 80 a0 60 00 cmp %g1, 0 2029bb8: 12 80 00 1c bne 2029c28 <== ALWAYS TAKEN 2029bbc: d4 07 bf f8 ld [ %fp + -8 ], %o2 rtems_filesystem_freenode( &existing_loc ); 2029bc0: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2029bc4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029bc8: 22 80 00 09 be,a 2029bec <== NOT EXECUTED 2029bcc: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED 2029bd0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2029bd4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029bd8: 22 80 00 05 be,a 2029bec <== NOT EXECUTED 2029bdc: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED 2029be0: 9f c0 40 00 call %g1 <== NOT EXECUTED 2029be4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 2029be8: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED 2029bec: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029bf0: 02 80 00 08 be 2029c10 <== NOT EXECUTED 2029bf4: 01 00 00 00 nop <== NOT EXECUTED 2029bf8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2029bfc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029c00: 02 80 00 04 be 2029c10 <== NOT EXECUTED 2029c04: 90 07 bf d0 add %fp, -48, %o0 <== NOT EXECUTED 2029c08: 9f c0 40 00 call %g1 <== NOT EXECUTED 2029c0c: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2029c10: 40 00 69 a1 call 2044294 <__errno> <== NOT EXECUTED 2029c14: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 2029c18: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2029c1c: c2 22 00 00 st %g1, [ %o0 ] 2029c20: 81 c7 e0 08 ret 2029c24: 81 e8 00 00 restore } result = (*parent_loc.ops->link_h)( &existing_loc, &parent_loc, name_start ); 2029c28: 92 10 00 11 mov %l1, %o1 2029c2c: 9f c0 40 00 call %g1 2029c30: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &existing_loc ); 2029c34: c2 07 bf f0 ld [ %fp + -16 ], %g1 2029c38: 80 a0 60 00 cmp %g1, 0 2029c3c: 02 80 00 08 be 2029c5c <== NEVER TAKEN 2029c40: b0 10 00 08 mov %o0, %i0 2029c44: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2029c48: 80 a0 60 00 cmp %g1, 0 2029c4c: 22 80 00 05 be,a 2029c60 <== NEVER TAKEN 2029c50: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED 2029c54: 9f c0 40 00 call %g1 2029c58: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &parent_loc ); 2029c5c: c2 07 bf dc ld [ %fp + -36 ], %g1 2029c60: 80 a0 60 00 cmp %g1, 0 2029c64: 02 80 00 08 be 2029c84 <== NEVER TAKEN 2029c68: 01 00 00 00 nop 2029c6c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2029c70: 80 a0 60 00 cmp %g1, 0 2029c74: 02 80 00 04 be 2029c84 <== NEVER TAKEN 2029c78: 01 00 00 00 nop 2029c7c: 9f c0 40 00 call %g1 2029c80: 90 07 bf d0 add %fp, -48, %o0 return result; } 2029c84: 81 c7 e0 08 ret 2029c88: 81 e8 00 00 restore =============================================================================== 0201b3d8 : off_t lseek( int fd, off_t offset, int whence ) { 201b3d8: 9d e3 bf a0 save %sp, -96, %sp rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 201b3dc: 03 00 80 75 sethi %hi(0x201d400), %g1 201b3e0: c2 00 62 a4 ld [ %g1 + 0x2a4 ], %g1 ! 201d6a4 off_t lseek( int fd, off_t offset, int whence ) { 201b3e4: 96 10 00 1b mov %i3, %o3 rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 201b3e8: 80 a6 00 01 cmp %i0, %g1 off_t lseek( int fd, off_t offset, int whence ) { 201b3ec: 84 10 00 19 mov %i1, %g2 rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 201b3f0: 1a 80 00 0c bcc 201b420 <== NEVER TAKEN 201b3f4: 86 10 00 1a mov %i2, %g3 iop = rtems_libio_iop( fd ); 201b3f8: 03 00 80 78 sethi %hi(0x201e000), %g1 201b3fc: e0 00 60 b4 ld [ %g1 + 0xb4 ], %l0 ! 201e0b4 201b400: 83 2e 20 06 sll %i0, 6, %g1 201b404: b1 2e 20 03 sll %i0, 3, %i0 201b408: b0 06 00 01 add %i0, %g1, %i0 201b40c: a0 04 00 18 add %l0, %i0, %l0 rtems_libio_check_is_open(iop); 201b410: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 201b414: 80 88 61 00 btst 0x100, %g1 201b418: 32 80 00 06 bne,a 201b430 <== ALWAYS TAKEN 201b41c: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 201b420: 7f ff d5 4a call 2010948 <__errno> <== NOT EXECUTED 201b424: 01 00 00 00 nop <== NOT EXECUTED 201b428: 10 80 00 1e b 201b4a0 <== NOT EXECUTED 201b42c: 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 ) 201b430: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 201b434: 80 a0 60 00 cmp %g1, 0 201b438: 12 80 00 06 bne 201b450 <== ALWAYS TAKEN 201b43c: 80 a6 e0 01 cmp %i3, 1 rtems_set_errno_and_return_minus_one( ENOTSUP ); 201b440: 7f ff d5 42 call 2010948 <__errno> <== NOT EXECUTED 201b444: 01 00 00 00 nop <== NOT EXECUTED 201b448: 10 80 00 16 b 201b4a0 <== NOT EXECUTED 201b44c: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED /* * Now process the lseek(). */ old_offset = iop->offset; switch ( whence ) { 201b450: 02 80 00 09 be 201b474 201b454: e4 1c 20 10 ldd [ %l0 + 0x10 ], %l2 201b458: 80 a6 e0 02 cmp %i3, 2 201b45c: 02 80 00 09 be 201b480 201b460: 80 a6 e0 00 cmp %i3, 0 201b464: 12 80 00 0c bne 201b494 201b468: 01 00 00 00 nop case SEEK_SET: iop->offset = offset; break; 201b46c: 10 80 00 12 b 201b4b4 201b470: c4 3c 20 10 std %g2, [ %l0 + 0x10 ] case SEEK_CUR: iop->offset += offset; 201b474: 9a 86 80 13 addcc %i2, %l3, %o5 201b478: 10 80 00 05 b 201b48c 201b47c: 98 46 40 12 addx %i1, %l2, %o4 break; case SEEK_END: iop->offset = iop->size + offset; 201b480: d8 1c 20 08 ldd [ %l0 + 8 ], %o4 201b484: 9a 86 80 0d addcc %i2, %o5, %o5 201b488: 98 46 40 0c addx %i1, %o4, %o4 break; 201b48c: 10 80 00 0a b 201b4b4 201b490: d8 3c 20 10 std %o4, [ %l0 + 0x10 ] default: rtems_set_errno_and_return_minus_one( EINVAL ); 201b494: 7f ff d5 2d call 2010948 <__errno> 201b498: 01 00 00 00 nop 201b49c: 82 10 20 16 mov 0x16, %g1 ! 16 201b4a0: c2 22 00 00 st %g1, [ %o0 ] 201b4a4: 11 3f ff ff sethi %hi(0xfffffc00), %o0 201b4a8: 90 12 23 ff or %o0, 0x3ff, %o0 ! ffffffff 201b4ac: 10 80 00 0e b 201b4e4 201b4b0: 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 ); 201b4b4: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 201b4b8: 92 10 00 02 mov %g2, %o1 201b4bc: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 201b4c0: 94 10 00 03 mov %g3, %o2 201b4c4: 9f c0 40 00 call %g1 201b4c8: 90 10 00 10 mov %l0, %o0 if ( status == (off_t) -1 ) 201b4cc: 80 a2 3f ff cmp %o0, -1 201b4d0: 12 80 00 06 bne 201b4e8 201b4d4: b2 10 00 09 mov %o1, %i1 201b4d8: 80 a2 7f ff cmp %o1, -1 201b4dc: 22 80 00 03 be,a 201b4e8 <== ALWAYS TAKEN 201b4e0: e4 3c 20 10 std %l2, [ %l0 + 0x10 ] /* * So if the operation failed, we have to restore iop->offset. */ return status; } 201b4e4: b2 10 00 09 mov %o1, %i1 201b4e8: 81 c7 e0 08 ret 201b4ec: 91 e8 00 08 restore %g0, %o0, %o0 =============================================================================== 02029de0 : int _STAT_NAME( const char *path, struct stat *buf ) { 2029de0: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 2029de4: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 2029de8: 12 80 00 06 bne 2029e00 <== NOT EXECUTED 2029dec: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); 2029df0: 40 00 69 29 call 2044294 <__errno> <== NOT EXECUTED 2029df4: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 2029df8: 10 80 00 20 b 2029e78 <== NOT EXECUTED 2029dfc: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED status = rtems_filesystem_evaluate_path( path, strlen( path ), 2029e00: 40 00 84 e1 call 204b184 <== NOT EXECUTED 2029e04: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2029e08: a0 07 bf ec add %fp, -20, %l0 <== NOT EXECUTED 2029e0c: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 2029e10: 94 10 20 00 clr %o2 <== NOT EXECUTED 2029e14: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2029e18: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 2029e1c: 98 10 20 00 clr %o4 <== NOT EXECUTED 2029e20: 7f ff 78 f3 call 20081ec <== NOT EXECUTED 2029e24: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 2029e28: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029e2c: 12 80 00 14 bne 2029e7c <== NOT EXECUTED 2029e30: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ 2029e34: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 2029e38: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029e3c: 12 80 00 12 bne 2029e84 <== NOT EXECUTED 2029e40: 92 10 20 00 clr %o1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 2029e44: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2029e48: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029e4c: 02 80 00 08 be 2029e6c <== NOT EXECUTED 2029e50: 01 00 00 00 nop <== NOT EXECUTED 2029e54: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2029e58: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029e5c: 02 80 00 04 be 2029e6c <== NOT EXECUTED 2029e60: 01 00 00 00 nop <== NOT EXECUTED 2029e64: 9f c0 40 00 call %g1 <== NOT EXECUTED 2029e68: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2029e6c: 40 00 69 0a call 2044294 <__errno> <== NOT EXECUTED 2029e70: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2029e74: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2029e78: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2029e7c: 81 c7 e0 08 ret <== NOT EXECUTED 2029e80: 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) ); 2029e84: 94 10 20 48 mov 0x48, %o2 <== NOT EXECUTED 2029e88: 40 00 76 e2 call 2047a10 <== NOT EXECUTED 2029e8c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); 2029e90: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 2029e94: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2029e98: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 2029e9c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2029ea0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 2029ea4: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2029ea8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029eac: 02 bf ff f4 be 2029e7c <== NOT EXECUTED 2029eb0: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 2029eb4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2029eb8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029ebc: 02 80 00 04 be 2029ecc <== NOT EXECUTED 2029ec0: 01 00 00 00 nop <== NOT EXECUTED 2029ec4: 9f c0 40 00 call %g1 <== NOT EXECUTED 2029ec8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return status; } 2029ecc: 81 c7 e0 08 ret <== NOT EXECUTED 2029ed0: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02002e78 : size_t size ) { void *return_this; MSBUMP(malloc_calls, 1); 2002e78: 9d e3 bf a0 save %sp, -96, %sp 2002e7c: 03 00 80 78 sethi %hi(0x201e000), %g1 2002e80: 82 10 60 d0 or %g1, 0xd0, %g1 ! 201e0d0 2002e84: c4 00 60 04 ld [ %g1 + 4 ], %g2 2002e88: a0 10 00 18 mov %i0, %l0 2002e8c: 84 00 a0 01 inc %g2 /* * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 2002e90: 7f ff ff b1 call 2002d54 2002e94: c4 20 60 04 st %g2, [ %g1 + 4 ] /* * Validate the parameters */ if ( !size ) 2002e98: 80 a6 20 00 cmp %i0, 0 2002e9c: 02 80 00 35 be 2002f70 <== NEVER TAKEN 2002ea0: 03 00 80 79 sethi %hi(0x201e400), %g1 return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 2002ea4: c2 00 60 30 ld [ %g1 + 0x30 ], %g1 ! 201e430 <_System_state_Current> 2002ea8: 80 a0 60 03 cmp %g1, 3 2002eac: 12 80 00 07 bne 2002ec8 2002eb0: 03 00 80 75 sethi %hi(0x201d400), %g1 2002eb4: 7f ff ff 8f call 2002cf0 2002eb8: 01 00 00 00 nop 2002ebc: 80 8a 20 ff btst 0xff, %o0 2002ec0: 02 80 00 2c be 2002f70 <== NEVER TAKEN 2002ec4: 03 00 80 75 sethi %hi(0x201d400), %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 ); 2002ec8: d0 00 62 b0 ld [ %g1 + 0x2b0 ], %o0 ! 201d6b0 2002ecc: 92 10 00 10 mov %l0, %o1 2002ed0: 94 10 20 00 clr %o2 2002ed4: 40 00 14 18 call 2007f34 <_Protected_heap_Allocate_aligned_with_boundary> 2002ed8: 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 ) { 2002edc: b0 92 20 00 orcc %o0, 0, %i0 2002ee0: 12 80 00 13 bne 2002f2c 2002ee4: a2 10 00 18 mov %i0, %l1 if (rtems_malloc_sbrk_helpers) 2002ee8: 03 00 80 77 sethi %hi(0x201dc00), %g1 2002eec: c2 00 61 dc ld [ %g1 + 0x1dc ], %g1 ! 201dddc 2002ef0: 80 a0 60 00 cmp %g1, 0 2002ef4: 02 80 00 08 be 2002f14 <== ALWAYS TAKEN 2002ef8: 01 00 00 00 nop return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); 2002efc: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 2002f00: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002f04: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( !return_this ) { 2002f08: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED 2002f0c: 12 80 00 09 bne 2002f30 <== NOT EXECUTED 2002f10: 03 00 80 77 sethi %hi(0x201dc00), %g1 <== NOT EXECUTED errno = ENOMEM; 2002f14: 40 00 36 8d call 2010948 <__errno> 2002f18: 01 00 00 00 nop 2002f1c: 82 10 20 0c mov 0xc, %g1 ! c 2002f20: c2 22 00 00 st %g1, [ %o0 ] return (void *) 0; 2002f24: 81 c7 e0 08 ret 2002f28: 81 e8 00 00 restore } /* * If the user wants us to dirty the allocated memory, then do it. */ if ( rtems_malloc_dirty_helper ) 2002f2c: 03 00 80 77 sethi %hi(0x201dc00), %g1 2002f30: c2 00 61 e0 ld [ %g1 + 0x1e0 ], %g1 ! 201dde0 2002f34: 80 a0 60 00 cmp %g1, 0 2002f38: 02 80 00 04 be 2002f48 <== ALWAYS TAKEN 2002f3c: 92 10 00 10 mov %l0, %o1 (*rtems_malloc_dirty_helper)( return_this, size ); 2002f40: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002f44: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 2002f48: 03 00 80 77 sethi %hi(0x201dc00), %g1 2002f4c: c2 00 61 d8 ld [ %g1 + 0x1d8 ], %g1 ! 201ddd8 2002f50: 80 a0 60 00 cmp %g1, 0 2002f54: 02 bf ff f4 be 2002f24 2002f58: b0 10 00 11 mov %l1, %i0 (*rtems_malloc_statistics_helpers->at_malloc)(return_this); 2002f5c: c2 00 60 04 ld [ %g1 + 4 ], %g1 2002f60: 9f c0 40 00 call %g1 2002f64: 90 10 00 11 mov %l1, %o0 2002f68: 81 c7 e0 08 ret 2002f6c: 81 e8 00 00 restore 2002f70: 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; } 2002f74: 81 c7 e0 08 ret <== NOT EXECUTED 2002f78: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02002d38 : RTEMS_INLINE_ROUTINE void rtems_chain_append( rtems_chain_control *the_chain, rtems_chain_node *the_node ) { _Chain_Append( the_chain, the_node ); 2002d38: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 2002d3c: 11 00 80 78 sethi %hi(0x201e000), %o0 <== NOT EXECUTED 2002d40: 90 12 20 c0 or %o0, 0xc0, %o0 ! 201e0c0 <== NOT EXECUTED 2002d44: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2002d48: 40 00 0f f5 call 2006d1c <_Chain_Append> <== NOT EXECUTED 2002d4c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED =============================================================================== 02002d54 : void malloc_deferred_frees_process(void) { 2002d54: 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 ); 2002d58: 21 00 80 78 sethi %hi(0x201e000), %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) 2002d5c: 10 80 00 04 b 2002d6c 2002d60: a0 14 20 c0 or %l0, 0xc0, %l0 ! 201e0c0 free(to_be_freed); 2002d64: 7f ff ff 66 call 2002afc <== NOT EXECUTED 2002d68: 01 00 00 00 nop <== NOT EXECUTED 2002d6c: 40 00 10 02 call 2006d74 <_Chain_Get> 2002d70: 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) 2002d74: 80 a2 20 00 cmp %o0, 0 2002d78: 12 bf ff fb bne 2002d64 <== NEVER TAKEN 2002d7c: 01 00 00 00 nop free(to_be_freed); } 2002d80: 81 c7 e0 08 ret 2002d84: 81 e8 00 00 restore =============================================================================== 02002cf0 : rtems_chain_control RTEMS_Malloc_GC_list; bool malloc_is_system_state_OK(void) { if ( _Thread_Dispatch_disable_level > 0 ) 2002cf0: 03 00 80 78 sethi %hi(0x201e000), %g1 2002cf4: c2 00 62 90 ld [ %g1 + 0x290 ], %g1 ! 201e290 <_Thread_Dispatch_disable_level> 2002cf8: 80 a0 60 00 cmp %g1, 0 2002cfc: 12 80 00 06 bne 2002d14 <== NEVER TAKEN 2002d00: 90 10 20 00 clr %o0 return false; if ( _ISR_Nest_level > 0 ) 2002d04: 03 00 80 78 sethi %hi(0x201e000), %g1 2002d08: c2 00 63 2c ld [ %g1 + 0x32c ], %g1 ! 201e32c <_ISR_Nest_level> #include "malloc_p.h" rtems_chain_control RTEMS_Malloc_GC_list; bool malloc_is_system_state_OK(void) 2002d0c: 80 a0 00 01 cmp %g0, %g1 2002d10: 90 60 3f ff subx %g0, -1, %o0 if ( _ISR_Nest_level > 0 ) return false; return true; } 2002d14: 81 c3 e0 08 retl =============================================================================== 0200df54 : */ int memfile_blocks_allocated = 0; void *memfile_alloc_block(void) { 200df54: 9d e3 bf a0 save %sp, -96, %sp void *memory; memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK); 200df58: 03 00 80 77 sethi %hi(0x201dc00), %g1 200df5c: d2 00 62 28 ld [ %g1 + 0x228 ], %o1 ! 201de28 200df60: 7f ff d2 55 call 20028b4 200df64: 90 10 20 01 mov 1, %o0 if ( memory ) 200df68: 80 a2 20 00 cmp %o0, 0 200df6c: 02 80 00 05 be 200df80 <== NEVER TAKEN 200df70: 03 00 80 77 sethi %hi(0x201dc00), %g1 memfile_blocks_allocated++; 200df74: c4 00 63 3c ld [ %g1 + 0x33c ], %g2 ! 201df3c 200df78: 84 00 a0 01 inc %g2 200df7c: c4 20 63 3c st %g2, [ %g1 + 0x33c ] return memory; } 200df80: 81 c7 e0 08 ret 200df84: 91 e8 00 08 restore %g0, %o0, %o0 =============================================================================== 0200e48c : return memfile_check_rmnod( the_jnode ); } int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){ 200e48c: 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) ) { 200e490: 7f ff f6 d3 call 200bfdc 200e494: 90 10 00 18 mov %i0, %o0 200e498: 80 a2 20 00 cmp %o0, 0 200e49c: 12 80 00 13 bne 200e4e8 200e4a0: 01 00 00 00 nop 200e4a4: c2 16 20 34 lduh [ %i0 + 0x34 ], %g1 200e4a8: 80 a0 60 00 cmp %g1, 0 200e4ac: 12 80 00 0f bne 200e4e8 <== NEVER TAKEN 200e4b0: 03 00 80 76 sethi %hi(0x201d800), %g1 /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == the_jnode ) 200e4b4: c2 00 60 70 ld [ %g1 + 0x70 ], %g1 ! 201d870 200e4b8: c4 00 60 04 ld [ %g1 + 4 ], %g2 200e4bc: 80 a0 80 18 cmp %g2, %i0 200e4c0: 22 80 00 02 be,a 200e4c8 <== NEVER TAKEN 200e4c4: 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) 200e4c8: c2 06 20 4c ld [ %i0 + 0x4c ], %g1 200e4cc: 80 a0 60 06 cmp %g1, 6 200e4d0: 02 80 00 04 be 200e4e0 <== NEVER TAKEN 200e4d4: 01 00 00 00 nop IMFS_memfile_remove( the_jnode ); 200e4d8: 7f ff ff 8c call 200e308 200e4dc: 90 10 00 18 mov %i0, %o0 free( the_jnode ); 200e4e0: 7f ff d1 87 call 2002afc 200e4e4: 90 10 00 18 mov %i0, %o0 } return 0; } 200e4e8: 81 c7 e0 08 ret 200e4ec: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 0200e240 : void memfile_free_blocks_in_table( block_p **block_table, int entries ) { 200e240: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( block_table ); 200e244: 80 a6 20 00 cmp %i0, 0 200e248: 32 80 00 0a bne,a 200e270 <== ALWAYS TAKEN 200e24c: e0 06 00 00 ld [ %i0 ], %l0 200e250: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED 200e254: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED 200e258: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED 200e25c: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED 200e260: 94 12 a1 80 or %o2, 0x180, %o2 <== NOT EXECUTED 200e264: 96 12 e0 68 or %o3, 0x68, %o3 <== NOT EXECUTED 200e268: 7f ff f6 be call 200bd60 <__assert_func> <== NOT EXECUTED 200e26c: 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 200e274: a2 10 20 00 clr %l1 if ( b[i] ) { 200e278: 80 a2 20 00 cmp %o0, 0 200e27c: 02 80 00 05 be 200e290 200e280: a2 04 60 01 inc %l1 memfile_free_block( b[i] ); 200e284: 7f ff ff 2b call 200df30 200e288: 01 00 00 00 nop b[i] = 0; 200e28c: 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 200e29c: 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 ); 200e2a0: 7f ff ff 24 call 200df30 200e2a4: d0 06 00 00 ld [ %i0 ], %o0 *block_table = 0; 200e2a8: c0 26 00 00 clr [ %i0 ] } 200e2ac: 81 c7 e0 08 ret 200e2b0: 81 e8 00 00 restore =============================================================================== 0200e7a0 : int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { 200e7a0: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 200e7a4: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { 200e7a8: 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 ) 200e7ac: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 200e7b0: 80 a0 40 19 cmp %g1, %i1 200e7b4: 06 80 00 09 bl 200e7d8 <== NEVER TAKEN 200e7b8: 94 10 00 1a mov %i2, %o2 200e7bc: 80 a0 40 19 cmp %g1, %i1 200e7c0: 32 80 00 0a bne,a 200e7e8 <== NEVER TAKEN 200e7c4: d2 24 20 50 st %o1, [ %l0 + 0x50 ] <== NOT EXECUTED 200e7c8: c2 04 20 54 ld [ %l0 + 0x54 ], %g1 200e7cc: 80 a0 40 1a cmp %g1, %i2 200e7d0: 3a 80 00 06 bcc,a 200e7e8 <== ALWAYS TAKEN 200e7d4: d2 24 20 50 st %o1, [ %l0 + 0x50 ] return IMFS_memfile_extend( the_jnode, length ); 200e7d8: 7f ff ff 8f call 200e614 <== NOT EXECUTED 200e7dc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 200e7e0: 81 c7 e0 08 ret <== NOT EXECUTED 200e7e4: 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; 200e7e8: d4 24 20 54 st %o2, [ %l0 + 0x54 ] iop->size = the_jnode->info.file.size; 200e7ec: d2 26 20 08 st %o1, [ %i0 + 8 ] 200e7f0: d4 26 20 0c st %o2, [ %i0 + 0xc ] IMFS_update_atime( the_jnode ); 200e7f4: 90 07 bf f8 add %fp, -8, %o0 200e7f8: 7f ff d0 eb call 2002ba4 200e7fc: 92 10 20 00 clr %o1 200e800: c2 07 bf f8 ld [ %fp + -8 ], %g1 200e804: 90 10 20 00 clr %o0 200e808: c2 24 20 40 st %g1, [ %l0 + 0x40 ] return 0; } 200e80c: b0 10 00 08 mov %o0, %i0 200e810: 81 c7 e0 08 ret 200e814: 81 e8 00 00 restore =============================================================================== 0200e818 : rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 200e818: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 200e81c: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 if (the_jnode->type == IMFS_LINEAR_FILE) { 200e820: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 200e824: 80 a0 60 06 cmp %g1, 6 200e828: 32 80 00 11 bne,a 200e86c <== ALWAYS TAKEN 200e82c: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 if (iop->offset > the_jnode->info.linearfile.size) 200e830: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 <== NOT EXECUTED 200e834: c6 06 20 10 ld [ %i0 + 0x10 ], %g3 <== NOT EXECUTED 200e838: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 200e83c: 14 80 00 09 bg 200e860 <== NOT EXECUTED 200e840: c4 04 20 54 ld [ %l0 + 0x54 ], %g2 <== NOT EXECUTED 200e844: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 200e848: 32 80 00 1a bne,a 200e8b0 <== NOT EXECUTED 200e84c: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 <== NOT EXECUTED 200e850: c6 06 20 14 ld [ %i0 + 0x14 ], %g3 <== NOT EXECUTED 200e854: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED 200e858: 28 80 00 16 bleu,a 200e8b0 <== NOT EXECUTED 200e85c: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 <== NOT EXECUTED iop->offset = the_jnode->info.linearfile.size; 200e860: c2 26 20 10 st %g1, [ %i0 + 0x10 ] <== NOT EXECUTED 200e864: 10 80 00 12 b 200e8ac <== NOT EXECUTED 200e868: 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 )) 200e86c: 90 10 00 10 mov %l0, %o0 200e870: 92 10 00 02 mov %g2, %o1 200e874: 7f ff ff 68 call 200e614 200e878: 94 10 00 03 mov %g3, %o2 200e87c: 80 a2 20 00 cmp %o0, 0 200e880: 22 80 00 0a be,a 200e8a8 <== ALWAYS TAKEN 200e884: c4 1c 20 50 ldd [ %l0 + 0x50 ], %g2 rtems_set_errno_and_return_minus_one( ENOSPC ); 200e888: 40 00 08 30 call 2010948 <__errno> <== NOT EXECUTED 200e88c: 01 00 00 00 nop <== NOT EXECUTED 200e890: 82 10 20 1c mov 0x1c, %g1 ! 1c <== NOT EXECUTED 200e894: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED 200e898: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200e89c: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED 200e8a0: 10 80 00 04 b 200e8b0 <== NOT EXECUTED 200e8a4: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED iop->size = the_jnode->info.file.size; 200e8a8: c4 3e 20 08 std %g2, [ %i0 + 8 ] } return iop->offset; 200e8ac: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 } 200e8b0: b2 10 00 03 mov %g3, %i1 200e8b4: 81 c7 e0 08 ret 200e8b8: 91 e8 00 02 restore %g0, %g2, %o0 =============================================================================== 0200eb84 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 200eb84: 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)) 200eb88: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 200eb8c: 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)) 200eb90: 80 88 62 04 btst 0x204, %g1 200eb94: 02 80 00 19 be 200ebf8 200eb98: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 && (the_jnode->type == IMFS_LINEAR_FILE)) { 200eb9c: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 200eba0: 80 a0 60 06 cmp %g1, 6 200eba4: 32 80 00 16 bne,a 200ebfc <== ALWAYS TAKEN 200eba8: c2 04 60 18 ld [ %l1 + 0x18 ], %g1 uint32_t count = the_jnode->info.linearfile.size; 200ebac: d8 04 20 54 ld [ %l0 + 0x54 ], %o4 <== NOT EXECUTED const unsigned char *buffer = the_jnode->info.linearfile.direct; 200ebb0: d6 04 20 58 ld [ %l0 + 0x58 ], %o3 <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; 200ebb4: 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; 200ebb8: 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; 200ebbc: c0 24 20 50 clr [ %l0 + 0x50 ] <== NOT EXECUTED 200ebc0: 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; 200ebc4: 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; 200ebc8: 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) 200ebcc: 80 a3 20 00 cmp %o4, 0 <== NOT EXECUTED 200ebd0: 02 80 00 0a be 200ebf8 <== NOT EXECUTED 200ebd4: c2 24 20 4c st %g1, [ %l0 + 0x4c ] <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) 200ebd8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 200ebdc: 92 10 20 00 clr %o1 <== NOT EXECUTED 200ebe0: 94 10 20 00 clr %o2 <== NOT EXECUTED 200ebe4: 7f ff ff 36 call 200e8bc <== NOT EXECUTED 200ebe8: 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) 200ebec: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 200ebf0: 02 80 00 0a be 200ec18 <== NOT EXECUTED 200ebf4: 01 00 00 00 nop <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) return -1; } if (iop->flags & LIBIO_FLAGS_APPEND) 200ebf8: c2 04 60 18 ld [ %l1 + 0x18 ], %g1 200ebfc: 80 88 62 00 btst 0x200, %g1 200ec00: 02 80 00 04 be 200ec10 200ec04: c4 1c 20 50 ldd [ %l0 + 0x50 ], %g2 iop->offset = the_jnode->info.file.size; 200ec08: c4 3c 60 10 std %g2, [ %l1 + 0x10 ] iop->size = the_jnode->info.file.size; 200ec0c: c4 1c 20 50 ldd [ %l0 + 0x50 ], %g2 200ec10: b0 10 20 00 clr %i0 200ec14: c4 3c 60 08 std %g2, [ %l1 + 8 ] return 0; } 200ec18: 81 c7 e0 08 ret 200ec1c: 81 e8 00 00 restore =============================================================================== 0200e4f0 : int memfile_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 200e4f0: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 200e4f4: 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 ) { 200e4f8: c2 04 20 08 ld [ %l0 + 8 ], %g1 200e4fc: 80 a0 60 00 cmp %g1, 0 200e500: 22 80 00 06 be,a 200e518 <== NEVER TAKEN 200e504: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 <== NOT EXECUTED 200e508: 7f ff e2 11 call 2006d4c <_Chain_Extract> 200e50c: 90 10 00 10 mov %l0, %o0 rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 200e510: c0 24 20 08 clr [ %l0 + 8 ] /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 200e514: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 IMFS_update_ctime( the_jnode ); 200e518: 92 10 20 00 clr %o1 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 200e51c: 82 00 7f ff add %g1, -1, %g1 IMFS_update_ctime( the_jnode ); 200e520: 90 07 bf f8 add %fp, -8, %o0 200e524: 7f ff d1 a0 call 2002ba4 200e528: c2 34 20 34 sth %g1, [ %l0 + 0x34 ] 200e52c: c2 07 bf f8 ld [ %fp + -8 ], %g1 return memfile_check_rmnod( the_jnode ); 200e530: 90 10 00 10 mov %l0, %o0 200e534: 7f ff ff d6 call 200e48c 200e538: c2 24 20 48 st %g1, [ %l0 + 0x48 ] } 200e53c: 81 c7 e0 08 ret 200e540: 91 e8 00 08 restore %g0, %o0, %o0 =============================================================================== 02002f9c : int mknod( const char *pathname, mode_t mode, dev_t dev ) { 2002f9c: 9d e3 bf 80 save %sp, -128, %sp int result; /* * The file type is field within the mode. Check we have a sane mode set. */ switch (mode & S_IFMT) 2002fa0: 03 00 00 3c sethi %hi(0xf000), %g1 2002fa4: 05 00 00 10 sethi %hi(0x4000), %g2 2002fa8: 82 0e 40 01 and %i1, %g1, %g1 2002fac: 80 a0 40 02 cmp %g1, %g2 2002fb0: 02 80 00 15 be 2003004 2002fb4: a0 07 bf e4 add %fp, -28, %l0 2002fb8: 18 80 00 08 bgu 2002fd8 2002fbc: 05 00 00 18 sethi %hi(0x6000), %g2 2002fc0: 05 00 00 04 sethi %hi(0x1000), %g2 2002fc4: 80 a0 40 02 cmp %g1, %g2 2002fc8: 02 80 00 0f be 2003004 2002fcc: 05 00 00 08 sethi %hi(0x2000), %g2 2002fd0: 10 80 00 06 b 2002fe8 2002fd4: 80 a0 40 02 cmp %g1, %g2 2002fd8: 80 a0 40 02 cmp %g1, %g2 2002fdc: 02 80 00 09 be 2003000 2002fe0: 05 00 00 20 sethi %hi(0x8000), %g2 2002fe4: 80 a0 40 02 cmp %g1, %g2 2002fe8: 22 80 00 07 be,a 2003004 <== ALWAYS TAKEN 2002fec: a0 07 bf e4 add %fp, -28, %l0 case S_IFBLK: case S_IFREG: case S_IFIFO: break; default: rtems_set_errno_and_return_minus_one( EINVAL ); 2002ff0: 40 00 36 56 call 2010948 <__errno> <== NOT EXECUTED 2002ff4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2002ff8: 10 80 00 21 b 200307c <== NOT EXECUTED 2002ffc: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED } rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); 2003000: a0 07 bf e4 add %fp, -28, %l0 2003004: 90 10 00 18 mov %i0, %o0 2003008: 92 07 bf fc add %fp, -4, %o1 200300c: 40 00 02 9a call 2003a74 2003010: 94 10 00 10 mov %l0, %o2 if ( !temp_loc.ops->evalformake_h ) { 2003014: c2 07 bf f0 ld [ %fp + -16 ], %g1 2003018: c2 00 60 04 ld [ %g1 + 4 ], %g1 200301c: 80 a0 60 00 cmp %g1, 0 2003020: 02 80 00 14 be 2003070 <== NEVER TAKEN 2003024: d0 07 bf fc ld [ %fp + -4 ], %o0 rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->evalformake_h)( 2003028: 92 10 00 10 mov %l0, %o1 200302c: 90 06 00 08 add %i0, %o0, %o0 2003030: 94 07 bf f8 add %fp, -8, %o2 2003034: 9f c0 40 00 call %g1 2003038: b0 10 3f ff mov -1, %i0 &pathname[i], &temp_loc, &name_start ); if ( result != 0 ) 200303c: 80 a2 20 00 cmp %o0, 0 2003040: 12 80 00 10 bne 2003080 2003044: c4 07 bf f0 ld [ %fp + -16 ], %g2 return -1; if ( !temp_loc.ops->mknod_h ) { 2003048: c2 00 a0 14 ld [ %g2 + 0x14 ], %g1 200304c: 80 a0 60 00 cmp %g1, 0 2003050: 12 80 00 0e bne 2003088 <== ALWAYS TAKEN 2003054: d0 07 bf f8 ld [ %fp + -8 ], %o0 rtems_filesystem_freenode( &temp_loc ); 2003058: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 200305c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003060: 02 80 00 04 be 2003070 <== NOT EXECUTED 2003064: 01 00 00 00 nop <== NOT EXECUTED 2003068: 9f c0 40 00 call %g1 <== NOT EXECUTED 200306c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2003070: 40 00 36 36 call 2010948 <__errno> <== NOT EXECUTED 2003074: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2003078: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 200307c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2003080: 81 c7 e0 08 ret 2003084: 81 e8 00 00 restore } result = (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc ); 2003088: 92 10 00 19 mov %i1, %o1 200308c: 94 10 00 1a mov %i2, %o2 2003090: 96 10 00 1b mov %i3, %o3 2003094: 9f c0 40 00 call %g1 2003098: 98 10 00 10 mov %l0, %o4 rtems_filesystem_freenode( &temp_loc ); 200309c: c2 07 bf f0 ld [ %fp + -16 ], %g1 20030a0: 80 a0 60 00 cmp %g1, 0 20030a4: 02 bf ff f7 be 2003080 <== NEVER TAKEN 20030a8: b0 10 00 08 mov %o0, %i0 20030ac: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20030b0: 80 a0 60 00 cmp %g1, 0 20030b4: 02 80 00 04 be 20030c4 20030b8: 01 00 00 00 nop 20030bc: 9f c0 40 00 call %g1 20030c0: 90 10 00 10 mov %l0, %o0 return result; } 20030c4: 81 c7 e0 08 ret 20030c8: 81 e8 00 00 restore =============================================================================== 02003154 : const char *target, const char *filesystemtype, rtems_filesystem_options_t options, const void *data ) { 2003154: 9d e3 bf 88 save %sp, -120, %sp /* * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && 2003158: 80 a6 e0 01 cmp %i3, 1 200315c: 18 80 00 07 bgu 2003178 2003160: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EINVAL ); /* * Get mount handler */ mount_h = rtems_filesystem_get_mount_handler( filesystemtype ); 2003164: 40 00 24 a2 call 200c3ec 2003168: 90 10 00 1a mov %i2, %o0 if ( !mount_h ) 200316c: a4 92 20 00 orcc %o0, 0, %l2 2003170: 12 80 00 06 bne 2003188 2003174: 80 a0 00 19 cmp %g0, %i1 rtems_set_errno_and_return_minus_one( EINVAL ); 2003178: 40 00 35 f4 call 2010948 <__errno> 200317c: 01 00 00 00 nop 2003180: 10 80 00 3b b 200326c 2003184: 82 10 20 16 mov 0x16, %g1 ! 16 const char *target_or_null, const char *filesystemtype, size_t *target_length_ptr ) { const char *target = target_or_null != NULL ? target_or_null : "/"; 2003188: 29 00 80 71 sethi %hi(0x201c400), %l4 { rtems_filesystem_fsmount_me_t mount_h = NULL; rtems_filesystem_location_info_t loc; rtems_filesystem_mount_table_entry_t *mt_entry = NULL; rtems_filesystem_location_info_t *loc_to_free = NULL; bool has_target = target != NULL; 200318c: a2 40 20 00 addx %g0, 0, %l1 const char *target_or_null, const char *filesystemtype, size_t *target_length_ptr ) { const char *target = target_or_null != NULL ? target_or_null : "/"; 2003190: 80 a4 60 00 cmp %l1, 0 2003194: 02 80 00 03 be 20031a0 2003198: a8 15 20 10 or %l4, 0x10, %l4 200319c: a8 10 00 19 mov %i1, %l4 size_t filesystemtype_size = strlen( filesystemtype ) + 1; 20031a0: 40 00 39 b7 call 201187c 20031a4: 90 10 00 1a mov %i2, %o0 size_t source_size = source_or_null != NULL ? strlen( source_or_null ) + 1 : 0; 20031a8: 80 a6 20 00 cmp %i0, 0 const char *filesystemtype, size_t *target_length_ptr ) { const char *target = target_or_null != NULL ? target_or_null : "/"; size_t filesystemtype_size = strlen( filesystemtype ) + 1; 20031ac: ac 02 20 01 add %o0, 1, %l6 size_t source_size = source_or_null != NULL ? strlen( source_or_null ) + 1 : 0; 20031b0: 02 80 00 05 be 20031c4 20031b4: aa 10 20 00 clr %l5 20031b8: 40 00 39 b1 call 201187c 20031bc: 90 10 00 18 mov %i0, %o0 20031c0: aa 02 20 01 add %o0, 1, %l5 size_t target_length = strlen( target ); 20031c4: 40 00 39 ae call 201187c 20031c8: 90 10 00 14 mov %l4, %o0 size_t size = sizeof( rtems_filesystem_mount_table_entry_t ) + filesystemtype_size + source_size + target_length + 1; rtems_filesystem_mount_table_entry_t *mt_entry = calloc( 1, size ); 20031cc: 92 05 a0 75 add %l6, 0x75, %o1 { const char *target = target_or_null != NULL ? target_or_null : "/"; size_t filesystemtype_size = strlen( filesystemtype ) + 1; size_t source_size = source_or_null != NULL ? strlen( source_or_null ) + 1 : 0; size_t target_length = strlen( target ); 20031d0: a6 10 00 08 mov %o0, %l3 size_t size = sizeof( rtems_filesystem_mount_table_entry_t ) + filesystemtype_size + source_size + target_length + 1; rtems_filesystem_mount_table_entry_t *mt_entry = calloc( 1, size ); 20031d4: 92 02 40 08 add %o1, %o0, %o1 20031d8: 90 10 20 01 mov 1, %o0 20031dc: 7f ff fd b6 call 20028b4 20031e0: 92 02 40 15 add %o1, %l5, %o1 if ( mt_entry != NULL ) { 20031e4: a0 92 20 00 orcc %o0, 0, %l0 20031e8: 02 80 00 1e be 2003260 <== NEVER TAKEN 20031ec: 92 10 00 1a mov %i2, %o1 char *str = (char *) mt_entry + sizeof( *mt_entry ); 20031f0: b4 04 20 74 add %l0, 0x74, %i2 strcpy( str, filesystemtype ); 20031f4: 40 00 39 6a call 201179c 20031f8: 90 10 00 1a mov %i2, %o0 mt_entry->type = str; 20031fc: f4 24 20 6c st %i2, [ %l0 + 0x6c ] str += filesystemtype_size; if ( source_or_null != NULL ) { 2003200: 80 a6 20 00 cmp %i0, 0 2003204: 02 80 00 07 be 2003220 2003208: b4 06 80 16 add %i2, %l6, %i2 strcpy( str, source_or_null ); 200320c: 90 10 00 1a mov %i2, %o0 2003210: 40 00 39 63 call 201179c 2003214: 92 10 00 18 mov %i0, %o1 mt_entry->dev = str; 2003218: f4 24 20 70 st %i2, [ %l0 + 0x70 ] str += source_size; 200321c: b4 06 80 15 add %i2, %l5, %i2 } strcpy( str, target ); 2003220: 92 10 00 14 mov %l4, %o1 2003224: 40 00 39 5e call 201179c 2003228: 90 10 00 1a mov %i2, %o0 if ( !mt_entry ) rtems_set_errno_and_return_minus_one( ENOMEM ); mt_entry->mt_fs_root.mt_entry = mt_entry; mt_entry->options = options; mt_entry->pathconf_limits_and_options = rtems_filesystem_default_pathconf; 200322c: 13 00 80 71 sethi %hi(0x201c400), %o1 mt_entry->dev = str; str += source_size; } strcpy( str, target ); mt_entry->target = str; 2003230: f4 24 20 68 st %i2, [ %l0 + 0x68 ] ); if ( !mt_entry ) rtems_set_errno_and_return_minus_one( ENOMEM ); mt_entry->mt_fs_root.mt_entry = mt_entry; mt_entry->options = options; 2003234: f6 24 20 30 st %i3, [ %l0 + 0x30 ] &target_length ); if ( !mt_entry ) rtems_set_errno_and_return_minus_one( ENOMEM ); mt_entry->mt_fs_root.mt_entry = mt_entry; 2003238: e0 24 20 2c st %l0, [ %l0 + 0x2c ] mt_entry->options = options; mt_entry->pathconf_limits_and_options = rtems_filesystem_default_pathconf; 200323c: 92 12 60 18 or %o1, 0x18, %o1 2003240: 90 04 20 38 add %l0, 0x38, %o0 2003244: 40 00 37 fd call 2011238 2003248: 94 10 20 30 mov 0x30, %o2 /* * The mount_point should be a directory with read/write/execute * permissions in the existing tree. */ if ( has_target ) { 200324c: 80 a4 60 00 cmp %l1, 0 2003250: 02 80 00 3e be 2003348 2003254: 03 00 80 76 sethi %hi(0x201d800), %g1 if ( rtems_filesystem_evaluate_path( 2003258: 10 80 00 07 b 2003274 200325c: 90 10 00 19 mov %i1, %o0 target, filesystemtype, &target_length ); if ( !mt_entry ) rtems_set_errno_and_return_minus_one( ENOMEM ); 2003260: 40 00 35 ba call 2010948 <__errno> <== NOT EXECUTED 2003264: 01 00 00 00 nop <== NOT EXECUTED 2003268: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 200326c: 10 80 00 74 b 200343c 2003270: c2 22 00 00 st %g1, [ %o0 ] * The mount_point should be a directory with read/write/execute * permissions in the existing tree. */ if ( has_target ) { if ( rtems_filesystem_evaluate_path( 2003274: 92 10 00 13 mov %l3, %o1 2003278: b6 07 bf ec add %fp, -20, %i3 200327c: 94 10 20 07 mov 7, %o2 2003280: 96 10 00 1b mov %i3, %o3 2003284: 7f ff fe 01 call 2002a88 2003288: 98 10 20 01 mov 1, %o4 200328c: 80 a2 3f ff cmp %o0, -1 2003290: 02 80 00 5b be 20033fc <== NEVER TAKEN 2003294: c2 07 bf f8 ld [ %fp + -8 ], %g1 /* * Test for node_type_h */ if (!loc.ops->node_type_h) { 2003298: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 200329c: 80 a0 60 00 cmp %g1, 0 20032a0: 02 80 00 20 be 2003320 <== NEVER TAKEN 20032a4: 01 00 00 00 nop /* * Test to see if it is a directory */ if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 20032a8: 9f c0 40 00 call %g1 20032ac: 90 10 00 1b mov %i3, %o0 20032b0: 80 a2 20 01 cmp %o0, 1 20032b4: 02 80 00 07 be 20032d0 20032b8: d2 07 bf ec ld [ %fp + -20 ], %o1 errno = ENOTDIR; 20032bc: 40 00 35 a3 call 2010948 <__errno> 20032c0: 01 00 00 00 nop 20032c4: 82 10 20 14 mov 0x14, %g1 ! 14 goto cleanup_and_bail; 20032c8: 10 80 00 4e b 2003400 20032cc: c2 22 00 00 st %g1, [ %o0 ] /* * You can only mount one file system onto a single mount point. */ if ( rtems_filesystem_mount_iterate( is_node_fs_root, loc.node_access ) ) { 20032d0: 11 00 80 0c sethi %hi(0x2003000), %o0 20032d4: 7f ff ff 83 call 20030e0 20032d8: 90 12 20 cc or %o0, 0xcc, %o0 ! 20030cc 20032dc: 80 8a 20 ff btst 0xff, %o0 20032e0: 02 80 00 06 be 20032f8 20032e4: c6 07 bf ec ld [ %fp + -20 ], %g3 errno = EBUSY; 20032e8: 40 00 35 98 call 2010948 <__errno> 20032ec: 01 00 00 00 nop 20032f0: 10 bf ff f6 b 20032c8 20032f4: 82 10 20 10 mov 0x10, %g1 ! 10 * traverse the tree. */ mt_entry->mt_point_node.node_access = loc.node_access; mt_entry->mt_point_node.handlers = loc.handlers; mt_entry->mt_point_node.ops = loc.ops; 20032f8: c4 07 bf f8 ld [ %fp + -8 ], %g2 * 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. */ mt_entry->mt_point_node.node_access = loc.node_access; 20032fc: c6 24 20 08 st %g3, [ %l0 + 8 ] mt_entry->mt_point_node.handlers = loc.handlers; 2003300: c6 07 bf f4 ld [ %fp + -12 ], %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 ){ 2003304: c2 00 a0 20 ld [ %g2 + 0x20 ], %g1 * until the system is unmounted. It may be needed to correctly * traverse the tree. */ mt_entry->mt_point_node.node_access = loc.node_access; mt_entry->mt_point_node.handlers = loc.handlers; 2003308: c6 24 20 10 st %g3, [ %l0 + 0x10 ] mt_entry->mt_point_node.ops = loc.ops; mt_entry->mt_point_node.mt_entry = loc.mt_entry; 200330c: c6 07 bf fc ld [ %fp + -4 ], %g3 * traverse the tree. */ mt_entry->mt_point_node.node_access = loc.node_access; mt_entry->mt_point_node.handlers = loc.handlers; mt_entry->mt_point_node.ops = loc.ops; 2003310: c4 24 20 14 st %g2, [ %l0 + 0x14 ] /* * This link to the parent is only done when we are dealing with system * below the base file system */ if ( !loc.ops->mount_h ){ 2003314: 80 a0 60 00 cmp %g1, 0 2003318: 12 80 00 06 bne 2003330 <== ALWAYS TAKEN 200331c: c6 24 20 18 st %g3, [ %l0 + 0x18 ] errno = ENOTSUP; 2003320: 40 00 35 8a call 2010948 <__errno> <== NOT EXECUTED 2003324: 01 00 00 00 nop <== NOT EXECUTED 2003328: 10 bf ff e8 b 20032c8 <== NOT EXECUTED 200332c: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED goto cleanup_and_bail; } if ( loc.ops->mount_h( mt_entry ) ) { 2003330: 9f c0 40 00 call %g1 2003334: 90 10 00 10 mov %l0, %o0 2003338: 80 a2 20 00 cmp %o0, 0 200333c: 02 80 00 0e be 2003374 <== ALWAYS TAKEN 2003340: 92 10 00 1c mov %i4, %o1 2003344: 30 80 00 2f b,a 2003400 <== NOT EXECUTED 2003348: c4 00 60 50 ld [ %g1 + 0x50 ], %g2 } } else { /* * Do we already have a base file system ? */ if ( !rtems_chain_is_empty( &mount_chain ) ) { 200334c: 82 10 60 50 or %g1, 0x50, %g1 2003350: 82 00 60 04 add %g1, 4, %g1 2003354: 80 a0 80 01 cmp %g2, %g1 2003358: 02 80 00 06 be 2003370 <== ALWAYS TAKEN 200335c: b6 10 20 00 clr %i3 errno = EINVAL; 2003360: 40 00 35 7a call 2010948 <__errno> <== NOT EXECUTED 2003364: 01 00 00 00 nop <== NOT EXECUTED 2003368: 10 bf ff d8 b 20032c8 <== NOT EXECUTED 200336c: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED * mt_point_node.node_access will be left to null to indicate that this * is the root of the entire file system. */ } if ( (*mount_h)( mt_entry, data ) ) { 2003370: 92 10 00 1c mov %i4, %o1 2003374: 9f c4 80 00 call %l2 2003378: 90 10 00 10 mov %l0, %o0 200337c: 80 a2 20 00 cmp %o0, 0 2003380: 22 80 00 0a be,a 20033a8 <== ALWAYS TAKEN 2003384: 25 00 80 78 sethi %hi(0x201e000), %l2 /* * Try to undo the mount operation */ if ( loc.ops->unmount_h ) { 2003388: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 200338c: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 <== NOT EXECUTED 2003390: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003394: 02 80 00 1b be 2003400 <== NOT EXECUTED 2003398: 01 00 00 00 nop <== NOT EXECUTED loc.ops->unmount_h( mt_entry ); 200339c: 9f c0 40 00 call %g1 <== NOT EXECUTED 20033a0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20033a4: 30 80 00 17 b,a 2003400 <== NOT EXECUTED rtems_status_code rtems_libio_set_private_env(void); rtems_status_code rtems_libio_share_private_env(rtems_id task_id) ; static inline void rtems_libio_lock( void ) { rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); 20033a8: d0 04 a0 bc ld [ %l2 + 0xbc ], %o0 20033ac: 94 10 20 00 clr %o2 20033b0: 40 00 0b e5 call 2006344 20033b4: 92 10 20 00 clr %o1 RTEMS_INLINE_ROUTINE void rtems_chain_append( rtems_chain_control *the_chain, rtems_chain_node *the_node ) { _Chain_Append( the_chain, the_node ); 20033b8: 92 10 00 10 mov %l0, %o1 20033bc: 11 00 80 76 sethi %hi(0x201d800), %o0 20033c0: 40 00 0e 57 call 2006d1c <_Chain_Append> 20033c4: 90 12 20 50 or %o0, 0x50, %o0 ! 201d850 } static inline void rtems_libio_unlock( void ) { rtems_semaphore_release( rtems_libio_semaphore ); 20033c8: d0 04 a0 bc ld [ %l2 + 0xbc ], %o0 20033cc: 40 00 0c 25 call 2006460 20033d0: b0 10 20 00 clr %i0 */ rtems_libio_lock(); rtems_chain_append( &mount_chain, &mt_entry->Node ); rtems_libio_unlock(); if ( !has_target ) 20033d4: 80 a4 60 00 cmp %l1, 0 20033d8: 12 80 00 07 bne 20033f4 20033dc: 03 00 80 76 sethi %hi(0x201d800), %g1 rtems_filesystem_root = mt_entry->mt_fs_root; 20033e0: d0 00 60 70 ld [ %g1 + 0x70 ], %o0 ! 201d870 20033e4: 92 04 20 1c add %l0, 0x1c, %o1 20033e8: 94 10 20 14 mov 0x14, %o2 20033ec: 40 00 37 93 call 2011238 20033f0: 90 02 20 18 add %o0, 0x18, %o0 20033f4: 81 c7 e0 08 ret 20033f8: 81 e8 00 00 restore 20033fc: b6 10 20 00 clr %i3 <== NOT EXECUTED return 0; cleanup_and_bail: free( mt_entry ); 2003400: 7f ff fd bf call 2002afc 2003404: 90 10 00 10 mov %l0, %o0 if ( loc_to_free ) 2003408: 80 a6 e0 00 cmp %i3, 0 200340c: 02 bf ff fa be 20033f4 <== NEVER TAKEN 2003410: b0 10 3f ff mov -1, %i0 rtems_filesystem_freenode( loc_to_free ); 2003414: c2 06 e0 0c ld [ %i3 + 0xc ], %g1 2003418: 80 a0 60 00 cmp %g1, 0 200341c: 02 80 00 09 be 2003440 <== NEVER TAKEN 2003420: 01 00 00 00 nop 2003424: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2003428: 80 a0 60 00 cmp %g1, 0 200342c: 02 80 00 05 be 2003440 <== NEVER TAKEN 2003430: 01 00 00 00 nop 2003434: 9f c0 40 00 call %g1 2003438: 90 10 00 1b mov %i3, %o0 200343c: b0 10 3f ff mov -1, %i0 return -1; } 2003440: 81 c7 e0 08 ret 2003444: 81 e8 00 00 restore =============================================================================== 020366c8 : msdos_node_type_t type, const char *name, int name_len, mode_t mode, const fat_file_fd_t *link_fd) { 20366c8: 9d e3 bf 00 save %sp, -256, %sp <== NOT EXECUTED int rc = RC_OK; ssize_t ret = 0; msdos_fs_info_t *fs_info = parent_loc->mt_entry->fs_info; 20366cc: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED uint32_t sec = 0; uint32_t byte = 0; fat_dir_pos_init(&dir_pos); memset(short_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE); 20366d0: a6 07 bf c8 add %fp, -56, %l3 <== NOT EXECUTED mode_t mode, const fat_file_fd_t *link_fd) { int rc = RC_OK; ssize_t ret = 0; msdos_fs_info_t *fs_info = parent_loc->mt_entry->fs_info; 20366d4: e2 00 60 34 ld [ %g1 + 0x34 ], %l1 <== NOT EXECUTED fat_dir_pos_t *dir_pos ) { dir_pos->sname.cln = 0; dir_pos->sname.ofs = 0; dir_pos->lname.cln = FAT_FILE_SHORT_NAME; 20366d8: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED uint32_t sec = 0; uint32_t byte = 0; fat_dir_pos_init(&dir_pos); memset(short_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE); 20366dc: 92 10 20 00 clr %o1 <== NOT EXECUTED dir_pos->lname.ofs = FAT_FILE_SHORT_NAME; 20366e0: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED fat_dir_pos_t *dir_pos ) { dir_pos->sname.cln = 0; dir_pos->sname.ofs = 0; dir_pos->lname.cln = FAT_FILE_SHORT_NAME; 20366e4: c2 27 bf f0 st %g1, [ %fp + -16 ] <== NOT EXECUTED 20366e8: 94 10 20 20 mov 0x20, %o2 <== NOT EXECUTED { int rc = RC_OK; ssize_t ret = 0; msdos_fs_info_t *fs_info = parent_loc->mt_entry->fs_info; fat_file_fd_t *parent_fat_fd = parent_loc->node_access; fat_file_fd_t *fat_fd = NULL; 20366ec: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED time_t time_ret = 0; uint16_t time_val = 0; 20366f0: c0 37 bf fe clrh [ %fp + -2 ] <== NOT EXECUTED uint16_t date = 0; 20366f4: c0 37 bf fc clrh [ %fp + -4 ] <== NOT EXECUTED static inline void fat_dir_pos_init( fat_dir_pos_t *dir_pos ) { dir_pos->sname.cln = 0; 20366f8: c0 27 bf e8 clr [ %fp + -24 ] <== NOT EXECUTED dir_pos->sname.ofs = 0; 20366fc: c0 27 bf ec clr [ %fp + -20 ] <== NOT EXECUTED const fat_file_fd_t *link_fd) { int rc = RC_OK; ssize_t ret = 0; msdos_fs_info_t *fs_info = parent_loc->mt_entry->fs_info; fat_file_fd_t *parent_fat_fd = parent_loc->node_access; 2036700: e4 06 00 00 ld [ %i0 ], %l2 <== NOT EXECUTED uint32_t sec = 0; uint32_t byte = 0; fat_dir_pos_init(&dir_pos); memset(short_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE); 2036704: 40 00 44 c3 call 2047a10 <== NOT EXECUTED 2036708: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED memset(dot_dotdot, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE * 2); 203670c: 92 10 20 00 clr %o1 <== NOT EXECUTED 2036710: 94 10 20 40 mov 0x40, %o2 <== NOT EXECUTED 2036714: 40 00 44 bf call 2047a10 <== NOT EXECUTED 2036718: 90 07 bf 68 add %fp, -152, %o0 <== NOT EXECUTED name_type = msdos_long_to_short (name, name_len, 203671c: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED 2036720: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED 2036724: 96 10 20 0b mov 0xb, %o3 <== NOT EXECUTED 2036728: 40 00 08 4a call 2038850 <== NOT EXECUTED 203672c: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED msdos_node_type_t type, const char *name, int name_len, mode_t mode, const fat_file_fd_t *link_fd) { 2036730: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED fat_dir_pos_init(&dir_pos); memset(short_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE); memset(dot_dotdot, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE * 2); name_type = msdos_long_to_short (name, name_len, 2036734: a8 10 00 08 mov %o0, %l4 <== NOT EXECUTED MSDOS_DIR_NAME(short_node), MSDOS_NAME_MAX); /* fill reserved field */ *MSDOS_DIR_NT_RES(short_node) = MSDOS_RES_NT_VALUE; 2036738: c0 2c e0 0c clrb [ %l3 + 0xc ] <== NOT EXECUTED /* set up last write date and time */ time_ret = time(NULL); 203673c: 40 00 67 8c call 205056c