=============================================================================== 0200abd8 : { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; switch( node->type ) { 200abd8: 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; 200abdc: c2 02 20 10 ld [ %o0 + 0x10 ], %g1 switch( node->type ) { 200abe0: c4 00 a0 4c ld [ %g2 + 0x4c ], %g2 200abe4: 84 00 bf ff add %g2, -1, %g2 200abe8: 80 a0 a0 06 cmp %g2, 6 200abec: 18 80 00 15 bgu 200ac40 <== NEVER TAKEN 200abf0: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 200abf4: 85 28 a0 02 sll %g2, 2, %g2 200abf8: 07 00 80 2a sethi %hi(0x200a800), %g3 200abfc: 86 10 e3 bc or %g3, 0x3bc, %g3 ! 200abbc 200ac00: c4 00 c0 02 ld [ %g3 + %g2 ], %g2 200ac04: 81 c0 80 00 jmp %g2 200ac08: 01 00 00 00 nop case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; 200ac0c: 10 80 00 0c b 200ac3c 200ac10: c2 00 60 0c ld [ %g1 + 0xc ], %g1 break; case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; 200ac14: 03 00 80 6d sethi %hi(0x201b400), %g1 200ac18: 10 80 00 09 b 200ac3c 200ac1c: 82 10 60 18 or %g1, 0x18, %g1 ! 201b418 break; case IMFS_SYM_LINK: case IMFS_HARD_LINK: loc->handlers = &IMFS_link_handlers; 200ac20: 03 00 80 6d sethi %hi(0x201b400), %g1 200ac24: 10 80 00 06 b 200ac3c 200ac28: 82 10 60 88 or %g1, 0x88, %g1 ! 201b488 break; case IMFS_LINEAR_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; 200ac2c: 10 80 00 04 b 200ac3c 200ac30: c2 00 60 08 ld [ %g1 + 8 ], %g1 break; case IMFS_FIFO: loc->handlers = &IMFS_fifo_handlers; 200ac34: 03 00 80 6c sethi %hi(0x201b000), %g1 200ac38: 82 10 63 40 or %g1, 0x340, %g1 ! 201b340 200ac3c: c2 22 20 08 st %g1, [ %o0 + 8 ] break; } return 0; } 200ac40: 81 c3 e0 08 retl 200ac44: 90 10 20 00 clr %o0 =============================================================================== 0200aa04 : IMFS_jnode_t *IMFS_allocate_node( IMFS_jnode_types_t type, const char *name, mode_t mode ) { 200aa04: 9d e3 bf 98 save %sp, -104, %sp struct timeval tv; /* * Allocate an IMFS jnode */ node = calloc( 1, sizeof( IMFS_jnode_t ) ); 200aa08: 92 10 20 68 mov 0x68, %o1 200aa0c: 7f ff df aa call 20028b4 200aa10: 90 10 20 01 mov 1, %o0 IMFS_jnode_t *IMFS_allocate_node( IMFS_jnode_types_t type, const char *name, mode_t mode ) { 200aa14: 92 10 00 19 mov %i1, %o1 /* * Allocate an IMFS jnode */ node = calloc( 1, sizeof( IMFS_jnode_t ) ); if ( !node ) 200aa18: 80 a2 20 00 cmp %o0, 0 200aa1c: 02 80 00 12 be 200aa64 <== NEVER TAKEN 200aa20: a0 10 00 08 mov %o0, %l0 return NULL; /* * Fill in the basic information */ node->st_nlink = 1; 200aa24: 82 10 20 01 mov 1, %g1 node->type = type; 200aa28: f0 22 20 4c st %i0, [ %o0 + 0x4c ] return NULL; /* * Fill in the basic information */ node->st_nlink = 1; 200aa2c: c2 32 20 34 sth %g1, [ %o0 + 0x34 ] node->type = type; strncpy( node->name, name, IMFS_NAME_MAX ); 200aa30: 94 10 20 20 mov 0x20, %o2 200aa34: 40 00 16 bc call 2010524 200aa38: 90 02 20 0c add %o0, 0xc, %o0 #endif /* * Now set all the times. */ gettimeofday( &tv, 0 ); 200aa3c: 90 07 bf f8 add %fp, -8, %o0 strncpy( node->name, name, IMFS_NAME_MAX ); /* * Fill in the mode and permission information for the jnode structure. */ node->st_mode = mode; 200aa40: f4 24 20 30 st %i2, [ %l0 + 0x30 ] #if defined(RTEMS_POSIX_API) node->st_uid = geteuid(); node->st_gid = getegid(); #else node->st_uid = 0; 200aa44: c0 34 20 3c clrh [ %l0 + 0x3c ] node->st_gid = 0; 200aa48: c0 34 20 3e clrh [ %l0 + 0x3e ] #endif /* * Now set all the times. */ gettimeofday( &tv, 0 ); 200aa4c: 7f ff e0 56 call 2002ba4 200aa50: 92 10 20 00 clr %o1 node->stat_atime = (time_t) tv.tv_sec; 200aa54: c2 07 bf f8 ld [ %fp + -8 ], %g1 node->stat_mtime = (time_t) tv.tv_sec; node->stat_ctime = (time_t) tv.tv_sec; 200aa58: c2 24 20 48 st %g1, [ %l0 + 0x48 ] /* * Now set all the times. */ gettimeofday( &tv, 0 ); node->stat_atime = (time_t) tv.tv_sec; 200aa5c: c2 24 20 40 st %g1, [ %l0 + 0x40 ] node->stat_mtime = (time_t) tv.tv_sec; 200aa60: c2 24 20 44 st %g1, [ %l0 + 0x44 ] node->stat_ctime = (time_t) tv.tv_sec; return node; } 200aa64: 81 c7 e0 08 ret 200aa68: 91 e8 00 10 restore %g0, %l0, %o0 =============================================================================== 0200aaac : IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 200aaac: 9d e3 bf a0 save %sp, -96, %sp 200aab0: 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 ) 200aab4: 80 a6 20 00 cmp %i0, 0 IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 200aab8: 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 ) 200aabc: 02 80 00 3e be 200abb4 <== NEVER TAKEN 200aac0: 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 ); 200aac4: 03 00 80 70 sethi %hi(0x201c000), %g1 200aac8: c2 00 62 80 ld [ %g1 + 0x280 ], %g1 ! 201c280 200aacc: 90 10 00 19 mov %i1, %o0 200aad0: d4 00 60 2c ld [ %g1 + 0x2c ], %o2 200aad4: 7f ff ff cc call 200aa04 200aad8: 94 2e c0 0a andn %i3, %o2, %o2 if ( !node ) 200aadc: b0 92 20 00 orcc %o0, 0, %i0 200aae0: 02 80 00 35 be 200abb4 <== NEVER TAKEN 200aae4: b2 06 7f ff add %i1, -1, %i1 return NULL; /* * Set the type specific information */ switch (type) { 200aae8: 80 a6 60 06 cmp %i1, 6 200aaec: 38 80 00 20 bgu,a 200ab6c <== NEVER TAKEN 200aaf0: 11 00 80 6c sethi %hi(0x201b000), %o0 <== NOT EXECUTED 200aaf4: b3 2e 60 02 sll %i1, 2, %i1 200aaf8: 03 00 80 2a sethi %hi(0x200a800), %g1 200aafc: 82 10 61 e8 or %g1, 0x1e8, %g1 ! 200a9e8 200ab00: c2 00 40 19 ld [ %g1 + %i1 ], %g1 200ab04: 81 c0 40 00 jmp %g1 200ab08: 01 00 00 00 nop */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 200ab0c: 82 06 20 54 add %i0, 0x54, %g1 the_chain->permanent_null = NULL; 200ab10: 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); 200ab14: c2 26 20 50 st %g1, [ %i0 + 0x50 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 200ab18: 82 06 20 50 add %i0, 0x50, %g1 200ab1c: 10 80 00 1b b 200ab88 200ab20: 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; 200ab24: 10 80 00 05 b 200ab38 200ab28: 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; 200ab2c: 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; 200ab30: c2 07 00 00 ld [ %i4 ], %g1 node->info.device.minor = info->device.minor; 200ab34: c4 26 20 54 st %g2, [ %i0 + 0x54 ] break; 200ab38: 10 80 00 14 b 200ab88 200ab3c: c2 26 20 50 st %g1, [ %i0 + 0x50 ] case IMFS_LINEAR_FILE: node->info.linearfile.size = 0; 200ab40: c0 26 20 50 clr [ %i0 + 0x50 ] <== NOT EXECUTED 200ab44: c0 26 20 54 clr [ %i0 + 0x54 ] <== NOT EXECUTED node->info.linearfile.direct = 0; 200ab48: c0 26 20 58 clr [ %i0 + 0x58 ] <== NOT EXECUTED case IMFS_MEMORY_FILE: node->info.file.size = 0; 200ab4c: c0 26 20 50 clr [ %i0 + 0x50 ] 200ab50: c0 26 20 54 clr [ %i0 + 0x54 ] node->info.file.indirect = 0; 200ab54: c0 26 20 58 clr [ %i0 + 0x58 ] node->info.file.doubly_indirect = 0; 200ab58: c0 26 20 5c clr [ %i0 + 0x5c ] node->info.file.triply_indirect = 0; break; 200ab5c: 10 80 00 0b b 200ab88 200ab60: c0 26 20 60 clr [ %i0 + 0x60 ] case IMFS_FIFO: node->info.fifo.pipe = NULL; break; 200ab64: 10 80 00 09 b 200ab88 200ab68: c0 26 20 50 clr [ %i0 + 0x50 ] default: assert(0); 200ab6c: 15 00 80 6c sethi %hi(0x201b000), %o2 <== NOT EXECUTED 200ab70: 17 00 80 6c sethi %hi(0x201b000), %o3 <== NOT EXECUTED 200ab74: 90 12 22 68 or %o0, 0x268, %o0 <== NOT EXECUTED 200ab78: 94 12 a2 c0 or %o2, 0x2c0, %o2 <== NOT EXECUTED 200ab7c: 96 12 e2 b8 or %o3, 0x2b8, %o3 <== NOT EXECUTED 200ab80: 40 00 03 f5 call 200bb54 <__assert_func> <== NOT EXECUTED 200ab84: 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; 200ab88: 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; 200ab8c: d0 04 00 00 ld [ %l0 ], %o0 fs_info = parent_loc->mt_entry->fs_info; 200ab90: c4 00 60 34 ld [ %g1 + 0x34 ], %g2 node->Parent = parent; 200ab94: d0 26 20 08 st %o0, [ %i0 + 8 ] node->st_ino = ++fs_info->ino_count; 200ab98: c2 00 a0 04 ld [ %g2 + 4 ], %g1 200ab9c: 90 02 20 50 add %o0, 0x50, %o0 200aba0: 82 00 60 01 inc %g1 200aba4: c2 20 a0 04 st %g1, [ %g2 + 4 ] 200aba8: c2 26 20 38 st %g1, [ %i0 + 0x38 ] 200abac: 7f ff f0 3f call 2006ca8 <_Chain_Append> 200abb0: 92 10 00 18 mov %i0, %o1 rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; } 200abb4: 81 c7 e0 08 ret 200abb8: 81 e8 00 00 restore =============================================================================== 0200aa6c : IMFS_jnode_t *IMFS_create_root_node(void) { 200aa6c: 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) ); 200aa70: 90 10 20 01 mov 1, %o0 200aa74: 13 00 80 6c sethi %hi(0x201b000), %o1 200aa78: 15 00 00 10 sethi %hi(0x4000), %o2 200aa7c: 92 12 62 60 or %o1, 0x260, %o1 200aa80: 7f ff ff e1 call 200aa04 200aa84: 94 12 a1 ed or %o2, 0x1ed, %o2 if ( !node ) 200aa88: 80 a2 20 00 cmp %o0, 0 200aa8c: 02 80 00 06 be 200aaa4 <== NEVER TAKEN 200aa90: 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; 200aa94: 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); 200aa98: c2 22 20 50 st %g1, [ %o0 + 0x50 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 200aa9c: 82 02 20 50 add %o0, 0x50, %g1 200aaa0: 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; } 200aaa4: 81 c7 e0 08 ret 200aaa8: 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 8e sethi %hi(0x2023800), %o0 <== NOT EXECUTED 200495c: 15 00 80 8f sethi %hi(0x2023c00), %o2 <== NOT EXECUTED 2004960: 17 00 80 8f sethi %hi(0x2023c00), %o3 <== NOT EXECUTED 2004964: 90 12 23 70 or %o0, 0x370, %o0 <== NOT EXECUTED 2004968: 94 12 a1 68 or %o2, 0x168, %o2 <== NOT EXECUTED 200496c: 96 12 e0 58 or %o3, 0x58, %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 8e sethi %hi(0x2023800), %o0 <== NOT EXECUTED 2004984: 15 00 80 8f sethi %hi(0x2023c00), %o2 <== NOT EXECUTED 2004988: 17 00 80 8f sethi %hi(0x2023c00), %o3 <== NOT EXECUTED 200498c: 90 12 23 70 or %o0, 0x370, %o0 <== NOT EXECUTED 2004990: 94 12 a1 68 or %o2, 0x168, %o2 <== NOT EXECUTED 2004994: 96 12 e0 68 or %o3, 0x68, %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 96 sethi %hi(0x2025800), %l4 20049b0: 11 00 80 8e sethi %hi(0x2023800), %o0 <== NOT EXECUTED 20049b4: 15 00 80 8f sethi %hi(0x2023c00), %o2 <== NOT EXECUTED 20049b8: 17 00 80 8f sethi %hi(0x2023c00), %o3 <== NOT EXECUTED 20049bc: 90 12 23 70 or %o0, 0x370, %o0 <== NOT EXECUTED 20049c0: 94 12 a1 68 or %o2, 0x168, %o2 <== NOT EXECUTED 20049c4: 96 12 e0 78 or %o3, 0x78, %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 8f sethi %hi(0x2023c00), %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 22 40 or %l4, 0x240, %l4 20049dc: a6 14 e0 a0 or %l3, 0xa0, %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 3c c5 call 2013d0c 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 =============================================================================== 0200ad98 : const char *pathname, /* IN */ size_t pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 200ad98: 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 ) ) { 200ad9c: 80 8e bf f8 btst -8, %i2 200ada0: 02 80 00 0a be 200adc8 <== ALWAYS TAKEN 200ada4: a0 10 00 18 mov %i0, %l0 assert( 0 ); 200ada8: 11 00 80 6c sethi %hi(0x201b000), %o0 <== NOT EXECUTED 200adac: 15 00 80 6c sethi %hi(0x201b000), %o2 <== NOT EXECUTED 200adb0: 17 00 80 6c sethi %hi(0x201b000), %o3 <== NOT EXECUTED 200adb4: 90 12 22 e8 or %o0, 0x2e8, %o0 <== NOT EXECUTED 200adb8: 94 12 a2 d8 or %o2, 0x2d8, %o2 <== NOT EXECUTED 200adbc: 96 12 e3 38 or %o3, 0x338, %o3 <== NOT EXECUTED 200adc0: 40 00 03 65 call 200bb54 <__assert_func> <== NOT EXECUTED 200adc4: 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 ) 200adc8: 2b 00 80 70 sethi %hi(0x201c000), %l5 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 200adcc: 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 ) 200add0: aa 15 62 80 or %l5, 0x280, %l5 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 200add4: a4 10 20 00 clr %l2 200add8: 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 ); 200addc: 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) ) { 200ade0: 10 80 00 94 b 200b030 200ade4: a8 07 bf fc add %fp, -4, %l4 type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); 200ade8: 90 04 00 12 add %l0, %l2, %o0 200adec: 92 10 00 19 mov %i1, %o1 200adf0: 94 10 00 13 mov %l3, %o2 200adf4: 40 00 02 b4 call 200b8c4 200adf8: 96 10 00 14 mov %l4, %o3 pathnamelen -= len; i += len; if ( !pathloc->node_access ) 200adfc: 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 ); 200ae00: ac 10 00 08 mov %o0, %l6 pathnamelen -= len; i += len; if ( !pathloc->node_access ) 200ae04: 80 a0 60 00 cmp %g1, 0 200ae08: 02 80 00 52 be 200af50 <== NEVER TAKEN 200ae0c: 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 ) 200ae10: 80 a2 20 00 cmp %o0, 0 200ae14: 22 80 00 10 be,a 200ae54 200ae18: a4 04 80 18 add %l2, %i0, %l2 if ( node->type == IMFS_DIRECTORY ) 200ae1c: c2 04 60 4c ld [ %l1 + 0x4c ], %g1 200ae20: 80 a0 60 01 cmp %g1, 1 200ae24: 32 80 00 0c bne,a 200ae54 200ae28: a4 04 80 18 add %l2, %i0, %l2 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) 200ae2c: 90 10 00 1b mov %i3, %o0 200ae30: 7f ff ff 86 call 200ac48 200ae34: 92 10 20 01 mov 1, %o1 200ae38: 80 a2 20 00 cmp %o0, 0 200ae3c: 32 80 00 06 bne,a 200ae54 200ae40: a4 04 80 18 add %l2, %i0, %l2 rtems_set_errno_and_return_minus_one( EACCES ); 200ae44: 40 00 11 b6 call 200f51c <__errno> 200ae48: b0 10 3f ff mov -1, %i0 200ae4c: 10 80 00 76 b 200b024 200ae50: 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; 200ae54: 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 ) { 200ae58: 80 a5 a0 03 cmp %l6, 3 200ae5c: 02 80 00 1b be 200aec8 200ae60: e2 06 c0 00 ld [ %i3 ], %l1 200ae64: 80 a5 a0 04 cmp %l6, 4 200ae68: 02 80 00 6c be 200b018 200ae6c: 80 a5 a0 02 cmp %l6, 2 200ae70: 12 80 00 71 bne 200b034 200ae74: 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 ) 200ae78: c2 05 40 00 ld [ %l5 ], %g1 200ae7c: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 200ae80: 80 a4 40 01 cmp %l1, %g1 200ae84: 02 bf ff da be 200adec 200ae88: 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) { 200ae8c: d2 06 e0 10 ld [ %i3 + 0x10 ], %o1 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == 200ae90: c2 02 60 1c ld [ %o1 + 0x1c ], %g1 200ae94: 80 a4 40 01 cmp %l1, %g1 200ae98: 32 80 00 04 bne,a 200aea8 200ae9c: 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; 200aea0: 10 80 00 71 b 200b064 200aea4: 92 02 60 08 add %o1, 8, %o1 return (*pathloc->ops->evalpath_h)(&(pathname[i-len]), pathnamelen+len, flags,pathloc); } } else { if ( !node->Parent ) 200aea8: 80 a4 60 00 cmp %l1, 0 200aeac: 32 bf ff cf bne,a 200ade8 200aeb0: e2 26 c0 00 st %l1, [ %i3 ] rtems_set_errno_and_return_minus_one( ENOENT ); 200aeb4: 40 00 11 9a call 200f51c <__errno> 200aeb8: b0 10 3f ff mov -1, %i0 200aebc: ec 22 00 00 st %l6, [ %o0 ] 200aec0: 81 c7 e0 08 ret 200aec4: 81 e8 00 00 restore case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { 200aec8: c2 04 60 4c ld [ %l1 + 0x4c ], %g1 200aecc: 80 a0 60 03 cmp %g1, 3 200aed0: 12 80 00 0a bne 200aef8 200aed4: 80 a0 60 04 cmp %g1, 4 IMFS_evaluate_hard_link( pathloc, 0 ); 200aed8: 90 10 00 1b mov %i3, %o0 200aedc: 7f ff ff 6c call 200ac8c 200aee0: 92 10 20 00 clr %o1 node = pathloc->node_access; 200aee4: e2 06 c0 00 ld [ %i3 ], %l1 if ( !node ) 200aee8: 80 a4 60 00 cmp %l1, 0 200aeec: 32 80 00 0d bne,a 200af20 <== ALWAYS TAKEN 200aef0: c2 04 60 4c ld [ %l1 + 0x4c ], %g1 200aef4: 30 80 00 0e b,a 200af2c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { 200aef8: 32 80 00 0a bne,a 200af20 200aefc: c2 04 60 4c ld [ %l1 + 0x4c ], %g1 result = IMFS_evaluate_sym_link( pathloc, 0 ); 200af00: 90 10 00 1b mov %i3, %o0 200af04: 7f ff ff 7a call 200acec 200af08: 92 10 20 00 clr %o1 node = pathloc->node_access; 200af0c: e2 06 c0 00 ld [ %i3 ], %l1 if ( result == -1 ) 200af10: 80 a2 3f ff cmp %o0, -1 200af14: 02 bf ff eb be 200aec0 <== NEVER TAKEN 200af18: b0 10 00 08 mov %o0, %i0 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 200af1c: c2 04 60 4c ld [ %l1 + 0x4c ], %g1 200af20: 80 a0 60 01 cmp %g1, 1 200af24: 22 80 00 06 be,a 200af3c 200af28: 90 10 00 11 mov %l1, %o0 rtems_set_errno_and_return_minus_one( ENOTDIR ); 200af2c: 40 00 11 7c call 200f51c <__errno> 200af30: b0 10 3f ff mov -1, %i0 200af34: 10 80 00 3c b 200b024 200af38: 82 10 20 14 mov 0x14, %g1 /* * Find the token name in the current node. */ node = IMFS_find_match_in_dir( node, token ); 200af3c: 40 00 02 37 call 200b818 200af40: 92 10 00 13 mov %l3, %o1 if ( !node ) 200af44: a2 92 20 00 orcc %o0, 0, %l1 200af48: 32 80 00 06 bne,a 200af60 200af4c: c2 04 60 4c ld [ %l1 + 0x4c ], %g1 rtems_set_errno_and_return_minus_one( ENOENT ); 200af50: 40 00 11 73 call 200f51c <__errno> 200af54: b0 10 3f ff mov -1, %i0 200af58: 10 80 00 33 b 200b024 200af5c: 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 )) { 200af60: 80 a0 60 01 cmp %g1, 1 200af64: 32 bf ff a1 bne,a 200ade8 200af68: e2 26 c0 00 st %l1, [ %i3 ] 200af6c: c2 04 60 5c ld [ %l1 + 0x5c ], %g1 200af70: 80 a0 60 00 cmp %g1, 0 200af74: 12 80 00 06 bne 200af8c 200af78: b0 04 00 12 add %l0, %l2, %i0 /* * Set the node access to the point we have found. */ pathloc->node_access = node; 200af7c: 10 bf ff 9b b 200ade8 200af80: 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); 200af84: a4 04 a0 01 inc %l2 --(*len); 200af88: 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 ) { 200af8c: d0 4e 00 00 ldsb [ %i0 ], %o0 200af90: 7f ff e2 d0 call 2003ad0 200af94: ac 10 00 18 mov %i0, %l6 200af98: 80 a2 20 00 cmp %o0, 0 200af9c: 22 80 00 09 be,a 200afc0 200afa0: c2 4d 80 00 ldsb [ %l6 ], %g1 200afa4: c2 4e 00 00 ldsb [ %i0 ], %g1 200afa8: 80 a0 60 00 cmp %g1, 0 200afac: 02 80 00 04 be 200afbc 200afb0: 80 a6 60 00 cmp %i1, 0 200afb4: 12 bf ff f4 bne 200af84 <== ALWAYS TAKEN 200afb8: 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] != '.')) { 200afbc: c2 4d 80 00 ldsb [ %l6 ], %g1 200afc0: 80 a0 60 2e cmp %g1, 0x2e 200afc4: 32 80 00 08 bne,a 200afe4 200afc8: d2 04 60 5c ld [ %l1 + 0x5c ], %o1 200afcc: 82 04 00 12 add %l0, %l2, %g1 200afd0: c2 48 60 01 ldsb [ %g1 + 1 ], %g1 200afd4: 80 a0 60 2e cmp %g1, 0x2e 200afd8: 22 80 00 0c be,a 200b008 200afdc: e2 04 60 08 ld [ %l1 + 8 ], %l1 *pathloc = node->info.directory.mt_fs->mt_fs_root; 200afe0: d2 04 60 5c ld [ %l1 + 0x5c ], %o1 200afe4: 94 10 20 14 mov 0x14, %o2 200afe8: 92 02 60 1c add %o1, 0x1c, %o1 200afec: 40 00 13 88 call 200fe0c 200aff0: 90 10 00 1b mov %i3, %o0 return (*pathloc->ops->evalpath_h)( &pathname[i], 200aff4: c2 06 e0 0c ld [ %i3 + 0xc ], %g1 200aff8: 90 10 00 16 mov %l6, %o0 200affc: c2 00 40 00 ld [ %g1 ], %g1 200b000: 10 80 00 22 b 200b088 200b004: 92 10 00 19 mov %i1, %o1 pathnamelen, flags, pathloc ); } i += 2; 200b008: a4 04 a0 02 add %l2, 2, %l2 pathnamelen -= 2; 200b00c: b2 06 7f fe add %i1, -2, %i1 /* * Set the node access to the point we have found. */ pathloc->node_access = node; 200b010: 10 bf ff 76 b 200ade8 200b014: 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 ); 200b018: 40 00 11 41 call 200f51c <__errno> 200b01c: b0 10 3f ff mov -1, %i0 200b020: 82 10 20 5b mov 0x5b, %g1 200b024: c2 22 00 00 st %g1, [ %o0 ] 200b028: 81 c7 e0 08 ret 200b02c: 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) ) { 200b030: 80 a5 a0 04 cmp %l6, 4 200b034: 02 80 00 04 be 200b044 <== NEVER TAKEN 200b038: 80 a5 a0 00 cmp %l6, 0 200b03c: 12 bf ff 6c bne 200adec 200b040: 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 ) { 200b044: c2 04 60 4c ld [ %l1 + 0x4c ], %g1 200b048: 80 a0 60 01 cmp %g1, 1 200b04c: 12 80 00 14 bne 200b09c 200b050: 01 00 00 00 nop if ( node->info.directory.mt_fs != NULL ) { 200b054: d2 04 60 5c ld [ %l1 + 0x5c ], %o1 200b058: 80 a2 60 00 cmp %o1, 0 200b05c: 02 80 00 10 be 200b09c <== ALWAYS TAKEN 200b060: 92 02 60 1c add %o1, 0x1c, %o1 *pathloc = node->info.directory.mt_fs->mt_fs_root; 200b064: 94 10 20 14 mov 0x14, %o2 200b068: 40 00 13 69 call 200fe0c 200b06c: 90 10 00 1b mov %i3, %o0 return (*pathloc->ops->evalpath_h)( &pathname[i-len], 200b070: c2 06 e0 0c ld [ %i3 + 0xc ], %g1 200b074: d0 07 bf fc ld [ %fp + -4 ], %o0 200b078: c2 00 40 00 ld [ %g1 ], %g1 200b07c: 92 06 40 08 add %i1, %o0, %o1 200b080: 90 24 80 08 sub %l2, %o0, %o0 200b084: 90 04 00 08 add %l0, %o0, %o0 200b088: 94 10 00 1a mov %i2, %o2 200b08c: 9f c0 40 00 call %g1 200b090: 96 10 00 1b mov %i3, %o3 200b094: 81 c7 e0 08 ret 200b098: 91 e8 00 08 restore %g0, %o0, %o0 flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 200b09c: 7f ff fe cf call 200abd8 200b0a0: 90 10 00 1b mov %i3, %o0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) 200b0a4: 92 10 00 1a mov %i2, %o1 flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 200b0a8: b0 10 00 08 mov %o0, %i0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) 200b0ac: 7f ff fe e7 call 200ac48 200b0b0: 90 10 00 1b mov %i3, %o0 200b0b4: 80 a2 20 00 cmp %o0, 0 200b0b8: 12 80 00 06 bne 200b0d0 200b0bc: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EACCES ); 200b0c0: 40 00 11 17 call 200f51c <__errno> 200b0c4: b0 10 3f ff mov -1, %i0 ! ffffffff 200b0c8: 82 10 20 0d mov 0xd, %g1 200b0cc: c2 22 00 00 st %g1, [ %o0 ] return result; } 200b0d0: 81 c7 e0 08 ret 200b0d4: 81 e8 00 00 restore =============================================================================== 0200b194 : int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 200b194: 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; 200b198: e0 06 40 00 ld [ %i1 ], %l0 /* * Get the path length. */ pathlen = strlen( path ); 200b19c: 90 10 00 18 mov %i0, %o0 200b1a0: 40 00 14 ac call 2010450 200b1a4: 2b 00 80 70 sethi %hi(0x201c000), %l5 int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 200b1a8: a2 10 00 18 mov %i0, %l1 node = pathloc->node_access; /* * Get the path length. */ pathlen = strlen( path ); 200b1ac: 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 ); 200b1b0: a8 07 bf d8 add %fp, -40, %l4 200b1b4: ac 07 bf fc add %fp, -4, %l6 node = pathloc->node_access; /* * Get the path length. */ pathlen = strlen( path ); 200b1b8: 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 ) 200b1bc: aa 15 62 80 or %l5, 0x280, %l5 * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); 200b1c0: 90 04 40 12 add %l1, %l2, %o0 200b1c4: 92 10 00 13 mov %l3, %o1 200b1c8: 94 10 00 14 mov %l4, %o2 200b1cc: 40 00 01 be call 200b8c4 200b1d0: 96 10 00 16 mov %l6, %o3 pathlen -= len; i += len; if ( !pathloc->node_access ) 200b1d4: 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 ); 200b1d8: ae 10 00 08 mov %o0, %l7 pathlen -= len; i += len; if ( !pathloc->node_access ) 200b1dc: 80 a0 60 00 cmp %g1, 0 200b1e0: 02 80 00 a4 be 200b470 <== NEVER TAKEN 200b1e4: f0 07 bf fc ld [ %fp + -4 ], %i0 /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 200b1e8: 80 a2 20 00 cmp %o0, 0 200b1ec: 22 80 00 10 be,a 200b22c 200b1f0: a4 04 80 18 add %l2, %i0, %l2 if ( node->type == IMFS_DIRECTORY ) 200b1f4: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 200b1f8: 80 a0 60 01 cmp %g1, 1 200b1fc: 32 80 00 0c bne,a 200b22c 200b200: a4 04 80 18 add %l2, %i0, %l2 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) 200b204: 90 10 00 19 mov %i1, %o0 200b208: 7f ff fe 90 call 200ac48 200b20c: 92 10 20 01 mov 1, %o1 200b210: 80 a2 20 00 cmp %o0, 0 200b214: 32 80 00 06 bne,a 200b22c 200b218: a4 04 80 18 add %l2, %i0, %l2 rtems_set_errno_and_return_minus_one( EACCES ); 200b21c: 40 00 10 c0 call 200f51c <__errno> 200b220: b0 10 3f ff mov -1, %i0 200b224: 10 80 00 a5 b 200b4b8 200b228: 82 10 20 0d mov 0xd, %g1 */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; 200b22c: 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 ) { 200b230: 80 a5 e0 02 cmp %l7, 2 200b234: 02 80 00 0f be 200b270 200b238: e0 06 40 00 ld [ %i1 ], %l0 200b23c: 80 a5 e0 02 cmp %l7, 2 200b240: 18 80 00 07 bgu 200b25c 200b244: 80 a5 e0 03 cmp %l7, 3 200b248: 80 a5 e0 00 cmp %l7, 0 200b24c: 02 80 00 77 be 200b428 200b250: 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 ); 200b254: 10 bf ff dc b 200b1c4 200b258: 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 ) { 200b25c: 02 80 00 21 be 200b2e0 200b260: 80 a5 e0 04 cmp %l7, 4 200b264: 32 bf ff d8 bne,a 200b1c4 <== NEVER TAKEN 200b268: 90 04 40 12 add %l1, %l2, %o0 <== NOT EXECUTED 200b26c: 30 80 00 73 b,a 200b438 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 200b270: c2 05 40 00 ld [ %l5 ], %g1 200b274: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 200b278: 80 a4 00 01 cmp %l0, %g1 200b27c: 02 bf ff d2 be 200b1c4 200b280: 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){ 200b284: d2 06 60 10 ld [ %i1 + 0x10 ], %o1 200b288: c2 02 60 1c ld [ %o1 + 0x1c ], %g1 200b28c: 80 a4 00 01 cmp %l0, %g1 200b290: 32 80 00 0c bne,a 200b2c0 200b294: 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; 200b298: 92 02 60 08 add %o1, 8, %o1 200b29c: 94 10 20 14 mov 0x14, %o2 200b2a0: 40 00 12 db call 200fe0c 200b2a4: 90 10 00 19 mov %i1, %o0 return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 200b2a8: c2 06 60 0c ld [ %i1 + 0xc ], %g1 200b2ac: c4 07 bf fc ld [ %fp + -4 ], %g2 200b2b0: c2 00 60 04 ld [ %g1 + 4 ], %g1 200b2b4: a4 24 80 02 sub %l2, %g2, %l2 200b2b8: 10 80 00 53 b 200b404 200b2bc: 90 04 40 12 add %l1, %l2, %o0 } } else { if ( !node->Parent ) 200b2c0: 80 a4 20 00 cmp %l0, 0 200b2c4: 32 bf ff bf bne,a 200b1c0 200b2c8: e0 26 40 00 st %l0, [ %i1 ] rtems_set_errno_and_return_minus_one( ENOENT ); 200b2cc: 40 00 10 94 call 200f51c <__errno> 200b2d0: b0 10 3f ff mov -1, %i0 200b2d4: ee 22 00 00 st %l7, [ %o0 ] 200b2d8: 81 c7 e0 08 ret 200b2dc: 81 e8 00 00 restore case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { 200b2e0: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 200b2e4: 80 a0 60 03 cmp %g1, 3 200b2e8: 12 80 00 0a bne 200b310 200b2ec: 80 a0 60 04 cmp %g1, 4 result = IMFS_evaluate_link( pathloc, 0 ); 200b2f0: 90 10 00 19 mov %i1, %o0 200b2f4: 7f ff ff 79 call 200b0d8 200b2f8: 92 10 20 00 clr %o1 if ( result == -1 ) 200b2fc: 80 a2 3f ff cmp %o0, -1 200b300: 12 80 00 0c bne 200b330 <== ALWAYS TAKEN 200b304: b0 10 00 08 mov %o0, %i0 200b308: 81 c7 e0 08 ret <== NOT EXECUTED 200b30c: 81 e8 00 00 restore <== NOT EXECUTED return -1; } else if ( node->type == IMFS_SYM_LINK ) { 200b310: 32 80 00 09 bne,a 200b334 200b314: d0 06 40 00 ld [ %i1 ], %o0 result = IMFS_evaluate_link( pathloc, 0 ); 200b318: 90 10 00 19 mov %i1, %o0 200b31c: 7f ff ff 6f call 200b0d8 200b320: 92 10 20 00 clr %o1 if ( result == -1 ) 200b324: 80 a2 3f ff cmp %o0, -1 200b328: 02 bf ff ec be 200b2d8 <== NEVER TAKEN 200b32c: b0 10 00 08 mov %o0, %i0 return -1; } node = pathloc->node_access; 200b330: d0 06 40 00 ld [ %i1 ], %o0 if ( !node ) 200b334: 80 a2 20 00 cmp %o0, 0 200b338: 02 80 00 5d be 200b4ac <== NEVER TAKEN 200b33c: 01 00 00 00 nop /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 200b340: c2 02 20 4c ld [ %o0 + 0x4c ], %g1 200b344: 80 a0 60 01 cmp %g1, 1 200b348: 12 80 00 59 bne 200b4ac 200b34c: 01 00 00 00 nop /* * Find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 200b350: 40 00 01 32 call 200b818 200b354: 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 ) 200b358: a0 92 20 00 orcc %o0, 0, %l0 200b35c: 02 80 00 3b be 200b448 200b360: c2 07 bf fc ld [ %fp + -4 ], %g1 done = true; else { if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) { 200b364: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 200b368: 80 a0 60 01 cmp %g1, 1 200b36c: 32 bf ff 95 bne,a 200b1c0 200b370: e0 26 40 00 st %l0, [ %i1 ] 200b374: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 200b378: 80 a0 60 00 cmp %g1, 0 200b37c: 12 80 00 05 bne 200b390 200b380: b0 04 40 12 add %l1, %l2, %i0 i += 2; pathlen -= 2; node = node->Parent; } pathloc->node_access = node; 200b384: 10 bf ff 8f b 200b1c0 200b388: e0 26 40 00 st %l0, [ %i1 ] int *index /* IN/OUT */ ) { while ( IMFS_is_separator( path[*index] ) && path[*index] && *len ) { ++(*index); --(*len); 200b38c: 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 ) { 200b390: d0 4e 00 00 ldsb [ %i0 ], %o0 200b394: 7f ff e1 cf call 2003ad0 200b398: ae 10 00 18 mov %i0, %l7 200b39c: 80 a2 20 00 cmp %o0, 0 200b3a0: 22 80 00 0a be,a 200b3c8 200b3a4: c2 4d c0 00 ldsb [ %l7 ], %g1 200b3a8: c2 4e 00 00 ldsb [ %i0 ], %g1 200b3ac: 80 a0 60 00 cmp %g1, 0 200b3b0: 02 80 00 05 be 200b3c4 <== NEVER TAKEN 200b3b4: b0 06 20 01 inc %i0 200b3b8: 80 a4 e0 00 cmp %l3, 0 200b3bc: 32 bf ff f4 bne,a 200b38c <== ALWAYS TAKEN 200b3c0: 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] != '.')) { 200b3c4: c2 4d c0 00 ldsb [ %l7 ], %g1 <== NOT EXECUTED 200b3c8: 80 a0 60 2e cmp %g1, 0x2e 200b3cc: 12 80 00 06 bne 200b3e4 200b3d0: 82 04 40 12 add %l1, %l2, %g1 200b3d4: c2 48 60 01 ldsb [ %g1 + 1 ], %g1 200b3d8: 80 a0 60 2e cmp %g1, 0x2e 200b3dc: 22 80 00 0f be,a 200b418 <== ALWAYS TAKEN 200b3e0: e0 04 20 08 ld [ %l0 + 8 ], %l0 *pathloc = node->info.directory.mt_fs->mt_fs_root; 200b3e4: d2 04 20 5c ld [ %l0 + 0x5c ], %o1 200b3e8: 94 10 20 14 mov 0x14, %o2 200b3ec: 92 02 60 1c add %o1, 0x1c, %o1 200b3f0: 40 00 12 87 call 200fe0c 200b3f4: 90 10 00 19 mov %i1, %o0 return (*pathloc->ops->evalformake_h)( &path[i], 200b3f8: c2 06 60 0c ld [ %i1 + 0xc ], %g1 200b3fc: 90 10 00 17 mov %l7, %o0 200b400: c2 00 60 04 ld [ %g1 + 4 ], %g1 200b404: 92 10 00 19 mov %i1, %o1 200b408: 9f c0 40 00 call %g1 200b40c: 94 10 00 1a mov %i2, %o2 200b410: 81 c7 e0 08 ret 200b414: 91 e8 00 08 restore %g0, %o0, %o0 pathloc, name ); } i += 2; 200b418: a4 04 a0 02 add %l2, 2, %l2 pathlen -= 2; 200b41c: a6 04 ff fe add %l3, -2, %l3 node = node->Parent; } pathloc->node_access = node; 200b420: 10 bf ff 68 b 200b1c0 200b424: e0 26 40 00 st %l0, [ %i1 ] } break; case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); 200b428: 40 00 10 3d call 200f51c <__errno> 200b42c: b0 10 3f ff mov -1, %i0 200b430: 10 80 00 22 b 200b4b8 200b434: 82 10 20 11 mov 0x11, %g1 break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 200b438: 40 00 10 39 call 200f51c <__errno> 200b43c: b0 10 3f ff mov -1, %i0 200b440: 10 80 00 1e b 200b4b8 200b444: 82 10 20 5b mov 0x5b, %g1 case IMFS_CURRENT_DIR: break; } } *name = &path[ i - len ]; 200b448: a0 04 40 12 add %l1, %l2, %l0 200b44c: a4 24 80 01 sub %l2, %g1, %l2 200b450: 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++) { 200b454: 10 80 00 0b b 200b480 200b458: e2 26 80 00 st %l1, [ %i2 ] if ( !IMFS_is_separator( path[ i ] ) ) 200b45c: 7f ff e1 9d call 2003ad0 200b460: 01 00 00 00 nop 200b464: 80 a2 20 00 cmp %o0, 0 200b468: 32 80 00 07 bne,a 200b484 200b46c: d0 4c 00 00 ldsb [ %l0 ], %o0 rtems_set_errno_and_return_minus_one( ENOENT ); 200b470: 40 00 10 2b call 200f51c <__errno> 200b474: b0 10 3f ff mov -1, %i0 200b478: 10 80 00 10 b 200b4b8 200b47c: 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++) { 200b480: d0 4c 00 00 ldsb [ %l0 ], %o0 200b484: 80 a2 20 00 cmp %o0, 0 200b488: 12 bf ff f5 bne 200b45c 200b48c: a0 04 20 01 inc %l0 /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); 200b490: 7f ff fd d2 call 200abd8 200b494: 90 10 00 19 mov %i1, %o0 /* * The returned node must be a directory */ node = pathloc->node_access; 200b498: c2 06 40 00 ld [ %i1 ], %g1 200b49c: c2 00 60 4c ld [ %g1 + 0x4c ], %g1 200b4a0: 80 a0 60 01 cmp %g1, 1 200b4a4: 02 80 00 08 be 200b4c4 <== ALWAYS TAKEN 200b4a8: b0 10 00 08 mov %o0, %i0 if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 200b4ac: 40 00 10 1c call 200f51c <__errno> 200b4b0: b0 10 3f ff mov -1, %i0 200b4b4: 82 10 20 14 mov 0x14, %g1 200b4b8: c2 22 00 00 st %g1, [ %o0 ] 200b4bc: 81 c7 e0 08 ret 200b4c0: 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 ) ) 200b4c4: 90 10 00 19 mov %i1, %o0 200b4c8: 7f ff fd e0 call 200ac48 200b4cc: 92 10 20 03 mov 3, %o1 200b4d0: 80 a2 20 00 cmp %o0, 0 200b4d4: 12 80 00 06 bne 200b4ec 200b4d8: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EACCES ); 200b4dc: 40 00 10 10 call 200f51c <__errno> 200b4e0: b0 10 3f ff mov -1, %i0 ! ffffffff 200b4e4: 82 10 20 0d mov 0xd, %g1 200b4e8: c2 22 00 00 st %g1, [ %o0 ] return result; } 200b4ec: 81 c7 e0 08 ret 200b4f0: 81 e8 00 00 restore =============================================================================== 0200ac8c : int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 200ac8c: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *jnode = node->node_access; 200ac90: c2 06 00 00 ld [ %i0 ], %g1 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 200ac94: c4 00 60 4c ld [ %g1 + 0x4c ], %g2 200ac98: 80 a0 a0 03 cmp %g2, 3 200ac9c: 22 80 00 04 be,a 200acac <== ALWAYS TAKEN 200aca0: c2 00 60 50 ld [ %g1 + 0x50 ], %g1 rtems_fatal_error_occurred (0xABCD0000); 200aca4: 7f ff ef 41 call 20069a8 <== NOT EXECUTED 200aca8: 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 ); 200acac: 90 10 00 18 mov %i0, %o0 200acb0: 7f ff ff ca call 200abd8 200acb4: c2 26 00 00 st %g1, [ %i0 ] /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) 200acb8: 90 10 00 18 mov %i0, %o0 200acbc: 92 10 00 19 mov %i1, %o1 200acc0: 7f ff ff e2 call 200ac48 200acc4: b0 10 20 00 clr %i0 200acc8: 80 a2 20 00 cmp %o0, 0 200accc: 12 80 00 06 bne 200ace4 <== ALWAYS TAKEN 200acd0: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EACCES ); 200acd4: 40 00 12 12 call 200f51c <__errno> <== NOT EXECUTED 200acd8: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 200acdc: 82 10 20 0d mov 0xd, %g1 <== NOT EXECUTED 200ace0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return result; } 200ace4: 81 c7 e0 08 ret 200ace8: 81 e8 00 00 restore =============================================================================== 0200ac48 : int IMFS_evaluate_permission( rtems_filesystem_location_info_t *node, int flags ) { 200ac48: 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 ) ) 200ac4c: 80 8e 7f f8 btst -8, %i1 200ac50: 22 80 00 08 be,a 200ac70 <== ALWAYS TAKEN 200ac54: c2 06 00 00 ld [ %i0 ], %g1 rtems_set_errno_and_return_minus_one( EPERM ); 200ac58: 40 00 12 31 call 200f51c <__errno> <== NOT EXECUTED 200ac5c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200ac60: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 200ac64: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200ac68: 81 c7 e0 08 ret <== NOT EXECUTED 200ac6c: 81 e8 00 00 restore <== 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 ) 200ac70: b3 2e 60 06 sll %i1, 6, %i1 200ac74: c2 00 60 30 ld [ %g1 + 0x30 ], %g1 200ac78: b2 2e 40 01 andn %i1, %g1, %i1 200ac7c: 80 a0 00 19 cmp %g0, %i1 200ac80: b0 60 3f ff subx %g0, -1, %i0 return 1; return 0; } 200ac84: 81 c7 e0 08 ret 200ac88: 81 e8 00 00 restore =============================================================================== 0200acec : int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 200acec: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *jnode = node->node_access; 200acf0: e2 06 00 00 ld [ %i0 ], %l1 int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 200acf4: a0 10 00 18 mov %i0, %l0 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 200acf8: c2 04 60 4c ld [ %l1 + 0x4c ], %g1 200acfc: 80 a0 60 04 cmp %g1, 4 200ad00: 12 80 00 07 bne 200ad1c <== NEVER TAKEN 200ad04: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) 200ad08: c2 04 60 08 ld [ %l1 + 8 ], %g1 200ad0c: 80 a0 60 00 cmp %g1, 0 200ad10: 32 80 00 05 bne,a 200ad24 <== ALWAYS TAKEN 200ad14: c2 26 00 00 st %g1, [ %i0 ] rtems_fatal_error_occurred( 0xBAD00000 ); 200ad18: 11 2e b4 00 sethi %hi(0xbad00000), %o0 <== NOT EXECUTED 200ad1c: 7f ff ef 23 call 20069a8 <== NOT EXECUTED 200ad20: 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( 200ad24: d0 04 60 50 ld [ %l1 + 0x50 ], %o0 200ad28: 94 10 00 18 mov %i0, %o2 200ad2c: 40 00 05 5d call 200c2a0 200ad30: 92 07 bf fc add %fp, -4, %o1 /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 200ad34: c2 07 bf fc ld [ %fp + -4 ], %g1 200ad38: e2 04 60 50 ld [ %l1 + 0x50 ], %l1 200ad3c: a2 04 40 01 add %l1, %g1, %l1 200ad40: 40 00 15 c4 call 2010450 200ad44: 90 10 00 11 mov %l1, %o0 200ad48: 96 10 00 18 mov %i0, %o3 200ad4c: 92 10 00 08 mov %o0, %o1 200ad50: 94 10 00 19 mov %i1, %o2 200ad54: 40 00 00 11 call 200ad98 200ad58: 90 10 00 11 mov %l1, %o0 200ad5c: b0 10 00 08 mov %o0, %i0 strlen( &jnode->info.sym_link.name[i] ), flags, node ); IMFS_Set_handlers( node ); 200ad60: 7f ff ff 9e call 200abd8 200ad64: 90 10 00 10 mov %l0, %o0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) 200ad68: 90 10 00 10 mov %l0, %o0 200ad6c: 7f ff ff b7 call 200ac48 200ad70: 92 10 00 19 mov %i1, %o1 200ad74: 80 a2 20 00 cmp %o0, 0 200ad78: 12 80 00 06 bne 200ad90 <== ALWAYS TAKEN 200ad7c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EACCES ); 200ad80: 40 00 11 e7 call 200f51c <__errno> <== NOT EXECUTED 200ad84: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 200ad88: 82 10 20 0d mov 0xd, %g1 <== NOT EXECUTED 200ad8c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return result; } 200ad90: 81 c7 e0 08 ret 200ad94: 81 e8 00 00 restore =============================================================================== 0200b69c : } int IMFS_fifo_close( rtems_libio_t *iop ) { 200b69c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 200b6a0: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 <== NOT EXECUTED int err = pipe_release(&JNODE2PIPE(jnode), iop); 200b6a4: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED } int IMFS_fifo_close( rtems_libio_t *iop ) { 200b6a8: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); 200b6ac: 7f ff fb 9b call 200a518 <== NOT EXECUTED 200b6b0: 90 04 20 50 add %l0, 0x50, %o0 <== NOT EXECUTED if (! err) { 200b6b4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 200b6b8: 12 80 00 12 bne 200b700 <== NOT EXECUTED 200b6bc: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_OPEN; 200b6c0: 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) 200b6c4: 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; 200b6c8: 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) 200b6cc: 40 00 01 b5 call 200bda0 <== NOT EXECUTED 200b6d0: c2 24 60 18 st %g1, [ %l1 + 0x18 ] <== NOT EXECUTED 200b6d4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200b6d8: 12 80 00 10 bne 200b718 <== NOT EXECUTED 200b6dc: 01 00 00 00 nop <== NOT EXECUTED 200b6e0: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 <== NOT EXECUTED 200b6e4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200b6e8: 12 80 00 0c bne 200b718 <== NOT EXECUTED 200b6ec: 01 00 00 00 nop <== NOT EXECUTED free(jnode); 200b6f0: 7f ff dd 03 call 2002afc <== NOT EXECUTED 200b6f4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 200b6f8: 81 c7 e0 08 ret <== NOT EXECUTED 200b6fc: 81 e8 00 00 restore <== NOT EXECUTED } IMFS_FIFO_RETURN(err); 200b700: 16 80 00 06 bge 200b718 <== NOT EXECUTED 200b704: 01 00 00 00 nop <== NOT EXECUTED 200b708: 40 00 0f 85 call 200f51c <__errno> <== NOT EXECUTED 200b70c: b0 20 00 18 neg %i0 <== NOT EXECUTED 200b710: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED 200b714: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED } 200b718: 81 c7 e0 08 ret <== NOT EXECUTED 200b71c: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0200b54c : int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 200b54c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED int err; if (command == FIONBIO) { 200b550: 03 20 01 19 sethi %hi(0x80046400), %g1 <== NOT EXECUTED int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 200b554: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED int err; if (command == FIONBIO) { 200b558: 82 10 62 7e or %g1, 0x27e, %g1 <== NOT EXECUTED int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 200b55c: 96 10 00 18 mov %i0, %o3 <== NOT EXECUTED int err; if (command == FIONBIO) { 200b560: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 200b564: 12 80 00 0f bne 200b5a0 <== NOT EXECUTED 200b568: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED if (buffer == NULL) 200b56c: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 200b570: 02 80 00 12 be 200b5b8 <== NOT EXECUTED 200b574: b0 10 3f f2 mov -14, %i0 <== NOT EXECUTED err = -EFAULT; else { if (*(int *)buffer) 200b578: c4 06 80 00 ld [ %i2 ], %g2 <== NOT EXECUTED 200b57c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 200b580: 02 80 00 04 be 200b590 <== NOT EXECUTED 200b584: c2 02 e0 18 ld [ %o3 + 0x18 ], %g1 <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_NO_DELAY; 200b588: 10 80 00 03 b 200b594 <== NOT EXECUTED 200b58c: 82 10 60 01 or %g1, 1, %g1 <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 200b590: 82 08 7f fe and %g1, -2, %g1 <== NOT EXECUTED 200b594: c2 22 e0 18 st %g1, [ %o3 + 0x18 ] <== NOT EXECUTED 200b598: 81 c7 e0 08 ret <== NOT EXECUTED 200b59c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED return 0; } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); 200b5a0: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED 200b5a4: 7f ff fa e1 call 200a128 <== NOT EXECUTED 200b5a8: d0 00 60 50 ld [ %g1 + 0x50 ], %o0 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 200b5ac: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 200b5b0: 16 80 00 06 bge 200b5c8 <== NOT EXECUTED 200b5b4: 01 00 00 00 nop <== NOT EXECUTED 200b5b8: 40 00 0f d9 call 200f51c <__errno> <== NOT EXECUTED 200b5bc: b0 20 00 18 neg %i0 <== NOT EXECUTED 200b5c0: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED 200b5c4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED } 200b5c8: 81 c7 e0 08 ret <== NOT EXECUTED 200b5cc: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0200b4f4 : rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 200b4f4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); 200b4f8: 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 ) { 200b4fc: 98 10 00 18 mov %i0, %o4 <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); 200b500: d0 00 60 50 ld [ %g1 + 0x50 ], %o0 <== NOT EXECUTED 200b504: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED 200b508: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200b50c: 7f ff fa ea call 200a0b4 <== NOT EXECUTED 200b510: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED 200b514: 85 3a 20 1f sra %o0, 0x1f, %g2 <== NOT EXECUTED 200b518: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 200b51c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 200b520: 16 80 00 08 bge 200b540 <== NOT EXECUTED 200b524: 86 10 00 08 mov %o0, %g3 <== NOT EXECUTED 200b528: 40 00 0f fd call 200f51c <__errno> <== NOT EXECUTED 200b52c: a0 20 00 10 neg %l0 <== NOT EXECUTED 200b530: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED 200b534: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED 200b538: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED 200b53c: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED } 200b540: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED 200b544: 81 c7 e0 08 ret <== NOT EXECUTED 200b548: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED =============================================================================== 0200b720 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 200b720: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *jnode = iop->file_info; int err = fifo_open(&JNODE2PIPE(jnode), iop); 200b724: d0 06 20 3c ld [ %i0 + 0x3c ], %o0 rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 200b728: 92 10 00 18 mov %i0, %o1 IMFS_jnode_t *jnode = iop->file_info; int err = fifo_open(&JNODE2PIPE(jnode), iop); 200b72c: 7f ff fb bf call 200a628 200b730: 90 02 20 50 add %o0, 0x50, %o0 IMFS_FIFO_RETURN(err); 200b734: b0 92 20 00 orcc %o0, 0, %i0 200b738: 16 80 00 06 bge 200b750 <== NEVER TAKEN 200b73c: 01 00 00 00 nop 200b740: 40 00 0f 77 call 200f51c <__errno> 200b744: b0 20 00 18 neg %i0 200b748: f0 22 00 00 st %i0, [ %o0 ] 200b74c: b0 10 3f ff mov -1, %i0 } 200b750: 81 c7 e0 08 ret 200b754: 81 e8 00 00 restore =============================================================================== 0200b638 : ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { 200b638: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 200b63c: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 <== NOT EXECUTED ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { 200b640: 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); 200b644: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 <== NOT EXECUTED 200b648: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200b64c: 7f ff fb 40 call 200a34c <== NOT EXECUTED 200b650: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED if (err > 0) 200b654: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 200b658: 04 80 00 08 ble 200b678 <== NOT EXECUTED 200b65c: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED IMFS_update_atime(jnode); 200b660: 7f ff dd 51 call 2002ba4 <== NOT EXECUTED 200b664: 92 10 20 00 clr %o1 <== NOT EXECUTED 200b668: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 200b66c: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED 200b670: 81 c7 e0 08 ret <== NOT EXECUTED 200b674: 81 e8 00 00 restore <== NOT EXECUTED IMFS_FIFO_RETURN(err); 200b678: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200b67c: 02 80 00 06 be 200b694 <== NOT EXECUTED 200b680: 01 00 00 00 nop <== NOT EXECUTED 200b684: 40 00 0f a6 call 200f51c <__errno> <== NOT EXECUTED 200b688: b0 20 00 18 neg %i0 <== NOT EXECUTED 200b68c: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED 200b690: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED } 200b694: 81 c7 e0 08 ret <== NOT EXECUTED 200b698: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0200b5d0 : ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 200b5d0: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 200b5d4: 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 ) { 200b5d8: 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); 200b5dc: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 <== NOT EXECUTED 200b5e0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200b5e4: 7f ff fa ea call 200a18c <== NOT EXECUTED 200b5e8: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED if (err > 0) { 200b5ec: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 200b5f0: 04 80 00 09 ble 200b614 <== NOT EXECUTED 200b5f4: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED IMFS_mtime_ctime_update(jnode); 200b5f8: 7f ff dd 6b call 2002ba4 <== NOT EXECUTED 200b5fc: 92 10 20 00 clr %o1 <== NOT EXECUTED 200b600: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 200b604: c2 24 20 48 st %g1, [ %l0 + 0x48 ] <== NOT EXECUTED 200b608: c2 24 20 44 st %g1, [ %l0 + 0x44 ] <== NOT EXECUTED 200b60c: 81 c7 e0 08 ret <== NOT EXECUTED 200b610: 81 e8 00 00 restore <== NOT EXECUTED } IMFS_FIFO_RETURN(err); 200b614: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200b618: 02 80 00 06 be 200b630 <== NOT EXECUTED 200b61c: 01 00 00 00 nop <== NOT EXECUTED 200b620: 40 00 0f bf call 200f51c <__errno> <== NOT EXECUTED 200b624: b0 20 00 18 neg %i0 <== NOT EXECUTED 200b628: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED 200b62c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED } 200b630: 81 c7 e0 08 ret <== NOT EXECUTED 200b634: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0200b818 : IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { 200b818: 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 ); 200b81c: 80 a6 20 00 cmp %i0, 0 200b820: 12 80 00 0a bne 200b848 <== ALWAYS TAKEN 200b824: 80 a6 60 00 cmp %i1, 0 200b828: 11 00 80 6c sethi %hi(0x201b000), %o0 <== NOT EXECUTED 200b82c: 15 00 80 6c sethi %hi(0x201b000), %o2 <== NOT EXECUTED 200b830: 17 00 80 6c sethi %hi(0x201b000), %o3 <== NOT EXECUTED 200b834: 90 12 23 78 or %o0, 0x378, %o0 <== NOT EXECUTED 200b838: 94 12 a3 f0 or %o2, 0x3f0, %o2 <== NOT EXECUTED 200b83c: 96 12 e3 d0 or %o3, 0x3d0, %o3 <== NOT EXECUTED 200b840: 40 00 00 c5 call 200bb54 <__assert_func> <== NOT EXECUTED 200b844: 92 10 20 2a mov 0x2a, %o1 <== NOT EXECUTED if ( !name ) 200b848: 02 80 00 1c be 200b8b8 <== NEVER TAKEN 200b84c: 90 10 00 19 mov %i1, %o0 /* * Check for "." and ".." */ if ( !strcmp( name, dotname ) ) 200b850: 13 00 80 6c sethi %hi(0x201b000), %o1 200b854: 40 00 12 99 call 20102b8 200b858: 92 12 63 e0 or %o1, 0x3e0, %o1 ! 201b3e0 200b85c: 80 a2 20 00 cmp %o0, 0 200b860: 02 80 00 09 be 200b884 <== NEVER TAKEN 200b864: 90 10 00 19 mov %i1, %o0 return directory; if ( !strcmp( name, dotdotname ) ) 200b868: 13 00 80 6c sethi %hi(0x201b000), %o1 200b86c: 40 00 12 93 call 20102b8 200b870: 92 12 63 e8 or %o1, 0x3e8, %o1 ! 201b3e8 200b874: 80 a2 20 00 cmp %o0, 0 200b878: 12 80 00 05 bne 200b88c <== ALWAYS TAKEN 200b87c: a0 06 20 54 add %i0, 0x54, %l0 return directory->Parent; 200b880: f0 06 20 08 ld [ %i0 + 8 ], %i0 <== NOT EXECUTED 200b884: 81 c7 e0 08 ret <== NOT EXECUTED 200b888: 81 e8 00 00 restore <== NOT EXECUTED the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; 200b88c: 10 80 00 08 b 200b8ac 200b890: 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 ) ) 200b894: 40 00 12 89 call 20102b8 200b898: 92 06 20 0c add %i0, 0xc, %o1 200b89c: 80 a2 20 00 cmp %o0, 0 200b8a0: 02 80 00 07 be 200b8bc 200b8a4: 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 ) { 200b8a8: 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; 200b8ac: 80 a6 00 10 cmp %i0, %l0 200b8b0: 12 bf ff f9 bne 200b894 200b8b4: 90 10 00 19 mov %i1, %o0 200b8b8: b0 10 20 00 clr %i0 if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } 200b8bc: 81 c7 e0 08 ret 200b8c0: 81 e8 00 00 restore =============================================================================== 0200b760 : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 200b760: 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; 200b764: 94 10 20 14 mov 0x14, %o2 200b768: 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; 200b76c: 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 ); 200b770: 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; 200b774: 40 00 11 a6 call 200fe0c 200b778: 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; 200b77c: c0 26 20 1c clr [ %i0 + 0x1c ] do { next = jnode->Parent; loc.node_access = (void *)jnode; 200b780: e0 27 bf ec st %l0, [ %fp + -20 ] */ temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; 200b784: f0 04 20 08 ld [ %l0 + 8 ], %i0 loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); 200b788: 7f ff fd 14 call 200abd8 200b78c: 90 10 00 11 mov %l1, %o0 if ( jnode->type != IMFS_DIRECTORY ) { 200b790: c4 04 20 4c ld [ %l0 + 0x4c ], %g2 200b794: 80 a0 a0 01 cmp %g2, 1 200b798: 12 80 00 06 bne 200b7b0 200b79c: 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; 200b7a0: c4 04 20 50 ld [ %l0 + 0x50 ], %g2 200b7a4: 80 a0 80 01 cmp %g2, %g1 200b7a8: 12 80 00 09 bne 200b7cc 200b7ac: 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 ); 200b7b0: 90 10 20 00 clr %o0 200b7b4: 7f ff db 61 call 2002538 200b7b8: 92 10 00 11 mov %l1, %o1 if (result != 0) 200b7bc: 80 a2 20 00 cmp %o0, 0 200b7c0: 12 80 00 13 bne 200b80c <== NEVER TAKEN 200b7c4: a0 10 00 18 mov %i0, %l0 return -1; jnode = next; } if ( jnode != NULL ) { 200b7c8: 80 a4 20 00 cmp %l0, 0 200b7cc: 22 80 00 11 be,a 200b810 200b7d0: b0 10 20 00 clr %i0 if ( jnode->type == IMFS_DIRECTORY ) { 200b7d4: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 200b7d8: 80 a0 60 01 cmp %g1, 1 200b7dc: 32 bf ff ea bne,a 200b784 <== NEVER TAKEN 200b7e0: e0 27 bf ec st %l0, [ %fp + -20 ] <== NOT EXECUTED 200b7e4: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 200b7e8: 84 04 20 54 add %l0, 0x54, %g2 200b7ec: 80 a0 40 02 cmp %g1, %g2 200b7f0: 22 bf ff e5 be,a 200b784 200b7f4: e0 27 bf ec st %l0, [ %fp + -20 ] if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); 200b7f8: a0 90 60 00 orcc %g1, 0, %l0 200b7fc: 32 bf ff e2 bne,a 200b784 <== ALWAYS TAKEN 200b800: e0 27 bf ec st %l0, [ %fp + -20 ] 200b804: 81 c7 e0 08 ret <== NOT EXECUTED 200b808: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 200b80c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return 0; } 200b810: 81 c7 e0 08 ret 200b814: 81 e8 00 00 restore =============================================================================== 0200b8c4 : const char *path, int pathlen, char *token, int *token_len ) { 200b8c4: 9d e3 bf a0 save %sp, -96, %sp register char c; /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; 200b8c8: a0 10 20 00 clr %l0 while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) { 200b8cc: 10 80 00 08 b 200b8ec 200b8d0: e2 0e 00 00 ldub [ %i0 ], %l1 token[i] = c; if ( i == IMFS_NAME_MAX ) 200b8d4: 80 a4 20 20 cmp %l0, 0x20 200b8d8: 12 80 00 04 bne 200b8e8 200b8dc: a0 04 20 01 inc %l0 200b8e0: 81 c7 e0 08 ret 200b8e4: 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]; 200b8e8: 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) ) { 200b8ec: 91 2c 60 18 sll %l1, 0x18, %o0 200b8f0: 7f ff e0 78 call 2003ad0 200b8f4: 91 3a 20 18 sra %o0, 0x18, %o0 200b8f8: 80 a2 20 00 cmp %o0, 0 200b8fc: 12 80 00 04 bne 200b90c 200b900: 80 a4 00 19 cmp %l0, %i1 200b904: 26 bf ff f4 bl,a 200b8d4 200b908: e2 2e 80 10 stb %l1, [ %i2 + %l0 ] /* * Copy a seperator into token. */ if ( i == 0 ) { 200b90c: 80 a4 20 00 cmp %l0, 0 200b910: 12 80 00 0d bne 200b944 200b914: 82 06 80 10 add %i2, %l0, %g1 token[i] = c; 200b918: e2 2e 80 00 stb %l1, [ %i2 ] if ( (token[i] != '\0') && pathlen ) { 200b91c: a3 2c 60 18 sll %l1, 0x18, %l1 200b920: 80 a4 60 00 cmp %l1, 0 200b924: 02 80 00 0d be 200b958 200b928: b0 10 20 00 clr %i0 200b92c: 80 a6 60 00 cmp %i1, 0 200b930: 02 80 00 0b be 200b95c 200b934: 80 a6 20 03 cmp %i0, 3 200b938: b0 10 20 01 mov 1, %i0 200b93c: 10 80 00 07 b 200b958 200b940: a0 10 20 01 mov 1, %l0 i++; type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { 200b944: c2 48 7f ff ldsb [ %g1 + -1 ], %g1 200b948: 80 a0 60 00 cmp %g1, 0 200b94c: 02 80 00 03 be 200b958 <== NEVER TAKEN 200b950: b0 10 20 03 mov 3, %i0 token[i] = '\0'; 200b954: 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 ) { 200b958: 80 a6 20 03 cmp %i0, 3 200b95c: 12 80 00 11 bne 200b9a0 200b960: e0 26 c0 00 st %l0, [ %i3 ] if ( strcmp( token, "..") == 0 ) 200b964: 90 10 00 1a mov %i2, %o0 200b968: 13 00 80 6d sethi %hi(0x201b400), %o1 200b96c: 40 00 12 53 call 20102b8 200b970: 92 12 60 08 or %o1, 8, %o1 ! 201b408 <__FUNCTION__.5476+0x18> 200b974: 80 a2 20 00 cmp %o0, 0 200b978: 12 80 00 04 bne 200b988 200b97c: 90 10 00 1a mov %i2, %o0 200b980: 81 c7 e0 08 ret 200b984: 91 e8 20 02 restore %g0, 2, %o0 type = IMFS_UP_DIR; else if ( strcmp( token, "." ) == 0 ) 200b988: 13 00 80 6d sethi %hi(0x201b400), %o1 200b98c: 40 00 12 4b call 20102b8 200b990: 92 12 60 10 or %o1, 0x10, %o1 ! 201b410 <__FUNCTION__.5476+0x20> 200b994: 80 a2 20 00 cmp %o0, 0 200b998: 22 80 00 02 be,a 200b9a0 200b99c: b0 10 20 01 mov 1, %i0 type = IMFS_CURRENT_DIR; } return type; } 200b9a0: 81 c7 e0 08 ret 200b9a4: 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 70 sethi %hi(0x201c000), %g1 2002144: c2 00 60 b8 ld [ %g1 + 0xb8 ], %g1 ! 201c0b8 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 71 sethi %hi(0x201c400), %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 3f call 200aa6c 2002174: c4 20 63 bc st %g2, [ %g1 + 0x3bc ] ! 201c7bc 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 6c sethi %hi(0x201b000), %o1 200218c: 90 06 20 38 add %i0, 0x38, %o0 2002190: 40 00 37 1f call 200fe0c 2002194: 92 12 62 2c or %o1, 0x22c, %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 34 d9 call 200f51c <__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 71 sethi %hi(0x201c400), %g3 20021d4: c4 00 e3 c0 ld [ %g3 + 0x3c0 ], %g2 ! 201c7c0 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 e3 c0 st %g4, [ %g3 + 0x3c0 ] 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 b0 call 200a0bc 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 34 bd call 200f51c <__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 38 86 call 2010450 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 25 9d call 200b8c4 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 10 call 200aaac 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 34 a7 call 200f51c <__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 =============================================================================== 0200db74 : MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) { 200db74: 9d e3 bf a0 save %sp, -96, %sp 200db78: 90 10 00 18 mov %i0, %o0 block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 200db7c: 80 a6 20 00 cmp %i0, 0 200db80: 12 80 00 0a bne 200dba8 <== ALWAYS TAKEN 200db84: 92 10 00 19 mov %i1, %o1 200db88: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED 200db8c: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED 200db90: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED 200db94: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED 200db98: 94 12 a3 d0 or %o2, 0x3d0, %o2 <== NOT EXECUTED 200db9c: 96 12 e2 40 or %o3, 0x240, %o3 <== NOT EXECUTED 200dba0: 10 80 00 0c b 200dbd0 <== NOT EXECUTED 200dba4: 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 ); 200dba8: c2 06 20 4c ld [ %i0 + 0x4c ], %g1 200dbac: 80 a0 60 05 cmp %g1, 5 200dbb0: 02 80 00 0a be 200dbd8 <== ALWAYS TAKEN 200dbb4: 15 00 80 6d sethi %hi(0x201b400), %o2 200dbb8: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED 200dbbc: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED 200dbc0: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED 200dbc4: 94 12 a3 d0 or %o2, 0x3d0, %o2 <== NOT EXECUTED 200dbc8: 96 12 e2 50 or %o3, 0x250, %o3 <== NOT EXECUTED 200dbcc: 92 10 21 6d mov 0x16d, %o1 <== NOT EXECUTED 200dbd0: 7f ff f7 e1 call 200bb54 <__assert_func> <== NOT EXECUTED 200dbd4: 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 ); 200dbd8: 7f ff fe 6d call 200d58c 200dbdc: 94 10 20 01 mov 1, %o2 ! 1 if ( *block_entry_ptr ) 200dbe0: 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 ); 200dbe4: a0 10 00 08 mov %o0, %l0 if ( *block_entry_ptr ) 200dbe8: 80 a0 60 00 cmp %g1, 0 200dbec: 12 80 00 09 bne 200dc10 200dbf0: b0 10 20 00 clr %i0 #if 0 fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); 200dbf4: 7f ff fe 59 call 200d558 200dbf8: b0 10 20 01 mov 1, %i0 if ( !memory ) 200dbfc: 80 a2 20 00 cmp %o0, 0 200dc00: 02 80 00 04 be 200dc10 <== NEVER TAKEN 200dc04: 01 00 00 00 nop return 1; *block_entry_ptr = memory; 200dc08: d0 24 00 00 st %o0, [ %l0 ] 200dc0c: b0 10 20 00 clr %i0 return 0; } 200dc10: 81 c7 e0 08 ret 200dc14: 81 e8 00 00 restore =============================================================================== 0200dc18 : MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 200dc18: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 200dc1c: 80 a6 20 00 cmp %i0, 0 200dc20: 32 80 00 0a bne,a 200dc48 <== ALWAYS TAKEN 200dc24: c2 06 20 4c ld [ %i0 + 0x4c ], %g1 200dc28: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED 200dc2c: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED 200dc30: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED 200dc34: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED 200dc38: 94 12 a3 e8 or %o2, 0x3e8, %o2 <== NOT EXECUTED 200dc3c: 96 12 e2 40 or %o3, 0x240, %o3 <== NOT EXECUTED 200dc40: 10 80 00 0c b 200dc70 <== NOT EXECUTED 200dc44: 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 ); 200dc48: 80 a0 60 05 cmp %g1, 5 200dc4c: 02 80 00 0b be 200dc78 <== ALWAYS TAKEN 200dc50: 03 00 80 71 sethi %hi(0x201c400), %g1 200dc54: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED 200dc58: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED 200dc5c: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED 200dc60: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED 200dc64: 94 12 a3 e8 or %o2, 0x3e8, %o2 <== NOT EXECUTED 200dc68: 96 12 e2 50 or %o3, 0x250, %o3 <== NOT EXECUTED 200dc6c: 92 10 21 35 mov 0x135, %o1 <== NOT EXECUTED 200dc70: 7f ff f7 b9 call 200bb54 <__assert_func> <== NOT EXECUTED 200dc74: 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 ) 200dc78: e0 00 63 bc ld [ %g1 + 0x3bc ], %l0 200dc7c: a3 34 20 02 srl %l0, 2, %l1 200dc80: 92 10 00 11 mov %l1, %o1 200dc84: 40 00 2b 3f call 2018980 <.umul> 200dc88: 90 04 60 01 add %l1, 1, %o0 200dc8c: 92 10 00 11 mov %l1, %o1 200dc90: 40 00 2b 3c call 2018980 <.umul> 200dc94: 90 02 20 01 inc %o0 200dc98: 92 10 00 10 mov %l0, %o1 200dc9c: 40 00 2b 39 call 2018980 <.umul> 200dca0: 90 02 3f ff add %o0, -1, %o0 200dca4: 82 10 20 00 clr %g1 200dca8: 80 a0 40 19 cmp %g1, %i1 200dcac: 34 80 00 0b bg,a 200dcd8 <== NEVER TAKEN 200dcb0: e2 06 20 50 ld [ %i0 + 0x50 ], %l1 <== NOT EXECUTED 200dcb4: 80 a0 40 19 cmp %g1, %i1 200dcb8: 12 80 00 04 bne 200dcc8 <== NEVER TAKEN 200dcbc: 80 a2 00 1a cmp %o0, %i2 200dcc0: 38 80 00 06 bgu,a 200dcd8 <== ALWAYS TAKEN 200dcc4: e2 06 20 50 ld [ %i0 + 0x50 ], %l1 rtems_set_errno_and_return_minus_one( EINVAL ); 200dcc8: 40 00 06 15 call 200f51c <__errno> <== NOT EXECUTED 200dccc: 01 00 00 00 nop <== NOT EXECUTED 200dcd0: 10 80 00 2b b 200dd7c <== NOT EXECUTED 200dcd4: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED if ( new_length <= the_jnode->info.file.size ) 200dcd8: 80 a6 40 11 cmp %i1, %l1 200dcdc: 14 80 00 09 bg 200dd00 <== NEVER TAKEN 200dce0: e6 06 20 54 ld [ %i0 + 0x54 ], %l3 200dce4: 80 a6 40 11 cmp %i1, %l1 200dce8: 12 80 00 04 bne 200dcf8 <== NEVER TAKEN 200dcec: 80 a6 80 13 cmp %i2, %l3 200dcf0: 18 80 00 05 bgu 200dd04 200dcf4: a5 3c 20 1f sra %l0, 0x1f, %l2 200dcf8: 81 c7 e0 08 ret 200dcfc: 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; 200dd00: a5 3c 20 1f sra %l0, 0x1f, %l2 <== NOT EXECUTED 200dd04: 96 10 00 10 mov %l0, %o3 200dd08: 94 10 00 12 mov %l2, %o2 200dd0c: 90 10 00 19 mov %i1, %o0 200dd10: 40 00 2c ae call 2018fc8 <__divdi3> 200dd14: 92 10 00 1a mov %i2, %o1 old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 200dd18: 90 10 00 11 mov %l1, %o0 200dd1c: 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; 200dd20: a8 10 00 09 mov %o1, %l4 old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 200dd24: 94 10 00 12 mov %l2, %o2 200dd28: 40 00 2c a8 call 2018fc8 <__divdi3> 200dd2c: 92 10 00 13 mov %l3, %o1 200dd30: a2 10 00 09 mov %o1, %l1 /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 200dd34: 10 80 00 15 b 200dd88 200dd38: a0 10 00 09 mov %o1, %l0 if ( IMFS_memfile_addblock( the_jnode, block ) ) { 200dd3c: 7f ff ff 8e call 200db74 200dd40: 92 10 00 10 mov %l0, %o1 200dd44: 80 a2 20 00 cmp %o0, 0 200dd48: 22 80 00 10 be,a 200dd88 <== ALWAYS TAKEN 200dd4c: a0 04 20 01 inc %l0 for ( ; block>=old_blocks ; block-- ) { 200dd50: 10 80 00 06 b 200dd68 <== NOT EXECUTED 200dd54: 80 a4 00 11 cmp %l0, %l1 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); 200dd58: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 200dd5c: 7f ff fe d7 call 200d8b8 <== NOT EXECUTED 200dd60: 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-- ) { 200dd64: 80 a4 00 11 cmp %l0, %l1 <== NOT EXECUTED 200dd68: 1a bf ff fc bcc 200dd58 <== NOT EXECUTED 200dd6c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); 200dd70: 40 00 05 eb call 200f51c <__errno> <== NOT EXECUTED 200dd74: 01 00 00 00 nop <== NOT EXECUTED 200dd78: 82 10 20 1c mov 0x1c, %g1 ! 1c <== NOT EXECUTED 200dd7c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200dd80: 81 c7 e0 08 ret <== NOT EXECUTED 200dd84: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 200dd88: 80 a4 00 14 cmp %l0, %l4 200dd8c: 08 bf ff ec bleu 200dd3c 200dd90: 90 10 00 18 mov %i0, %o0 /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; 200dd94: f4 26 20 54 st %i2, [ %i0 + 0x54 ] 200dd98: f2 26 20 50 st %i1, [ %i0 + 0x50 ] return 0; } 200dd9c: 81 c7 e0 08 ret 200dda0: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 0200d58c : #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 200d58c: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 200d590: 80 a6 20 00 cmp %i0, 0 200d594: 32 80 00 0a bne,a 200d5bc <== ALWAYS TAKEN 200d598: c2 06 20 4c ld [ %i0 + 0x4c ], %g1 200d59c: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED 200d5a0: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED 200d5a4: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED 200d5a8: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED 200d5ac: 94 12 a3 28 or %o2, 0x328, %o2 <== NOT EXECUTED 200d5b0: 96 12 e2 40 or %o3, 0x240, %o3 <== NOT EXECUTED 200d5b4: 10 80 00 0c b 200d5e4 <== NOT EXECUTED 200d5b8: 92 10 23 88 mov 0x388, %o1 <== NOT EXECUTED if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 200d5bc: 80 a0 60 05 cmp %g1, 5 200d5c0: 02 80 00 0b be 200d5ec <== ALWAYS TAKEN 200d5c4: 03 00 80 71 sethi %hi(0x201c400), %g1 200d5c8: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED 200d5cc: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED 200d5d0: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED 200d5d4: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED 200d5d8: 94 12 a3 28 or %o2, 0x328, %o2 <== NOT EXECUTED 200d5dc: 96 12 e2 50 or %o3, 0x250, %o3 <== NOT EXECUTED 200d5e0: 92 10 23 8c mov 0x38c, %o1 <== NOT EXECUTED 200d5e4: 7f ff f9 5c call 200bb54 <__assert_func> <== NOT EXECUTED 200d5e8: 01 00 00 00 nop <== NOT EXECUTED /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { 200d5ec: e0 00 63 bc ld [ %g1 + 0x3bc ], %l0 200d5f0: a1 34 20 02 srl %l0, 2, %l0 200d5f4: 82 04 3f ff add %l0, -1, %g1 200d5f8: 80 a6 40 01 cmp %i1, %g1 200d5fc: 18 80 00 16 bgu 200d654 <== NEVER TAKEN 200d600: 90 04 20 01 add %l0, 1, %o0 fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; if ( malloc_it ) { 200d604: 80 a6 a0 00 cmp %i2, 0 200d608: 02 80 00 0f be 200d644 200d60c: c2 06 20 58 ld [ %i0 + 0x58 ], %g1 if ( !p ) { 200d610: 80 a0 60 00 cmp %g1, 0 200d614: 32 80 00 09 bne,a 200d638 200d618: f0 06 20 58 ld [ %i0 + 0x58 ], %i0 p = memfile_alloc_block(); 200d61c: 7f ff ff cf call 200d558 200d620: 01 00 00 00 nop if ( !p ) 200d624: 80 a2 20 00 cmp %o0, 0 200d628: 22 80 00 85 be,a 200d83c <== NEVER TAKEN 200d62c: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; info->indirect = p; 200d630: d0 26 20 58 st %o0, [ %i0 + 0x58 ] } return &info->indirect[ my_block ]; 200d634: f0 06 20 58 ld [ %i0 + 0x58 ], %i0 200d638: b3 2e 60 02 sll %i1, 2, %i1 200d63c: 81 c7 e0 08 ret 200d640: 91 ee 00 19 restore %i0, %i1, %o0 } if ( !p ) return 0; return &info->indirect[ my_block ]; 200d644: b3 2e 60 02 sll %i1, 2, %i1 info->indirect = p; } return &info->indirect[ my_block ]; } if ( !p ) 200d648: 80 a0 60 00 cmp %g1, 0 return 0; return &info->indirect[ my_block ]; 200d64c: 10 80 00 79 b 200d830 200d650: b0 00 40 19 add %g1, %i1, %i0 /* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { 200d654: 40 00 2c cb call 2018980 <.umul> <== NOT EXECUTED 200d658: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 200d65c: 82 02 3f ff add %o0, -1, %g1 <== NOT EXECUTED 200d660: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 200d664: 18 80 00 2d bgu 200d718 <== NOT EXECUTED 200d668: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d) ", block ); fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; 200d66c: b2 26 40 10 sub %i1, %l0, %i1 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 200d670: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 200d674: 40 00 2d a9 call 2018d18 <.urem> <== NOT EXECUTED 200d678: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 200d67c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 200d680: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 200d684: 40 00 2c f9 call 2018a68 <.udiv> <== NOT EXECUTED 200d688: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { 200d68c: 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; 200d690: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { 200d694: 02 80 00 18 be 200d6f4 <== NOT EXECUTED 200d698: c2 06 20 5c ld [ %i0 + 0x5c ], %g1 <== NOT EXECUTED if ( !p ) { 200d69c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200d6a0: 12 80 00 08 bne 200d6c0 <== NOT EXECUTED 200d6a4: a1 2c 20 02 sll %l0, 2, %l0 <== NOT EXECUTED p = memfile_alloc_block(); 200d6a8: 7f ff ff ac call 200d558 <== NOT EXECUTED 200d6ac: 01 00 00 00 nop <== NOT EXECUTED if ( !p ) 200d6b0: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 200d6b4: 22 80 00 62 be,a 200d83c <== NOT EXECUTED 200d6b8: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; info->doubly_indirect = p; 200d6bc: c2 26 20 5c st %g1, [ %i0 + 0x5c ] <== NOT EXECUTED } p1 = (block_p *)p[ doubly ]; 200d6c0: d0 00 40 10 ld [ %g1 + %l0 ], %o0 <== NOT EXECUTED if ( !p1 ) { 200d6c4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200d6c8: 12 80 00 08 bne 200d6e8 <== NOT EXECUTED 200d6cc: a0 00 40 10 add %g1, %l0, %l0 <== NOT EXECUTED p1 = memfile_alloc_block(); 200d6d0: 7f ff ff a2 call 200d558 <== NOT EXECUTED 200d6d4: 01 00 00 00 nop <== NOT EXECUTED if ( !p1 ) 200d6d8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200d6dc: 22 80 00 58 be,a 200d83c <== NOT EXECUTED 200d6e0: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p[ doubly ] = (block_p) p1; 200d6e4: d0 24 00 00 st %o0, [ %l0 ] <== NOT EXECUTED } return (block_p *)&p1[ singly ]; 200d6e8: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED 200d6ec: 81 c7 e0 08 ret <== NOT EXECUTED 200d6f0: 91 ea 00 11 restore %o0, %l1, %o0 <== NOT EXECUTED } if ( !p ) 200d6f4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200d6f8: 22 80 00 51 be,a 200d83c <== NOT EXECUTED 200d6fc: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p = (block_p *)p[ doubly ]; 200d700: a1 2a 20 02 sll %o0, 2, %l0 <== NOT EXECUTED 200d704: 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 ]; 200d708: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED if ( !p ) return 0; p = (block_p *)p[ doubly ]; if ( !p ) 200d70c: 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 ]; 200d710: 10 80 00 48 b 200d830 <== NOT EXECUTED 200d714: 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 ) { 200d718: 90 02 20 01 inc %o0 <== NOT EXECUTED 200d71c: 40 00 2c 99 call 2018980 <.umul> <== NOT EXECUTED 200d720: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 200d724: 90 02 3f ff add %o0, -1, %o0 <== NOT EXECUTED 200d728: 80 a6 40 08 cmp %i1, %o0 <== NOT EXECUTED 200d72c: 18 80 00 43 bgu 200d838 <== NOT EXECUTED 200d730: b2 26 40 11 sub %i1, %l1, %i1 <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 200d734: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 200d738: 40 00 2d 78 call 2018d18 <.urem> <== NOT EXECUTED 200d73c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 200d740: 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; 200d744: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 200d748: 40 00 2c c8 call 2018a68 <.udiv> <== NOT EXECUTED 200d74c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; 200d750: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 200d754: 40 00 2c c5 call 2018a68 <.udiv> <== NOT EXECUTED 200d758: b2 10 00 08 mov %o0, %i1 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 200d75c: 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; 200d760: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 200d764: 40 00 2d 6d call 2018d18 <.urem> <== NOT EXECUTED 200d768: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { 200d76c: 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; 200d770: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { 200d774: 02 80 00 23 be 200d800 <== NOT EXECUTED 200d778: c2 06 20 60 ld [ %i0 + 0x60 ], %g1 <== NOT EXECUTED if ( !p ) { 200d77c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200d780: 12 80 00 08 bne 200d7a0 <== NOT EXECUTED 200d784: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED p = memfile_alloc_block(); 200d788: 7f ff ff 74 call 200d558 <== NOT EXECUTED 200d78c: 01 00 00 00 nop <== NOT EXECUTED if ( !p ) 200d790: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 200d794: 22 80 00 2a be,a 200d83c <== NOT EXECUTED 200d798: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; info->triply_indirect = p; 200d79c: c2 26 20 60 st %g1, [ %i0 + 0x60 ] <== NOT EXECUTED } p1 = (block_p *) p[ triply ]; 200d7a0: c4 00 40 11 ld [ %g1 + %l1 ], %g2 <== NOT EXECUTED if ( !p1 ) { 200d7a4: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 200d7a8: 12 80 00 08 bne 200d7c8 <== NOT EXECUTED 200d7ac: a2 00 40 11 add %g1, %l1, %l1 <== NOT EXECUTED p1 = memfile_alloc_block(); 200d7b0: 7f ff ff 6a call 200d558 <== NOT EXECUTED 200d7b4: 01 00 00 00 nop <== NOT EXECUTED if ( !p1 ) 200d7b8: 84 92 20 00 orcc %o0, 0, %g2 <== NOT EXECUTED 200d7bc: 02 80 00 20 be 200d83c <== NOT EXECUTED 200d7c0: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; 200d7c4: c4 24 40 00 st %g2, [ %l1 ] <== NOT EXECUTED } p2 = (block_p *)p1[ doubly ]; 200d7c8: a1 2c 20 02 sll %l0, 2, %l0 <== NOT EXECUTED 200d7cc: d0 00 80 10 ld [ %g2 + %l0 ], %o0 <== NOT EXECUTED if ( !p2 ) { 200d7d0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200d7d4: 12 80 00 08 bne 200d7f4 <== NOT EXECUTED 200d7d8: a0 00 80 10 add %g2, %l0, %l0 <== NOT EXECUTED p2 = memfile_alloc_block(); 200d7dc: 7f ff ff 5f call 200d558 <== NOT EXECUTED 200d7e0: 01 00 00 00 nop <== NOT EXECUTED if ( !p2 ) 200d7e4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200d7e8: 22 80 00 15 be,a 200d83c <== NOT EXECUTED 200d7ec: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; 200d7f0: d0 24 00 00 st %o0, [ %l0 ] <== NOT EXECUTED } return (block_p *)&p2[ singly ]; 200d7f4: a5 2c a0 02 sll %l2, 2, %l2 <== NOT EXECUTED 200d7f8: 81 c7 e0 08 ret <== NOT EXECUTED 200d7fc: 91 ea 00 12 restore %o0, %l2, %o0 <== NOT EXECUTED } if ( !p ) 200d800: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200d804: 02 80 00 0e be 200d83c <== NOT EXECUTED 200d808: 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 ]; 200d80c: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED 200d810: c2 00 40 11 ld [ %g1 + %l1 ], %g1 <== NOT EXECUTED if ( !p1 ) 200d814: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200d818: 02 80 00 09 be 200d83c <== NOT EXECUTED 200d81c: a1 2a 20 02 sll %o0, 2, %l0 <== NOT EXECUTED return 0; p2 = (block_p *)p1[ doubly ]; 200d820: c2 00 40 10 ld [ %g1 + %l0 ], %g1 <== NOT EXECUTED if ( !p2 ) return 0; return (block_p *)&p2[ singly ]; 200d824: 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 ) 200d828: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED return 0; return (block_p *)&p2[ singly ]; 200d82c: 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 ) 200d830: 12 80 00 03 bne 200d83c <== ALWAYS TAKEN 200d834: 01 00 00 00 nop return 0; return (block_p *)&p2[ singly ]; 200d838: b0 10 20 00 clr %i0 ! 0 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 200d83c: 81 c7 e0 08 ret 200d840: 81 e8 00 00 restore =============================================================================== 0200e224 : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 200e224: 9d e3 bf 98 save %sp, -104, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 200e228: a0 96 20 00 orcc %i0, 0, %l0 IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 200e22c: a4 10 00 19 mov %i1, %l2 /* * Perform internal consistency checks */ assert( the_jnode ); 200e230: 12 80 00 0a bne 200e258 <== ALWAYS TAKEN 200e234: a6 10 00 1a mov %i2, %l3 200e238: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED 200e23c: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED 200e240: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED 200e244: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED 200e248: 94 12 a3 60 or %o2, 0x360, %o2 <== NOT EXECUTED 200e24c: 96 12 e2 40 or %o3, 0x240, %o3 <== NOT EXECUTED 200e250: 10 80 00 0e b 200e288 <== NOT EXECUTED 200e254: 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 || 200e258: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 200e25c: 84 00 7f fb add %g1, -5, %g2 200e260: 80 a0 a0 01 cmp %g2, 1 200e264: 08 80 00 0b bleu 200e290 <== ALWAYS TAKEN 200e268: 80 a6 e0 00 cmp %i3, 0 200e26c: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED 200e270: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED 200e274: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED 200e278: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED 200e27c: 94 12 a3 60 or %o2, 0x360, %o2 <== NOT EXECUTED 200e280: 96 12 e2 d0 or %o3, 0x2d0, %o3 <== NOT EXECUTED 200e284: 92 10 22 51 mov 0x251, %o1 <== NOT EXECUTED 200e288: 7f ff f6 33 call 200bb54 <__assert_func> <== NOT EXECUTED 200e28c: 01 00 00 00 nop <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); 200e290: 32 80 00 0a bne,a 200e2b8 <== ALWAYS TAKEN 200e294: 80 a7 20 00 cmp %i4, 0 200e298: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED 200e29c: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED 200e2a0: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED 200e2a4: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED 200e2a8: 94 12 a3 60 or %o2, 0x360, %o2 <== NOT EXECUTED 200e2ac: 96 12 e3 20 or %o3, 0x320, %o3 <== NOT EXECUTED 200e2b0: 10 bf ff f6 b 200e288 <== NOT EXECUTED 200e2b4: 92 10 22 5a mov 0x25a, %o1 <== NOT EXECUTED /* * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) 200e2b8: 12 80 00 08 bne 200e2d8 <== ALWAYS TAKEN 200e2bc: 80 a0 60 06 cmp %g1, 6 rtems_set_errno_and_return_minus_one( EINVAL ); 200e2c0: 40 00 04 97 call 200f51c <__errno> <== NOT EXECUTED 200e2c4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200e2c8: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 200e2cc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200e2d0: 81 c7 e0 08 ret <== NOT EXECUTED 200e2d4: 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) { 200e2d8: 32 80 00 1c bne,a 200e348 <== ALWAYS TAKEN 200e2dc: 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)) 200e2e0: d8 1c 20 50 ldd [ %l0 + 0x50 ], %o4 <== NOT EXECUTED 200e2e4: 82 10 20 00 clr %g1 <== NOT EXECUTED 200e2e8: 86 a3 40 1a subcc %o5, %i2, %g3 <== NOT EXECUTED 200e2ec: 84 63 00 19 subx %o4, %i1, %g2 <== NOT EXECUTED 200e2f0: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 200e2f4: 14 80 00 09 bg 200e318 <== NOT EXECUTED 200e2f8: d2 04 20 58 ld [ %l0 + 0x58 ], %o1 <== NOT EXECUTED 200e2fc: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 200e300: 12 80 00 04 bne 200e310 <== NOT EXECUTED 200e304: 80 a7 00 03 cmp %i4, %g3 <== NOT EXECUTED 200e308: 38 80 00 05 bgu,a 200e31c <== NOT EXECUTED 200e30c: b0 23 40 13 sub %o5, %l3, %i0 <== NOT EXECUTED 200e310: 10 80 00 03 b 200e31c <== NOT EXECUTED 200e314: b0 10 00 1c mov %i4, %i0 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; 200e318: b0 23 40 13 sub %o5, %l3, %i0 <== NOT EXECUTED memcpy(dest, &file_ptr[start], my_length); 200e31c: 92 02 40 13 add %o1, %l3, %o1 <== NOT EXECUTED 200e320: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED 200e324: 40 00 06 ba call 200fe0c <== NOT EXECUTED 200e328: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED IMFS_update_atime( the_jnode ); 200e32c: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED 200e330: 7f ff d2 1d call 2002ba4 <== NOT EXECUTED 200e334: 92 10 20 00 clr %o1 <== NOT EXECUTED 200e338: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 200e33c: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED return my_length; 200e340: 81 c7 e0 08 ret <== NOT EXECUTED 200e344: 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 ) 200e348: 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; 200e34c: 82 10 00 1a mov %i2, %g1 if ( last_byte > the_jnode->info.file.size ) 200e350: 80 a1 00 03 cmp %g4, %g3 200e354: c4 04 20 54 ld [ %l0 + 0x54 ], %g2 200e358: 14 80 00 08 bg 200e378 <== NEVER TAKEN 200e35c: 9a 07 00 1a add %i4, %i2, %o5 200e360: 80 a1 00 03 cmp %g4, %g3 200e364: 32 80 00 07 bne,a 200e380 <== NEVER TAKEN 200e368: 03 00 80 71 sethi %hi(0x201c400), %g1 <== NOT EXECUTED 200e36c: 80 a3 40 02 cmp %o5, %g2 200e370: 28 80 00 04 bleu,a 200e380 200e374: 03 00 80 71 sethi %hi(0x201c400), %g1 my_length = the_jnode->info.file.size - start; 200e378: 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; 200e37c: 03 00 80 71 sethi %hi(0x201c400), %g1 200e380: e2 00 63 bc ld [ %g1 + 0x3bc ], %l1 ! 201c7bc 200e384: 90 10 00 12 mov %l2, %o0 200e388: ab 3c 60 1f sra %l1, 0x1f, %l5 200e38c: 96 10 00 11 mov %l1, %o3 200e390: 94 10 00 15 mov %l5, %o2 200e394: 40 00 2b f4 call 2019364 <__moddi3> 200e398: 92 10 00 13 mov %l3, %o1 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 200e39c: 90 10 00 12 mov %l2, %o0 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 200e3a0: a8 10 00 09 mov %o1, %l4 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 200e3a4: 94 10 00 15 mov %l5, %o2 200e3a8: 92 10 00 13 mov %l3, %o1 200e3ac: 40 00 2b 07 call 2018fc8 <__divdi3> 200e3b0: 96 10 00 11 mov %l1, %o3 if ( start_offset ) { 200e3b4: 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; 200e3b8: a4 10 00 09 mov %o1, %l2 if ( start_offset ) { 200e3bc: aa 10 00 1b mov %i3, %l5 200e3c0: 02 80 00 1c be 200e430 200e3c4: 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 ); 200e3c8: 90 10 00 10 mov %l0, %o0 200e3cc: 7f ff fc 70 call 200d58c 200e3d0: 94 10 20 00 clr %o2 assert( block_ptr ); 200e3d4: 80 a2 20 00 cmp %o0, 0 200e3d8: 32 80 00 0a bne,a 200e400 <== ALWAYS TAKEN 200e3dc: a2 24 40 14 sub %l1, %l4, %l1 200e3e0: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED 200e3e4: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED 200e3e8: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED 200e3ec: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED 200e3f0: 94 12 a3 60 or %o2, 0x360, %o2 <== NOT EXECUTED 200e3f4: 96 12 e2 88 or %o3, 0x288, %o3 <== NOT EXECUTED 200e3f8: 10 bf ff a4 b 200e288 <== NOT EXECUTED 200e3fc: 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; 200e400: 80 a7 00 11 cmp %i4, %l1 200e404: 08 80 00 03 bleu 200e410 200e408: 94 10 00 1c mov %i4, %o2 200e40c: 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 ); 200e410: d2 02 00 00 ld [ %o0 ], %o1 dest += to_copy; 200e414: 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 ); 200e418: 92 02 40 14 add %o1, %l4, %o1 dest += to_copy; block++; 200e41c: a4 04 a0 01 inc %l2 my_length -= to_copy; 200e420: b8 27 00 0a sub %i4, %o2, %i4 200e424: 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 ); 200e428: 40 00 06 79 call 200fe0c 200e42c: 90 10 00 1b mov %i3, %o0 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 200e430: 03 00 80 71 sethi %hi(0x201c400), %g1 while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 200e434: a8 10 63 bc or %g1, 0x3bc, %l4 ! 201c7bc 200e438: 10 80 00 17 b 200e494 200e43c: e2 00 63 bc ld [ %g1 + 0x3bc ], %l1 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 200e440: 92 10 00 12 mov %l2, %o1 200e444: 7f ff fc 52 call 200d58c 200e448: 94 10 20 00 clr %o2 assert( block_ptr ); 200e44c: 80 a2 20 00 cmp %o0, 0 200e450: 32 80 00 0a bne,a 200e478 <== ALWAYS TAKEN 200e454: d2 02 00 00 ld [ %o0 ], %o1 200e458: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED 200e45c: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED 200e460: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED 200e464: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED 200e468: 94 12 a3 60 or %o2, 0x360, %o2 <== NOT EXECUTED 200e46c: 96 12 e2 88 or %o3, 0x288, %o3 <== NOT EXECUTED 200e470: 10 bf ff 86 b 200e288 <== NOT EXECUTED 200e474: 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++; 200e478: 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 ); 200e47c: 90 10 00 15 mov %l5, %o0 dest += to_copy; block++; my_length -= to_copy; 200e480: b8 27 00 11 sub %i4, %l1, %i4 copied += to_copy; 200e484: 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; 200e488: 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 ); 200e48c: 40 00 06 60 call 200fe0c 200e490: 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 ) { 200e494: c2 05 00 00 ld [ %l4 ], %g1 200e498: 80 a7 00 01 cmp %i4, %g1 200e49c: 1a bf ff e9 bcc 200e440 200e4a0: 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 ) { 200e4a4: 80 a7 20 00 cmp %i4, 0 200e4a8: 02 80 00 16 be 200e500 200e4ac: 90 07 bf f8 add %fp, -8, %o0 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 200e4b0: 92 10 00 12 mov %l2, %o1 200e4b4: 90 10 00 10 mov %l0, %o0 200e4b8: 7f ff fc 35 call 200d58c 200e4bc: 94 10 20 00 clr %o2 assert( block_ptr ); 200e4c0: 80 a2 20 00 cmp %o0, 0 200e4c4: 32 80 00 0a bne,a 200e4ec <== ALWAYS TAKEN 200e4c8: d2 02 00 00 ld [ %o0 ], %o1 200e4cc: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED 200e4d0: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED 200e4d4: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED 200e4d8: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED 200e4dc: 94 12 a3 60 or %o2, 0x360, %o2 <== NOT EXECUTED 200e4e0: 96 12 e2 88 or %o3, 0x288, %o3 <== NOT EXECUTED 200e4e4: 10 bf ff 69 b 200e288 <== NOT EXECUTED 200e4e8: 92 10 22 b9 mov 0x2b9, %o1 <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); copied += my_length; 200e4ec: 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 ); 200e4f0: 90 10 00 15 mov %l5, %o0 200e4f4: 40 00 06 46 call 200fe0c 200e4f8: 94 10 00 1c mov %i4, %o2 copied += my_length; } IMFS_update_atime( the_jnode ); 200e4fc: 90 07 bf f8 add %fp, -8, %o0 200e500: 7f ff d1 a9 call 2002ba4 200e504: 92 10 20 00 clr %o1 200e508: c2 07 bf f8 ld [ %fp + -8 ], %g1 200e50c: c2 24 20 40 st %g1, [ %l0 + 0x40 ] return copied; } 200e510: 81 c7 e0 08 ret 200e514: 81 e8 00 00 restore =============================================================================== 0200d90c : */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { 200d90c: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 200d910: 80 a6 20 00 cmp %i0, 0 200d914: 32 80 00 0a bne,a 200d93c <== ALWAYS TAKEN 200d918: c2 06 20 4c ld [ %i0 + 0x4c ], %g1 200d91c: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED 200d920: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED 200d924: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED 200d928: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED 200d92c: 94 12 a3 78 or %o2, 0x378, %o2 <== NOT EXECUTED 200d930: 96 12 e2 40 or %o3, 0x240, %o3 <== NOT EXECUTED 200d934: 10 80 00 0c b 200d964 <== NOT EXECUTED 200d938: 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 ); 200d93c: 80 a0 60 05 cmp %g1, 5 200d940: 02 80 00 0b be 200d96c <== ALWAYS TAKEN 200d944: 03 00 80 71 sethi %hi(0x201c400), %g1 200d948: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED 200d94c: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED 200d950: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED 200d954: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED 200d958: 94 12 a3 78 or %o2, 0x378, %o2 <== NOT EXECUTED 200d95c: 96 12 e2 50 or %o3, 0x250, %o3 <== NOT EXECUTED 200d960: 92 10 21 f2 mov 0x1f2, %o1 <== NOT EXECUTED 200d964: 7f ff f8 7c call 200bb54 <__assert_func> <== NOT EXECUTED 200d968: 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; 200d96c: e0 00 63 bc ld [ %g1 + 0x3bc ], %l0 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 200d970: c2 06 20 58 ld [ %i0 + 0x58 ], %g1 200d974: 80 a0 60 00 cmp %g1, 0 200d978: 02 80 00 05 be 200d98c 200d97c: a1 34 20 02 srl %l0, 2, %l0 if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free ); 200d980: 90 06 20 58 add %i0, 0x58, %o0 200d984: 7f ff ff b0 call 200d844 200d988: 92 10 00 10 mov %l0, %o1 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 200d98c: c2 06 20 5c ld [ %i0 + 0x5c ], %g1 200d990: 80 a0 60 00 cmp %g1, 0 200d994: 22 80 00 17 be,a 200d9f0 <== ALWAYS TAKEN 200d998: 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; 200d9a0: 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 200d9a8: a4 14 a3 bc or %l2, 0x3bc, %l2 <== NOT EXECUTED if ( info->doubly_indirect[i] ) { 200d9ac: 83 2c 60 02 sll %l1, 2, %g1 <== NOT EXECUTED 200d9b0: c4 02 00 01 ld [ %o0 + %g1 ], %g2 <== NOT EXECUTED 200d9b4: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 200d9b8: 02 80 00 04 be 200d9c8 <== NOT EXECUTED 200d9bc: 90 02 00 01 add %o0, %g1, %o0 <== NOT EXECUTED memfile_free_blocks_in_table( 200d9c0: 7f ff ff a1 call 200d844 <== NOT EXECUTED 200d9c4: 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 200d9dc: 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 ); 200d9e0: 90 06 20 5c add %i0, 0x5c, %o0 <== NOT EXECUTED 200d9e4: 7f ff ff 98 call 200d844 <== NOT EXECUTED 200d9e8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 200d9ec: c2 06 20 60 ld [ %i0 + 0x60 ], %g1 <== NOT EXECUTED 200d9f0: 80 a0 60 00 cmp %g1, 0 200d9f4: 02 80 00 25 be 200da88 <== ALWAYS TAKEN 200d9f8: 29 00 80 71 sethi %hi(0x201c400), %l4 200d9fc: 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 200da04: a8 15 23 bc or %l4, 0x3bc, %l4 <== NOT EXECUTED * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 200da08: ab 2c 60 02 sll %l1, 2, %l5 <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; 200da0c: e4 00 40 15 ld [ %g1 + %l5 ], %l2 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 200da10: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED 200da14: 02 80 00 1b be 200da80 <== NOT EXECUTED 200da18: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED 200da1c: 10 80 00 09 b 200da40 <== NOT EXECUTED 200da20: a6 10 20 00 clr %l3 <== NOT EXECUTED break; for ( j=0 ; j <== NOT EXECUTED 200da2c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED memfile_free_blocks_in_table( (block_p **)&p[j], to_free); 200da30: 7f ff ff 85 call 200d844 <== NOT EXECUTED 200da34: 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 200da50: 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( 200da54: 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 200da64: 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 200da78: 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( 200da7c: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED 200da80: 7f ff ff 71 call 200d844 <== NOT EXECUTED 200da84: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } 200da88: 81 c7 e0 08 ret 200da8c: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 0200d8b8 : MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { 200d8b8: 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 ); 200d8bc: 94 10 20 00 clr %o2 <== NOT EXECUTED 200d8c0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 200d8c4: 7f ff ff 32 call 200d58c <== NOT EXECUTED 200d8c8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED assert( block_ptr ); 200d8cc: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 200d8d0: 32 80 00 0a bne,a 200d8f8 <== NOT EXECUTED 200d8d4: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED 200d8d8: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED 200d8dc: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED 200d8e0: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED 200d8e4: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED 200d8e8: 94 12 a3 b0 or %o2, 0x3b0, %o2 <== NOT EXECUTED 200d8ec: 96 12 e2 88 or %o3, 0x288, %o3 <== NOT EXECUTED 200d8f0: 7f ff f8 99 call 200bb54 <__assert_func> <== NOT EXECUTED 200d8f4: 92 10 21 96 mov 0x196, %o1 <== NOT EXECUTED *block_ptr = 0; memfile_free_block( ptr ); } return 1; } 200d8f8: 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 ); 200d8fc: 7f ff ff 0e call 200d534 <== NOT EXECUTED 200d900: c0 20 40 00 clr [ %g1 ] <== NOT EXECUTED } return 1; } 200d904: 81 c7 e0 08 ret <== NOT EXECUTED 200d908: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0200dec0 : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 200dec0: 9d e3 bf 98 save %sp, -104, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 200dec4: a0 96 20 00 orcc %i0, 0, %l0 200dec8: 32 80 00 0a bne,a 200def0 <== ALWAYS TAKEN 200decc: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 200ded0: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED 200ded4: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED 200ded8: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED 200dedc: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED 200dee0: 94 12 a3 48 or %o2, 0x348, %o2 <== NOT EXECUTED 200dee4: 96 12 e2 40 or %o3, 0x240, %o3 <== NOT EXECUTED 200dee8: 10 80 00 8c b 200e118 <== NOT EXECUTED 200deec: 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 ); 200def0: 80 a0 60 05 cmp %g1, 5 200def4: 02 80 00 0a be 200df1c <== ALWAYS TAKEN 200def8: 80 a6 e0 00 cmp %i3, 0 200defc: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED 200df00: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED 200df04: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED 200df08: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED 200df0c: 94 12 a3 48 or %o2, 0x348, %o2 <== NOT EXECUTED 200df10: 96 12 e2 50 or %o3, 0x250, %o3 <== NOT EXECUTED 200df14: 10 80 00 81 b 200e118 <== NOT EXECUTED 200df18: 92 10 22 e7 mov 0x2e7, %o1 <== NOT EXECUTED /* * Error check arguments */ assert( source ); 200df1c: 12 80 00 0a bne 200df44 <== ALWAYS TAKEN 200df20: 80 a7 20 00 cmp %i4, 0 200df24: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED 200df28: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED 200df2c: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED 200df30: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED 200df34: 94 12 a3 48 or %o2, 0x348, %o2 <== NOT EXECUTED 200df38: 96 12 e2 98 or %o3, 0x298, %o3 <== NOT EXECUTED 200df3c: 10 80 00 77 b 200e118 <== NOT EXECUTED 200df40: 92 10 22 ef mov 0x2ef, %o1 <== NOT EXECUTED /* * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) 200df44: 32 80 00 06 bne,a 200df5c <== ALWAYS TAKEN 200df48: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 rtems_set_errno_and_return_minus_one( EINVAL ); 200df4c: 40 00 05 74 call 200f51c <__errno> <== NOT EXECUTED 200df50: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200df54: 10 80 00 15 b 200dfa8 <== NOT EXECUTED 200df58: 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 ) { 200df5c: 80 a0 60 00 cmp %g1, 0 200df60: 06 80 00 09 bl 200df84 <== NEVER TAKEN 200df64: 94 07 00 1a add %i4, %i2, %o2 200df68: 80 a0 60 00 cmp %g1, 0 200df6c: 12 80 00 12 bne 200dfb4 <== NEVER TAKEN 200df70: 03 00 80 71 sethi %hi(0x201c400), %g1 200df74: c2 04 20 54 ld [ %l0 + 0x54 ], %g1 200df78: 80 a0 40 0a cmp %g1, %o2 200df7c: 1a 80 00 0e bcc 200dfb4 <== NEVER TAKEN 200df80: 03 00 80 71 sethi %hi(0x201c400), %g1 status = IMFS_memfile_extend( the_jnode, last_byte ); 200df84: 90 10 00 10 mov %l0, %o0 200df88: 7f ff ff 24 call 200dc18 200df8c: 92 10 20 00 clr %o1 if ( status ) 200df90: 80 a2 20 00 cmp %o0, 0 200df94: 02 80 00 08 be 200dfb4 <== ALWAYS TAKEN 200df98: 03 00 80 71 sethi %hi(0x201c400), %g1 rtems_set_errno_and_return_minus_one( ENOSPC ); 200df9c: 40 00 05 60 call 200f51c <__errno> <== NOT EXECUTED 200dfa0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200dfa4: 82 10 20 1c mov 0x1c, %g1 <== NOT EXECUTED 200dfa8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200dfac: 81 c7 e0 08 ret <== NOT EXECUTED 200dfb0: 81 e8 00 00 restore <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 200dfb4: e2 00 63 bc ld [ %g1 + 0x3bc ], %l1 200dfb8: 92 10 00 1a mov %i2, %o1 200dfbc: a7 3c 60 1f sra %l1, 0x1f, %l3 200dfc0: 96 10 00 11 mov %l1, %o3 200dfc4: 94 10 00 13 mov %l3, %o2 200dfc8: 40 00 2c e7 call 2019364 <__moddi3> 200dfcc: 90 10 00 19 mov %i1, %o0 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 200dfd0: 94 10 00 13 mov %l3, %o2 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 200dfd4: a4 10 00 09 mov %o1, %l2 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 200dfd8: 90 10 00 19 mov %i1, %o0 200dfdc: 92 10 00 1a mov %i2, %o1 200dfe0: 40 00 2b fa call 2018fc8 <__divdi3> 200dfe4: 96 10 00 11 mov %l1, %o3 if ( start_offset ) { 200dfe8: 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; 200dfec: a6 10 00 09 mov %o1, %l3 if ( start_offset ) { 200dff0: 80 a4 a0 00 cmp %l2, 0 200dff4: 02 80 00 1b be 200e060 200dff8: 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 ); 200dffc: 90 10 00 10 mov %l0, %o0 200e000: 7f ff fd 63 call 200d58c 200e004: 94 10 20 00 clr %o2 assert( block_ptr ); 200e008: 80 a2 20 00 cmp %o0, 0 200e00c: 32 80 00 0a bne,a 200e034 <== ALWAYS TAKEN 200e010: 94 24 40 12 sub %l1, %l2, %o2 200e014: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED 200e018: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED 200e01c: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED 200e020: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED 200e024: 94 12 a3 48 or %o2, 0x348, %o2 <== NOT EXECUTED 200e028: 96 12 e2 88 or %o3, 0x288, %o3 <== NOT EXECUTED 200e02c: 10 80 00 3b b 200e118 <== NOT EXECUTED 200e030: 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; 200e034: 80 a2 80 1c cmp %o2, %i4 200e038: 38 80 00 02 bgu,a 200e040 200e03c: 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 ); 200e040: d0 02 00 00 ld [ %o0 ], %o0 src += to_copy; 200e044: 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 ); 200e048: 90 02 00 12 add %o0, %l2, %o0 src += to_copy; block++; 200e04c: a6 04 e0 01 inc %l3 my_length -= to_copy; 200e050: b8 27 00 0a sub %i4, %o2, %i4 copied += to_copy; 200e054: 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 ); 200e058: 40 00 07 6d call 200fe0c 200e05c: 92 10 00 1b mov %i3, %o1 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 200e060: 03 00 80 71 sethi %hi(0x201c400), %g1 while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 200e064: a4 10 63 bc or %g1, 0x3bc, %l2 ! 201c7bc 200e068: 10 80 00 17 b 200e0c4 200e06c: e2 00 63 bc ld [ %g1 + 0x3bc ], %l1 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 200e070: 92 10 00 13 mov %l3, %o1 200e074: 7f ff fd 46 call 200d58c 200e078: 94 10 20 00 clr %o2 assert( block_ptr ); 200e07c: 80 a2 20 00 cmp %o0, 0 200e080: 32 80 00 0a bne,a 200e0a8 <== ALWAYS TAKEN 200e084: d0 02 00 00 ld [ %o0 ], %o0 200e088: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED 200e08c: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED 200e090: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED 200e094: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED 200e098: 94 12 a3 48 or %o2, 0x348, %o2 <== NOT EXECUTED 200e09c: 96 12 e2 88 or %o3, 0x288, %o3 <== NOT EXECUTED 200e0a0: 10 80 00 1e b 200e118 <== NOT EXECUTED 200e0a4: 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 ); 200e0a8: 92 10 00 1a mov %i2, %o1 src += to_copy; block++; 200e0ac: a6 04 e0 01 inc %l3 my_length -= to_copy; 200e0b0: 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( 200e0b4: 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; 200e0b8: 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 ); 200e0bc: 40 00 07 54 call 200fe0c 200e0c0: 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 ) { 200e0c4: c2 04 80 00 ld [ %l2 ], %g1 200e0c8: 80 a7 00 01 cmp %i4, %g1 200e0cc: 1a bf ff e9 bcc 200e070 200e0d0: 90 10 00 10 mov %l0, %o0 */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { 200e0d4: 80 a7 20 00 cmp %i4, 0 200e0d8: 02 80 00 17 be 200e134 200e0dc: 90 07 bf f8 add %fp, -8, %o0 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 200e0e0: 92 10 00 13 mov %l3, %o1 200e0e4: 90 10 00 10 mov %l0, %o0 200e0e8: 7f ff fd 29 call 200d58c 200e0ec: 94 10 20 00 clr %o2 assert( block_ptr ); 200e0f0: 80 a2 20 00 cmp %o0, 0 200e0f4: 32 80 00 0b bne,a 200e120 <== ALWAYS TAKEN 200e0f8: d0 02 00 00 ld [ %o0 ], %o0 200e0fc: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED 200e100: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED 200e104: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED 200e108: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED 200e10c: 94 12 a3 48 or %o2, 0x348, %o2 <== NOT EXECUTED 200e110: 96 12 e2 88 or %o3, 0x288, %o3 <== NOT EXECUTED 200e114: 92 10 23 46 mov 0x346, %o1 <== NOT EXECUTED 200e118: 7f ff f6 8f call 200bb54 <__assert_func> <== NOT EXECUTED 200e11c: 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; 200e120: 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 ); 200e124: 92 10 00 1a mov %i2, %o1 200e128: 40 00 07 39 call 200fe0c 200e12c: 94 10 00 1c mov %i4, %o2 my_length = 0; copied += to_copy; } IMFS_mtime_ctime_update( the_jnode ); 200e130: 90 07 bf f8 add %fp, -8, %o0 200e134: 7f ff d2 9c call 2002ba4 200e138: 92 10 20 00 clr %o1 200e13c: c2 07 bf f8 ld [ %fp + -8 ], %g1 200e140: c2 24 20 48 st %g1, [ %l0 + 0x48 ] 200e144: c2 24 20 44 st %g1, [ %l0 + 0x44 ] return copied; } 200e148: 81 c7 e0 08 ret 200e14c: 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 38 62 call 2010450 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 7a call 200b8c4 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 34 75 call 200f51c <__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 21 d0 call 200aaac 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 34 67 call 200f51c <__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 34 5b call 200f51c <__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 96 sethi %hi(0x2025800), %l0 20047e0: 11 00 80 8e sethi %hi(0x2023800), %o0 <== NOT EXECUTED 20047e4: 15 00 80 8f sethi %hi(0x2023c00), %o2 <== NOT EXECUTED 20047e8: 17 00 80 8e sethi %hi(0x2023800), %o3 <== NOT EXECUTED 20047ec: 90 12 23 70 or %o0, 0x370, %o0 <== NOT EXECUTED 20047f0: 94 12 a1 80 or %o2, 0x180, %o2 <== NOT EXECUTED 20047f4: 96 12 e3 c0 or %o3, 0x3c0, %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 22 40 ld [ %l0 + 0x240 ], %g1 2004804: 90 06 20 0c add %i0, 0xc, %o0 2004808: 40 00 3d 41 call 2013d0c 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 22 40 ld [ %l0 + 0x240 ], %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 22 40 ld [ %l0 + 0x240 ], %g1 2004840: 90 10 20 2f mov 0x2f, %o0 2004844: 40 00 3c ee call 2013bfc 2004848: d2 00 60 08 ld [ %g1 + 8 ], %o1 break; 200484c: 10 80 00 3c b 200493c 2004850: 31 00 80 8f sethi %hi(0x2023c00), %i0 case IMFS_DEVICE: fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")", 2004854: c2 04 22 40 ld [ %l0 + 0x240 ], %g1 2004858: 13 00 80 8e sethi %hi(0x2023800), %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 63 d0 or %o1, 0x3d0, %o1 the_jnode->info.device.major, the_jnode->info.device.minor ); break; case IMFS_LINEAR_FILE: fprintf(stdout, " (file %" PRId32 " %p)", 2004870: c2 04 22 40 ld [ %l0 + 0x240 ], %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 8e sethi %hi(0x2023800), %o1 <== NOT EXECUTED 2004884: 92 12 63 e8 or %o1, 0x3e8, %o1 ! 2023be8 <== NOT EXECUTED 2004888: 40 00 3c c3 call 2013b94 200488c: 31 00 80 8f sethi %hi(0x2023c00), %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 22 40 ld [ %l0 + 0x240 ], %g1 2004898: d4 06 20 54 ld [ %i0 + 0x54 ], %o2 200489c: d0 00 60 08 ld [ %g1 + 8 ], %o0 20048a0: 13 00 80 8e sethi %hi(0x2023800), %o1 20048a4: 40 00 3c bc call 2013b94 20048a8: 92 12 63 f8 or %o1, 0x3f8, %o1 ! 2023bf8 (uint32_t)the_jnode->info.file.size ); #endif break; 20048ac: 10 80 00 24 b 200493c 20048b0: 31 00 80 8f sethi %hi(0x2023c00), %i0 case IMFS_HARD_LINK: fprintf(stdout, " links not printed\n" ); 20048b4: c2 04 22 40 ld [ %l0 + 0x240 ], %g1 <== NOT EXECUTED 20048b8: 11 00 80 8f sethi %hi(0x2023c00), %o0 <== NOT EXECUTED 20048bc: d2 00 60 08 ld [ %g1 + 8 ], %o1 <== NOT EXECUTED 20048c0: 40 00 3d 13 call 2013d0c <== NOT EXECUTED 20048c4: 90 12 20 08 or %o0, 8, %o0 <== NOT EXECUTED assert(0); 20048c8: 92 10 20 5d mov 0x5d, %o1 <== NOT EXECUTED 20048cc: 11 00 80 8e sethi %hi(0x2023800), %o0 <== NOT EXECUTED 20048d0: 15 00 80 8f sethi %hi(0x2023c00), %o2 <== NOT EXECUTED 20048d4: 17 00 80 8f sethi %hi(0x2023c00), %o3 <== NOT EXECUTED 20048d8: 90 12 23 70 or %o0, 0x370, %o0 <== NOT EXECUTED 20048dc: 94 12 a1 80 or %o2, 0x180, %o2 <== NOT EXECUTED 20048e0: 96 12 e0 20 or %o3, 0x20, %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 22 40 ld [ %l0 + 0x240 ], %g1 <== NOT EXECUTED 20048f0: 11 00 80 8f sethi %hi(0x2023c00), %o0 <== NOT EXECUTED 20048f4: d2 00 60 08 ld [ %g1 + 8 ], %o1 <== NOT EXECUTED 20048f8: 40 00 3d 05 call 2013d0c <== NOT EXECUTED 20048fc: 90 12 20 08 or %o0, 8, %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 22 40 ld [ %l0 + 0x240 ], %g1 <== NOT EXECUTED 200490c: 11 00 80 8f sethi %hi(0x2023c00), %o0 <== NOT EXECUTED 2004910: d2 00 60 08 ld [ %g1 + 8 ], %o1 <== NOT EXECUTED 2004914: 40 00 3c fe call 2013d0c <== NOT EXECUTED 2004918: 90 12 20 28 or %o0, 0x28, %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 8f sethi %hi(0x2023c00), %o1 <== NOT EXECUTED 2004928: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED 200492c: 40 00 3c 9a call 2013b94 <== NOT EXECUTED 2004930: 92 12 60 40 or %o1, 0x40, %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 43 e4 call 20158cc 2004940: 91 ee 20 50 restore %i0, 0x50, %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 34 4a call 200f51c <__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 38 36 call 2010524 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 1d call 2006cd8 <_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 0c call 2006ca8 <_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 =============================================================================== 0200b9a8 : int IMFS_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 200b9a8: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 200b9ac: 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 ) { 200b9b0: c2 04 20 08 ld [ %l0 + 8 ], %g1 200b9b4: 80 a0 60 00 cmp %g1, 0 200b9b8: 22 80 00 06 be,a 200b9d0 <== NEVER TAKEN 200b9bc: 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 ); 200b9c0: 7f ff ec c6 call 2006cd8 <_Chain_Extract> 200b9c4: 90 10 00 10 mov %l0, %o0 rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 200b9c8: c0 24 20 08 clr [ %l0 + 8 ] /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 200b9cc: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 IMFS_update_ctime( the_jnode ); 200b9d0: 92 10 20 00 clr %o1 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 200b9d4: 82 00 7f ff add %g1, -1, %g1 IMFS_update_ctime( the_jnode ); 200b9d8: 90 07 bf f8 add %fp, -8, %o0 200b9dc: 7f ff dc 72 call 2002ba4 200b9e0: c2 34 20 34 sth %g1, [ %l0 + 0x34 ] 200b9e4: 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) ) { 200b9e8: 90 10 00 10 mov %l0, %o0 200b9ec: 40 00 00 ed call 200bda0 200b9f0: c2 24 20 48 st %g1, [ %l0 + 0x48 ] 200b9f4: 80 a2 20 00 cmp %o0, 0 200b9f8: 12 80 00 18 bne 200ba58 <== NEVER TAKEN 200b9fc: 01 00 00 00 nop 200ba00: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 200ba04: 80 a0 60 00 cmp %g1, 0 200ba08: 12 80 00 14 bne 200ba58 <== NEVER TAKEN 200ba0c: 03 00 80 70 sethi %hi(0x201c000), %g1 /* * Is rtems_filesystem_current this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 200ba10: c2 00 62 80 ld [ %g1 + 0x280 ], %g1 ! 201c280 200ba14: c4 06 40 00 ld [ %i1 ], %g2 200ba18: c6 00 60 04 ld [ %g1 + 4 ], %g3 200ba1c: 80 a0 c0 02 cmp %g3, %g2 200ba20: 22 80 00 02 be,a 200ba28 <== NEVER TAKEN 200ba24: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { 200ba28: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 200ba2c: 80 a0 60 04 cmp %g1, 4 200ba30: 12 80 00 08 bne 200ba50 200ba34: 01 00 00 00 nop if ( the_jnode->info.sym_link.name ) 200ba38: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 200ba3c: 80 a2 20 00 cmp %o0, 0 200ba40: 02 80 00 04 be 200ba50 <== NEVER TAKEN 200ba44: 01 00 00 00 nop free( (void*) the_jnode->info.sym_link.name ); 200ba48: 7f ff dc 2d call 2002afc 200ba4c: 01 00 00 00 nop } free( the_jnode ); 200ba50: 7f ff dc 2b call 2002afc 200ba54: 90 10 00 10 mov %l0, %o0 } return 0; } 200ba58: 81 c7 e0 08 ret 200ba5c: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 0200ba78 : int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 200ba78: 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; 200ba7c: c2 06 00 00 ld [ %i0 ], %g1 switch ( the_jnode->type ) { 200ba80: c4 00 60 4c ld [ %g1 + 0x4c ], %g2 200ba84: 84 00 bf fe add %g2, -2, %g2 200ba88: 80 a0 a0 05 cmp %g2, 5 200ba8c: 18 80 00 10 bgu 200bacc <== NEVER TAKEN 200ba90: 85 28 a0 02 sll %g2, 2, %g2 200ba94: 07 00 80 2e sethi %hi(0x200b800), %g3 200ba98: 86 10 e2 60 or %g3, 0x260, %g3 ! 200ba60 200ba9c: c4 00 c0 02 ld [ %g3 + %g2 ], %g2 200baa0: 81 c0 80 00 jmp %g2 200baa4: 01 00 00 00 nop rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; 200baa8: 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; 200baac: 10 80 00 0e b 200bae4 200bab0: c4 3e 60 18 std %g2, [ %i1 + 0x18 ] case IMFS_LINEAR_FILE: case IMFS_MEMORY_FILE: buf->st_size = the_jnode->info.file.size; 200bab4: c4 18 60 50 ldd [ %g1 + 0x50 ], %g2 break; 200bab8: 10 80 00 0b b 200bae4 200babc: c4 3e 60 20 std %g2, [ %i1 + 0x20 ] case IMFS_SYM_LINK: buf->st_size = 0; break; case IMFS_FIFO: buf->st_size = 0; 200bac0: c0 26 60 20 clr [ %i1 + 0x20 ] <== NOT EXECUTED break; 200bac4: 10 80 00 08 b 200bae4 <== NOT EXECUTED 200bac8: c0 26 60 24 clr [ %i1 + 0x24 ] <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 200bacc: 40 00 0e 94 call 200f51c <__errno> <== NOT EXECUTED 200bad0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200bad4: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 200bad8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200badc: 81 c7 e0 08 ret <== NOT EXECUTED 200bae0: 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; 200bae4: c6 00 60 30 ld [ %g1 + 0x30 ], %g3 buf->st_nlink = the_jnode->st_nlink; 200bae8: 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; 200baec: c6 26 60 0c st %g3, [ %i1 + 0xc ] buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; 200baf0: 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 ); 200baf4: 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; 200baf8: 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; 200bafc: 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; 200bb00: 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; 200bb04: 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 ); 200bb08: 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; 200bb0c: 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; 200bb10: 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; 200bb14: 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; 200bb18: 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 ); 200bb1c: 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; 200bb20: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 buf->st_blksize = imfs_rq_memfile_bytes_per_block; 200bb24: 07 00 80 70 sethi %hi(0x201c000), %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; 200bb28: 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; 200bb2c: c6 00 e0 b8 ld [ %g3 + 0xb8 ], %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; 200bb30: 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 = 200bb34: 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; 200bb38: 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; 200bb3c: c4 26 60 38 st %g2, [ %i1 + 0x38 ] 200bb40: 03 00 00 3f sethi %hi(0xfc00), %g1 200bb44: 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 = 200bb48: 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; } 200bb4c: 81 c7 e0 08 ret 200bb50: 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 37 ec call 2010450 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 03 call 200b8c4 20024bc: 94 10 00 10 mov %l0, %o2 /* * Duplicate link name */ info.sym_link.name = strdup(link_name); 20024c0: 40 00 37 cf call 20103fc 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 34 11 call 200f51c <__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 6a call 200aaac 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 33 ff call 200f51c <__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 33 ef call 200f51c <__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 36 23 call 200fe0c 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 21 93 call 200abd8 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 33 be call 200f51c <__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 33 b7 call 200f51c <__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 71 sethi %hi(0x201c400), %g1 2002d90: c2 00 63 a8 ld [ %g1 + 0x3a8 ], %g1 ! 201c7a8 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 71 sethi %hi(0x201c400), %g1 2002db8: c2 00 63 ac ld [ %g1 + 0x3ac ], %g1 ! 201c7ac 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 71 sethi %hi(0x201c400), %g1 2002de4: c2 08 63 a5 ldub [ %g1 + 0x3a5 ], %g1 ! 201c7a5 2002de8: 80 a0 60 00 cmp %g1, 0 2002dec: 12 80 00 0c bne 2002e1c 2002df0: 03 00 80 71 sethi %hi(0x201c400), %g1 !rtems_unified_work_area && rtems_configuration_get_do_zero_of_workspace() 2002df4: 03 00 80 70 sethi %hi(0x201c000), %g1 2002df8: c2 08 61 90 ldub [ %g1 + 0x190 ], %g1 ! 201c190 2002dfc: 80 a0 60 00 cmp %g1, 0 2002e00: 02 80 00 07 be 2002e1c 2002e04: 03 00 80 71 sethi %hi(0x201c400), %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 34 3e call 200ff08 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 71 sethi %hi(0x201c400), %g1 2002e1c: c2 08 63 a5 ldub [ %g1 + 0x3a5 ], %g1 ! 201c7a5 2002e20: 80 a0 60 00 cmp %g1, 0 2002e24: 12 80 00 0c bne 2002e54 2002e28: 03 00 80 70 sethi %hi(0x201c000), %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 60 c0 ld [ %g1 + 0xc0 ], %o0 ! 201c0c0 2002e30: 92 10 00 18 mov %i0, %o1 2002e34: 94 10 00 19 mov %i1, %o2 2002e38: 40 00 11 09 call 200725c <_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 72 sethi %hi(0x201c800), %i1 rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); 2002e4c: 40 00 0e d7 call 20069a8 <== 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 72 sethi %hi(0x201c800), %i1 2002e58: 03 00 80 70 sethi %hi(0x201c000), %g1 2002e5c: f0 06 62 60 ld [ %i1 + 0x260 ], %i0 2002e60: 40 00 14 25 call 2007ef4 <_Protected_heap_Get_size> 2002e64: d0 00 60 c0 ld [ %g1 + 0xc0 ], %o0 2002e68: 90 02 00 18 add %o0, %i0, %o0 2002e6c: d0 26 62 60 st %o0, [ %i1 + 0x260 ] 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 a9 sethi %hi(0x206a400), %g1 <== NOT EXECUTED return; if ( !print_handler ) 2006580: e4 00 62 70 ld [ %g1 + 0x270 ], %l2 ! 206a670 <== 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 48 ld [ %i0 + 0x148 ], %l4 <== NOT EXECUTED if (Stack_check_Interrupt_stack.area) { 2006598: 23 00 81 b4 sethi %hi(0x206d000), %l1 <== NOT EXECUTED 200659c: a2 14 61 d8 or %l1, 0x1d8, %l1 ! 206d1d8 <== 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 c0 add %i0, 0xc0, %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 a9 sethi %hi(0x206a400), %g1 <== NOT EXECUTED (*print_handler)( 20065f8: ea 06 20 08 ld [ %i0 + 8 ], %l5 <== NOT EXECUTED 20065fc: ec 00 62 6c ld [ %g1 + 0x26c ], %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 78 sethi %hi(0x205e000), %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 62 a8 or %o1, 0x2a8, %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 62 6c ld [ %g1 + 0x26c ], %o0 <== NOT EXECUTED 2006634: 13 00 81 78 sethi %hi(0x205e000), %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 62 b8 or %o1, 0x2b8, %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 a9 sethi %hi(0x206a400), %l2 <== NOT EXECUTED 2006650: 23 00 81 a9 sethi %hi(0x206a400), %l1 <== NOT EXECUTED 2006654: c2 04 a2 70 ld [ %l2 + 0x270 ], %g1 <== NOT EXECUTED 2006658: d0 04 62 6c ld [ %l1 + 0x26c ], %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 78 sethi %hi(0x205e000), %o1 <== NOT EXECUTED 2006670: 9f c0 40 00 call %g1 <== NOT EXECUTED 2006674: 92 12 62 c8 or %o1, 0x2c8, %o1 ! 205e2c8 <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { 2006678: 03 00 81 a9 sethi %hi(0x206a400), %g1 <== NOT EXECUTED 200667c: c2 00 62 68 ld [ %g1 + 0x268 ], %g1 ! 206a668 <== NOT EXECUTED 2006680: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2006684: 12 80 00 08 bne 20066a4 <== NOT EXECUTED 2006688: c2 04 a2 70 ld [ %l2 + 0x270 ], %g1 <== NOT EXECUTED (*print_handler)( print_context, "Unavailable\n" ); 200668c: d0 04 62 6c ld [ %l1 + 0x26c ], %o0 <== NOT EXECUTED 2006690: 13 00 81 78 sethi %hi(0x205e000), %o1 <== NOT EXECUTED 2006694: 9f c0 40 00 call %g1 <== NOT EXECUTED 2006698: 92 12 62 e8 or %o1, 0x2e8, %o1 ! 205e2e8 <== 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 62 6c ld [ %l1 + 0x26c ], %o0 <== NOT EXECUTED 20066a8: 13 00 81 78 sethi %hi(0x205e000), %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 62 f8 or %o1, 0x2f8, %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 a9 sethi %hi(0x206a400), %g1 20068d8: c2 00 62 68 ld [ %g1 + 0x268 ], %g1 ! 206a668 20068dc: 80 a0 60 00 cmp %g1, 0 20068e0: 12 80 00 21 bne 2006964 20068e4: 07 00 81 b4 sethi %hi(0x206d000), %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 79 sethi %hi(0x205e400), %g2 20068ec: 86 10 e1 c8 or %g3, 0x1c8, %g3 20068f0: 84 10 a0 50 or %g2, 0x50, %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 b4 sethi %hi(0x206d000), %g1 2006918: c2 00 63 d0 ld [ %g1 + 0x3d0 ], %g1 ! 206d3d0 <_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 b4 sethi %hi(0x206d000), %g2 2006928: c6 00 a3 1c ld [ %g2 + 0x31c ], %g3 ! 206d31c <_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 b4 sethi %hi(0x206d000), %g2 Stack_check_Interrupt_stack.size = (char *) _CPU_Interrupt_stack_high - 200693c: c6 20 a1 d8 st %g3, [ %g2 + 0x1d8 ] ! 206d1d8 * 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 a1 d8 or %g2, 0x1d8, %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 00 fe 95 call 20463a4 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 a9 sethi %hi(0x206a400), %g1 2006960: c4 20 62 68 st %g2, [ %g1 + 0x268 ] ! 206a668 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 78 sethi %hi(0x205e000), %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 c4 ld [ %i0 + 0xc4 ], %l0 char name [32]; printk("BLOWN STACK!!!\n"); 2006740: 40 00 0b d6 call 2009698 2006744: 90 12 23 68 or %o0, 0x368, %o0 printk("task control block: 0x%08" PRIxPTR "\n", running); 2006748: 92 10 00 18 mov %i0, %o1 200674c: 11 00 81 78 sethi %hi(0x205e000), %o0 2006750: 40 00 0b d2 call 2009698 2006754: 90 12 23 78 or %o0, 0x378, %o0 ! 205e378 printk("task ID: 0x%08lx\n", (unsigned long) running->Object.id); 2006758: d2 06 20 08 ld [ %i0 + 8 ], %o1 200675c: 11 00 81 78 sethi %hi(0x205e000), %o0 2006760: 40 00 0b ce call 2009698 2006764: 90 12 23 98 or %o0, 0x398, %o0 ! 205e398 printk( 2006768: d2 06 20 0c ld [ %i0 + 0xc ], %o1 200676c: 11 00 81 78 sethi %hi(0x205e000), %o0 2006770: 40 00 0b ca call 2009698 2006774: 90 12 23 b0 or %o0, 0x3b0, %o0 ! 205e3b0 "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 78 sethi %hi(0x205e000), %o0 2006790: 40 00 0b c2 call 2009698 2006794: 90 12 23 c8 or %o0, 0x3c8, %o0 ! 205e3c8 "task name string: %s\n", rtems_object_get_name(running->Object.id, sizeof(name), name) ); printk( 2006798: d2 06 20 c0 ld [ %i0 + 0xc0 ], %o1 200679c: d4 06 20 c4 ld [ %i0 + 0xc4 ], %o2 20067a0: 11 00 81 78 sethi %hi(0x205e000), %o0 20067a4: 96 02 80 09 add %o2, %o1, %o3 20067a8: 40 00 0b bc call 2009698 20067ac: 90 12 23 e0 or %o0, 0x3e0, %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 79 sethi %hi(0x205e400), %o0 printk( 20067bc: 96 04 20 18 add %l0, 0x18, %o3 20067c0: 90 12 20 18 or %o0, 0x18, %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 b2 call 200d298 20067d4: 90 10 20 81 mov 0x81, %o0 =============================================================================== 0204223c : return 0; } static int rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control, 204223c: 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; 2042240: c0 2e 80 00 clrb [ %i2 ] <== NOT EXECUTED /* * Load the bitmap. */ rc = rtems_rfs_bitmap_load_map (control, &map); 2042244: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2042248: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED 204224c: 7f ff fe f2 call 2041e14 <== NOT EXECUTED 2042250: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED if (rc > 0) 2042254: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2042258: 14 80 00 7a bg 2042440 <== NOT EXECUTED 204225c: 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; 2042260: e2 06 40 00 ld [ %i1 ], %l1 <== NOT EXECUTED end_bit = test_bit + (window * direction); if (end_bit < 0) 2042264: a4 84 80 11 addcc %l2, %l1, %l2 <== NOT EXECUTED 2042268: 3c 80 00 04 bpos,a 2042278 <== NOT EXECUTED 204226c: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED 2042270: 10 80 00 05 b 2042284 <== NOT EXECUTED 2042274: a4 10 20 00 clr %l2 <== NOT EXECUTED end_bit = 0; else if (end_bit >= control->size) 2042278: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED 204227c: 3a 80 00 02 bcc,a 2042284 <== NOT EXECUTED 2042280: 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]; 2042284: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED map_bits = &map[map_index]; 2042288: 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); 204228c: 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]; 2042290: ad 3c 60 0a sra %l1, 0xa, %l6 <== NOT EXECUTED 2042294: ad 2d a0 02 sll %l6, 2, %l6 <== NOT EXECUTED 2042298: ac 00 40 16 add %g1, %l6, %l6 <== NOT EXECUTED map_bits = &map[map_index]; 204229c: 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; 20422a0: 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]; 20422a4: 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; 20422a8: 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); 20422ac: 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; 20422b0: 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); 20422b4: 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; 20422b8: ae 0d ff e1 and %l7, -31, %l7 <== NOT EXECUTED map_offset += direction; test_bit += direction; } } map_bits += direction; 20422bc: b9 2e e0 02 sll %i3, 2, %i4 <== NOT EXECUTED map_index += direction; map_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1; 20422c0: 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, 20422c4: 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); 20422c8: 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; 20422cc: 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)) 20422d0: 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, 20422d4: 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)) 20422d8: 80 a3 20 00 cmp %o4, 0 <== NOT EXECUTED 20422dc: 12 80 00 33 bne 20423a8 <== NOT EXECUTED 20422e0: 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); 20422e4: 10 80 00 36 b 20423bc <== NOT EXECUTED 20422e8: 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)) 20422ec: 80 88 c0 0c btst %g3, %o4 <== NOT EXECUTED 20422f0: 12 80 00 1c bne 2042360 <== NOT EXECUTED 20422f4: 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; 20422f8: 10 80 00 1d b 204236c <== NOT EXECUTED 20422fc: 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); 2042300: 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)) 2042304: 80 8b 40 04 btst %o5, %g4 <== NOT EXECUTED 2042308: 02 80 00 12 be 2042350 <== NOT EXECUTED 204230c: 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); 2042310: 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, 2042314: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2042318: 12 80 00 05 bne 204232c <== NOT EXECUTED 204231c: c2 25 40 00 st %g1, [ %l5 ] <== NOT EXECUTED RTEMS_RFS_BITMAP_ELEMENT_SET)) *search_bits = rtems_rfs_bitmap_set (*search_bits, 2042320: c2 05 80 00 ld [ %l6 ], %g1 <== NOT EXECUTED 2042324: 86 28 40 03 andn %g1, %g3, %g3 <== NOT EXECUTED 2042328: c6 25 80 00 st %g3, [ %l6 ] <== NOT EXECUTED 1 << search_offset); control->free--; 204232c: c4 04 20 10 ld [ %l0 + 0x10 ], %g2 <== NOT EXECUTED *bit = test_bit; *found = true; rtems_rfs_buffer_mark_dirty (control->buffer); 2042330: 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; 2042334: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 2042338: c2 2e 80 00 stb %g1, [ %i2 ] <== NOT EXECUTED rtems_rfs_buffer_mark_dirty (control->buffer); 204233c: 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; 2042340: 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--; 2042344: 82 00 bf ff add %g2, -1, %g1 <== NOT EXECUTED 2042348: 10 80 00 3d b 204243c <== NOT EXECUTED 204234c: 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) 2042350: 02 80 00 06 be 2042368 <== NOT EXECUTED 2042354: 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, 2042358: 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) 204235c: 80 a5 20 1f cmp %l4, 0x1f <== NOT EXECUTED 2042360: 28 bf ff e8 bleu,a 2042300 <== NOT EXECUTED 2042364: 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; 2042368: a2 05 c0 02 add %l7, %g2, %l1 <== NOT EXECUTED map_offset += direction; test_bit += direction; } } map_bits += direction; 204236c: 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, 2042370: 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)) 2042374: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED 2042378: 14 80 00 06 bg 2042390 <== NOT EXECUTED 204237c: a8 10 00 17 mov %l7, %l4 <== NOT EXECUTED 2042380: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 2042384: 26 80 00 22 bl,a 204240c <== NOT EXECUTED 2042388: ac 05 80 1c add %l6, %i4, %l6 <== NOT EXECUTED 204238c: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED 2042390: 06 80 00 05 bl 20423a4 <== NOT EXECUTED 2042394: 84 00 80 01 add %g2, %g1, %g2 <== NOT EXECUTED 2042398: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 204239c: 34 80 00 1c bg,a 204240c <== NOT EXECUTED 20423a0: ac 05 80 1c add %l6, %i4, %l6 <== NOT EXECUTED 20423a4: 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) 20423a8: 80 a2 20 1f cmp %o0, 0x1f <== NOT EXECUTED 20423ac: 28 bf ff d0 bleu,a 20422ec <== NOT EXECUTED 20423b0: 87 2f 40 08 sll %i5, %o0, %g3 <== NOT EXECUTED } map_bits += direction * bits_skipped; map_index += direction * bits_skipped; } search_bits += direction; 20423b4: 10 80 00 16 b 204240c <== NOT EXECUTED 20423b8: 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) 20423bc: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 20423c0: 04 80 00 06 ble 20423d8 <== NOT EXECUTED 20423c4: a8 10 20 00 clr %l4 <== NOT EXECUTED { bits_skipped = rtems_rfs_bitmap_element_bits () - search_offset; 20423c8: 90 26 00 08 sub %i0, %o0, %o0 <== NOT EXECUTED test_bit += bits_skipped * rtems_rfs_bitmap_element_bits (); 20423cc: 85 2a 20 05 sll %o0, 5, %g2 <== NOT EXECUTED 20423d0: 10 80 00 07 b 20423ec <== NOT EXECUTED 20423d4: 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; 20423d8: 85 2a 20 05 sll %o0, 5, %g2 <== NOT EXECUTED 20423dc: a8 10 20 1f mov 0x1f, %l4 <== NOT EXECUTED 20423e0: 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; 20423e4: 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; 20423e8: a2 00 80 11 add %g2, %l1, %l1 <== NOT EXECUTED map_offset = rtems_rfs_bitmap_element_bits () - 1; } map_bits += direction * bits_skipped; 20423ec: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED 20423f0: 7f ff 01 82 call 20029f8 <.umul> <== NOT EXECUTED 20423f4: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED 20423f8: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED map_index += direction * bits_skipped; 20423fc: 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; 2042400: 91 2a 20 02 sll %o0, 2, %o0 <== NOT EXECUTED 2042404: aa 05 40 08 add %l5, %o0, %l5 <== NOT EXECUTED map_index += direction * bits_skipped; } search_bits += direction; 2042408: 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))); 204240c: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED 2042410: 06 80 00 08 bl 2042430 <== NOT EXECUTED 2042414: 90 10 00 17 mov %l7, %o0 <== NOT EXECUTED 2042418: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 204241c: 26 bf ff ae bl,a 20422d4 <== NOT EXECUTED 2042420: d8 05 80 00 ld [ %l6 ], %o4 <== NOT EXECUTED 2042424: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED 2042428: 34 80 00 06 bg,a 2042440 <== NOT EXECUTED 204242c: 90 10 20 00 clr %o0 <== NOT EXECUTED 2042430: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 2042434: 34 bf ff a8 bg,a 20422d4 <== NOT EXECUTED 2042438: d8 05 80 00 ld [ %l6 ], %o4 <== NOT EXECUTED 204243c: 90 10 20 00 clr %o0 <== NOT EXECUTED return 0; } 2042440: 81 c7 e0 08 ret <== NOT EXECUTED 2042444: 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 =============================================================================== 02016888 <_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 ) { 2016888: 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 ) { 201688c: 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 ) { 2016890: 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 ) { 2016894: 80 a6 80 01 cmp %i2, %g1 2016898: 18 80 00 17 bgu 20168f4 <_CORE_message_queue_Broadcast+0x6c><== NEVER TAKEN 201689c: 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 ) { 20168a0: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 20168a4: 80 a0 60 00 cmp %g1, 0 20168a8: 02 80 00 0a be 20168d0 <_CORE_message_queue_Broadcast+0x48> 20168ac: a2 10 20 00 clr %l1 *count = 0; 20168b0: c0 27 40 00 clr [ %i5 ] return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; 20168b4: 81 c7 e0 08 ret 20168b8: 91 e8 20 00 restore %g0, 0, %o0 const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 20168bc: d0 04 a0 2c ld [ %l2 + 0x2c ], %o0 20168c0: 40 00 27 b7 call 202079c 20168c4: a2 04 60 01 inc %l1 buffer, waitp->return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; 20168c8: c2 04 a0 28 ld [ %l2 + 0x28 ], %g1 20168cc: 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))) { 20168d0: 40 00 0a 2a call 2019178 <_Thread_queue_Dequeue> 20168d4: 90 10 00 10 mov %l0, %o0 20168d8: 92 10 00 19 mov %i1, %o1 20168dc: 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 = 20168e0: 80 a2 20 00 cmp %o0, 0 20168e4: 12 bf ff f6 bne 20168bc <_CORE_message_queue_Broadcast+0x34> 20168e8: 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; 20168ec: e2 27 40 00 st %l1, [ %i5 ] 20168f0: b0 10 20 00 clr %i0 return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 20168f4: 81 c7 e0 08 ret 20168f8: 81 e8 00 00 restore =============================================================================== 020100fc <_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 ) { 20100fc: 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; 2010100: 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; 2010104: 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; 2010108: f6 26 20 4c st %i3, [ %i0 + 0x4c ] /* * 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)) { 201010c: 80 8e e0 03 btst 3, %i3 2010110: 02 80 00 07 be 201012c <_CORE_message_queue_Initialize+0x30> 2010114: a2 10 00 1b mov %i3, %l1 allocated_message_size += sizeof(uint32_t); 2010118: a2 06 e0 04 add %i3, 4, %l1 allocated_message_size &= ~(sizeof(uint32_t) - 1); 201011c: a2 0c 7f fc and %l1, -4, %l1 } if (allocated_message_size < maximum_message_size) 2010120: 80 a4 40 1b cmp %l1, %i3 2010124: 0a 80 00 23 bcs 20101b0 <_CORE_message_queue_Initialize+0xb4><== NEVER TAKEN 2010128: 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)); 201012c: a0 04 60 10 add %l1, 0x10, %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 * 2010130: 92 10 00 1a mov %i2, %o1 2010134: 40 00 50 e0 call 20244b4 <.umul> 2010138: 90 10 00 10 mov %l0, %o0 (allocated_message_size + sizeof(CORE_message_queue_Buffer_control)); if (message_buffering_required < allocated_message_size) 201013c: 80 a2 00 11 cmp %o0, %l1 2010140: 0a 80 00 1c bcs 20101b0 <_CORE_message_queue_Initialize+0xb4><== NEVER TAKEN 2010144: 01 00 00 00 nop return false; /* * Attempt to allocate the message memory */ the_message_queue->message_buffers = (CORE_message_queue_Buffer *) 2010148: 40 00 0b c6 call 2013060 <_Workspace_Allocate> 201014c: 01 00 00 00 nop 2010150: d0 26 20 5c st %o0, [ %i0 + 0x5c ] _Workspace_Allocate( message_buffering_required ); if (the_message_queue->message_buffers == 0) 2010154: 80 a2 20 00 cmp %o0, 0 2010158: 02 80 00 16 be 20101b0 <_CORE_message_queue_Initialize+0xb4> 201015c: 92 10 00 08 mov %o0, %o1 /* * Initialize the pool of inactive messages, pending messages, * and set of waiting threads. */ _Chain_Initialize ( 2010160: 90 06 20 60 add %i0, 0x60, %o0 2010164: 94 10 00 1a mov %i2, %o2 2010168: 40 00 18 34 call 2016238 <_Chain_Initialize> 201016c: 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( 2010170: 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; 2010174: c0 26 20 54 clr [ %i0 + 0x54 ] 2010178: 82 18 60 01 xor %g1, 1, %g1 201017c: 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); 2010180: 82 06 20 54 add %i0, 0x54, %g1 2010184: c2 26 20 50 st %g1, [ %i0 + 0x50 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 2010188: 82 06 20 50 add %i0, 0x50, %g1 201018c: 90 10 00 18 mov %i0, %o0 2010190: c2 26 20 58 st %g1, [ %i0 + 0x58 ] 2010194: 92 60 3f ff subx %g0, -1, %o1 2010198: 94 10 20 80 mov 0x80, %o2 201019c: 96 10 20 06 mov 6, %o3 20101a0: 40 00 08 9e call 2012418 <_Thread_queue_Initialize> 20101a4: 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; 20101a8: 81 c7 e0 08 ret 20101ac: 81 e8 00 00 restore } 20101b0: 81 c7 e0 08 ret 20101b4: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 020101b8 <_CORE_message_queue_Seize>: void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { 20101b8: 9d e3 bf a0 save %sp, -96, %sp ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; executing = _Thread_Executing; 20101bc: 23 00 80 ac sethi %hi(0x202b000), %l1 20101c0: e0 04 61 60 ld [ %l1 + 0x160 ], %l0 ! 202b160 <_Thread_Executing> void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { 20101c4: a4 10 00 19 mov %i1, %l2 CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; executing = _Thread_Executing; executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; _ISR_Disable( level ); 20101c8: 7f ff dc e0 call 2007548 20101cc: c0 24 20 34 clr [ %l0 + 0x34 ] 20101d0: 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)); 20101d4: e6 06 20 50 ld [ %i0 + 0x50 ], %l3 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 20101d8: 84 06 20 54 add %i0, 0x54, %g2 20101dc: 80 a4 c0 02 cmp %l3, %g2 20101e0: 02 80 00 15 be 2010234 <_CORE_message_queue_Seize+0x7c> 20101e4: 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; 20101e8: c4 04 c0 00 ld [ %l3 ], %g2 the_chain->first = new_first; 20101ec: c4 26 20 50 st %g2, [ %i0 + 0x50 ] the_message = _CORE_message_queue_Get_pending_message( the_message_queue ); if ( the_message != NULL ) { 20101f0: 80 a4 e0 00 cmp %l3, 0 20101f4: 02 80 00 10 be 2010234 <_CORE_message_queue_Seize+0x7c> <== NEVER TAKEN 20101f8: c6 20 a0 04 st %g3, [ %g2 + 4 ] the_message_queue->number_of_pending_messages -= 1; 20101fc: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 2010200: 82 00 7f ff add %g1, -1, %g1 2010204: c2 26 20 48 st %g1, [ %i0 + 0x48 ] _ISR_Enable( level ); 2010208: 7f ff dc d4 call 2007558 201020c: b0 06 20 60 add %i0, 0x60, %i0 *size_p = the_message->Contents.size; _Thread_Executing->Wait.count = 2010210: c2 04 61 60 ld [ %l1 + 0x160 ], %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; 2010214: d4 04 e0 08 ld [ %l3 + 8 ], %o2 _Thread_Executing->Wait.count = 2010218: c0 20 60 24 clr [ %g1 + 0x24 ] 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; 201021c: d4 26 c0 00 st %o2, [ %i3 ] const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 2010220: 90 10 00 1a mov %i2, %o0 2010224: 40 00 24 7c call 2019414 2010228: 92 04 e0 0c add %l3, 0xc, %o1 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 ); 201022c: 7f ff ff 83 call 2010038 <_Chain_Append> 2010230: 93 e8 00 13 restore %g0, %l3, %o1 return; } #endif } if ( !wait ) { 2010234: 80 8f 20 ff btst 0xff, %i4 2010238: 12 80 00 08 bne 2010258 <_CORE_message_queue_Seize+0xa0> 201023c: 84 10 20 01 mov 1, %g2 _ISR_Enable( level ); 2010240: 7f ff dc c6 call 2007558 2010244: 90 10 00 01 mov %g1, %o0 executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT; 2010248: 82 10 20 04 mov 4, %g1 201024c: 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 ); } 2010250: 81 c7 e0 08 ret 2010254: 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; 2010258: c4 26 20 30 st %g2, [ %i0 + 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; 201025c: 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; 2010260: e4 24 20 20 st %l2, [ %l0 + 0x20 ] executing->Wait.return_argument_second.mutable_object = buffer; 2010264: 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; 2010268: f0 24 20 44 st %i0, [ %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 ); 201026c: 90 10 00 01 mov %g1, %o0 2010270: 7f ff dc ba call 2007558 2010274: 35 00 80 49 sethi %hi(0x2012400), %i2 _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); 2010278: b2 10 00 1d mov %i5, %i1 201027c: 40 00 07 c7 call 2012198 <_Thread_queue_Enqueue_with_handler> 2010280: 95 ee a0 e4 restore %i2, 0xe4, %o2 =============================================================================== 02006e68 <_CORE_mutex_Seize>: Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { 2006e68: 9d e3 bf a0 save %sp, -96, %sp _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 2006e6c: 03 00 80 73 sethi %hi(0x201cc00), %g1 2006e70: c2 00 60 20 ld [ %g1 + 0x20 ], %g1 ! 201cc20 <_Thread_Dispatch_disable_level> 2006e74: 80 a0 60 00 cmp %g1, 0 2006e78: 02 80 00 0d be 2006eac <_CORE_mutex_Seize+0x44> 2006e7c: f8 27 a0 54 st %i4, [ %fp + 0x54 ] 2006e80: 80 8e a0 ff btst 0xff, %i2 2006e84: 02 80 00 0b be 2006eb0 <_CORE_mutex_Seize+0x48> <== NEVER TAKEN 2006e88: 90 10 00 18 mov %i0, %o0 2006e8c: 03 00 80 73 sethi %hi(0x201cc00), %g1 2006e90: c2 00 61 c0 ld [ %g1 + 0x1c0 ], %g1 ! 201cdc0 <_System_state_Current> 2006e94: 80 a0 60 01 cmp %g1, 1 2006e98: 08 80 00 05 bleu 2006eac <_CORE_mutex_Seize+0x44> 2006e9c: 90 10 20 00 clr %o0 2006ea0: 92 10 20 00 clr %o1 2006ea4: 40 00 01 d3 call 20075f0 <_Internal_error_Occurred> 2006ea8: 94 10 20 13 mov 0x13, %o2 2006eac: 90 10 00 18 mov %i0, %o0 2006eb0: 40 00 17 0c call 200cae0 <_CORE_mutex_Seize_interrupt_trylock> 2006eb4: 92 07 a0 54 add %fp, 0x54, %o1 2006eb8: 80 a2 20 00 cmp %o0, 0 2006ebc: 02 80 00 09 be 2006ee0 <_CORE_mutex_Seize+0x78> 2006ec0: 80 8e a0 ff btst 0xff, %i2 2006ec4: 12 80 00 09 bne 2006ee8 <_CORE_mutex_Seize+0x80> 2006ec8: 35 00 80 73 sethi %hi(0x201cc00), %i2 2006ecc: 7f ff ec 42 call 2001fd4 2006ed0: d0 07 a0 54 ld [ %fp + 0x54 ], %o0 2006ed4: c2 06 a0 e0 ld [ %i2 + 0xe0 ], %g1 2006ed8: 84 10 20 01 mov 1, %g2 2006edc: c4 20 60 34 st %g2, [ %g1 + 0x34 ] 2006ee0: 81 c7 e0 08 ret 2006ee4: 81 e8 00 00 restore 2006ee8: c4 06 a0 e0 ld [ %i2 + 0xe0 ], %g2 2006eec: 03 00 80 73 sethi %hi(0x201cc00), %g1 2006ef0: c6 00 60 20 ld [ %g1 + 0x20 ], %g3 ! 201cc20 <_Thread_Dispatch_disable_level> 2006ef4: f2 20 a0 20 st %i1, [ %g2 + 0x20 ] 2006ef8: f0 20 a0 44 st %i0, [ %g2 + 0x44 ] 2006efc: 84 00 e0 01 add %g3, 1, %g2 2006f00: c4 20 60 20 st %g2, [ %g1 + 0x20 ] 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; 2006f04: 82 10 20 01 mov 1, %g1 2006f08: c2 26 20 30 st %g1, [ %i0 + 0x30 ] 2006f0c: 7f ff ec 32 call 2001fd4 2006f10: d0 07 a0 54 ld [ %fp + 0x54 ], %o0 2006f14: 90 10 00 18 mov %i0, %o0 2006f18: 7f ff ff bb call 2006e04 <_CORE_mutex_Seize_interrupt_blocking> 2006f1c: 92 10 00 1b mov %i3, %o1 2006f20: 81 c7 e0 08 ret 2006f24: 81 e8 00 00 restore =============================================================================== 0200cae0 <_CORE_mutex_Seize_interrupt_trylock>: #if defined(__RTEMS_DO_NOT_INLINE_CORE_MUTEX_SEIZE__) int _CORE_mutex_Seize_interrupt_trylock( CORE_mutex_Control *the_mutex, ISR_Level *level_p ) { 200cae0: 9d e3 bf a0 save %sp, -96, %sp { Thread_Control *executing; /* disabled when you get here */ executing = _Thread_Executing; 200cae4: 03 00 80 73 sethi %hi(0x201cc00), %g1 200cae8: c2 00 60 e0 ld [ %g1 + 0xe0 ], %g1 ! 201cce0 <_Thread_Executing> executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; 200caec: c0 20 60 34 clr [ %g1 + 0x34 ] if ( !_CORE_mutex_Is_locked( the_mutex ) ) { 200caf0: c4 06 20 50 ld [ %i0 + 0x50 ], %g2 200caf4: 80 a0 a0 00 cmp %g2, 0 200caf8: 22 80 00 2f be,a 200cbb4 <_CORE_mutex_Seize_interrupt_trylock+0xd4> 200cafc: c4 06 20 5c ld [ %i0 + 0x5c ], %g2 the_mutex->lock = CORE_MUTEX_LOCKED; 200cb00: c0 26 20 50 clr [ %i0 + 0x50 ] the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 200cb04: c6 00 60 08 ld [ %g1 + 8 ], %g3 */ RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_inherit_priority( CORE_mutex_Attributes *the_attribute ) { return the_attribute->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; 200cb08: c4 06 20 48 ld [ %i0 + 0x48 ], %g2 executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 200cb0c: c6 26 20 60 st %g3, [ %i0 + 0x60 ] executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; the_mutex->holder = executing; 200cb10: c2 26 20 5c st %g1, [ %i0 + 0x5c ] the_mutex->holder_id = executing->Object.id; the_mutex->nest_count = 1; 200cb14: 86 10 20 01 mov 1, %g3 if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 200cb18: 80 a0 a0 02 cmp %g2, 2 200cb1c: 02 80 00 05 be 200cb30 <_CORE_mutex_Seize_interrupt_trylock+0x50> 200cb20: c6 26 20 54 st %g3, [ %i0 + 0x54 ] 200cb24: 80 a0 a0 03 cmp %g2, 3 200cb28: 12 80 00 31 bne 200cbec <_CORE_mutex_Seize_interrupt_trylock+0x10c> 200cb2c: 01 00 00 00 nop _Chain_Prepend_unprotected( &executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = executing->current_priority; #endif executing->resource_count++; 200cb30: c6 00 60 1c ld [ %g1 + 0x1c ], %g3 } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { 200cb34: 80 a0 a0 03 cmp %g2, 3 _Chain_Prepend_unprotected( &executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = executing->current_priority; #endif executing->resource_count++; 200cb38: 84 00 e0 01 add %g3, 1, %g2 } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { 200cb3c: 12 80 00 2c bne 200cbec <_CORE_mutex_Seize_interrupt_trylock+0x10c> 200cb40: c4 20 60 1c st %g2, [ %g1 + 0x1c ] */ { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; 200cb44: c4 06 20 4c ld [ %i0 + 0x4c ], %g2 current = executing->current_priority; 200cb48: c6 00 60 14 ld [ %g1 + 0x14 ], %g3 if ( current == ceiling ) { 200cb4c: 80 a0 c0 02 cmp %g3, %g2 200cb50: 02 80 00 27 be 200cbec <_CORE_mutex_Seize_interrupt_trylock+0x10c> 200cb54: 01 00 00 00 nop _ISR_Enable( *level_p ); return 0; } if ( current > ceiling ) { 200cb58: 08 80 00 0f bleu 200cb94 <_CORE_mutex_Seize_interrupt_trylock+0xb4> 200cb5c: 84 10 20 06 mov 6, %g2 ! 6 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 200cb60: 03 00 80 73 sethi %hi(0x201cc00), %g1 200cb64: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 ! 201cc20 <_Thread_Dispatch_disable_level> 200cb68: 84 00 a0 01 inc %g2 200cb6c: c4 20 60 20 st %g2, [ %g1 + 0x20 ] _Thread_Disable_dispatch(); _ISR_Enable( *level_p ); 200cb70: 7f ff d5 19 call 2001fd4 200cb74: d0 06 40 00 ld [ %i1 ], %o0 _Thread_Change_priority( 200cb78: d2 06 20 4c ld [ %i0 + 0x4c ], %o1 200cb7c: d0 06 20 5c ld [ %i0 + 0x5c ], %o0 200cb80: 7f ff ec f4 call 2007f50 <_Thread_Change_priority> 200cb84: 94 10 20 00 clr %o2 the_mutex->holder, the_mutex->Attributes.priority_ceiling, false ); _Thread_Enable_dispatch(); 200cb88: 7f ff ee 7d call 200857c <_Thread_Enable_dispatch> 200cb8c: b0 10 20 00 clr %i0 200cb90: 30 80 00 1a b,a 200cbf8 <_CORE_mutex_Seize_interrupt_trylock+0x118> return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; 200cb94: c4 20 60 34 st %g2, [ %g1 + 0x34 ] the_mutex->lock = CORE_MUTEX_UNLOCKED; 200cb98: 84 10 20 01 mov 1, %g2 the_mutex->nest_count = 0; /* undo locking above */ 200cb9c: c0 26 20 54 clr [ %i0 + 0x54 ] _Thread_Enable_dispatch(); return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; the_mutex->lock = CORE_MUTEX_UNLOCKED; 200cba0: c4 26 20 50 st %g2, [ %i0 + 0x50 ] the_mutex->nest_count = 0; /* undo locking above */ executing->resource_count--; /* undo locking above */ 200cba4: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 200cba8: 84 00 bf ff add %g2, -1, %g2 200cbac: 10 80 00 10 b 200cbec <_CORE_mutex_Seize_interrupt_trylock+0x10c> 200cbb0: c4 20 60 1c st %g2, [ %g1 + 0x1c ] /* * At this point, we know the mutex was not available. If this thread * is the thread that has locked the mutex, let's see if we are allowed * to nest access. */ if ( _Thread_Is_executing( the_mutex->holder ) ) { 200cbb4: 80 a0 80 01 cmp %g2, %g1 200cbb8: 12 80 00 12 bne 200cc00 <_CORE_mutex_Seize_interrupt_trylock+0x120> 200cbbc: 01 00 00 00 nop switch ( the_mutex->Attributes.lock_nesting_behavior ) { 200cbc0: c2 06 20 40 ld [ %i0 + 0x40 ], %g1 200cbc4: 80 a0 60 00 cmp %g1, 0 200cbc8: 22 80 00 07 be,a 200cbe4 <_CORE_mutex_Seize_interrupt_trylock+0x104> 200cbcc: c2 06 20 54 ld [ %i0 + 0x54 ], %g1 200cbd0: 80 a0 60 01 cmp %g1, 1 200cbd4: 12 80 00 0b bne 200cc00 <_CORE_mutex_Seize_interrupt_trylock+0x120><== ALWAYS TAKEN 200cbd8: 82 10 20 02 mov 2, %g1 case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; _ISR_Enable( *level_p ); return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; 200cbdc: 10 80 00 04 b 200cbec <_CORE_mutex_Seize_interrupt_trylock+0x10c><== NOT EXECUTED 200cbe0: c2 20 a0 34 st %g1, [ %g2 + 0x34 ] <== NOT EXECUTED * to nest access. */ if ( _Thread_Is_executing( the_mutex->holder ) ) { switch ( the_mutex->Attributes.lock_nesting_behavior ) { case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; 200cbe4: 82 00 60 01 inc %g1 200cbe8: c2 26 20 54 st %g1, [ %i0 + 0x54 ] _ISR_Enable( *level_p ); return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; _ISR_Enable( *level_p ); 200cbec: 7f ff d4 fa call 2001fd4 200cbf0: d0 06 40 00 ld [ %i1 ], %o0 200cbf4: b0 10 20 00 clr %i0 200cbf8: 81 c7 e0 08 ret 200cbfc: 81 e8 00 00 restore return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p ); } 200cc00: 81 c7 e0 08 ret 200cc04: 91 e8 20 01 restore %g0, 1, %o0 =============================================================================== 020070cc <_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 ) { 20070cc: 9d e3 bf a0 save %sp, -96, %sp 20070d0: 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)) ) { 20070d4: b0 10 20 00 clr %i0 20070d8: 40 00 06 1f call 2008954 <_Thread_queue_Dequeue> 20070dc: 90 10 00 10 mov %l0, %o0 20070e0: 80 a2 20 00 cmp %o0, 0 20070e4: 12 80 00 0e bne 200711c <_CORE_semaphore_Surrender+0x50> 20070e8: 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 ); 20070ec: 7f ff eb b6 call 2001fc4 20070f0: 01 00 00 00 nop if ( the_semaphore->count < the_semaphore->Attributes.maximum_count ) 20070f4: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 20070f8: c4 04 20 40 ld [ %l0 + 0x40 ], %g2 20070fc: 80 a0 40 02 cmp %g1, %g2 2007100: 1a 80 00 05 bcc 2007114 <_CORE_semaphore_Surrender+0x48> <== NEVER TAKEN 2007104: b0 10 20 04 mov 4, %i0 the_semaphore->count += 1; 2007108: 82 00 60 01 inc %g1 200710c: b0 10 20 00 clr %i0 2007110: c2 24 20 48 st %g1, [ %l0 + 0x48 ] else status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; _ISR_Enable( level ); 2007114: 7f ff eb b0 call 2001fd4 2007118: 01 00 00 00 nop } return status; } 200711c: 81 c7 e0 08 ret 2007120: 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 73 sethi %hi(0x201cc00), %g1 2005d40: e0 00 60 e0 ld [ %g1 + 0xe0 ], %l0 ! 201cce0 <_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 60 ld [ %l0 + 0x160 ], %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 73 sethi %hi(0x201cc00), %g1 2005dc4: c4 20 62 dc st %g2, [ %g1 + 0x2dc ] ! 201cedc <_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 73 sethi %hi(0x201cc00), %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 21 00 or %o0, 0x100, %o0 2005e04: 40 00 0e 2c call 20096b4 <_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 31 call 2008ed4 <_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 73 sethi %hi(0x201cc00), %g1 2005e24: f0 00 62 dc ld [ %g1 + 0x2dc ], %i0 ! 201cedc <_Event_Sync_state> _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 2005e28: c0 20 62 dc clr [ %g1 + 0x2dc ] 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 2f call 2007efc <_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 60 ld [ %i0 + 0x160 ], %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 73 sethi %hi(0x201cc00), %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 20 bc ld [ %g4 + 0xbc ], %g4 ! 201ccbc <_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 73 sethi %hi(0x201cc00), %g4 2005ee4: c8 01 20 e0 ld [ %g4 + 0xe0 ], %g4 ! 201cce0 <_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 73 sethi %hi(0x201cc00), %g4 2005ef8: da 01 22 dc ld [ %g4 + 0x2dc ], %o5 ! 201cedc <_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 22 dc ld [ %g4 + 0x2dc ], %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 73 sethi %hi(0x201cc00), %g1 2005f48: c4 20 62 dc st %g2, [ %g1 + 0x2dc ] ! 201cedc <_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 1a call 2009824 <_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 5a call 2008134 <_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 72 call 20085b0 <_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 73 sethi %hi(0x201cc00), %g1 200600c: c2 00 60 e0 ld [ %g1 + 0xe0 ], %g1 ! 201cce0 <_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 73 sethi %hi(0x201cc00), %g1 2006020: c4 00 62 dc ld [ %g1 + 0x2dc ], %g2 ! 201cedc <_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 62 dc st %g2, [ %g1 + 0x2dc ] } 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 39 call 2008134 <_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 73 sethi %hi(0x201cc00), %g1 200605c: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 ! 201cc20 <_Thread_Dispatch_disable_level> 2006060: 84 00 bf ff add %g2, -1, %g2 2006064: c4 20 60 20 st %g2, [ %g1 + 0x20 ] 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 =============================================================================== 0200cc84 <_Heap_Allocate_aligned_with_boundary>: Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { 200cc84: 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; 200cc88: 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; 200cc8c: 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 ) { 200cc90: 80 a5 80 19 cmp %l6, %i1 200cc94: 0a 80 00 6d bcs 200ce48 <_Heap_Allocate_aligned_with_boundary+0x1c4> 200cc98: e8 06 20 10 ld [ %i0 + 0x10 ], %l4 /* Integer overflow occured */ return NULL; } if ( boundary != 0 ) { 200cc9c: 80 a6 e0 00 cmp %i3, 0 200cca0: 02 80 00 08 be 200ccc0 <_Heap_Allocate_aligned_with_boundary+0x3c> 200cca4: 82 10 20 04 mov 4, %g1 if ( boundary < alloc_size ) { 200cca8: 80 a6 c0 19 cmp %i3, %i1 200ccac: 0a 80 00 67 bcs 200ce48 <_Heap_Allocate_aligned_with_boundary+0x1c4> 200ccb0: 80 a6 a0 00 cmp %i2, 0 return NULL; } if ( alignment == 0 ) { 200ccb4: 22 80 00 03 be,a 200ccc0 <_Heap_Allocate_aligned_with_boundary+0x3c> 200ccb8: 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; 200ccbc: 82 10 20 04 mov 4, %g1 200ccc0: 82 20 40 19 sub %g1, %i1, %g1 if ( boundary != 0 ) { if ( boundary < alloc_size ) { return NULL; } if ( alignment == 0 ) { 200ccc4: 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; 200ccc8: 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; 200cccc: 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; 200ccd0: 82 05 20 07 add %l4, 7, %g1 200ccd4: 10 80 00 4b b 200ce00 <_Heap_Allocate_aligned_with_boundary+0x17c> 200ccd8: 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 ) { 200ccdc: 80 a4 c0 16 cmp %l3, %l6 200cce0: 08 80 00 47 bleu 200cdfc <_Heap_Allocate_aligned_with_boundary+0x178> 200cce4: a2 04 60 01 inc %l1 if ( alignment == 0 ) { 200cce8: 80 a6 a0 00 cmp %i2, 0 200ccec: 12 80 00 04 bne 200ccfc <_Heap_Allocate_aligned_with_boundary+0x78> 200ccf0: 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; 200ccf4: 10 80 00 3f b 200cdf0 <_Heap_Allocate_aligned_with_boundary+0x16c> 200ccf8: 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; 200ccfc: 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; 200cd00: 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; 200cd04: a6 0c ff fe and %l3, -2, %l3 200cd08: 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; 200cd0c: 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; 200cd10: 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); 200cd14: 90 10 00 10 mov %l0, %o0 200cd18: 82 20 80 17 sub %g2, %l7, %g1 200cd1c: 92 10 00 1a mov %i2, %o1 200cd20: 40 00 2f fe call 2018d18 <.urem> 200cd24: a6 00 40 13 add %g1, %l3, %l3 200cd28: 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 ) { 200cd2c: 80 a4 00 13 cmp %l0, %l3 200cd30: 08 80 00 07 bleu 200cd4c <_Heap_Allocate_aligned_with_boundary+0xc8> 200cd34: 80 a6 e0 00 cmp %i3, 0 200cd38: 90 10 00 13 mov %l3, %o0 200cd3c: 40 00 2f f7 call 2018d18 <.urem> 200cd40: 92 10 00 1a mov %i2, %o1 200cd44: a0 24 c0 08 sub %l3, %o0, %l0 } alloc_end = alloc_begin + alloc_size; /* Ensure boundary constaint */ if ( boundary != 0 ) { 200cd48: 80 a6 e0 00 cmp %i3, 0 200cd4c: 02 80 00 1d be 200cdc0 <_Heap_Allocate_aligned_with_boundary+0x13c> 200cd50: 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; 200cd54: a6 04 00 19 add %l0, %i1, %l3 /* Ensure boundary constaint */ if ( boundary != 0 ) { uintptr_t const boundary_floor = alloc_begin_floor + alloc_size; 200cd58: 82 05 40 19 add %l5, %i1, %g1 200cd5c: 92 10 00 1b mov %i3, %o1 200cd60: 90 10 00 13 mov %l3, %o0 200cd64: 10 80 00 0b b 200cd90 <_Heap_Allocate_aligned_with_boundary+0x10c> 200cd68: 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 ) { 200cd6c: 80 a0 40 02 cmp %g1, %g2 200cd70: 2a 80 00 24 bcs,a 200ce00 <_Heap_Allocate_aligned_with_boundary+0x17c> 200cd74: e4 04 a0 08 ld [ %l2 + 8 ], %l2 200cd78: 40 00 2f e8 call 2018d18 <.urem> 200cd7c: 01 00 00 00 nop 200cd80: 92 10 00 1b mov %i3, %o1 200cd84: 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; 200cd88: a6 04 00 19 add %l0, %i1, %l3 200cd8c: 90 10 00 13 mov %l3, %o0 200cd90: 40 00 2f e2 call 2018d18 <.urem> 200cd94: 01 00 00 00 nop 200cd98: 92 10 00 1a mov %i2, %o1 200cd9c: 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; 200cda0: 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 ) { 200cda4: 80 a0 40 13 cmp %g1, %l3 200cda8: 1a 80 00 05 bcc 200cdbc <_Heap_Allocate_aligned_with_boundary+0x138> 200cdac: 90 10 00 1d mov %i5, %o0 200cdb0: 80 a4 00 01 cmp %l0, %g1 200cdb4: 0a bf ff ee bcs 200cd6c <_Heap_Allocate_aligned_with_boundary+0xe8> 200cdb8: 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 ) { 200cdbc: 80 a4 00 15 cmp %l0, %l5 200cdc0: 0a 80 00 0f bcs 200cdfc <_Heap_Allocate_aligned_with_boundary+0x178> 200cdc4: 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; 200cdc8: 90 10 00 10 mov %l0, %o0 200cdcc: a6 04 c0 10 add %l3, %l0, %l3 200cdd0: 40 00 2f d2 call 2018d18 <.urem> 200cdd4: 92 10 00 14 mov %l4, %o1 if ( free_size >= min_block_size || free_size == 0 ) { 200cdd8: 90 a4 c0 08 subcc %l3, %o0, %o0 200cddc: 02 80 00 06 be 200cdf4 <_Heap_Allocate_aligned_with_boundary+0x170> 200cde0: 80 a4 20 00 cmp %l0, 0 200cde4: 80 a2 00 17 cmp %o0, %l7 200cde8: 2a 80 00 06 bcs,a 200ce00 <_Heap_Allocate_aligned_with_boundary+0x17c> 200cdec: e4 04 a0 08 ld [ %l2 + 8 ], %l2 boundary ); } } if ( alloc_begin != 0 ) { 200cdf0: 80 a4 20 00 cmp %l0, 0 200cdf4: 32 80 00 08 bne,a 200ce14 <_Heap_Allocate_aligned_with_boundary+0x190><== ALWAYS TAKEN 200cdf8: c2 06 20 4c ld [ %i0 + 0x4c ], %g1 break; } block = block->next; 200cdfc: e4 04 a0 08 ld [ %l2 + 8 ], %l2 if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { 200ce00: 80 a4 80 18 cmp %l2, %i0 200ce04: 32 bf ff b6 bne,a 200ccdc <_Heap_Allocate_aligned_with_boundary+0x58> 200ce08: e6 04 a0 04 ld [ %l2 + 4 ], %l3 200ce0c: 10 80 00 09 b 200ce30 <_Heap_Allocate_aligned_with_boundary+0x1ac> 200ce10: 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 ); 200ce14: 92 10 00 12 mov %l2, %o1 block = block->next; } if ( alloc_begin != 0 ) { /* Statistics */ stats->searches += search_count; 200ce18: 82 00 40 11 add %g1, %l1, %g1 block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); 200ce1c: 96 10 00 19 mov %i1, %o3 block = block->next; } if ( alloc_begin != 0 ) { /* Statistics */ stats->searches += search_count; 200ce20: c2 26 20 4c st %g1, [ %i0 + 0x4c ] block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); 200ce24: 90 10 00 18 mov %i0, %o0 200ce28: 7f ff e9 a1 call 20074ac <_Heap_Block_allocate> 200ce2c: 94 10 00 10 mov %l0, %o2 uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { Heap_Statistics *const stats = &heap->stats; 200ce30: c2 06 20 44 ld [ %i0 + 0x44 ], %g1 200ce34: 80 a0 40 11 cmp %g1, %l1 200ce38: 2a 80 00 02 bcs,a 200ce40 <_Heap_Allocate_aligned_with_boundary+0x1bc> 200ce3c: e2 26 20 44 st %l1, [ %i0 + 0x44 ] /* Statistics */ if ( stats->max_search < search_count ) { stats->max_search = search_count; } return (void *) alloc_begin; 200ce40: 81 c7 e0 08 ret 200ce44: 91 e8 00 10 restore %g0, %l0, %o0 } 200ce48: 81 c7 e0 08 ret 200ce4c: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 020114ec <_Heap_Extend>: Heap_Control *heap, void *area_begin_ptr, uintptr_t area_size, uintptr_t *amount_extended ) { 20114ec: 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; 20114f0: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 Heap_Control *heap, void *area_begin_ptr, uintptr_t area_size, uintptr_t *amount_extended ) { 20114f4: 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 ) { 20114f8: 80 a6 40 01 cmp %i1, %g1 20114fc: 1a 80 00 07 bcc 2011518 <_Heap_Extend+0x2c> 2011500: 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; 2011504: c4 06 20 18 ld [ %i0 + 0x18 ], %g2 2011508: 80 a6 40 02 cmp %i1, %g2 201150c: 1a 80 00 28 bcc 20115ac <_Heap_Extend+0xc0> 2011510: 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 ) { 2011514: 80 a6 40 01 cmp %i1, %g1 2011518: 12 80 00 25 bne 20115ac <_Heap_Extend+0xc0> 201151c: 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); 2011520: 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; 2011524: 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 2011528: 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; 201152c: f4 24 20 1c st %i2, [ %l0 + 0x1c ] extend_size = new_heap_area_end 2011530: b2 06 7f f8 add %i1, -8, %i1 2011534: 7f ff cb 1b call 20041a0 <.urem> 2011538: 90 10 00 19 mov %i1, %o0 201153c: 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; 2011540: d0 26 c0 00 st %o0, [ %i3 ] if( extend_size >= heap->min_block_size ) { 2011544: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 2011548: 80 a2 00 01 cmp %o0, %g1 201154c: 0a 80 00 18 bcs 20115ac <_Heap_Extend+0xc0> <== NEVER TAKEN 2011550: 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; 2011554: 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 = 2011558: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 201155c: 82 08 60 01 and %g1, 1, %g1 2011560: 82 12 00 01 or %o0, %g1, %g1 2011564: 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); 2011568: 82 02 00 11 add %o0, %l1, %g1 201156c: 84 20 80 01 sub %g2, %g1, %g2 2011570: 84 10 a0 01 or %g2, 1, %g2 2011574: c4 20 60 04 st %g2, [ %g1 + 4 ] heap->last_block = new_last_block; /* Statistics */ stats->size += extend_size; ++stats->used_blocks; 2011578: c6 04 20 40 ld [ %l0 + 0x40 ], %g3 | HEAP_PREV_BLOCK_USED; heap->last_block = new_last_block; /* Statistics */ stats->size += extend_size; 201157c: f2 04 20 2c ld [ %l0 + 0x2c ], %i1 ++stats->used_blocks; --stats->frees; /* Do not count subsequent call as actual free() */ 2011580: 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; 2011584: c2 24 20 24 st %g1, [ %l0 + 0x24 ] /* Statistics */ stats->size += extend_size; ++stats->used_blocks; 2011588: 82 00 e0 01 add %g3, 1, %g1 | HEAP_PREV_BLOCK_USED; heap->last_block = new_last_block; /* Statistics */ stats->size += extend_size; 201158c: 90 06 40 08 add %i1, %o0, %o0 ++stats->used_blocks; 2011590: c2 24 20 40 st %g1, [ %l0 + 0x40 ] --stats->frees; /* Do not count subsequent call as actual free() */ 2011594: 82 00 bf ff add %g2, -1, %g1 | HEAP_PREV_BLOCK_USED; heap->last_block = new_last_block; /* Statistics */ stats->size += extend_size; 2011598: d0 24 20 2c st %o0, [ %l0 + 0x2c ] ++stats->used_blocks; --stats->frees; /* Do not count subsequent call as actual free() */ 201159c: c2 24 20 50 st %g1, [ %l0 + 0x50 ] _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block )); 20115a0: 90 10 00 10 mov %l0, %o0 20115a4: 7f ff e6 8c call 200afd4 <_Heap_Free> 20115a8: 92 04 60 08 add %l1, 8, %o1 } return HEAP_EXTEND_SUCCESSFUL; } 20115ac: 81 c7 e0 08 ret 20115b0: 81 e8 00 00 restore =============================================================================== 0200ce50 <_Heap_Free>: #include #include #include bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) { 200ce50: 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 ) 200ce54: d2 06 20 10 ld [ %i0 + 0x10 ], %o1 200ce58: 40 00 2f b0 call 2018d18 <.urem> 200ce5c: 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; 200ce60: 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 ) 200ce64: b2 06 7f f8 add %i1, -8, %i1 200ce68: 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 200ce6c: 80 a2 00 01 cmp %o0, %g1 200ce70: 0a 80 00 05 bcs 200ce84 <_Heap_Free+0x34> 200ce74: 84 10 20 00 clr %g2 200ce78: c4 06 20 24 ld [ %i0 + 0x24 ], %g2 200ce7c: 80 a0 80 08 cmp %g2, %o0 200ce80: 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 ) ) { 200ce84: 80 a0 a0 00 cmp %g2, 0 200ce88: 02 80 00 6a be 200d030 <_Heap_Free+0x1e0> 200ce8c: 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; 200ce90: c8 02 20 04 ld [ %o0 + 4 ], %g4 200ce94: 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); 200ce98: 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 200ce9c: 80 a0 80 01 cmp %g2, %g1 200cea0: 0a 80 00 05 bcs 200ceb4 <_Heap_Free+0x64> <== NEVER TAKEN 200cea4: 9a 10 20 00 clr %o5 200cea8: da 06 20 24 ld [ %i0 + 0x24 ], %o5 200ceac: 80 a3 40 02 cmp %o5, %g2 200ceb0: 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 ) ) { 200ceb4: 80 a3 60 00 cmp %o5, 0 200ceb8: 02 80 00 5e be 200d030 <_Heap_Free+0x1e0> <== NEVER TAKEN 200cebc: 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; 200cec0: da 00 a0 04 ld [ %g2 + 4 ], %o5 _HAssert( false ); return false; } if ( !_Heap_Is_prev_used( next_block ) ) { 200cec4: 80 8b 60 01 btst 1, %o5 200cec8: 02 80 00 5a be 200d030 <_Heap_Free+0x1e0> <== NEVER TAKEN 200cecc: 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 )); 200ced0: 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 200ced4: 80 a0 80 09 cmp %g2, %o1 200ced8: 02 80 00 06 be 200cef0 <_Heap_Free+0xa0> 200cedc: 96 10 20 00 clr %o3 200cee0: 98 00 80 0d add %g2, %o5, %o4 200cee4: d6 03 20 04 ld [ %o4 + 4 ], %o3 200cee8: 96 0a e0 01 and %o3, 1, %o3 200ceec: 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 ) ) { 200cef0: 80 89 20 01 btst 1, %g4 200cef4: 12 80 00 26 bne 200cf8c <_Heap_Free+0x13c> 200cef8: 80 a2 e0 00 cmp %o3, 0 uintptr_t const prev_size = block->prev_size; 200cefc: 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); 200cf00: 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 200cf04: 80 a1 00 01 cmp %g4, %g1 200cf08: 0a 80 00 04 bcs 200cf18 <_Heap_Free+0xc8> <== NEVER TAKEN 200cf0c: 94 10 20 00 clr %o2 200cf10: 80 a2 40 04 cmp %o1, %g4 200cf14: 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 ) ) { 200cf18: 80 a2 a0 00 cmp %o2, 0 200cf1c: 02 80 00 45 be 200d030 <_Heap_Free+0x1e0> <== NEVER TAKEN 200cf20: 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) ) { 200cf24: c2 01 20 04 ld [ %g4 + 4 ], %g1 200cf28: 80 88 60 01 btst 1, %g1 200cf2c: 02 80 00 41 be 200d030 <_Heap_Free+0x1e0> <== NEVER TAKEN 200cf30: 80 a2 e0 00 cmp %o3, 0 _HAssert( false ); return( false ); } if ( next_is_free ) { /* coalesce both */ 200cf34: 22 80 00 0f be,a 200cf70 <_Heap_Free+0x120> 200cf38: 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; 200cf3c: 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; 200cf40: 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; 200cf44: c4 00 a0 08 ld [ %g2 + 8 ], %g2 200cf48: 82 00 7f ff add %g1, -1, %g1 200cf4c: 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; 200cf50: 9a 00 c0 0d add %g3, %o5, %o5 Heap_Block *prev = block->prev; prev->next = next; next->prev = prev; 200cf54: d6 20 a0 0c st %o3, [ %g2 + 0xc ] 200cf58: 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; 200cf5c: 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; 200cf60: 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; 200cf64: 98 13 20 01 or %o4, 1, %o4 200cf68: 10 80 00 27 b 200d004 <_Heap_Free+0x1b4> 200cf6c: 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; 200cf70: 82 13 20 01 or %o4, 1, %g1 200cf74: c2 21 20 04 st %g1, [ %g4 + 4 ] next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; 200cf78: c2 00 a0 04 ld [ %g2 + 4 ], %g1 next_block->prev_size = size; 200cf7c: 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; 200cf80: 82 08 7f fe and %g1, -2, %g1 200cf84: 10 80 00 20 b 200d004 <_Heap_Free+0x1b4> 200cf88: c2 20 a0 04 st %g1, [ %g2 + 4 ] next_block->prev_size = size; } } else if ( next_is_free ) { /* coalesce next */ 200cf8c: 02 80 00 0d be 200cfc0 <_Heap_Free+0x170> 200cf90: 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; 200cf94: 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; 200cf98: c4 00 a0 08 ld [ %g2 + 8 ], %g2 Heap_Block *prev = old_block->prev; new_block->next = next; new_block->prev = prev; 200cf9c: c2 22 20 0c st %g1, [ %o0 + 0xc ] ) { Heap_Block *next = old_block->next; Heap_Block *prev = old_block->prev; new_block->next = next; 200cfa0: c4 22 20 08 st %g2, [ %o0 + 8 ] new_block->prev = prev; next->prev = new_block; prev->next = new_block; 200cfa4: 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; 200cfa8: d0 20 a0 0c st %o0, [ %g2 + 0xc ] uintptr_t const size = block_size + next_block_size; 200cfac: 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; 200cfb0: 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; 200cfb4: 82 10 60 01 or %g1, 1, %g1 200cfb8: 10 80 00 13 b 200d004 <_Heap_Free+0x1b4> 200cfbc: 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; 200cfc0: c2 22 20 04 st %g1, [ %o0 + 4 ] next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; 200cfc4: 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; 200cfc8: c8 06 20 08 ld [ %i0 + 8 ], %g4 200cfcc: 82 08 7f fe and %g1, -2, %g1 next_block->prev_size = block_size; 200cfd0: 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; 200cfd4: c2 20 a0 04 st %g1, [ %g2 + 4 ] next_block->prev_size = block_size; /* Statistics */ ++stats->free_blocks; 200cfd8: c2 06 20 38 ld [ %i0 + 0x38 ], %g1 new_block->next = next; 200cfdc: c8 22 20 08 st %g4, [ %o0 + 8 ] new_block->prev = block_before; 200cfe0: 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; 200cfe4: 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; 200cfe8: 82 00 60 01 inc %g1 block_before->next = new_block; next->prev = new_block; 200cfec: 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; 200cff0: 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; 200cff4: 80 a0 80 01 cmp %g2, %g1 200cff8: 1a 80 00 03 bcc 200d004 <_Heap_Free+0x1b4> 200cffc: 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; 200d000: c2 26 20 3c st %g1, [ %i0 + 0x3c ] } } /* Statistics */ --stats->used_blocks; 200d004: c4 06 20 40 ld [ %i0 + 0x40 ], %g2 ++stats->frees; 200d008: c2 06 20 50 ld [ %i0 + 0x50 ], %g1 stats->free_size += block_size; 200d00c: c8 06 20 30 ld [ %i0 + 0x30 ], %g4 stats->max_free_blocks = stats->free_blocks; } } /* Statistics */ --stats->used_blocks; 200d010: 84 00 bf ff add %g2, -1, %g2 ++stats->frees; stats->free_size += block_size; 200d014: 86 01 00 03 add %g4, %g3, %g3 stats->max_free_blocks = stats->free_blocks; } } /* Statistics */ --stats->used_blocks; 200d018: c4 26 20 40 st %g2, [ %i0 + 0x40 ] ++stats->frees; stats->free_size += block_size; 200d01c: c6 26 20 30 st %g3, [ %i0 + 0x30 ] } } /* Statistics */ --stats->used_blocks; ++stats->frees; 200d020: 82 00 60 01 inc %g1 200d024: c2 26 20 50 st %g1, [ %i0 + 0x50 ] stats->free_size += block_size; return( true ); 200d028: 81 c7 e0 08 ret 200d02c: 91 e8 20 01 restore %g0, 1, %o0 } 200d030: 81 c7 e0 08 ret 200d034: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 0201a690 <_Heap_Size_of_alloc_area>: bool _Heap_Size_of_alloc_area( Heap_Control *heap, void *alloc_begin_ptr, uintptr_t *alloc_size ) { 201a690: 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 ) 201a694: d2 06 20 10 ld [ %i0 + 0x10 ], %o1 201a698: 7f ff f9 a0 call 2018d18 <.urem> 201a69c: 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; 201a6a0: 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 ) 201a6a4: 84 06 7f f8 add %i1, -8, %g2 201a6a8: 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 201a6ac: 80 a2 00 01 cmp %o0, %g1 201a6b0: 0a 80 00 05 bcs 201a6c4 <_Heap_Size_of_alloc_area+0x34> 201a6b4: 84 10 20 00 clr %g2 201a6b8: c4 06 20 24 ld [ %i0 + 0x24 ], %g2 201a6bc: 80 a0 80 08 cmp %g2, %o0 201a6c0: 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 ) ) { 201a6c4: 80 a0 a0 00 cmp %g2, 0 201a6c8: 02 80 00 16 be 201a720 <_Heap_Size_of_alloc_area+0x90> 201a6cc: 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); 201a6d0: c4 02 20 04 ld [ %o0 + 4 ], %g2 201a6d4: 84 08 bf fe and %g2, -2, %g2 201a6d8: 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 201a6dc: 80 a0 80 01 cmp %g2, %g1 201a6e0: 0a 80 00 05 bcs 201a6f4 <_Heap_Size_of_alloc_area+0x64> <== NEVER TAKEN 201a6e4: 86 10 20 00 clr %g3 201a6e8: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 201a6ec: 80 a0 40 02 cmp %g1, %g2 201a6f0: 86 60 3f ff subx %g0, -1, %g3 } block_size = _Heap_Block_size( block ); next_block = _Heap_Block_at( block, block_size ); if ( 201a6f4: 80 a0 e0 00 cmp %g3, 0 201a6f8: 02 80 00 0a be 201a720 <_Heap_Size_of_alloc_area+0x90> <== NEVER TAKEN 201a6fc: 01 00 00 00 nop 201a700: c2 00 a0 04 ld [ %g2 + 4 ], %g1 201a704: 80 88 60 01 btst 1, %g1 201a708: 02 80 00 06 be 201a720 <_Heap_Size_of_alloc_area+0x90> <== NEVER TAKEN 201a70c: 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; 201a710: 84 00 a0 04 add %g2, 4, %g2 201a714: c4 26 80 00 st %g2, [ %i2 ] return true; 201a718: 81 c7 e0 08 ret 201a71c: 91 e8 20 01 restore %g0, 1, %o0 } 201a720: 81 c7 e0 08 ret 201a724: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 02008414 <_Heap_Walk>: bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) { 2008414: 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; 2008418: 23 00 80 22 sethi %hi(0x2008800), %l1 200841c: 80 8e a0 ff btst 0xff, %i2 2008420: a2 14 60 ec or %l1, 0xec, %l1 Heap_Control *heap, int source, bool dump ) { uintptr_t const page_size = heap->page_size; 2008424: e4 06 20 10 ld [ %i0 + 0x10 ], %l2 uintptr_t const min_block_size = heap->min_block_size; 2008428: e6 06 20 14 ld [ %i0 + 0x14 ], %l3 Heap_Block *const last_block = heap->last_block; 200842c: 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; 2008430: 12 80 00 04 bne 2008440 <_Heap_Walk+0x2c> 2008434: e0 06 20 20 ld [ %i0 + 0x20 ], %l0 2008438: 23 00 80 21 sethi %hi(0x2008400), %l1 200843c: a2 14 60 0c or %l1, 0xc, %l1 ! 200840c <_Heap_Walk_print_nothing> if ( !_System_state_Is_up( _System_state_Get() ) ) { 2008440: 03 00 80 7d sethi %hi(0x201f400), %g1 2008444: c2 00 62 10 ld [ %g1 + 0x210 ], %g1 ! 201f610 <_System_state_Current> 2008448: 80 a0 60 03 cmp %g1, 3 200844c: 12 80 01 1e bne 20088c4 <_Heap_Walk+0x4b0> 2008450: 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)( 2008454: da 06 20 18 ld [ %i0 + 0x18 ], %o5 2008458: c6 06 20 1c ld [ %i0 + 0x1c ], %g3 200845c: c4 06 20 08 ld [ %i0 + 8 ], %g2 2008460: c2 06 20 0c ld [ %i0 + 0xc ], %g1 2008464: c6 23 a0 5c st %g3, [ %sp + 0x5c ] 2008468: c4 23 a0 68 st %g2, [ %sp + 0x68 ] 200846c: c2 23 a0 6c st %g1, [ %sp + 0x6c ] 2008470: e0 23 a0 60 st %l0, [ %sp + 0x60 ] 2008474: e8 23 a0 64 st %l4, [ %sp + 0x64 ] 2008478: 92 10 20 00 clr %o1 200847c: 15 00 80 71 sethi %hi(0x201c400), %o2 2008480: 96 10 00 12 mov %l2, %o3 2008484: 94 12 a1 70 or %o2, 0x170, %o2 2008488: 9f c4 40 00 call %l1 200848c: 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 ) { 2008490: 80 a4 a0 00 cmp %l2, 0 2008494: 12 80 00 07 bne 20084b0 <_Heap_Walk+0x9c> 2008498: 80 8c a0 07 btst 7, %l2 (*printer)( source, true, "page size is zero\n" ); 200849c: 15 00 80 71 sethi %hi(0x201c400), %o2 20084a0: 90 10 00 19 mov %i1, %o0 20084a4: 92 10 20 01 mov 1, %o1 20084a8: 10 80 00 27 b 2008544 <_Heap_Walk+0x130> 20084ac: 94 12 a2 08 or %o2, 0x208, %o2 return false; } if ( !_Addresses_Is_aligned( (void *) page_size ) ) { 20084b0: 22 80 00 08 be,a 20084d0 <_Heap_Walk+0xbc> 20084b4: 90 10 00 13 mov %l3, %o0 (*printer)( 20084b8: 15 00 80 71 sethi %hi(0x201c400), %o2 20084bc: 90 10 00 19 mov %i1, %o0 20084c0: 96 10 00 12 mov %l2, %o3 20084c4: 92 10 20 01 mov 1, %o1 20084c8: 10 80 01 05 b 20088dc <_Heap_Walk+0x4c8> 20084cc: 94 12 a2 20 or %o2, 0x220, %o2 ); return false; } if ( !_Heap_Is_aligned( min_block_size, page_size ) ) { 20084d0: 7f ff e5 82 call 2001ad8 <.urem> 20084d4: 92 10 00 12 mov %l2, %o1 20084d8: 80 a2 20 00 cmp %o0, 0 20084dc: 22 80 00 08 be,a 20084fc <_Heap_Walk+0xe8> 20084e0: 90 04 20 08 add %l0, 8, %o0 (*printer)( 20084e4: 15 00 80 71 sethi %hi(0x201c400), %o2 20084e8: 90 10 00 19 mov %i1, %o0 20084ec: 96 10 00 13 mov %l3, %o3 20084f0: 92 10 20 01 mov 1, %o1 20084f4: 10 80 00 fa b 20088dc <_Heap_Walk+0x4c8> 20084f8: 94 12 a2 40 or %o2, 0x240, %o2 ); return false; } if ( 20084fc: 7f ff e5 77 call 2001ad8 <.urem> 2008500: 92 10 00 12 mov %l2, %o1 2008504: 80 a2 20 00 cmp %o0, 0 2008508: 22 80 00 08 be,a 2008528 <_Heap_Walk+0x114> 200850c: c2 04 20 04 ld [ %l0 + 4 ], %g1 !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size ) ) { (*printer)( 2008510: 15 00 80 71 sethi %hi(0x201c400), %o2 2008514: 90 10 00 19 mov %i1, %o0 2008518: 96 10 00 10 mov %l0, %o3 200851c: 92 10 20 01 mov 1, %o1 2008520: 10 80 00 ef b 20088dc <_Heap_Walk+0x4c8> 2008524: 94 12 a2 68 or %o2, 0x268, %o2 ); return false; } if ( !_Heap_Is_prev_used( first_block ) ) { 2008528: 80 88 60 01 btst 1, %g1 200852c: 32 80 00 09 bne,a 2008550 <_Heap_Walk+0x13c> 2008530: ea 04 00 00 ld [ %l0 ], %l5 (*printer)( 2008534: 15 00 80 71 sethi %hi(0x201c400), %o2 2008538: 90 10 00 19 mov %i1, %o0 200853c: 92 10 20 01 mov 1, %o1 2008540: 94 12 a2 a0 or %o2, 0x2a0, %o2 2008544: 9f c4 40 00 call %l1 2008548: b0 10 20 00 clr %i0 200854c: 30 80 00 e6 b,a 20088e4 <_Heap_Walk+0x4d0> ); return false; } if ( first_block->prev_size != page_size ) { 2008550: 80 a5 40 12 cmp %l5, %l2 2008554: 22 80 00 09 be,a 2008578 <_Heap_Walk+0x164> 2008558: c2 05 20 04 ld [ %l4 + 4 ], %g1 (*printer)( 200855c: 15 00 80 71 sethi %hi(0x201c400), %o2 2008560: 90 10 00 19 mov %i1, %o0 2008564: 96 10 00 15 mov %l5, %o3 2008568: 98 10 00 12 mov %l2, %o4 200856c: 92 10 20 01 mov 1, %o1 2008570: 10 80 00 88 b 2008790 <_Heap_Walk+0x37c> 2008574: 94 12 a2 d0 or %o2, 0x2d0, %o2 ); return false; } if ( _Heap_Is_free( last_block ) ) { 2008578: 82 08 7f fe and %g1, -2, %g1 200857c: 82 05 00 01 add %l4, %g1, %g1 2008580: c2 00 60 04 ld [ %g1 + 4 ], %g1 2008584: 80 88 60 01 btst 1, %g1 2008588: 32 80 00 07 bne,a 20085a4 <_Heap_Walk+0x190> 200858c: d6 06 20 08 ld [ %i0 + 8 ], %o3 (*printer)( 2008590: 15 00 80 71 sethi %hi(0x201c400), %o2 2008594: 90 10 00 19 mov %i1, %o0 2008598: 92 10 20 01 mov 1, %o1 200859c: 10 bf ff ea b 2008544 <_Heap_Walk+0x130> 20085a0: 94 12 a3 00 or %o2, 0x300, %o2 int source, Heap_Walk_printer printer, Heap_Control *heap ) { uintptr_t const page_size = heap->page_size; 20085a4: 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; 20085a8: a4 10 00 18 mov %i0, %l2 20085ac: 10 80 00 32 b 2008674 <_Heap_Walk+0x260> 20085b0: 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 20085b4: 80 a0 80 17 cmp %g2, %l7 20085b8: 18 80 00 05 bgu 20085cc <_Heap_Walk+0x1b8> 20085bc: 82 10 20 00 clr %g1 20085c0: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 20085c4: 80 a0 40 17 cmp %g1, %l7 20085c8: 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 ) ) { 20085cc: 80 a0 60 00 cmp %g1, 0 20085d0: 32 80 00 08 bne,a 20085f0 <_Heap_Walk+0x1dc> 20085d4: 90 05 e0 08 add %l7, 8, %o0 (*printer)( 20085d8: 15 00 80 71 sethi %hi(0x201c400), %o2 20085dc: 96 10 00 17 mov %l7, %o3 20085e0: 90 10 00 19 mov %i1, %o0 20085e4: 92 10 20 01 mov 1, %o1 20085e8: 10 80 00 bd b 20088dc <_Heap_Walk+0x4c8> 20085ec: 94 12 a3 18 or %o2, 0x318, %o2 ); return false; } if ( 20085f0: 7f ff e5 3a call 2001ad8 <.urem> 20085f4: 92 10 00 16 mov %l6, %o1 20085f8: 80 a2 20 00 cmp %o0, 0 20085fc: 22 80 00 08 be,a 200861c <_Heap_Walk+0x208> 2008600: c2 05 e0 04 ld [ %l7 + 4 ], %g1 !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size ) ) { (*printer)( 2008604: 15 00 80 71 sethi %hi(0x201c400), %o2 2008608: 96 10 00 17 mov %l7, %o3 200860c: 90 10 00 19 mov %i1, %o0 2008610: 92 10 20 01 mov 1, %o1 2008614: 10 80 00 b2 b 20088dc <_Heap_Walk+0x4c8> 2008618: 94 12 a3 38 or %o2, 0x338, %o2 ); return false; } if ( _Heap_Is_used( free_block ) ) { 200861c: 82 08 7f fe and %g1, -2, %g1 2008620: 82 05 c0 01 add %l7, %g1, %g1 2008624: c2 00 60 04 ld [ %g1 + 4 ], %g1 2008628: 80 88 60 01 btst 1, %g1 200862c: 22 80 00 08 be,a 200864c <_Heap_Walk+0x238> 2008630: d8 05 e0 0c ld [ %l7 + 0xc ], %o4 (*printer)( 2008634: 15 00 80 71 sethi %hi(0x201c400), %o2 2008638: 96 10 00 17 mov %l7, %o3 200863c: 90 10 00 19 mov %i1, %o0 2008640: 92 10 20 01 mov 1, %o1 2008644: 10 80 00 a6 b 20088dc <_Heap_Walk+0x4c8> 2008648: 94 12 a3 68 or %o2, 0x368, %o2 ); return false; } if ( free_block->prev != prev_block ) { 200864c: 80 a3 00 12 cmp %o4, %l2 2008650: 02 80 00 08 be 2008670 <_Heap_Walk+0x25c> 2008654: a4 10 00 17 mov %l7, %l2 (*printer)( 2008658: 15 00 80 71 sethi %hi(0x201c400), %o2 200865c: 96 10 00 17 mov %l7, %o3 2008660: 90 10 00 19 mov %i1, %o0 2008664: 92 10 20 01 mov 1, %o1 2008668: 10 80 00 4a b 2008790 <_Heap_Walk+0x37c> 200866c: 94 12 a3 88 or %o2, 0x388, %o2 return false; } prev_block = free_block; free_block = free_block->next; 2008670: 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 ) { 2008674: 80 a5 c0 18 cmp %l7, %i0 2008678: 32 bf ff cf bne,a 20085b4 <_Heap_Walk+0x1a0> 200867c: c4 06 20 20 ld [ %i0 + 0x20 ], %g2 "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( 2008680: 10 80 00 89 b 20088a4 <_Heap_Walk+0x490> 2008684: 37 00 80 71 sethi %hi(0x201c400), %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 ) { 2008688: 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; 200868c: ac 0d bf fe and %l6, -2, %l6 2008690: 02 80 00 0a be 20086b8 <_Heap_Walk+0x2a4> 2008694: a4 04 00 16 add %l0, %l6, %l2 (*printer)( 2008698: 90 10 00 19 mov %i1, %o0 200869c: 92 10 20 00 clr %o1 20086a0: 94 10 00 1a mov %i2, %o2 20086a4: 96 10 00 10 mov %l0, %o3 20086a8: 9f c4 40 00 call %l1 20086ac: 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 20086b0: 10 80 00 0a b 20086d8 <_Heap_Walk+0x2c4> 20086b4: c4 06 20 20 ld [ %i0 + 0x20 ], %g2 "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( 20086b8: da 04 00 00 ld [ %l0 ], %o5 20086bc: 90 10 00 19 mov %i1, %o0 20086c0: 92 10 20 00 clr %o1 20086c4: 94 10 00 1b mov %i3, %o2 20086c8: 96 10 00 10 mov %l0, %o3 20086cc: 9f c4 40 00 call %l1 20086d0: 98 10 00 16 mov %l6, %o4 20086d4: c4 06 20 20 ld [ %i0 + 0x20 ], %g2 20086d8: 80 a0 80 12 cmp %g2, %l2 20086dc: 18 80 00 05 bgu 20086f0 <_Heap_Walk+0x2dc> <== NEVER TAKEN 20086e0: 82 10 20 00 clr %g1 20086e4: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 20086e8: 80 a0 40 12 cmp %g1, %l2 20086ec: 82 60 3f ff subx %g0, -1, %g1 block_size, block->prev_size ); } if ( !_Heap_Is_block_in_heap( heap, next_block ) ) { 20086f0: 80 a0 60 00 cmp %g1, 0 20086f4: 32 80 00 09 bne,a 2008718 <_Heap_Walk+0x304> 20086f8: 90 10 00 16 mov %l6, %o0 (*printer)( 20086fc: 15 00 80 72 sethi %hi(0x201c800), %o2 2008700: 90 10 00 19 mov %i1, %o0 2008704: 96 10 00 10 mov %l0, %o3 2008708: 98 10 00 12 mov %l2, %o4 200870c: 92 10 20 01 mov 1, %o1 2008710: 10 80 00 20 b 2008790 <_Heap_Walk+0x37c> 2008714: 94 12 a0 00 mov %o2, %o2 ); return false; } if ( !_Heap_Is_aligned( block_size, page_size ) ) { 2008718: 7f ff e4 f0 call 2001ad8 <.urem> 200871c: 92 10 00 15 mov %l5, %o1 2008720: 80 a2 20 00 cmp %o0, 0 2008724: 02 80 00 09 be 2008748 <_Heap_Walk+0x334> 2008728: 80 a5 80 13 cmp %l6, %l3 (*printer)( 200872c: 15 00 80 72 sethi %hi(0x201c800), %o2 2008730: 90 10 00 19 mov %i1, %o0 2008734: 96 10 00 10 mov %l0, %o3 2008738: 98 10 00 16 mov %l6, %o4 200873c: 92 10 20 01 mov 1, %o1 2008740: 10 80 00 14 b 2008790 <_Heap_Walk+0x37c> 2008744: 94 12 a0 30 or %o2, 0x30, %o2 ); return false; } if ( block_size < min_block_size ) { 2008748: 1a 80 00 0a bcc 2008770 <_Heap_Walk+0x35c> 200874c: 80 a4 80 10 cmp %l2, %l0 (*printer)( 2008750: 15 00 80 72 sethi %hi(0x201c800), %o2 2008754: 90 10 00 19 mov %i1, %o0 2008758: 96 10 00 10 mov %l0, %o3 200875c: 98 10 00 16 mov %l6, %o4 2008760: 9a 10 00 13 mov %l3, %o5 2008764: 92 10 20 01 mov 1, %o1 2008768: 10 80 00 3b b 2008854 <_Heap_Walk+0x440> 200876c: 94 12 a0 60 or %o2, 0x60, %o2 ); return false; } if ( next_block_begin <= block_begin ) { 2008770: 38 80 00 0b bgu,a 200879c <_Heap_Walk+0x388> 2008774: c2 04 a0 04 ld [ %l2 + 4 ], %g1 (*printer)( 2008778: 15 00 80 72 sethi %hi(0x201c800), %o2 200877c: 90 10 00 19 mov %i1, %o0 2008780: 96 10 00 10 mov %l0, %o3 2008784: 98 10 00 12 mov %l2, %o4 2008788: 92 10 20 01 mov 1, %o1 200878c: 94 12 a0 90 or %o2, 0x90, %o2 2008790: 9f c4 40 00 call %l1 2008794: b0 10 20 00 clr %i0 2008798: 30 80 00 53 b,a 20088e4 <_Heap_Walk+0x4d0> ); return false; } if ( !_Heap_Is_prev_used( next_block ) ) { 200879c: 80 88 60 01 btst 1, %g1 20087a0: 32 80 00 46 bne,a 20088b8 <_Heap_Walk+0x4a4> 20087a4: 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; 20087a8: 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)( 20087ac: 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; 20087b0: 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; 20087b4: 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; 20087b8: 1b 00 80 72 sethi %hi(0x201c800), %o5 20087bc: 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; 20087c0: 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); 20087c4: 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; 20087c8: 02 80 00 07 be 20087e4 <_Heap_Walk+0x3d0> 20087cc: 9a 13 60 c8 or %o5, 0xc8, %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)" : ""), 20087d0: 1b 00 80 72 sethi %hi(0x201c800), %o5 20087d4: 80 a3 00 18 cmp %o4, %i0 20087d8: 02 80 00 03 be 20087e4 <_Heap_Walk+0x3d0> 20087dc: 9a 13 60 e0 or %o5, 0xe0, %o5 20087e0: 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)( 20087e4: c4 04 20 08 ld [ %l0 + 8 ], %g2 20087e8: 03 00 80 72 sethi %hi(0x201c800), %g1 20087ec: 80 a0 80 03 cmp %g2, %g3 20087f0: 02 80 00 07 be 200880c <_Heap_Walk+0x3f8> 20087f4: 82 10 60 f0 or %g1, 0xf0, %g1 " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") 20087f8: 03 00 80 72 sethi %hi(0x201c800), %g1 20087fc: 80 a0 80 18 cmp %g2, %i0 2008800: 02 80 00 03 be 200880c <_Heap_Walk+0x3f8> 2008804: 82 10 61 00 or %g1, 0x100, %g1 2008808: 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)( 200880c: c4 23 a0 5c st %g2, [ %sp + 0x5c ] 2008810: c2 23 a0 60 st %g1, [ %sp + 0x60 ] 2008814: 90 10 00 19 mov %i1, %o0 2008818: 92 10 20 00 clr %o1 200881c: 15 00 80 72 sethi %hi(0x201c800), %o2 2008820: 96 10 00 10 mov %l0, %o3 2008824: 9f c4 40 00 call %l1 2008828: 94 12 a1 10 or %o2, 0x110, %o2 block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") ); if ( block_size != next_block->prev_size ) { 200882c: da 05 c0 00 ld [ %l7 ], %o5 2008830: 80 a5 80 0d cmp %l6, %o5 2008834: 02 80 00 0b be 2008860 <_Heap_Walk+0x44c> 2008838: 15 00 80 72 sethi %hi(0x201c800), %o2 (*printer)( 200883c: ee 23 a0 5c st %l7, [ %sp + 0x5c ] 2008840: 90 10 00 19 mov %i1, %o0 2008844: 96 10 00 10 mov %l0, %o3 2008848: 98 10 00 16 mov %l6, %o4 200884c: 92 10 20 01 mov 1, %o1 2008850: 94 12 a1 40 or %o2, 0x140, %o2 2008854: 9f c4 40 00 call %l1 2008858: b0 10 20 00 clr %i0 200885c: 30 80 00 22 b,a 20088e4 <_Heap_Walk+0x4d0> ); return false; } if ( !prev_used ) { 2008860: 80 8f 60 01 btst 1, %i5 2008864: 32 80 00 0b bne,a 2008890 <_Heap_Walk+0x47c> 2008868: c2 06 20 08 ld [ %i0 + 8 ], %g1 (*printer)( 200886c: 15 00 80 72 sethi %hi(0x201c800), %o2 2008870: 90 10 00 19 mov %i1, %o0 2008874: 96 10 00 10 mov %l0, %o3 2008878: 92 10 20 01 mov 1, %o1 200887c: 10 80 00 18 b 20088dc <_Heap_Walk+0x4c8> 2008880: 94 12 a1 80 or %o2, 0x180, %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 ) { 2008884: 22 80 00 0d be,a 20088b8 <_Heap_Walk+0x4a4> 2008888: a0 10 00 12 mov %l2, %l0 return true; } free_block = free_block->next; 200888c: 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 ) { 2008890: 80 a0 40 18 cmp %g1, %i0 2008894: 12 bf ff fc bne 2008884 <_Heap_Walk+0x470> 2008898: 80 a0 40 10 cmp %g1, %l0 return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( 200889c: 10 80 00 0c b 20088cc <_Heap_Walk+0x4b8> 20088a0: 15 00 80 72 sethi %hi(0x201c800), %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)( 20088a4: 35 00 80 71 sethi %hi(0x201c400), %i2 " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") 20088a8: 39 00 80 72 sethi %hi(0x201c800), %i4 "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( 20088ac: b6 16 e3 d8 or %i3, 0x3d8, %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)( 20088b0: b4 16 a3 c0 or %i2, 0x3c0, %i2 " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") 20088b4: b8 17 20 d8 or %i4, 0xd8, %i4 if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { 20088b8: 80 a4 00 14 cmp %l0, %l4 20088bc: 32 bf ff 73 bne,a 2008688 <_Heap_Walk+0x274> 20088c0: ec 04 20 04 ld [ %l0 + 4 ], %l6 block = next_block; } return true; } 20088c4: 81 c7 e0 08 ret 20088c8: 91 e8 20 01 restore %g0, 1, %o0 return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( 20088cc: 90 10 00 19 mov %i1, %o0 20088d0: 96 10 00 10 mov %l0, %o3 20088d4: 92 10 20 01 mov 1, %o1 20088d8: 94 12 a1 b0 or %o2, 0x1b0, %o2 20088dc: 9f c4 40 00 call %l1 20088e0: b0 10 20 00 clr %i0 20088e4: 81 c7 e0 08 ret 20088e8: 81 e8 00 00 restore =============================================================================== 020012c0 <_Message_queue_Manager_initialization>: #include #include void _Message_queue_Manager_initialization(void) { } 20012c0: 81 c3 e0 08 retl =============================================================================== 020076a8 <_Objects_Allocate>: */ Objects_Control *_Objects_Allocate( Objects_Information *information ) { 20076a8: 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 ) 20076ac: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 */ Objects_Control *_Objects_Allocate( Objects_Information *information ) { 20076b0: 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 ) 20076b4: 80 a0 60 00 cmp %g1, 0 20076b8: 02 80 00 20 be 2007738 <_Objects_Allocate+0x90> <== NEVER TAKEN 20076bc: 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 ); 20076c0: a2 04 20 20 add %l0, 0x20, %l1 20076c4: 7f ff fd 8f call 2006d00 <_Chain_Get> 20076c8: 90 10 00 11 mov %l1, %o0 if ( information->auto_extend ) { 20076cc: c2 0c 20 12 ldub [ %l0 + 0x12 ], %g1 20076d0: 80 a0 60 00 cmp %g1, 0 20076d4: 02 80 00 19 be 2007738 <_Objects_Allocate+0x90> 20076d8: 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 ) { 20076dc: 80 a2 20 00 cmp %o0, 0 20076e0: 32 80 00 0a bne,a 2007708 <_Objects_Allocate+0x60> 20076e4: c2 14 20 0a lduh [ %l0 + 0xa ], %g1 _Objects_Extend_information( information ); 20076e8: 40 00 00 1e call 2007760 <_Objects_Extend_information> 20076ec: 90 10 00 10 mov %l0, %o0 the_object = (Objects_Control *) _Chain_Get( &information->Inactive ); 20076f0: 7f ff fd 84 call 2006d00 <_Chain_Get> 20076f4: 90 10 00 11 mov %l1, %o0 } if ( the_object ) { 20076f8: b0 92 20 00 orcc %o0, 0, %i0 20076fc: 02 80 00 0f be 2007738 <_Objects_Allocate+0x90> 2007700: 01 00 00 00 nop uint32_t block; block = (uint32_t) _Objects_Get_index( the_object->id ) - 2007704: c2 14 20 0a lduh [ %l0 + 0xa ], %g1 2007708: d0 16 20 0a lduh [ %i0 + 0xa ], %o0 _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; 200770c: d2 14 20 14 lduh [ %l0 + 0x14 ], %o1 2007710: 40 00 44 d6 call 2018a68 <.udiv> 2007714: 90 22 00 01 sub %o0, %g1, %o0 2007718: c2 04 20 30 ld [ %l0 + 0x30 ], %g1 200771c: 91 2a 20 02 sll %o0, 2, %o0 information->inactive--; 2007720: 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 ]--; 2007724: c4 00 40 08 ld [ %g1 + %o0 ], %g2 information->inactive--; 2007728: 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 ]--; 200772c: 84 00 bf ff add %g2, -1, %g2 information->inactive--; 2007730: 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 ]--; 2007734: c4 20 40 08 st %g2, [ %g1 + %o0 ] information->inactive--; } } return the_object; } 2007738: 81 c7 e0 08 ret 200773c: 81 e8 00 00 restore =============================================================================== 02007760 <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) { 2007760: 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 ) 2007764: e4 06 20 34 ld [ %i0 + 0x34 ], %l2 2007768: 80 a4 a0 00 cmp %l2, 0 200776c: 12 80 00 06 bne 2007784 <_Objects_Extend_information+0x24> 2007770: e6 16 20 0a lduh [ %i0 + 0xa ], %l3 2007774: a0 10 00 13 mov %l3, %l0 2007778: a2 10 20 00 clr %l1 200777c: 10 80 00 15 b 20077d0 <_Objects_Extend_information+0x70> 2007780: a8 10 20 00 clr %l4 block_count = 0; else { block_count = information->maximum / information->allocation_size; 2007784: e2 16 20 14 lduh [ %i0 + 0x14 ], %l1 2007788: d0 16 20 10 lduh [ %i0 + 0x10 ], %o0 200778c: 40 00 44 b7 call 2018a68 <.udiv> 2007790: 92 10 00 11 mov %l1, %o1 for ( ; block < block_count; block++ ) { if ( information->object_blocks[ block ] == NULL ) 2007794: 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; 2007798: 91 2a 20 10 sll %o0, 0x10, %o0 200779c: a0 10 00 13 mov %l3, %l0 20077a0: a9 32 20 10 srl %o0, 0x10, %l4 for ( ; block < block_count; block++ ) { 20077a4: 10 80 00 08 b 20077c4 <_Objects_Extend_information+0x64> 20077a8: a2 10 20 00 clr %l1 if ( information->object_blocks[ block ] == NULL ) 20077ac: c4 04 80 02 ld [ %l2 + %g2 ], %g2 20077b0: 80 a0 a0 00 cmp %g2, 0 20077b4: 22 80 00 08 be,a 20077d4 <_Objects_Extend_information+0x74> 20077b8: d0 16 20 14 lduh [ %i0 + 0x14 ], %o0 20077bc: 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++ ) { 20077c0: a2 04 60 01 inc %l1 20077c4: 80 a4 40 14 cmp %l1, %l4 20077c8: 0a bf ff f9 bcs 20077ac <_Objects_Extend_information+0x4c> 20077cc: 85 2c 60 02 sll %l1, 2, %g2 else index_base += information->allocation_size; } } maximum = (uint32_t) information->maximum + information->allocation_size; 20077d0: d0 16 20 14 lduh [ %i0 + 0x14 ], %o0 20077d4: 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 ) { 20077d8: 03 00 00 3f sethi %hi(0xfc00), %g1 else index_base += information->allocation_size; } } maximum = (uint32_t) information->maximum + information->allocation_size; 20077dc: 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 ) { 20077e0: 82 10 63 ff or %g1, 0x3ff, %g1 20077e4: 80 a5 80 01 cmp %l6, %g1 20077e8: 18 80 00 88 bgu 2007a08 <_Objects_Extend_information+0x2a8><== NEVER TAKEN 20077ec: 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; 20077f0: 40 00 44 64 call 2018980 <.umul> 20077f4: d2 06 20 18 ld [ %i0 + 0x18 ], %o1 if ( information->auto_extend ) { 20077f8: c2 0e 20 12 ldub [ %i0 + 0x12 ], %g1 20077fc: 80 a0 60 00 cmp %g1, 0 2007800: 02 80 00 09 be 2007824 <_Objects_Extend_information+0xc4> 2007804: 01 00 00 00 nop new_object_block = _Workspace_Allocate( block_size ); 2007808: 40 00 08 68 call 20099a8 <_Workspace_Allocate> 200780c: 01 00 00 00 nop if ( !new_object_block ) 2007810: a4 92 20 00 orcc %o0, 0, %l2 2007814: 32 80 00 08 bne,a 2007834 <_Objects_Extend_information+0xd4> 2007818: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1 200781c: 81 c7 e0 08 ret 2007820: 81 e8 00 00 restore return; } else { new_object_block = _Workspace_Allocate_or_fatal_error( block_size ); 2007824: 40 00 08 53 call 2009970 <_Workspace_Allocate_or_fatal_error> 2007828: 01 00 00 00 nop 200782c: 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 ) { 2007830: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1 2007834: 80 a4 00 01 cmp %l0, %g1 2007838: 2a 80 00 53 bcs,a 2007984 <_Objects_Extend_information+0x224> 200783c: 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 ); 2007840: 82 05 80 13 add %l6, %l3, %g1 */ /* * Up the block count and maximum */ block_count++; 2007844: 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 ); 2007848: 91 2d e0 01 sll %l7, 1, %o0 200784c: 90 02 00 17 add %o0, %l7, %o0 2007850: 90 00 40 08 add %g1, %o0, %o0 2007854: 40 00 08 55 call 20099a8 <_Workspace_Allocate> 2007858: 91 2a 20 02 sll %o0, 2, %o0 if ( !object_blocks ) { 200785c: aa 92 20 00 orcc %o0, 0, %l5 2007860: 32 80 00 06 bne,a 2007878 <_Objects_Extend_information+0x118> 2007864: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1 _Workspace_Free( new_object_block ); 2007868: 40 00 08 59 call 20099cc <_Workspace_Free> 200786c: 90 10 00 12 mov %l2, %o0 return; 2007870: 81 c7 e0 08 ret 2007874: 81 e8 00 00 restore } /* * Break the block into the various sections. */ inactive_per_block = (uint32_t *) _Addresses_Add_offset( 2007878: 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 ) { 200787c: 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); 2007880: ba 05 40 17 add %l5, %l7, %i5 2007884: 82 10 20 00 clr %g1 2007888: 08 80 00 14 bleu 20078d8 <_Objects_Extend_information+0x178> 200788c: 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, 2007890: d2 06 20 34 ld [ %i0 + 0x34 ], %o1 information->object_blocks, block_count * sizeof(void*) ); 2007894: 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, 2007898: 40 00 21 5d call 200fe0c 200789c: 94 10 00 1c mov %i4, %o2 information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, 20078a0: d2 06 20 30 ld [ %i0 + 0x30 ], %o1 20078a4: 94 10 00 1c mov %i4, %o2 20078a8: 40 00 21 59 call 200fe0c 20078ac: 90 10 00 1d mov %i5, %o0 information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, 20078b0: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1 20078b4: d2 06 20 1c ld [ %i0 + 0x1c ], %o1 20078b8: a6 04 c0 01 add %l3, %g1, %l3 20078bc: 90 10 00 17 mov %l7, %o0 20078c0: 40 00 21 53 call 200fe0c 20078c4: 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 ); 20078c8: 10 80 00 08 b 20078e8 <_Objects_Extend_information+0x188> 20078cc: 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++ ) { 20078d0: 82 00 60 01 inc %g1 local_table[ index ] = NULL; 20078d4: 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++ ) { 20078d8: 80 a0 40 13 cmp %g1, %l3 20078dc: 2a bf ff fd bcs,a 20078d0 <_Objects_Extend_information+0x170> 20078e0: 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 ); 20078e4: c6 16 20 14 lduh [ %i0 + 0x14 ], %g3 } /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; 20078e8: a9 2d 20 02 sll %l4, 2, %l4 inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); 20078ec: 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; 20078f0: c0 27 40 14 clr [ %i5 + %l4 ] } /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; 20078f4: c0 25 40 14 clr [ %l5 + %l4 ] inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); 20078f8: 86 04 00 03 add %l0, %g3, %g3 20078fc: 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 ; 2007900: 10 80 00 04 b 2007910 <_Objects_Extend_information+0x1b0> 2007904: 82 10 00 10 mov %l0, %g1 index < ( information->allocation_size + index_base ); index++ ) { 2007908: 82 00 60 01 inc %g1 200790c: 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 ; 2007910: 80 a0 40 03 cmp %g1, %g3 2007914: 2a bf ff fd bcs,a 2007908 <_Objects_Extend_information+0x1a8> 2007918: c0 20 80 00 clr [ %g2 ] index < ( information->allocation_size + index_base ); index++ ) { local_table[ index ] = NULL; } _ISR_Disable( level ); 200791c: 7f ff e9 aa call 2001fc4 2007920: 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( 2007924: c8 06 00 00 ld [ %i0 ], %g4 2007928: 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; 200792c: ec 36 20 10 sth %l6, [ %i0 + 0x10 ] information->maximum_id = _Objects_Build_id( 2007930: ad 2d a0 10 sll %l6, 0x10, %l6 local_table[ index ] = NULL; } _ISR_Disable( level ); old_tables = information->object_blocks; 2007934: 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( 2007938: 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; 200793c: fa 26 20 30 st %i5, [ %i0 + 0x30 ] information->local_table = local_table; 2007940: ee 26 20 1c st %l7, [ %i0 + 0x1c ] information->maximum = (Objects_Maximum) maximum; information->maximum_id = _Objects_Build_id( 2007944: 89 29 20 18 sll %g4, 0x18, %g4 2007948: 85 28 a0 1b sll %g2, 0x1b, %g2 _ISR_Disable( level ); old_tables = information->object_blocks; information->object_blocks = object_blocks; 200794c: 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( 2007950: 07 00 00 40 sethi %hi(0x10000), %g3 2007954: ac 11 00 03 or %g4, %g3, %l6 2007958: ac 15 80 02 or %l6, %g2, %l6 200795c: ac 15 80 01 or %l6, %g1, %l6 2007960: ec 26 20 0c st %l6, [ %i0 + 0xc ] information->the_class, _Objects_Local_node, information->maximum ); _ISR_Enable( level ); 2007964: 7f ff e9 9c call 2001fd4 2007968: 01 00 00 00 nop if ( old_tables ) 200796c: 80 a4 e0 00 cmp %l3, 0 2007970: 22 80 00 05 be,a 2007984 <_Objects_Extend_information+0x224> 2007974: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 _Workspace_Free( old_tables ); 2007978: 40 00 08 15 call 20099cc <_Workspace_Free> 200797c: 90 10 00 13 mov %l3, %o0 } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; 2007980: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 2007984: d4 16 20 14 lduh [ %i0 + 0x14 ], %o2 2007988: d6 06 20 18 ld [ %i0 + 0x18 ], %o3 200798c: 92 10 00 12 mov %l2, %o1 2007990: 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; 2007994: a3 2c 60 02 sll %l1, 2, %l1 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 2007998: 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; 200799c: 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( 20079a0: 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( 20079a4: 40 00 14 07 call 200c9c0 <_Chain_Initialize> 20079a8: 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 ) { 20079ac: 30 80 00 0c b,a 20079dc <_Objects_Extend_information+0x27c> the_object->id = _Objects_Build_id( 20079b0: c4 16 20 04 lduh [ %i0 + 4 ], %g2 20079b4: 83 28 60 18 sll %g1, 0x18, %g1 20079b8: 85 28 a0 1b sll %g2, 0x1b, %g2 20079bc: 82 10 40 13 or %g1, %l3, %g1 20079c0: 82 10 40 02 or %g1, %g2, %g1 20079c4: 82 10 40 10 or %g1, %l0, %g1 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 20079c8: 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( 20079cc: c2 22 20 08 st %g1, [ %o0 + 8 ] index ); _Chain_Append( &information->Inactive, &the_object->Node ); index++; 20079d0: a0 04 20 01 inc %l0 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 20079d4: 7f ff fc b5 call 2006ca8 <_Chain_Append> 20079d8: 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 ) { 20079dc: 7f ff fc c9 call 2006d00 <_Chain_Get> 20079e0: 90 10 00 12 mov %l2, %o0 20079e4: 80 a2 20 00 cmp %o0, 0 20079e8: 32 bf ff f2 bne,a 20079b0 <_Objects_Extend_information+0x250> 20079ec: c2 06 00 00 ld [ %i0 ], %g1 index++; } information->inactive_per_block[ block ] = information->allocation_size; information->inactive = 20079f0: c2 16 20 2c lduh [ %i0 + 0x2c ], %g1 _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 20079f4: c8 16 20 14 lduh [ %i0 + 0x14 ], %g4 20079f8: c4 06 20 30 ld [ %i0 + 0x30 ], %g2 information->inactive = 20079fc: 82 01 00 01 add %g4, %g1, %g1 _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 2007a00: c8 20 80 11 st %g4, [ %g2 + %l1 ] information->inactive = 2007a04: c2 36 20 2c sth %g1, [ %i0 + 0x2c ] 2007a08: 81 c7 e0 08 ret 2007a0c: 81 e8 00 00 restore =============================================================================== 02007ab8 <_Objects_Get_information>: Objects_Information *_Objects_Get_information( Objects_APIs the_api, uint32_t the_class ) { 2007ab8: 9d e3 bf a0 save %sp, -96, %sp Objects_Information *info; int the_class_api_maximum; if ( !the_class ) 2007abc: 80 a6 60 00 cmp %i1, 0 2007ac0: 22 80 00 1a be,a 2007b28 <_Objects_Get_information+0x70> 2007ac4: 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 ); 2007ac8: 40 00 15 5c call 200d038 <_Objects_API_maximum_class> 2007acc: 90 10 00 18 mov %i0, %o0 if ( the_class_api_maximum == 0 ) 2007ad0: 80 a2 20 00 cmp %o0, 0 2007ad4: 22 80 00 15 be,a 2007b28 <_Objects_Get_information+0x70> 2007ad8: b0 10 20 00 clr %i0 return NULL; if ( the_class > (uint32_t) the_class_api_maximum ) 2007adc: 80 a6 40 08 cmp %i1, %o0 2007ae0: 38 80 00 12 bgu,a 2007b28 <_Objects_Get_information+0x70> 2007ae4: b0 10 20 00 clr %i0 return NULL; if ( !_Objects_Information_table[ the_api ] ) 2007ae8: b1 2e 20 02 sll %i0, 2, %i0 2007aec: 03 00 80 72 sethi %hi(0x201c800), %g1 2007af0: 82 10 63 80 or %g1, 0x380, %g1 ! 201cb80 <_Objects_Information_table> 2007af4: c2 00 40 18 ld [ %g1 + %i0 ], %g1 2007af8: 80 a0 60 00 cmp %g1, 0 2007afc: 02 80 00 0b be 2007b28 <_Objects_Get_information+0x70> <== NEVER TAKEN 2007b00: b0 10 20 00 clr %i0 return NULL; info = _Objects_Information_table[ the_api ][ the_class ]; 2007b04: b3 2e 60 02 sll %i1, 2, %i1 2007b08: f0 00 40 19 ld [ %g1 + %i1 ], %i0 if ( !info ) 2007b0c: 80 a6 20 00 cmp %i0, 0 2007b10: 02 80 00 06 be 2007b28 <_Objects_Get_information+0x70> <== NEVER TAKEN 2007b14: 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 ) 2007b18: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1 2007b1c: 80 a0 60 00 cmp %g1, 0 2007b20: 22 80 00 02 be,a 2007b28 <_Objects_Get_information+0x70> 2007b24: b0 10 20 00 clr %i0 return NULL; #endif return info; } 2007b28: 81 c7 e0 08 ret 2007b2c: 81 e8 00 00 restore =============================================================================== 0201828c <_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; 201828c: c4 02 20 08 ld [ %o0 + 8 ], %g2 if ( information->maximum >= index ) { 2018290: 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; 2018294: 84 22 40 02 sub %o1, %g2, %g2 2018298: 84 00 a0 01 inc %g2 if ( information->maximum >= index ) { 201829c: 80 a0 40 02 cmp %g1, %g2 20182a0: 0a 80 00 09 bcs 20182c4 <_Objects_Get_no_protection+0x38> 20182a4: 85 28 a0 02 sll %g2, 2, %g2 if ( (the_object = information->local_table[ index ]) != NULL ) { 20182a8: c2 02 20 1c ld [ %o0 + 0x1c ], %g1 20182ac: d0 00 40 02 ld [ %g1 + %g2 ], %o0 20182b0: 80 a2 20 00 cmp %o0, 0 20182b4: 02 80 00 05 be 20182c8 <_Objects_Get_no_protection+0x3c> <== NEVER TAKEN 20182b8: 82 10 20 01 mov 1, %g1 *location = OBJECTS_LOCAL; return the_object; 20182bc: 81 c3 e0 08 retl 20182c0: 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; 20182c4: 82 10 20 01 mov 1, %g1 20182c8: 90 10 20 00 clr %o0 return NULL; } 20182cc: 81 c3 e0 08 retl 20182d0: c2 22 80 00 st %g1, [ %o2 ] =============================================================================== 0200c484 <_Objects_Id_to_name>: */ Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) { 200c484: 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; 200c488: 92 96 20 00 orcc %i0, 0, %o1 200c48c: 12 80 00 06 bne 200c4a4 <_Objects_Id_to_name+0x20> 200c490: 83 32 60 18 srl %o1, 0x18, %g1 200c494: 03 00 80 b5 sethi %hi(0x202d400), %g1 200c498: c2 00 63 50 ld [ %g1 + 0x350 ], %g1 ! 202d750 <_Thread_Executing> 200c49c: 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); 200c4a0: 83 32 60 18 srl %o1, 0x18, %g1 200c4a4: 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 ) 200c4a8: 84 00 7f ff add %g1, -1, %g2 200c4ac: 80 a0 a0 03 cmp %g2, 3 200c4b0: 18 80 00 14 bgu 200c500 <_Objects_Id_to_name+0x7c> 200c4b4: 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 ] ) 200c4b8: 10 80 00 14 b 200c508 <_Objects_Id_to_name+0x84> 200c4bc: 05 00 80 b5 sethi %hi(0x202d400), %g2 return OBJECTS_INVALID_ID; the_class = _Objects_Get_class( tmpId ); information = _Objects_Information_table[ the_api ][ the_class ]; 200c4c0: 85 28 a0 02 sll %g2, 2, %g2 200c4c4: d0 00 40 02 ld [ %g1 + %g2 ], %o0 if ( !information ) 200c4c8: 80 a2 20 00 cmp %o0, 0 200c4cc: 02 80 00 0d be 200c500 <_Objects_Id_to_name+0x7c> <== NEVER TAKEN 200c4d0: 01 00 00 00 nop #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) return OBJECTS_INVALID_ID; #endif the_object = _Objects_Get( information, tmpId, &ignored_location ); 200c4d4: 7f ff ff cf call 200c410 <_Objects_Get> 200c4d8: 94 07 bf fc add %fp, -4, %o2 if ( !the_object ) 200c4dc: 80 a2 20 00 cmp %o0, 0 200c4e0: 02 80 00 08 be 200c500 <_Objects_Id_to_name+0x7c> 200c4e4: 01 00 00 00 nop return OBJECTS_INVALID_ID; *name = the_object->name; 200c4e8: c2 02 20 0c ld [ %o0 + 0xc ], %g1 _Thread_Enable_dispatch(); 200c4ec: b0 10 20 00 clr %i0 200c4f0: 40 00 02 65 call 200ce84 <_Thread_Enable_dispatch> 200c4f4: c2 26 40 00 st %g1, [ %i1 ] return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; 200c4f8: 81 c7 e0 08 ret 200c4fc: 81 e8 00 00 restore } 200c500: 81 c7 e0 08 ret 200c504: 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 ] ) 200c508: 84 10 a1 f0 or %g2, 0x1f0, %g2 200c50c: c2 00 80 01 ld [ %g2 + %g1 ], %g1 200c510: 80 a0 60 00 cmp %g1, 0 200c514: 12 bf ff eb bne 200c4c0 <_Objects_Id_to_name+0x3c> 200c518: 85 32 60 1b srl %o1, 0x1b, %g2 200c51c: 30 bf ff f9 b,a 200c500 <_Objects_Id_to_name+0x7c> =============================================================================== 02007c18 <_Objects_Initialize_information>: , bool supports_global, Objects_Thread_queue_Extract_callout extract #endif ) { 2007c18: 9d e3 bf a0 save %sp, -96, %sp information->maximum = 0; /* * Register this Object Class in the Object Information Table. */ _Objects_Information_table[ the_api ][ the_class ] = information; 2007c1c: 05 00 80 72 sethi %hi(0x201c800), %g2 2007c20: 83 2e 60 02 sll %i1, 2, %g1 2007c24: 84 10 a3 80 or %g2, 0x380, %g2 2007c28: c2 00 80 01 ld [ %g2 + %g1 ], %g1 uint32_t index; #endif information->the_api = the_api; information->the_class = the_class; information->size = size; 2007c2c: 85 2f 20 10 sll %i4, 0x10, %g2 2007c30: 85 30 a0 10 srl %g2, 0x10, %g2 information->maximum = 0; /* * Register this Object Class in the Object Information Table. */ _Objects_Information_table[ the_api ][ the_class ] = information; 2007c34: 87 2e a0 02 sll %i2, 2, %g3 uint32_t index; #endif information->the_api = the_api; information->the_class = the_class; information->size = size; 2007c38: c4 26 20 18 st %g2, [ %i0 + 0x18 ] information->maximum = 0; /* * Register this Object Class in the Object Information Table. */ _Objects_Information_table[ the_api ][ the_class ] = information; 2007c3c: f0 20 40 03 st %i0, [ %g1 + %g3 ] /* * Are we operating in limited or unlimited (e.g. auto-extend) mode. */ information->auto_extend = (maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false; 2007c40: 85 36 e0 1f srl %i3, 0x1f, %g2 maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS; 2007c44: 03 20 00 00 sethi %hi(0x80000000), %g1 uint32_t maximum_per_allocation; #if defined(RTEMS_MULTIPROCESSING) uint32_t index; #endif information->the_api = the_api; 2007c48: f2 26 00 00 st %i1, [ %i0 ] information->the_class = the_class; 2007c4c: f4 36 20 04 sth %i2, [ %i0 + 4 ] information->size = size; information->local_table = 0; 2007c50: c0 26 20 1c clr [ %i0 + 0x1c ] information->inactive_per_block = 0; 2007c54: c0 26 20 30 clr [ %i0 + 0x30 ] information->object_blocks = 0; 2007c58: c0 26 20 34 clr [ %i0 + 0x34 ] information->inactive = 0; 2007c5c: c0 36 20 2c clrh [ %i0 + 0x2c ] /* * Set the maximum value to 0. It will be updated when objects are * added to the inactive set from _Objects_Extend_information() */ information->maximum = 0; 2007c60: c0 36 20 10 clrh [ %i0 + 0x10 ] _Objects_Information_table[ the_api ][ the_class ] = information; /* * Are we operating in limited or unlimited (e.g. auto-extend) mode. */ information->auto_extend = 2007c64: c4 2e 20 12 stb %g2, [ %i0 + 0x12 ] (maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false; maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS; 2007c68: b6 2e c0 01 andn %i3, %g1, %i3 /* * Unlimited and maximum of zero is illogical. */ if ( information->auto_extend && maximum_per_allocation == 0) { 2007c6c: 80 a0 a0 00 cmp %g2, 0 2007c70: 02 80 00 09 be 2007c94 <_Objects_Initialize_information+0x7c> 2007c74: c2 07 a0 5c ld [ %fp + 0x5c ], %g1 2007c78: 80 a6 e0 00 cmp %i3, 0 2007c7c: 12 80 00 07 bne 2007c98 <_Objects_Initialize_information+0x80> 2007c80: 07 00 80 72 sethi %hi(0x201c800), %g3 _Internal_error_Occurred( 2007c84: 90 10 20 00 clr %o0 2007c88: 92 10 20 01 mov 1, %o1 2007c8c: 7f ff fe 59 call 20075f0 <_Internal_error_Occurred> 2007c90: 94 10 20 14 mov 0x14, %o2 information->allocation_size = maximum_per_allocation; /* * Provide a null local table entry for the case of any empty table. */ information->local_table = &null_local_table; 2007c94: 07 00 80 72 sethi %hi(0x201c800), %g3 2007c98: 86 10 e0 c8 or %g3, 0xc8, %g3 ! 201c8c8 /* * Calculate minimum and maximum Id's */ minimum_index = (maximum_per_allocation == 0) ? 0 : 1; information->minimum_id = 2007c9c: 80 a0 00 1b cmp %g0, %i3 2007ca0: b3 2e 60 18 sll %i1, 0x18, %i1 2007ca4: 84 40 20 00 addx %g0, 0, %g2 2007ca8: b5 2e a0 1b sll %i2, 0x1b, %i2 information->allocation_size = maximum_per_allocation; /* * Provide a null local table entry for the case of any empty table. */ information->local_table = &null_local_table; 2007cac: c6 26 20 1c st %g3, [ %i0 + 0x1c ] } /* * The allocation unit is the maximum value */ information->allocation_size = maximum_per_allocation; 2007cb0: f6 36 20 14 sth %i3, [ %i0 + 0x14 ] /* * Calculate minimum and maximum Id's */ minimum_index = (maximum_per_allocation == 0) ? 0 : 1; information->minimum_id = 2007cb4: 07 00 00 40 sethi %hi(0x10000), %g3 2007cb8: b2 16 40 03 or %i1, %g3, %i1 2007cbc: b4 16 40 1a or %i1, %i2, %i2 2007cc0: b4 16 80 02 or %i2, %g2, %i2 2007cc4: f4 26 20 08 st %i2, [ %i0 + 8 ] * Calculate the maximum name length */ name_length = maximum_name_length; if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) ) name_length = (name_length + OBJECTS_NAME_ALIGNMENT) & 2007cc8: 84 00 60 04 add %g1, 4, %g2 /* * Calculate the maximum name length */ name_length = maximum_name_length; if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) ) 2007ccc: 80 88 60 03 btst 3, %g1 2007cd0: 12 80 00 03 bne 2007cdc <_Objects_Initialize_information+0xc4><== NEVER TAKEN 2007cd4: 84 08 bf fc and %g2, -4, %g2 2007cd8: 84 10 00 01 mov %g1, %g2 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 2007cdc: 82 06 20 24 add %i0, 0x24, %g1 name_length = (name_length + OBJECTS_NAME_ALIGNMENT) & ~(OBJECTS_NAME_ALIGNMENT-1); information->name_length = name_length; 2007ce0: c4 36 20 38 sth %g2, [ %i0 + 0x38 ] 2007ce4: c2 26 20 20 st %g1, [ %i0 + 0x20 ] the_chain->permanent_null = NULL; 2007ce8: c0 26 20 24 clr [ %i0 + 0x24 ] the_chain->last = _Chain_Head(the_chain); 2007cec: 82 06 20 20 add %i0, 0x20, %g1 _Chain_Initialize_empty( &information->Inactive ); /* * Initialize objects .. if there are any */ if ( maximum_per_allocation ) { 2007cf0: 80 a6 e0 00 cmp %i3, 0 2007cf4: 02 80 00 04 be 2007d04 <_Objects_Initialize_information+0xec> 2007cf8: c2 26 20 28 st %g1, [ %i0 + 0x28 ] /* * Always have the maximum size available so the current performance * figures are create are met. If the user moves past the maximum * number then a performance hit is taken. */ _Objects_Extend_information( information ); 2007cfc: 7f ff fe 99 call 2007760 <_Objects_Extend_information> 2007d00: 81 e8 00 00 restore 2007d04: 81 c7 e0 08 ret 2007d08: 81 e8 00 00 restore =============================================================================== 020012c8 <_Partition_Manager_initialization>: #include #include void _Partition_Manager_initialization(void) { } 20012c8: 81 c3 e0 08 retl =============================================================================== 0200c780 <_RTEMS_tasks_Post_switch_extension>: */ void _RTEMS_tasks_Post_switch_extension( Thread_Control *executing ) { 200c780: 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 ]; 200c784: e0 06 21 60 ld [ %i0 + 0x160 ], %l0 if ( !api ) 200c788: 80 a4 20 00 cmp %l0, 0 200c78c: 02 80 00 1d be 200c800 <_RTEMS_tasks_Post_switch_extension+0x80><== NEVER TAKEN 200c790: 01 00 00 00 nop * Signal Processing */ asr = &api->Signal; _ISR_Disable( level ); 200c794: 7f ff d6 0c call 2001fc4 200c798: 01 00 00 00 nop signal_set = asr->signals_posted; 200c79c: e6 04 20 14 ld [ %l0 + 0x14 ], %l3 asr->signals_posted = 0; 200c7a0: c0 24 20 14 clr [ %l0 + 0x14 ] _ISR_Enable( level ); 200c7a4: 7f ff d6 0c call 2001fd4 200c7a8: 01 00 00 00 nop if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ 200c7ac: 80 a4 e0 00 cmp %l3, 0 200c7b0: 02 80 00 14 be 200c800 <_RTEMS_tasks_Post_switch_extension+0x80><== NEVER TAKEN 200c7b4: a2 07 bf fc add %fp, -4, %l1 return; asr->nest_level += 1; 200c7b8: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 200c7bc: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ return; asr->nest_level += 1; 200c7c0: 82 00 60 01 inc %g1 200c7c4: c2 24 20 1c st %g1, [ %l0 + 0x1c ] rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 200c7c8: 94 10 00 11 mov %l1, %o2 200c7cc: 25 00 00 3f sethi %hi(0xfc00), %l2 200c7d0: 40 00 09 ec call 200ef80 200c7d4: 92 14 a3 ff or %l2, 0x3ff, %o1 ! ffff (*asr->handler)( signal_set ); 200c7d8: c2 04 20 0c ld [ %l0 + 0xc ], %g1 200c7dc: 9f c0 40 00 call %g1 200c7e0: 90 10 00 13 mov %l3, %o0 asr->nest_level -= 1; 200c7e4: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode ); 200c7e8: 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; 200c7ec: 82 00 7f ff add %g1, -1, %g1 rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode ); 200c7f0: 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; 200c7f4: c2 24 20 1c st %g1, [ %l0 + 0x1c ] rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode ); 200c7f8: 40 00 09 e2 call 200ef80 200c7fc: 94 10 00 11 mov %l1, %o2 200c800: 81 c7 e0 08 ret 200c804: 81 e8 00 00 restore =============================================================================== 020012e8 <_Rate_monotonic_Manager_initialization>: #include #include void _Rate_monotonic_Manager_initialization(void) { } 20012e8: 81 c3 e0 08 retl =============================================================================== 0203fe40 <_Rate_monotonic_Timeout>: void _Rate_monotonic_Timeout( Objects_Id id, void *ignored ) { 203fe40: 9d e3 bf 98 save %sp, -104, %sp 203fe44: 11 00 81 b6 sethi %hi(0x206d800), %o0 203fe48: 92 10 00 18 mov %i0, %o1 203fe4c: 90 12 20 40 or %o0, 0x40, %o0 203fe50: 7f ff 3a 5c call 200e7c0 <_Objects_Get> 203fe54: 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 ) { 203fe58: c2 07 bf fc ld [ %fp + -4 ], %g1 203fe5c: 80 a0 60 00 cmp %g1, 0 203fe60: 12 80 00 26 bne 203fef8 <_Rate_monotonic_Timeout+0xb8> <== NEVER TAKEN 203fe64: a0 10 00 08 mov %o0, %l0 case OBJECTS_LOCAL: the_thread = the_period->owner; 203fe68: d0 02 20 40 ld [ %o0 + 0x40 ], %o0 if ( _States_Is_waiting_for_period( the_thread->current_state ) && 203fe6c: 03 00 00 10 sethi %hi(0x4000), %g1 203fe70: c4 02 20 10 ld [ %o0 + 0x10 ], %g2 203fe74: 80 88 80 01 btst %g2, %g1 203fe78: 22 80 00 0c be,a 203fea8 <_Rate_monotonic_Timeout+0x68> 203fe7c: c2 04 20 38 ld [ %l0 + 0x38 ], %g1 the_thread->Wait.id == the_period->Object.id ) { 203fe80: c4 02 20 20 ld [ %o0 + 0x20 ], %g2 203fe84: c2 04 20 08 ld [ %l0 + 8 ], %g1 203fe88: 80 a0 80 01 cmp %g2, %g1 203fe8c: 32 80 00 07 bne,a 203fea8 <_Rate_monotonic_Timeout+0x68> 203fe90: 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 ); 203fe94: 13 04 00 ff sethi %hi(0x1003fc00), %o1 203fe98: 7f ff 3b aa call 200ed40 <_Thread_Clear_state> 203fe9c: 92 12 63 f8 or %o1, 0x3f8, %o1 ! 1003fff8 _Thread_Unblock( the_thread ); _Rate_monotonic_Initiate_statistics( the_period ); 203fea0: 10 80 00 08 b 203fec0 <_Rate_monotonic_Timeout+0x80> 203fea4: 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 ) { 203fea8: 80 a0 60 01 cmp %g1, 1 203feac: 12 80 00 0e bne 203fee4 <_Rate_monotonic_Timeout+0xa4> 203feb0: 82 10 20 04 mov 4, %g1 the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING; 203feb4: 82 10 20 03 mov 3, %g1 _Rate_monotonic_Initiate_statistics( the_period ); 203feb8: 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; 203febc: c2 24 20 38 st %g1, [ %l0 + 0x38 ] _Rate_monotonic_Initiate_statistics( the_period ); 203fec0: 7f ff fe ef call 203fa7c <_Rate_monotonic_Initiate_statistics> 203fec4: 01 00 00 00 nop Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 203fec8: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 203fecc: 92 04 20 10 add %l0, 0x10, %o1 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 203fed0: c2 24 20 1c st %g1, [ %l0 + 0x1c ] _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 203fed4: 11 00 81 b5 sethi %hi(0x206d400), %o0 203fed8: 7f ff 41 10 call 2010318 <_Watchdog_Insert> 203fedc: 90 12 20 a0 or %o0, 0xa0, %o0 ! 206d4a0 <_Watchdog_Ticks_chain> 203fee0: 30 80 00 02 b,a 203fee8 <_Rate_monotonic_Timeout+0xa8> _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length ); } else the_period->state = RATE_MONOTONIC_EXPIRED; 203fee4: 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; 203fee8: 03 00 81 b4 sethi %hi(0x206d000), %g1 203feec: c4 00 63 c0 ld [ %g1 + 0x3c0 ], %g2 ! 206d3c0 <_Thread_Dispatch_disable_level> 203fef0: 84 00 bf ff add %g2, -1, %g2 203fef4: c4 20 63 c0 st %g2, [ %g1 + 0x3c0 ] 203fef8: 81 c7 e0 08 ret 203fefc: 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 8a sethi %hi(0x2022800), %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 60 d4 ld [ %g1 + 0xd4 ], %o1 (the_tod->ticks >= ticks_per_second) || 20073cc: 11 00 03 d0 sethi %hi(0xf4000), %o0 20073d0: 40 00 5a b8 call 201deb0 <.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 83 sethi %hi(0x2020c00), %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 94 or %g3, 0x394, %g3 ! 2020f94 <_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 =============================================================================== 02007f50 <_Thread_Change_priority>: void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) { 2007f50: 9d e3 bf a0 save %sp, -96, %sp */ /* * Save original state */ original_state = the_thread->current_state; 2007f54: 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 ); 2007f58: 40 00 04 42 call 2009060 <_Thread_Set_transient> 2007f5c: 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 ) 2007f60: c2 06 20 14 ld [ %i0 + 0x14 ], %g1 void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) { 2007f64: 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 ) 2007f68: 80 a0 40 19 cmp %g1, %i1 2007f6c: 02 80 00 04 be 2007f7c <_Thread_Change_priority+0x2c> 2007f70: 92 10 00 19 mov %i1, %o1 _Thread_Set_priority( the_thread, new_priority ); 2007f74: 40 00 03 be call 2008e6c <_Thread_Set_priority> 2007f78: 90 10 00 18 mov %i0, %o0 _ISR_Disable( level ); 2007f7c: 7f ff e8 12 call 2001fc4 2007f80: 01 00 00 00 nop 2007f84: 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; 2007f88: e4 04 20 10 ld [ %l0 + 0x10 ], %l2 if ( state != STATES_TRANSIENT ) { 2007f8c: 80 a4 a0 04 cmp %l2, 4 2007f90: 02 80 00 10 be 2007fd0 <_Thread_Change_priority+0x80> 2007f94: 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 ) ) 2007f98: 80 a4 60 00 cmp %l1, 0 2007f9c: 12 80 00 03 bne 2007fa8 <_Thread_Change_priority+0x58> <== NEVER TAKEN 2007fa0: 82 0c bf fb and %l2, -5, %g1 the_thread->current_state = _States_Clear( STATES_TRANSIENT, state ); 2007fa4: c2 24 20 10 st %g1, [ %l0 + 0x10 ] _ISR_Enable( level ); 2007fa8: 7f ff e8 0b call 2001fd4 2007fac: 90 10 00 18 mov %i0, %o0 if ( _States_Is_waiting_on_thread_queue( state ) ) { 2007fb0: 03 00 00 ef sethi %hi(0x3bc00), %g1 2007fb4: 82 10 62 e0 or %g1, 0x2e0, %g1 ! 3bee0 2007fb8: 80 8c 80 01 btst %l2, %g1 2007fbc: 02 80 00 5c be 200812c <_Thread_Change_priority+0x1dc> 2007fc0: 01 00 00 00 nop _Thread_queue_Requeue( the_thread->Wait.queue, the_thread ); 2007fc4: f0 04 20 44 ld [ %l0 + 0x44 ], %i0 2007fc8: 40 00 03 7c call 2008db8 <_Thread_queue_Requeue> 2007fcc: 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 ) ) { 2007fd0: 80 a4 60 00 cmp %l1, 0 2007fd4: 12 80 00 1c bne 2008044 <_Thread_Change_priority+0xf4> <== NEVER TAKEN 2007fd8: 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; 2007fdc: c4 04 20 90 ld [ %l0 + 0x90 ], %g2 2007fe0: c6 14 20 96 lduh [ %l0 + 0x96 ], %g3 2007fe4: c8 10 80 00 lduh [ %g2 ], %g4 _Priority_Major_bit_map |= the_priority_map->ready_major; 2007fe8: 03 00 80 73 sethi %hi(0x201cc00), %g1 RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; 2007fec: 86 11 00 03 or %g4, %g3, %g3 2007ff0: c6 30 80 00 sth %g3, [ %g2 ] _Priority_Major_bit_map |= the_priority_map->ready_major; 2007ff4: c4 10 60 d4 lduh [ %g1 + 0xd4 ], %g2 2007ff8: 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 ); 2007ffc: c0 24 20 10 clr [ %l0 + 0x10 ] 2008000: 84 10 c0 02 or %g3, %g2, %g2 2008004: c4 30 60 d4 sth %g2, [ %g1 + 0xd4 ] _Priority_Add_to_bit_map( &the_thread->Priority_map ); if ( prepend_it ) 2008008: 80 8e a0 ff btst 0xff, %i2 200800c: 02 80 00 08 be 200802c <_Thread_Change_priority+0xdc> 2008010: c2 04 20 8c ld [ %l0 + 0x8c ], %g1 ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 2008014: c4 00 40 00 ld [ %g1 ], %g2 Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 2008018: c2 24 20 04 st %g1, [ %l0 + 4 ] before_node = after_node->next; after_node->next = the_node; 200801c: e0 20 40 00 st %l0, [ %g1 ] the_node->next = before_node; before_node->previous = the_node; 2008020: 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; 2008024: 10 80 00 08 b 2008044 <_Thread_Change_priority+0xf4> 2008028: c4 24 00 00 st %g2, [ %l0 ] Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 200802c: 84 00 60 04 add %g1, 4, %g2 2008030: c4 24 00 00 st %g2, [ %l0 ] old_last_node = the_chain->last; 2008034: c4 00 60 08 ld [ %g1 + 8 ], %g2 the_chain->last = the_node; 2008038: e0 20 60 08 st %l0, [ %g1 + 8 ] old_last_node->next = the_node; the_node->previous = old_last_node; 200803c: 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; 2008040: 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 ); 2008044: 7f ff e7 e4 call 2001fd4 2008048: 90 10 00 18 mov %i0, %o0 200804c: 7f ff e7 de call 2001fc4 2008050: 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 ); 2008054: 03 00 80 73 sethi %hi(0x201cc00), %g1 2008058: c4 10 60 d4 lduh [ %g1 + 0xd4 ], %g2 ! 201ccd4 <_Priority_Major_bit_map> */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) _Thread_Ready_chain[ _Priority_Get_highest() ].first; 200805c: 03 00 80 72 sethi %hi(0x201c800), %g1 2008060: 85 28 a0 10 sll %g2, 0x10, %g2 2008064: da 00 63 74 ld [ %g1 + 0x374 ], %o5 2008068: 87 30 a0 10 srl %g2, 0x10, %g3 200806c: 03 00 80 6c sethi %hi(0x201b000), %g1 2008070: 80 a0 e0 ff cmp %g3, 0xff 2008074: 18 80 00 05 bgu 2008088 <_Thread_Change_priority+0x138> 2008078: 82 10 60 a8 or %g1, 0xa8, %g1 200807c: c4 08 40 03 ldub [ %g1 + %g3 ], %g2 2008080: 10 80 00 04 b 2008090 <_Thread_Change_priority+0x140> 2008084: 84 00 a0 08 add %g2, 8, %g2 2008088: 85 30 a0 18 srl %g2, 0x18, %g2 200808c: c4 08 40 02 ldub [ %g1 + %g2 ], %g2 _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); 2008090: 83 28 a0 10 sll %g2, 0x10, %g1 2008094: 07 00 80 73 sethi %hi(0x201cc00), %g3 2008098: 83 30 60 0f srl %g1, 0xf, %g1 200809c: 86 10 e1 50 or %g3, 0x150, %g3 20080a0: c6 10 c0 01 lduh [ %g3 + %g1 ], %g3 20080a4: 03 00 80 6c sethi %hi(0x201b000), %g1 20080a8: 87 28 e0 10 sll %g3, 0x10, %g3 20080ac: 89 30 e0 10 srl %g3, 0x10, %g4 20080b0: 80 a1 20 ff cmp %g4, 0xff 20080b4: 18 80 00 05 bgu 20080c8 <_Thread_Change_priority+0x178> 20080b8: 82 10 60 a8 or %g1, 0xa8, %g1 20080bc: c2 08 40 04 ldub [ %g1 + %g4 ], %g1 20080c0: 10 80 00 04 b 20080d0 <_Thread_Change_priority+0x180> 20080c4: 82 00 60 08 add %g1, 8, %g1 20080c8: 87 30 e0 18 srl %g3, 0x18, %g3 20080cc: c2 08 40 03 ldub [ %g1 + %g3 ], %g1 * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) 20080d0: 83 28 60 10 sll %g1, 0x10, %g1 20080d4: 83 30 60 10 srl %g1, 0x10, %g1 20080d8: 85 28 a0 10 sll %g2, 0x10, %g2 20080dc: 85 30 a0 0c srl %g2, 0xc, %g2 20080e0: 84 00 40 02 add %g1, %g2, %g2 20080e4: 83 28 a0 04 sll %g2, 4, %g1 20080e8: 85 28 a0 02 sll %g2, 2, %g2 20080ec: 84 20 40 02 sub %g1, %g2, %g2 20080f0: 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 ); 20080f4: 03 00 80 73 sethi %hi(0x201cc00), %g1 20080f8: c2 00 60 e0 ld [ %g1 + 0xe0 ], %g1 ! 201cce0 <_Thread_Executing> * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) 20080fc: 07 00 80 73 sethi %hi(0x201cc00), %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() && 2008100: 80 a0 40 02 cmp %g1, %g2 2008104: 02 80 00 08 be 2008124 <_Thread_Change_priority+0x1d4> 2008108: c4 20 e0 b0 st %g2, [ %g3 + 0xb0 ] _Thread_Executing->is_preemptible ) 200810c: c2 08 60 75 ldub [ %g1 + 0x75 ], %g1 2008110: 80 a0 60 00 cmp %g1, 0 2008114: 02 80 00 04 be 2008124 <_Thread_Change_priority+0x1d4> 2008118: 84 10 20 01 mov 1, %g2 _Context_Switch_necessary = true; 200811c: 03 00 80 73 sethi %hi(0x201cc00), %g1 2008120: c4 28 60 f0 stb %g2, [ %g1 + 0xf0 ] ! 201ccf0 <_Context_Switch_necessary> _ISR_Enable( level ); 2008124: 7f ff e7 ac call 2001fd4 2008128: 81 e8 00 00 restore 200812c: 81 c7 e0 08 ret 2008130: 81 e8 00 00 restore =============================================================================== 02008134 <_Thread_Clear_state>: void _Thread_Clear_state( Thread_Control *the_thread, States_Control state ) { 2008134: 9d e3 bf a0 save %sp, -96, %sp ISR_Level level; States_Control current_state; _ISR_Disable( level ); 2008138: 7f ff e7 a3 call 2001fc4 200813c: a0 10 00 18 mov %i0, %l0 2008140: b0 10 00 08 mov %o0, %i0 current_state = the_thread->current_state; 2008144: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 if ( current_state & state ) { 2008148: 80 8e 40 01 btst %i1, %g1 200814c: 02 80 00 2d be 2008200 <_Thread_Clear_state+0xcc> 2008150: 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); 2008154: 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 ) ) { 2008158: 80 a6 60 00 cmp %i1, 0 200815c: 12 80 00 29 bne 2008200 <_Thread_Clear_state+0xcc> 2008160: 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; 2008164: 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); 2008168: c2 04 20 8c ld [ %l0 + 0x8c ], %g1 200816c: c8 10 80 00 lduh [ %g2 ], %g4 2008170: c6 14 20 96 lduh [ %l0 + 0x96 ], %g3 2008174: 86 11 00 03 or %g4, %g3, %g3 2008178: c6 30 80 00 sth %g3, [ %g2 ] Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 200817c: 84 00 60 04 add %g1, 4, %g2 _Priority_Major_bit_map |= the_priority_map->ready_major; 2008180: da 14 20 94 lduh [ %l0 + 0x94 ], %o5 2008184: c4 24 00 00 st %g2, [ %l0 ] 2008188: 07 00 80 73 sethi %hi(0x201cc00), %g3 old_last_node = the_chain->last; 200818c: c4 00 60 08 ld [ %g1 + 8 ], %g2 2008190: c8 10 e0 d4 lduh [ %g3 + 0xd4 ], %g4 the_chain->last = the_node; 2008194: e0 20 60 08 st %l0, [ %g1 + 8 ] old_last_node->next = the_node; the_node->previous = old_last_node; 2008198: c4 24 20 04 st %g2, [ %l0 + 4 ] 200819c: 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; 20081a0: e0 20 80 00 st %l0, [ %g2 ] 20081a4: c2 30 e0 d4 sth %g1, [ %g3 + 0xd4 ] _ISR_Flash( level ); 20081a8: 7f ff e7 8b call 2001fd4 20081ac: 01 00 00 00 nop 20081b0: 7f ff e7 85 call 2001fc4 20081b4: 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 ) { 20081b8: 05 00 80 73 sethi %hi(0x201cc00), %g2 20081bc: c6 00 a0 b0 ld [ %g2 + 0xb0 ], %g3 ! 201ccb0 <_Thread_Heir> 20081c0: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 20081c4: c6 00 e0 14 ld [ %g3 + 0x14 ], %g3 20081c8: 80 a0 40 03 cmp %g1, %g3 20081cc: 1a 80 00 0d bcc 2008200 <_Thread_Clear_state+0xcc> 20081d0: 07 00 80 73 sethi %hi(0x201cc00), %g3 _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible || 20081d4: c6 00 e0 e0 ld [ %g3 + 0xe0 ], %g3 ! 201cce0 <_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; 20081d8: e0 20 a0 b0 st %l0, [ %g2 + 0xb0 ] if ( _Thread_Executing->is_preemptible || 20081dc: c4 08 e0 75 ldub [ %g3 + 0x75 ], %g2 20081e0: 80 a0 a0 00 cmp %g2, 0 20081e4: 12 80 00 05 bne 20081f8 <_Thread_Clear_state+0xc4> 20081e8: 84 10 20 01 mov 1, %g2 20081ec: 80 a0 60 00 cmp %g1, 0 20081f0: 12 80 00 04 bne 2008200 <_Thread_Clear_state+0xcc> <== ALWAYS TAKEN 20081f4: 01 00 00 00 nop the_thread->current_priority == 0 ) _Context_Switch_necessary = true; 20081f8: 03 00 80 73 sethi %hi(0x201cc00), %g1 20081fc: c4 28 60 f0 stb %g2, [ %g1 + 0xf0 ] ! 201ccf0 <_Context_Switch_necessary> } } } _ISR_Enable( level ); 2008200: 7f ff e7 75 call 2001fd4 2008204: 81 e8 00 00 restore =============================================================================== 020083b8 <_Thread_Delay_ended>: void _Thread_Delay_ended( Objects_Id id, void *ignored __attribute__((unused)) ) { 20083b8: 9d e3 bf 98 save %sp, -104, %sp Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 20083bc: 90 10 00 18 mov %i0, %o0 20083c0: 40 00 00 7c call 20085b0 <_Thread_Get> 20083c4: 92 07 bf fc add %fp, -4, %o1 switch ( location ) { 20083c8: c2 07 bf fc ld [ %fp + -4 ], %g1 20083cc: 80 a0 60 00 cmp %g1, 0 20083d0: 12 80 00 08 bne 20083f0 <_Thread_Delay_ended+0x38> <== NEVER TAKEN 20083d4: 13 04 00 00 sethi %hi(0x10000000), %o1 #if defined(RTEMS_MULTIPROCESSING) case OBJECTS_REMOTE: /* impossible */ #endif break; case OBJECTS_LOCAL: _Thread_Clear_state( 20083d8: 7f ff ff 57 call 2008134 <_Thread_Clear_state> 20083dc: 92 12 60 18 or %o1, 0x18, %o1 ! 10000018 20083e0: 03 00 80 73 sethi %hi(0x201cc00), %g1 20083e4: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 ! 201cc20 <_Thread_Dispatch_disable_level> 20083e8: 84 00 bf ff add %g2, -1, %g2 20083ec: c4 20 60 20 st %g2, [ %g1 + 0x20 ] 20083f0: 81 c7 e0 08 ret 20083f4: 81 e8 00 00 restore =============================================================================== 020083f8 <_Thread_Dispatch>: * dispatch thread * no dispatch thread */ void _Thread_Dispatch( void ) { 20083f8: 9d e3 bf 90 save %sp, -112, %sp Thread_Control *executing; Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; 20083fc: 2f 00 80 73 sethi %hi(0x201cc00), %l7 _ISR_Disable( level ); 2008400: 7f ff e6 f1 call 2001fc4 2008404: e0 05 e0 e0 ld [ %l7 + 0xe0 ], %l0 ! 201cce0 <_Thread_Executing> while ( _Context_Switch_necessary == true ) { 2008408: 2d 00 80 73 sethi %hi(0x201cc00), %l6 200840c: 33 00 80 73 sethi %hi(0x201cc00), %i1 heir = _Thread_Heir; 2008410: 35 00 80 73 sethi %hi(0x201cc00), %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; 2008414: 37 00 80 72 sethi %hi(0x201c800), %i3 #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ { Timestamp_Control uptime, ran; _TOD_Get_uptime( &uptime ); _Timestamp_Subtract( 2008418: 25 00 80 73 sethi %hi(0x201cc00), %l2 #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { 200841c: 39 00 80 73 sethi %hi(0x201cc00), %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 ); 2008420: 2b 00 80 73 sethi %hi(0x201cc00), %l5 _ISR_Disable( level ); while ( _Context_Switch_necessary == true ) { heir = _Thread_Heir; _Thread_Dispatch_disable_level = 1; _Context_Switch_necessary = false; _Thread_Executing = heir; 2008424: ae 15 e0 e0 or %l7, 0xe0, %l7 Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; _ISR_Disable( level ); while ( _Context_Switch_necessary == true ) { 2008428: ac 15 a0 f0 or %l6, 0xf0, %l6 heir = _Thread_Heir; _Thread_Dispatch_disable_level = 1; 200842c: b2 16 60 20 or %i1, 0x20, %i1 ISR_Level level; executing = _Thread_Executing; _ISR_Disable( level ); while ( _Context_Switch_necessary == true ) { heir = _Thread_Heir; 2008430: b4 16 a0 b0 or %i2, 0xb0, %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; 2008434: b6 16 e3 78 or %i3, 0x378, %i3 #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ { Timestamp_Control uptime, ran; _TOD_Get_uptime( &uptime ); _Timestamp_Subtract( 2008438: a4 14 a0 e8 or %l2, 0xe8, %l2 #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { 200843c: b8 17 20 ac or %i4, 0xac, %i4 2008440: aa 15 60 a8 or %l5, 0xa8, %l5 executing = _Thread_Executing; _ISR_Disable( level ); while ( _Context_Switch_necessary == true ) { heir = _Thread_Heir; _Thread_Dispatch_disable_level = 1; 2008444: ba 10 20 01 mov 1, %i5 _ISR_Enable( level ); #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ { Timestamp_Control uptime, ran; _TOD_Get_uptime( &uptime ); 2008448: 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 ) { 200844c: 10 80 00 37 b 2008528 <_Thread_Dispatch+0x130> 2008450: a6 07 bf f0 add %fp, -16, %l3 heir = _Thread_Heir; _Thread_Dispatch_disable_level = 1; 2008454: 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 ) 2008458: 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; 200845c: 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 ) 2008460: 80 a0 60 01 cmp %g1, 1 2008464: 12 80 00 04 bne 2008474 <_Thread_Dispatch+0x7c> 2008468: e2 25 c0 00 st %l1, [ %l7 ] heir->cpu_time_budget = _Thread_Ticks_per_timeslice; 200846c: c2 06 c0 00 ld [ %i3 ], %g1 2008470: c2 24 60 78 st %g1, [ %l1 + 0x78 ] _ISR_Enable( level ); 2008474: 7f ff e6 d8 call 2001fd4 2008478: 01 00 00 00 nop #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ { Timestamp_Control uptime, ran; _TOD_Get_uptime( &uptime ); 200847c: 40 00 11 e3 call 200cc08 <_TOD_Get_uptime> 2008480: 90 10 00 14 mov %l4, %o0 _Timestamp_Subtract( 2008484: 90 10 00 12 mov %l2, %o0 2008488: 92 10 00 14 mov %l4, %o1 200848c: 40 00 03 c5 call 20093a0 <_Timespec_Subtract> 2008490: 94 10 00 13 mov %l3, %o2 &_Thread_Time_of_last_context_switch, &uptime, &ran ); _Timestamp_Add_to( &executing->cpu_time_used, &ran ); 2008494: 90 04 20 84 add %l0, 0x84, %o0 2008498: 40 00 03 a8 call 2009338 <_Timespec_Add_to> 200849c: 92 10 00 13 mov %l3, %o1 _Thread_Time_of_last_context_switch = uptime; 20084a0: c4 07 bf f8 ld [ %fp + -8 ], %g2 #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { 20084a4: 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; 20084a8: c4 24 80 00 st %g2, [ %l2 ] 20084ac: c4 07 bf fc ld [ %fp + -4 ], %g2 #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { 20084b0: 80 a0 60 00 cmp %g1, 0 20084b4: 02 80 00 06 be 20084cc <_Thread_Dispatch+0xd4> <== NEVER TAKEN 20084b8: c4 24 a0 04 st %g2, [ %l2 + 4 ] executing->libc_reent = *_Thread_libc_reent; 20084bc: c4 00 40 00 ld [ %g1 ], %g2 20084c0: c4 24 21 5c st %g2, [ %l0 + 0x15c ] *_Thread_libc_reent = heir->libc_reent; 20084c4: c4 04 61 5c ld [ %l1 + 0x15c ], %g2 20084c8: c4 20 40 00 st %g2, [ %g1 ] } _User_extensions_Thread_switch( executing, heir ); 20084cc: 90 10 00 10 mov %l0, %o0 20084d0: 40 00 04 69 call 2009674 <_User_extensions_Thread_switch> 20084d4: 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 ); 20084d8: 92 04 60 d0 add %l1, 0xd0, %o1 20084dc: 40 00 05 96 call 2009b34 <_CPU_Context_switch> 20084e0: 90 04 20 d0 add %l0, 0xd0, %o0 #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE ) if ( (executing->fp_context != NULL) && 20084e4: c2 04 21 58 ld [ %l0 + 0x158 ], %g1 20084e8: 80 a0 60 00 cmp %g1, 0 20084ec: 02 80 00 0d be 2008520 <_Thread_Dispatch+0x128> 20084f0: 01 00 00 00 nop 20084f4: d0 05 40 00 ld [ %l5 ], %o0 20084f8: 80 a4 00 08 cmp %l0, %o0 20084fc: 02 80 00 09 be 2008520 <_Thread_Dispatch+0x128> 2008500: 80 a2 20 00 cmp %o0, 0 !_Thread_Is_allocated_fp( executing ) ) { if ( _Thread_Allocated_fp != NULL ) 2008504: 02 80 00 04 be 2008514 <_Thread_Dispatch+0x11c> 2008508: 01 00 00 00 nop _Context_Save_fp( &_Thread_Allocated_fp->fp_context ); 200850c: 40 00 05 50 call 2009a4c <_CPU_Context_save_fp> 2008510: 90 02 21 58 add %o0, 0x158, %o0 _Context_Restore_fp( &executing->fp_context ); 2008514: 40 00 05 6b call 2009ac0 <_CPU_Context_restore_fp> 2008518: 90 04 21 58 add %l0, 0x158, %o0 _Thread_Allocated_fp = executing; 200851c: e0 25 40 00 st %l0, [ %l5 ] #endif #endif executing = _Thread_Executing; _ISR_Disable( level ); 2008520: 7f ff e6 a9 call 2001fc4 2008524: e0 05 c0 00 ld [ %l7 ], %l0 Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; _ISR_Disable( level ); while ( _Context_Switch_necessary == true ) { 2008528: c2 0d 80 00 ldub [ %l6 ], %g1 200852c: 80 a0 60 00 cmp %g1, 0 2008530: 32 bf ff c9 bne,a 2008454 <_Thread_Dispatch+0x5c> 2008534: e2 06 80 00 ld [ %i2 ], %l1 executing = _Thread_Executing; _ISR_Disable( level ); } _Thread_Dispatch_disable_level = 0; 2008538: 03 00 80 73 sethi %hi(0x201cc00), %g1 200853c: c0 20 60 20 clr [ %g1 + 0x20 ] ! 201cc20 <_Thread_Dispatch_disable_level> _ISR_Enable( level ); 2008540: 7f ff e6 a5 call 2001fd4 2008544: 01 00 00 00 nop if ( _Thread_Do_post_task_switch_extension || 2008548: 03 00 80 73 sethi %hi(0x201cc00), %g1 200854c: c2 00 60 c4 ld [ %g1 + 0xc4 ], %g1 ! 201ccc4 <_Thread_Do_post_task_switch_extension> 2008550: 80 a0 60 00 cmp %g1, 0 2008554: 12 80 00 06 bne 200856c <_Thread_Dispatch+0x174> <== NEVER TAKEN 2008558: 01 00 00 00 nop executing->do_post_task_switch_extension ) { 200855c: c2 0c 20 74 ldub [ %l0 + 0x74 ], %g1 2008560: 80 a0 60 00 cmp %g1, 0 2008564: 02 80 00 04 be 2008574 <_Thread_Dispatch+0x17c> 2008568: 01 00 00 00 nop executing->do_post_task_switch_extension = false; _API_extensions_Run_postswitch(); 200856c: 7f ff f9 7d call 2006b60 <_API_extensions_Run_postswitch> 2008570: c0 2c 20 74 clrb [ %l0 + 0x74 ] 2008574: 81 c7 e0 08 ret 2008578: 81 e8 00 00 restore =============================================================================== 0200f298 <_Thread_Evaluate_mode>: bool _Thread_Evaluate_mode( void ) { Thread_Control *executing; executing = _Thread_Executing; 200f298: 03 00 80 73 sethi %hi(0x201cc00), %g1 200f29c: c2 00 60 e0 ld [ %g1 + 0xe0 ], %g1 ! 201cce0 <_Thread_Executing> if ( !_States_Is_ready( executing->current_state ) || 200f2a0: c4 00 60 10 ld [ %g1 + 0x10 ], %g2 200f2a4: 80 a0 a0 00 cmp %g2, 0 200f2a8: 12 80 00 0b bne 200f2d4 <_Thread_Evaluate_mode+0x3c> <== NEVER TAKEN 200f2ac: 84 10 20 01 mov 1, %g2 200f2b0: 05 00 80 73 sethi %hi(0x201cc00), %g2 200f2b4: c4 00 a0 b0 ld [ %g2 + 0xb0 ], %g2 ! 201ccb0 <_Thread_Heir> 200f2b8: 80 a0 40 02 cmp %g1, %g2 200f2bc: 02 80 00 0b be 200f2e8 <_Thread_Evaluate_mode+0x50> 200f2c0: 01 00 00 00 nop ( !_Thread_Is_heir( executing ) && executing->is_preemptible ) ) { 200f2c4: c2 08 60 75 ldub [ %g1 + 0x75 ], %g1 200f2c8: 80 a0 60 00 cmp %g1, 0 200f2cc: 02 80 00 07 be 200f2e8 <_Thread_Evaluate_mode+0x50> <== NEVER TAKEN 200f2d0: 84 10 20 01 mov 1, %g2 _Context_Switch_necessary = true; 200f2d4: 03 00 80 73 sethi %hi(0x201cc00), %g1 200f2d8: 90 10 20 01 mov 1, %o0 200f2dc: c4 28 60 f0 stb %g2, [ %g1 + 0xf0 ] return true; 200f2e0: 81 c3 e0 08 retl 200f2e4: 01 00 00 00 nop } return false; } 200f2e8: 81 c3 e0 08 retl 200f2ec: 90 10 20 00 clr %o0 ! 0 =============================================================================== 0200f2f0 <_Thread_Handler>: * * Output parameters: NONE */ void _Thread_Handler( void ) { 200f2f0: 9d e3 bf a0 save %sp, -96, %sp #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) static char doneConstructors; char doneCons; #endif executing = _Thread_Executing; 200f2f4: 03 00 80 73 sethi %hi(0x201cc00), %g1 200f2f8: e0 00 60 e0 ld [ %g1 + 0xe0 ], %l0 ! 201cce0 <_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(); 200f2fc: 3f 00 80 3c sethi %hi(0x200f000), %i7 200f300: be 17 e2 f0 or %i7, 0x2f0, %i7 ! 200f2f0 <_Thread_Handler> /* * have to put level into a register for those cpu's that use * inline asm here */ level = executing->Start.isr_level; 200f304: d0 04 20 b8 ld [ %l0 + 0xb8 ], %o0 _ISR_Set_level(level); 200f308: 7f ff cb 33 call 2001fd4 200f30c: 91 2a 20 08 sll %o0, 8, %o0 #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) doneCons = doneConstructors; 200f310: 03 00 80 72 sethi %hi(0x201c800), %g1 doneConstructors = 1; 200f314: 84 10 20 01 mov 1, %g2 level = executing->Start.isr_level; _ISR_Set_level(level); #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) doneCons = doneConstructors; 200f318: e2 08 60 d6 ldub [ %g1 + 0xd6 ], %l1 doneConstructors = 1; 200f31c: c4 28 60 d6 stb %g2, [ %g1 + 0xd6 ] #endif #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE ) if ( (executing->fp_context != NULL) && 200f320: c2 04 21 58 ld [ %l0 + 0x158 ], %g1 200f324: 80 a0 60 00 cmp %g1, 0 200f328: 02 80 00 0c be 200f358 <_Thread_Handler+0x68> 200f32c: 03 00 80 73 sethi %hi(0x201cc00), %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 ); 200f330: d0 00 60 a8 ld [ %g1 + 0xa8 ], %o0 ! 201cca8 <_Thread_Allocated_fp> 200f334: 80 a4 00 08 cmp %l0, %o0 200f338: 02 80 00 08 be 200f358 <_Thread_Handler+0x68> 200f33c: 80 a2 20 00 cmp %o0, 0 !_Thread_Is_allocated_fp( executing ) ) { if ( _Thread_Allocated_fp != NULL ) 200f340: 22 80 00 06 be,a 200f358 <_Thread_Handler+0x68> 200f344: e0 20 60 a8 st %l0, [ %g1 + 0xa8 ] _Context_Save_fp( &_Thread_Allocated_fp->fp_context ); 200f348: 7f ff e9 c1 call 2009a4c <_CPU_Context_save_fp> 200f34c: 90 02 21 58 add %o0, 0x158, %o0 _Thread_Allocated_fp = executing; 200f350: 03 00 80 73 sethi %hi(0x201cc00), %g1 200f354: e0 20 60 a8 st %l0, [ %g1 + 0xa8 ] ! 201cca8 <_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 ); 200f358: 7f ff e8 54 call 20094a8 <_User_extensions_Thread_begin> 200f35c: 90 10 00 10 mov %l0, %o0 /* * At this point, the dispatch disable level BETTER be 1. */ _Thread_Enable_dispatch(); 200f360: 7f ff e4 87 call 200857c <_Thread_Enable_dispatch> 200f364: 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) */ { 200f368: 80 a4 60 00 cmp %l1, 0 200f36c: 32 80 00 05 bne,a 200f380 <_Thread_Handler+0x90> 200f370: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 INIT_NAME (); 200f374: 40 00 33 3d call 201c068 <_init> 200f378: 01 00 00 00 nop } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) { 200f37c: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 200f380: 80 a0 60 00 cmp %g1, 0 200f384: 12 80 00 06 bne 200f39c <_Thread_Handler+0xac> <== NEVER TAKEN 200f388: 01 00 00 00 nop executing->Wait.return_argument = (*(Thread_Entry_numeric) executing->Start.entry_point)( 200f38c: c2 04 20 9c ld [ %l0 + 0x9c ], %g1 200f390: 9f c0 40 00 call %g1 200f394: d0 04 20 a8 ld [ %l0 + 0xa8 ], %o0 INIT_NAME (); } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) { executing->Wait.return_argument = 200f398: 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 ); 200f39c: 7f ff e8 54 call 20094ec <_User_extensions_Thread_exitted> 200f3a0: 90 10 00 10 mov %l0, %o0 _Internal_error_Occurred( 200f3a4: 90 10 20 00 clr %o0 200f3a8: 92 10 20 01 mov 1, %o1 200f3ac: 7f ff e0 91 call 20075f0 <_Internal_error_Occurred> 200f3b0: 94 10 20 06 mov 6, %o2 =============================================================================== 0200865c <_Thread_Initialize>: Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { 200865c: 9d e3 bf a0 save %sp, -96, %sp 2008660: 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; 2008664: c0 26 61 60 clr [ %i1 + 0x160 ] Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { 2008668: e0 00 40 00 ld [ %g1 ], %l0 /* * Zero out all the allocated memory fields */ for ( i=0 ; i <= THREAD_API_LAST ; i++ ) the_thread->API_Extensions[i] = NULL; 200866c: c0 26 61 64 clr [ %i1 + 0x164 ] 2008670: c0 26 61 68 clr [ %i1 + 0x168 ] extensions_area = NULL; the_thread->libc_reent = NULL; 2008674: c0 26 61 5c clr [ %i1 + 0x15c ] Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { 2008678: e2 0f a0 5f ldub [ %fp + 0x5f ], %l1 /* * Allocate and Initialize the stack for this thread. */ #if !defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API) actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size ); 200867c: 90 10 00 19 mov %i1, %o0 2008680: 40 00 02 9d call 20090f4 <_Thread_Stack_Allocate> 2008684: 92 10 00 1b mov %i3, %o1 if ( !actual_stack_size || actual_stack_size < stack_size ) 2008688: 80 a2 00 1b cmp %o0, %i3 200868c: 0a 80 00 04 bcs 200869c <_Thread_Initialize+0x40> 2008690: 80 a2 20 00 cmp %o0, 0 2008694: 32 80 00 04 bne,a 20086a4 <_Thread_Initialize+0x48> <== ALWAYS TAKEN 2008698: c2 06 60 cc ld [ %i1 + 0xcc ], %g1 200869c: 81 c7 e0 08 ret 20086a0: 91 e8 20 00 restore %g0, 0, %o0 void *starting_address, size_t size ) { the_stack->area = starting_address; the_stack->size = size; 20086a4: d0 26 60 c0 st %o0, [ %i1 + 0xc0 ] Stack_Control *the_stack, void *starting_address, size_t size ) { the_stack->area = starting_address; 20086a8: c2 26 60 c4 st %g1, [ %i1 + 0xc4 ] /* * Allocate the floating point area for this thread */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( is_fp ) { 20086ac: 80 8f 20 ff btst 0xff, %i4 20086b0: 02 80 00 08 be 20086d0 <_Thread_Initialize+0x74> 20086b4: a4 10 20 00 clr %l2 fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE ); 20086b8: 90 10 20 88 mov 0x88, %o0 20086bc: 40 00 04 bb call 20099a8 <_Workspace_Allocate> 20086c0: b6 10 20 00 clr %i3 if ( !fp_area ) 20086c4: a4 92 20 00 orcc %o0, 0, %l2 20086c8: 22 80 00 3e be,a 20087c0 <_Thread_Initialize+0x164> 20086cc: d0 06 61 5c ld [ %i1 + 0x15c ], %o0 #endif /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 20086d0: 03 00 80 73 sethi %hi(0x201cc00), %g1 20086d4: d0 00 60 c0 ld [ %g1 + 0xc0 ], %o0 ! 201ccc0 <_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; 20086d8: e4 26 61 58 st %l2, [ %i1 + 0x158 ] the_thread->Start.fp_context = fp_area; 20086dc: e4 26 60 c8 st %l2, [ %i1 + 0xc8 ] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 20086e0: c0 26 60 50 clr [ %i1 + 0x50 ] the_watchdog->routine = routine; 20086e4: c0 26 60 64 clr [ %i1 + 0x64 ] the_watchdog->id = id; 20086e8: c0 26 60 68 clr [ %i1 + 0x68 ] the_watchdog->user_data = user_data; 20086ec: c0 26 60 6c clr [ %i1 + 0x6c ] #endif /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 20086f0: 80 a2 20 00 cmp %o0, 0 20086f4: 02 80 00 08 be 2008714 <_Thread_Initialize+0xb8> 20086f8: b6 10 20 00 clr %i3 extensions_area = _Workspace_Allocate( 20086fc: 90 02 20 01 inc %o0 2008700: 40 00 04 aa call 20099a8 <_Workspace_Allocate> 2008704: 91 2a 20 02 sll %o0, 2, %o0 (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) 2008708: b6 92 20 00 orcc %o0, 0, %i3 200870c: 22 80 00 2d be,a 20087c0 <_Thread_Initialize+0x164> 2008710: d0 06 61 5c ld [ %i1 + 0x15c ], %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 ) { 2008714: 80 a6 e0 00 cmp %i3, 0 2008718: 02 80 00 0c be 2008748 <_Thread_Initialize+0xec> 200871c: f6 26 61 6c st %i3, [ %i1 + 0x16c ] for ( i = 0; i <= _Thread_Maximum_extensions ; i++ ) 2008720: 03 00 80 73 sethi %hi(0x201cc00), %g1 2008724: c4 00 60 c0 ld [ %g1 + 0xc0 ], %g2 ! 201ccc0 <_Thread_Maximum_extensions> 2008728: 10 80 00 05 b 200873c <_Thread_Initialize+0xe0> 200872c: 82 10 20 00 clr %g1 the_thread->extensions[i] = NULL; 2008730: 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++ ) 2008734: 82 00 60 01 inc %g1 the_thread->extensions[i] = NULL; 2008738: 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++ ) 200873c: 80 a0 40 02 cmp %g1, %g2 2008740: 28 bf ff fc bleu,a 2008730 <_Thread_Initialize+0xd4> 2008744: c8 06 61 6c ld [ %i1 + 0x16c ], %g4 /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; 2008748: c2 07 a0 60 ld [ %fp + 0x60 ], %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 ); 200874c: 92 10 00 1d mov %i5, %o1 /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; 2008750: c2 26 60 b0 st %g1, [ %i1 + 0xb0 ] the_thread->Start.budget_callout = budget_callout; 2008754: c2 07 a0 64 ld [ %fp + 0x64 ], %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 ); 2008758: 90 10 00 19 mov %i1, %o0 * General initialization */ the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; the_thread->Start.budget_callout = budget_callout; 200875c: c2 26 60 b4 st %g1, [ %i1 + 0xb4 ] case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; #endif } the_thread->Start.isr_level = isr_level; 2008760: c2 07 a0 68 ld [ %fp + 0x68 ], %g1 /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; 2008764: e2 2e 60 ac stb %l1, [ %i1 + 0xac ] case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; #endif } the_thread->Start.isr_level = isr_level; 2008768: c2 26 60 b8 st %g1, [ %i1 + 0xb8 ] the_thread->current_state = STATES_DORMANT; 200876c: 82 10 20 01 mov 1, %g1 the_thread->Wait.queue = NULL; 2008770: c0 26 60 44 clr [ %i1 + 0x44 ] #endif } the_thread->Start.isr_level = isr_level; the_thread->current_state = STATES_DORMANT; 2008774: c2 26 60 10 st %g1, [ %i1 + 0x10 ] the_thread->Wait.queue = NULL; the_thread->resource_count = 0; 2008778: c0 26 60 1c clr [ %i1 + 0x1c ] #if defined(RTEMS_ITRON_API) the_thread->suspend_count = 0; #endif the_thread->real_priority = priority; 200877c: fa 26 60 18 st %i5, [ %i1 + 0x18 ] the_thread->Start.initial_priority = priority; _Thread_Set_priority( the_thread, priority ); 2008780: 40 00 01 bb call 2008e6c <_Thread_Set_priority> 2008784: fa 26 60 bc st %i5, [ %i1 + 0xbc ] #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 2008788: c2 16 60 0a lduh [ %i1 + 0xa ], %g1 200878c: c4 06 20 1c ld [ %i0 + 0x1c ], %g2 2008790: 83 28 60 02 sll %g1, 2, %g1 information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 2008794: e0 26 60 0c st %l0, [ %i1 + 0xc ] #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 2008798: 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 ); 200879c: c0 26 60 84 clr [ %i1 + 0x84 ] 20087a0: 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 ); 20087a4: 90 10 00 19 mov %i1, %o0 20087a8: 40 00 03 75 call 200957c <_User_extensions_Thread_create> 20087ac: b0 10 20 01 mov 1, %i0 if ( extension_status ) 20087b0: 80 8a 20 ff btst 0xff, %o0 20087b4: 12 80 00 27 bne 2008850 <_Thread_Initialize+0x1f4> 20087b8: 01 00 00 00 nop return true; failed: if ( the_thread->libc_reent ) 20087bc: d0 06 61 5c ld [ %i1 + 0x15c ], %o0 20087c0: 80 a2 20 00 cmp %o0, 0 20087c4: 22 80 00 05 be,a 20087d8 <_Thread_Initialize+0x17c> 20087c8: d0 06 61 60 ld [ %i1 + 0x160 ], %o0 _Workspace_Free( the_thread->libc_reent ); 20087cc: 40 00 04 80 call 20099cc <_Workspace_Free> 20087d0: 01 00 00 00 nop for ( i=0 ; i <= THREAD_API_LAST ; i++ ) if ( the_thread->API_Extensions[i] ) 20087d4: d0 06 61 60 ld [ %i1 + 0x160 ], %o0 20087d8: 80 a2 20 00 cmp %o0, 0 20087dc: 22 80 00 05 be,a 20087f0 <_Thread_Initialize+0x194> 20087e0: d0 06 61 64 ld [ %i1 + 0x164 ], %o0 _Workspace_Free( the_thread->API_Extensions[i] ); 20087e4: 40 00 04 7a call 20099cc <_Workspace_Free> 20087e8: 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] ) 20087ec: d0 06 61 64 ld [ %i1 + 0x164 ], %o0 20087f0: 80 a2 20 00 cmp %o0, 0 20087f4: 22 80 00 05 be,a 2008808 <_Thread_Initialize+0x1ac> <== ALWAYS TAKEN 20087f8: d0 06 61 68 ld [ %i1 + 0x168 ], %o0 _Workspace_Free( the_thread->API_Extensions[i] ); 20087fc: 40 00 04 74 call 20099cc <_Workspace_Free> <== NOT EXECUTED 2008800: 01 00 00 00 nop <== NOT EXECUTED 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] ) 2008804: d0 06 61 68 ld [ %i1 + 0x168 ], %o0 <== NOT EXECUTED 2008808: 80 a2 20 00 cmp %o0, 0 200880c: 02 80 00 05 be 2008820 <_Thread_Initialize+0x1c4> <== ALWAYS TAKEN 2008810: 80 a6 e0 00 cmp %i3, 0 _Workspace_Free( the_thread->API_Extensions[i] ); 2008814: 40 00 04 6e call 20099cc <_Workspace_Free> <== NOT EXECUTED 2008818: 01 00 00 00 nop <== NOT EXECUTED if ( extensions_area ) 200881c: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 2008820: 02 80 00 05 be 2008834 <_Thread_Initialize+0x1d8> 2008824: 80 a4 a0 00 cmp %l2, 0 (void) _Workspace_Free( extensions_area ); 2008828: 40 00 04 69 call 20099cc <_Workspace_Free> 200882c: 90 10 00 1b mov %i3, %o0 #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( fp_area ) 2008830: 80 a4 a0 00 cmp %l2, 0 2008834: 02 80 00 05 be 2008848 <_Thread_Initialize+0x1ec> 2008838: 90 10 00 19 mov %i1, %o0 (void) _Workspace_Free( fp_area ); 200883c: 40 00 04 64 call 20099cc <_Workspace_Free> 2008840: 90 10 00 12 mov %l2, %o0 #endif _Thread_Stack_Free( the_thread ); 2008844: 90 10 00 19 mov %i1, %o0 2008848: 40 00 02 42 call 2009150 <_Thread_Stack_Free> 200884c: b0 10 20 00 clr %i0 return false; } 2008850: 81 c7 e0 08 ret 2008854: 81 e8 00 00 restore =============================================================================== 0200d45c <_Thread_Reset_timeslice>: * ready chain * select heir */ void _Thread_Reset_timeslice( void ) { 200d45c: 9d e3 bf a0 save %sp, -96, %sp ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; 200d460: 03 00 80 73 sethi %hi(0x201cc00), %g1 200d464: e0 00 60 e0 ld [ %g1 + 0xe0 ], %l0 ! 201cce0 <_Thread_Executing> ready = executing->ready; _ISR_Disable( level ); 200d468: 7f ff d2 d7 call 2001fc4 200d46c: e2 04 20 8c ld [ %l0 + 0x8c ], %l1 200d470: b0 10 00 08 mov %o0, %i0 if ( _Chain_Has_only_one_node( ready ) ) { 200d474: c4 04 40 00 ld [ %l1 ], %g2 200d478: c2 04 60 08 ld [ %l1 + 8 ], %g1 200d47c: 80 a0 80 01 cmp %g2, %g1 200d480: 02 80 00 19 be 200d4e4 <_Thread_Reset_timeslice+0x88> 200d484: 86 04 60 04 add %l1, 4, %g3 ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 200d488: c2 04 00 00 ld [ %l0 ], %g1 previous = the_node->previous; 200d48c: c4 04 20 04 ld [ %l0 + 4 ], %g2 next->previous = previous; previous->next = next; 200d490: c2 20 80 00 st %g1, [ %g2 ] Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 200d494: c6 24 00 00 st %g3, [ %l0 ] Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; 200d498: 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; 200d49c: c2 04 60 08 ld [ %l1 + 8 ], %g1 the_chain->last = the_node; 200d4a0: e0 24 60 08 st %l0, [ %l1 + 8 ] old_last_node->next = the_node; the_node->previous = old_last_node; 200d4a4: 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; 200d4a8: e0 20 40 00 st %l0, [ %g1 ] return; } _Chain_Extract_unprotected( &executing->Object.Node ); _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); 200d4ac: 7f ff d2 ca call 2001fd4 200d4b0: 01 00 00 00 nop 200d4b4: 7f ff d2 c4 call 2001fc4 200d4b8: 01 00 00 00 nop if ( _Thread_Is_heir( executing ) ) 200d4bc: 03 00 80 73 sethi %hi(0x201cc00), %g1 200d4c0: c4 00 60 b0 ld [ %g1 + 0xb0 ], %g2 ! 201ccb0 <_Thread_Heir> 200d4c4: 80 a4 00 02 cmp %l0, %g2 200d4c8: 12 80 00 05 bne 200d4dc <_Thread_Reset_timeslice+0x80> <== NEVER TAKEN 200d4cc: 84 10 20 01 mov 1, %g2 _Thread_Heir = (Thread_Control *) ready->first; 200d4d0: c4 04 40 00 ld [ %l1 ], %g2 200d4d4: c4 20 60 b0 st %g2, [ %g1 + 0xb0 ] _Context_Switch_necessary = true; 200d4d8: 84 10 20 01 mov 1, %g2 200d4dc: 03 00 80 73 sethi %hi(0x201cc00), %g1 200d4e0: c4 28 60 f0 stb %g2, [ %g1 + 0xf0 ] ! 201ccf0 <_Context_Switch_necessary> _ISR_Enable( level ); 200d4e4: 7f ff d2 bc call 2001fd4 200d4e8: 81 e8 00 00 restore =============================================================================== 0200c5d4 <_Thread_Resume>: void _Thread_Resume( Thread_Control *the_thread, bool force ) { 200c5d4: 9d e3 bf a0 save %sp, -96, %sp ISR_Level level; States_Control current_state; _ISR_Disable( level ); 200c5d8: 7f ff d6 cb call 2002104 200c5dc: a0 10 00 18 mov %i0, %l0 200c5e0: b0 10 00 08 mov %o0, %i0 _ISR_Enable( level ); return; } #endif current_state = the_thread->current_state; 200c5e4: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 if ( current_state & STATES_SUSPENDED ) { 200c5e8: 80 88 60 02 btst 2, %g1 200c5ec: 02 80 00 2c be 200c69c <_Thread_Resume+0xc8> <== NEVER TAKEN 200c5f0: 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 ) ) { 200c5f4: 80 a0 60 00 cmp %g1, 0 200c5f8: 12 80 00 29 bne 200c69c <_Thread_Resume+0xc8> 200c5fc: 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; 200c600: 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); 200c604: c2 04 20 8c ld [ %l0 + 0x8c ], %g1 200c608: c8 10 80 00 lduh [ %g2 ], %g4 200c60c: c6 14 20 96 lduh [ %l0 + 0x96 ], %g3 200c610: 86 11 00 03 or %g4, %g3, %g3 200c614: c6 30 80 00 sth %g3, [ %g2 ] Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 200c618: 84 00 60 04 add %g1, 4, %g2 _Priority_Major_bit_map |= the_priority_map->ready_major; 200c61c: da 14 20 94 lduh [ %l0 + 0x94 ], %o5 200c620: c4 24 00 00 st %g2, [ %l0 ] 200c624: 07 00 80 81 sethi %hi(0x2020400), %g3 old_last_node = the_chain->last; 200c628: c4 00 60 08 ld [ %g1 + 8 ], %g2 200c62c: c8 10 e3 d4 lduh [ %g3 + 0x3d4 ], %g4 the_chain->last = the_node; 200c630: e0 20 60 08 st %l0, [ %g1 + 8 ] old_last_node->next = the_node; the_node->previous = old_last_node; 200c634: c4 24 20 04 st %g2, [ %l0 + 4 ] 200c638: 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; 200c63c: e0 20 80 00 st %l0, [ %g2 ] 200c640: c2 30 e3 d4 sth %g1, [ %g3 + 0x3d4 ] _ISR_Flash( level ); 200c644: 7f ff d6 b4 call 2002114 200c648: 01 00 00 00 nop 200c64c: 7f ff d6 ae call 2002104 200c650: 01 00 00 00 nop if ( the_thread->current_priority < _Thread_Heir->current_priority ) { 200c654: 05 00 80 81 sethi %hi(0x2020400), %g2 200c658: c6 00 a3 b0 ld [ %g2 + 0x3b0 ], %g3 ! 20207b0 <_Thread_Heir> 200c65c: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 200c660: c6 00 e0 14 ld [ %g3 + 0x14 ], %g3 200c664: 80 a0 40 03 cmp %g1, %g3 200c668: 1a 80 00 0d bcc 200c69c <_Thread_Resume+0xc8> 200c66c: 07 00 80 81 sethi %hi(0x2020400), %g3 _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible || 200c670: c6 00 e3 e0 ld [ %g3 + 0x3e0 ], %g3 ! 20207e0 <_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; 200c674: e0 20 a3 b0 st %l0, [ %g2 + 0x3b0 ] if ( _Thread_Executing->is_preemptible || 200c678: c4 08 e0 75 ldub [ %g3 + 0x75 ], %g2 200c67c: 80 a0 a0 00 cmp %g2, 0 200c680: 12 80 00 05 bne 200c694 <_Thread_Resume+0xc0> 200c684: 84 10 20 01 mov 1, %g2 200c688: 80 a0 60 00 cmp %g1, 0 200c68c: 12 80 00 04 bne 200c69c <_Thread_Resume+0xc8> <== ALWAYS TAKEN 200c690: 01 00 00 00 nop the_thread->current_priority == 0 ) _Context_Switch_necessary = true; 200c694: 03 00 80 81 sethi %hi(0x2020400), %g1 200c698: c4 28 63 f0 stb %g2, [ %g1 + 0x3f0 ] ! 20207f0 <_Context_Switch_necessary> } } } _ISR_Enable( level ); 200c69c: 7f ff d6 9e call 2002114 200c6a0: 81 e8 00 00 restore =============================================================================== 02009294 <_Thread_Yield_processor>: * ready chain * select heir */ void _Thread_Yield_processor( void ) { 2009294: 9d e3 bf a0 save %sp, -96, %sp ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; 2009298: 03 00 80 73 sethi %hi(0x201cc00), %g1 200929c: e0 00 60 e0 ld [ %g1 + 0xe0 ], %l0 ! 201cce0 <_Thread_Executing> ready = executing->ready; _ISR_Disable( level ); 20092a0: 7f ff e3 49 call 2001fc4 20092a4: e2 04 20 8c ld [ %l0 + 0x8c ], %l1 20092a8: b0 10 00 08 mov %o0, %i0 if ( !_Chain_Has_only_one_node( ready ) ) { 20092ac: c4 04 40 00 ld [ %l1 ], %g2 20092b0: c2 04 60 08 ld [ %l1 + 8 ], %g1 20092b4: 80 a0 80 01 cmp %g2, %g1 20092b8: 02 80 00 17 be 2009314 <_Thread_Yield_processor+0x80> 20092bc: 25 00 80 73 sethi %hi(0x201cc00), %l2 ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 20092c0: c2 04 00 00 ld [ %l0 ], %g1 previous = the_node->previous; 20092c4: c4 04 20 04 ld [ %l0 + 4 ], %g2 Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 20092c8: 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; 20092cc: c2 20 80 00 st %g1, [ %g2 ] Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 20092d0: c6 24 00 00 st %g3, [ %l0 ] Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; 20092d4: 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; 20092d8: c2 04 60 08 ld [ %l1 + 8 ], %g1 the_chain->last = the_node; 20092dc: e0 24 60 08 st %l0, [ %l1 + 8 ] old_last_node->next = the_node; the_node->previous = old_last_node; 20092e0: 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; 20092e4: e0 20 40 00 st %l0, [ %g1 ] _Chain_Extract_unprotected( &executing->Object.Node ); _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); 20092e8: 7f ff e3 3b call 2001fd4 20092ec: 01 00 00 00 nop 20092f0: 7f ff e3 35 call 2001fc4 20092f4: 01 00 00 00 nop if ( _Thread_Is_heir( executing ) ) 20092f8: c2 04 a0 b0 ld [ %l2 + 0xb0 ], %g1 20092fc: 80 a4 00 01 cmp %l0, %g1 2009300: 12 80 00 09 bne 2009324 <_Thread_Yield_processor+0x90> <== NEVER TAKEN 2009304: 84 10 20 01 mov 1, %g2 _Thread_Heir = (Thread_Control *) ready->first; 2009308: c2 04 40 00 ld [ %l1 ], %g1 200930c: 10 80 00 06 b 2009324 <_Thread_Yield_processor+0x90> 2009310: c2 24 a0 b0 st %g1, [ %l2 + 0xb0 ] _Context_Switch_necessary = true; } else if ( !_Thread_Is_heir( executing ) ) 2009314: c2 04 a0 b0 ld [ %l2 + 0xb0 ], %g1 2009318: 80 a4 00 01 cmp %l0, %g1 200931c: 02 80 00 04 be 200932c <_Thread_Yield_processor+0x98> <== ALWAYS TAKEN 2009320: 84 10 20 01 mov 1, %g2 _Context_Switch_necessary = true; 2009324: 03 00 80 73 sethi %hi(0x201cc00), %g1 2009328: c4 28 60 f0 stb %g2, [ %g1 + 0xf0 ] ! 201ccf0 <_Context_Switch_necessary> _ISR_Enable( level ); 200932c: 7f ff e3 2a call 2001fd4 2009330: 81 e8 00 00 restore =============================================================================== 02008b74 <_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 ) { 2008b74: 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; 2008b78: 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); 2008b7c: 82 06 60 3c add %i1, 0x3c, %g1 the_chain->permanent_null = NULL; 2008b80: 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); 2008b84: c2 26 60 38 st %g1, [ %i1 + 0x38 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 2008b88: 82 06 60 38 add %i1, 0x38, %g1 2008b8c: 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; 2008b90: 2d 00 80 70 sethi %hi(0x201c000), %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 ]; 2008b94: 83 34 20 06 srl %l0, 6, %g1 block_state = the_thread_queue->state; if ( _Thread_queue_Is_reverse_search( priority ) ) 2008b98: 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 ]; 2008b9c: 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; 2008ba0: ac 15 a1 64 or %l6, 0x164, %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 ]; 2008ba4: 83 28 60 02 sll %g1, 2, %g1 block_state = the_thread_queue->state; 2008ba8: 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 ]; 2008bac: a6 24 c0 01 sub %l3, %g1, %l3 block_state = the_thread_queue->state; if ( _Thread_queue_Is_reverse_search( priority ) ) 2008bb0: 12 80 00 23 bne 2008c3c <_Thread_queue_Enqueue_priority+0xc8> 2008bb4: 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; 2008bb8: ac 04 e0 04 add %l3, 4, %l6 goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); 2008bbc: 7f ff e5 02 call 2001fc4 2008bc0: 01 00 00 00 nop 2008bc4: a4 10 00 08 mov %o0, %l2 search_thread = (Thread_Control *) header->first; 2008bc8: a8 10 3f ff mov -1, %l4 while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 2008bcc: 10 80 00 10 b 2008c0c <_Thread_queue_Enqueue_priority+0x98> 2008bd0: e2 04 c0 00 ld [ %l3 ], %l1 search_priority = search_thread->current_priority; if ( priority <= search_priority ) 2008bd4: 80 a4 00 14 cmp %l0, %l4 2008bd8: 28 80 00 11 bleu,a 2008c1c <_Thread_queue_Enqueue_priority+0xa8> 2008bdc: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 break; search_priority = search_thread->current_priority; if ( priority <= search_priority ) break; #endif _ISR_Flash( level ); 2008be0: 7f ff e4 fd call 2001fd4 2008be4: 90 10 00 12 mov %l2, %o0 2008be8: 7f ff e4 f7 call 2001fc4 2008bec: 01 00 00 00 nop if ( !_States_Are_set( search_thread->current_state, block_state) ) { 2008bf0: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 2008bf4: 80 8d 40 01 btst %l5, %g1 2008bf8: 32 80 00 05 bne,a 2008c0c <_Thread_queue_Enqueue_priority+0x98><== ALWAYS TAKEN 2008bfc: e2 04 40 00 ld [ %l1 ], %l1 _ISR_Enable( level ); 2008c00: 7f ff e4 f5 call 2001fd4 <== NOT EXECUTED 2008c04: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED goto restart_forward_search; 2008c08: 30 bf ff ed b,a 2008bbc <_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 ) ) { 2008c0c: 80 a4 40 16 cmp %l1, %l6 2008c10: 32 bf ff f1 bne,a 2008bd4 <_Thread_queue_Enqueue_priority+0x60> 2008c14: e8 04 60 14 ld [ %l1 + 0x14 ], %l4 } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 2008c18: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 2008c1c: 80 a0 60 01 cmp %g1, 1 2008c20: 12 80 00 37 bne 2008cfc <_Thread_queue_Enqueue_priority+0x188> 2008c24: 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 ) 2008c28: 80 a4 00 14 cmp %l0, %l4 2008c2c: 12 80 00 2a bne 2008cd4 <_Thread_queue_Enqueue_priority+0x160> 2008c30: c0 26 20 30 clr [ %i0 + 0x30 ] 2008c34: 10 80 00 28 b 2008cd4 <_Thread_queue_Enqueue_priority+0x160> 2008c38: 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 ); 2008c3c: 7f ff e4 e2 call 2001fc4 2008c40: 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; 2008c44: a8 05 20 01 inc %l4 _ISR_Disable( level ); 2008c48: a4 10 00 08 mov %o0, %l2 search_thread = (Thread_Control *) header->last; while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { 2008c4c: 10 80 00 10 b 2008c8c <_Thread_queue_Enqueue_priority+0x118> 2008c50: e2 04 e0 08 ld [ %l3 + 8 ], %l1 search_priority = search_thread->current_priority; if ( priority >= search_priority ) 2008c54: 80 a4 00 14 cmp %l0, %l4 2008c58: 3a 80 00 11 bcc,a 2008c9c <_Thread_queue_Enqueue_priority+0x128> 2008c5c: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 break; search_priority = search_thread->current_priority; if ( priority >= search_priority ) break; #endif _ISR_Flash( level ); 2008c60: 7f ff e4 dd call 2001fd4 2008c64: 90 10 00 12 mov %l2, %o0 2008c68: 7f ff e4 d7 call 2001fc4 2008c6c: 01 00 00 00 nop if ( !_States_Are_set( search_thread->current_state, block_state) ) { 2008c70: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 2008c74: 80 8d 40 01 btst %l5, %g1 2008c78: 32 80 00 05 bne,a 2008c8c <_Thread_queue_Enqueue_priority+0x118> 2008c7c: e2 04 60 04 ld [ %l1 + 4 ], %l1 _ISR_Enable( level ); 2008c80: 7f ff e4 d5 call 2001fd4 2008c84: 90 10 00 12 mov %l2, %o0 goto restart_reverse_search; 2008c88: 30 bf ff ed b,a 2008c3c <_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 ) ) { 2008c8c: 80 a4 40 13 cmp %l1, %l3 2008c90: 32 bf ff f1 bne,a 2008c54 <_Thread_queue_Enqueue_priority+0xe0> 2008c94: e8 04 60 14 ld [ %l1 + 0x14 ], %l4 } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 2008c98: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 2008c9c: 80 a0 60 01 cmp %g1, 1 2008ca0: 12 80 00 17 bne 2008cfc <_Thread_queue_Enqueue_priority+0x188> 2008ca4: 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 ) 2008ca8: 80 a4 00 14 cmp %l0, %l4 2008cac: 02 80 00 09 be 2008cd0 <_Thread_queue_Enqueue_priority+0x15c> 2008cb0: c0 26 20 30 clr [ %i0 + 0x30 ] goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; 2008cb4: c2 04 40 00 ld [ %l1 ], %g1 the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; 2008cb8: 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; 2008cbc: 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; 2008cc0: 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; 2008cc4: f2 24 40 00 st %i1, [ %l1 ] next_node->previous = the_node; 2008cc8: 10 80 00 09 b 2008cec <_Thread_queue_Enqueue_priority+0x178> 2008ccc: f2 20 60 04 st %i1, [ %g1 + 4 ] 2008cd0: 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; 2008cd4: c2 04 60 04 ld [ %l1 + 4 ], %g1 the_node = (Chain_Node *) the_thread; the_node->next = search_node; 2008cd8: e2 26 40 00 st %l1, [ %i1 ] the_node->previous = previous_node; 2008cdc: 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; 2008ce0: 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; 2008ce4: f2 20 40 00 st %i1, [ %g1 ] search_node->previous = the_node; 2008ce8: f2 24 60 04 st %i1, [ %l1 + 4 ] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 2008cec: 7f ff e4 ba call 2001fd4 2008cf0: b0 10 20 01 mov 1, %i0 return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 2008cf4: 81 c7 e0 08 ret 2008cf8: 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; 2008cfc: 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; 2008d00: d0 26 80 00 st %o0, [ %i2 ] return the_thread_queue->sync_state; } 2008d04: 81 c7 e0 08 ret 2008d08: 81 e8 00 00 restore =============================================================================== 02008db8 <_Thread_queue_Requeue>: void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { 2008db8: 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 ) 2008dbc: 80 a6 20 00 cmp %i0, 0 2008dc0: 02 80 00 19 be 2008e24 <_Thread_queue_Requeue+0x6c> <== NEVER TAKEN 2008dc4: 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 ) { 2008dc8: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 2008dcc: 80 a4 60 01 cmp %l1, 1 2008dd0: 12 80 00 15 bne 2008e24 <_Thread_queue_Requeue+0x6c> <== NEVER TAKEN 2008dd4: 01 00 00 00 nop Thread_queue_Control *tq = the_thread_queue; ISR_Level level; ISR_Level level_ignored; _ISR_Disable( level ); 2008dd8: 7f ff e4 7b call 2001fc4 2008ddc: 01 00 00 00 nop 2008de0: a0 10 00 08 mov %o0, %l0 if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 2008de4: c4 06 60 10 ld [ %i1 + 0x10 ], %g2 2008de8: 03 00 00 ef sethi %hi(0x3bc00), %g1 2008dec: 82 10 62 e0 or %g1, 0x2e0, %g1 ! 3bee0 2008df0: 80 88 80 01 btst %g2, %g1 2008df4: 02 80 00 0a be 2008e1c <_Thread_queue_Requeue+0x64> <== NEVER TAKEN 2008df8: 94 10 20 01 mov 1, %o2 _Thread_queue_Enter_critical_section( tq ); _Thread_queue_Extract_priority_helper( tq, the_thread, true ); 2008dfc: 90 10 00 18 mov %i0, %o0 2008e00: 92 10 00 19 mov %i1, %o1 2008e04: 40 00 10 f5 call 200d1d8 <_Thread_queue_Extract_priority_helper> 2008e08: e2 26 20 30 st %l1, [ %i0 + 0x30 ] (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored ); 2008e0c: 90 10 00 18 mov %i0, %o0 2008e10: 92 10 00 19 mov %i1, %o1 2008e14: 7f ff ff 58 call 2008b74 <_Thread_queue_Enqueue_priority> 2008e18: 94 07 bf fc add %fp, -4, %o2 } _ISR_Enable( level ); 2008e1c: 7f ff e4 6e call 2001fd4 2008e20: 90 10 00 10 mov %l0, %o0 2008e24: 81 c7 e0 08 ret 2008e28: 81 e8 00 00 restore =============================================================================== 02008e2c <_Thread_queue_Timeout>: void _Thread_queue_Timeout( Objects_Id id, void *ignored __attribute__((unused)) ) { 2008e2c: 9d e3 bf 98 save %sp, -104, %sp Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 2008e30: 90 10 00 18 mov %i0, %o0 2008e34: 7f ff fd df call 20085b0 <_Thread_Get> 2008e38: 92 07 bf fc add %fp, -4, %o1 switch ( location ) { 2008e3c: c2 07 bf fc ld [ %fp + -4 ], %g1 2008e40: 80 a0 60 00 cmp %g1, 0 2008e44: 12 80 00 08 bne 2008e64 <_Thread_queue_Timeout+0x38> <== NEVER TAKEN 2008e48: 01 00 00 00 nop #if defined(RTEMS_MULTIPROCESSING) case OBJECTS_REMOTE: /* impossible */ #endif break; case OBJECTS_LOCAL: _Thread_queue_Process_timeout( the_thread ); 2008e4c: 40 00 11 1a call 200d2b4 <_Thread_queue_Process_timeout> 2008e50: 01 00 00 00 nop */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 2008e54: 03 00 80 73 sethi %hi(0x201cc00), %g1 2008e58: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 ! 201cc20 <_Thread_Dispatch_disable_level> 2008e5c: 84 00 bf ff add %g2, -1, %g2 2008e60: c4 20 60 20 st %g2, [ %g1 + 0x20 ] 2008e64: 81 c7 e0 08 ret 2008e68: 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 f6 sethi %hi(0x203d800), %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 f6 sethi %hi(0x203d800), %i3 2015e00: 2b 00 80 f5 sethi %hi(0x203d400), %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 e4 or %i2, 0xe4, %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 e0 24 or %i3, 0x24, %i3 2015e24: aa 15 63 90 or %l5, 0x390, %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 3a call 201a33c <_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 32 call 201a33c <_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 05 call 201a2a0 <_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 5d call 2016810 <_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 4e call 201a410 <_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 32 call 201985c <_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 67 call 2018d48 <_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 71 call 201a580 <_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 6f call 201a580 <_Watchdog_Remove> 2015fc8: 90 10 00 1d mov %i5, %o0 2015fcc: 30 bf ff 9c b,a 2015e3c <_Timer_server_Body+0x58> =============================================================================== 020404bc <_Timespec_Greater_than>: bool _Timespec_Greater_than( const struct timespec *lhs, const struct timespec *rhs ) { if ( lhs->tv_sec > rhs->tv_sec ) 20404bc: c6 02 00 00 ld [ %o0 ], %g3 20404c0: c4 02 40 00 ld [ %o1 ], %g2 bool _Timespec_Greater_than( const struct timespec *lhs, const struct timespec *rhs ) { 20404c4: 82 10 00 08 mov %o0, %g1 if ( lhs->tv_sec > rhs->tv_sec ) 20404c8: 80 a0 c0 02 cmp %g3, %g2 20404cc: 14 80 00 0b bg 20404f8 <_Timespec_Greater_than+0x3c> 20404d0: 90 10 20 01 mov 1, %o0 return true; if ( lhs->tv_sec < rhs->tv_sec ) 20404d4: 80 a0 c0 02 cmp %g3, %g2 20404d8: 06 80 00 08 bl 20404f8 <_Timespec_Greater_than+0x3c> <== NEVER TAKEN 20404dc: 90 10 20 00 clr %o0 #include #include #include bool _Timespec_Greater_than( 20404e0: c4 00 60 04 ld [ %g1 + 4 ], %g2 20404e4: c2 02 60 04 ld [ %o1 + 4 ], %g1 20404e8: 80 a0 80 01 cmp %g2, %g1 20404ec: 14 80 00 03 bg 20404f8 <_Timespec_Greater_than+0x3c> 20404f0: 90 10 20 01 mov 1, %o0 20404f4: 90 10 20 00 clr %o0 /* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec > rhs->tv_nsec ) return true; return false; } 20404f8: 81 c3 e0 08 retl =============================================================================== 0200b838 <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) { 200b838: 9d e3 bf a0 save %sp, -96, %sp ISR_Level level; _ISR_Disable( level ); 200b83c: 7f ff dd c8 call 2002f5c 200b840: 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)); 200b844: 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; 200b848: 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 ) ) { 200b84c: 80 a0 40 11 cmp %g1, %l1 200b850: 02 80 00 1e be 200b8c8 <_Watchdog_Adjust+0x90> 200b854: 80 a6 60 00 cmp %i1, 0 switch ( direction ) { 200b858: 02 80 00 19 be 200b8bc <_Watchdog_Adjust+0x84> 200b85c: a4 10 20 01 mov 1, %l2 200b860: 80 a6 60 01 cmp %i1, 1 200b864: 12 80 00 19 bne 200b8c8 <_Watchdog_Adjust+0x90> <== NEVER TAKEN 200b868: 01 00 00 00 nop case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; 200b86c: c4 00 60 10 ld [ %g1 + 0x10 ], %g2 200b870: 10 80 00 07 b 200b88c <_Watchdog_Adjust+0x54> 200b874: b4 00 80 1a add %g2, %i2, %i2 break; case WATCHDOG_FORWARD: while ( units ) { if ( units < _Watchdog_First( header )->delta_interval ) { 200b878: f2 00 60 10 ld [ %g1 + 0x10 ], %i1 200b87c: 80 a6 80 19 cmp %i2, %i1 200b880: 3a 80 00 05 bcc,a 200b894 <_Watchdog_Adjust+0x5c> 200b884: e4 20 60 10 st %l2, [ %g1 + 0x10 ] _Watchdog_First( header )->delta_interval -= units; 200b888: b4 26 40 1a sub %i1, %i2, %i2 break; 200b88c: 10 80 00 0f b 200b8c8 <_Watchdog_Adjust+0x90> 200b890: f4 20 60 10 st %i2, [ %g1 + 0x10 ] } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 1; _ISR_Enable( level ); 200b894: 7f ff dd b6 call 2002f6c 200b898: 01 00 00 00 nop _Watchdog_Tickle( header ); 200b89c: 40 00 00 94 call 200baec <_Watchdog_Tickle> 200b8a0: 90 10 00 10 mov %l0, %o0 _ISR_Disable( level ); 200b8a4: 7f ff dd ae call 2002f5c 200b8a8: 01 00 00 00 nop if ( _Chain_Is_empty( header ) ) 200b8ac: c2 04 00 00 ld [ %l0 ], %g1 200b8b0: 80 a0 40 11 cmp %g1, %l1 200b8b4: 02 80 00 05 be 200b8c8 <_Watchdog_Adjust+0x90> 200b8b8: 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 ) { 200b8bc: 80 a6 a0 00 cmp %i2, 0 200b8c0: 32 bf ff ee bne,a 200b878 <_Watchdog_Adjust+0x40> <== ALWAYS TAKEN 200b8c4: c2 04 00 00 ld [ %l0 ], %g1 } break; } } _ISR_Enable( level ); 200b8c8: 7f ff dd a9 call 2002f6c 200b8cc: 91 e8 00 08 restore %g0, %o0, %o0 =============================================================================== 02009824 <_Watchdog_Remove>: */ Watchdog_States _Watchdog_Remove( Watchdog_Control *the_watchdog ) { 2009824: 9d e3 bf a0 save %sp, -96, %sp ISR_Level level; Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level ); 2009828: 7f ff e1 e7 call 2001fc4 200982c: a0 10 00 18 mov %i0, %l0 previous_state = the_watchdog->state; 2009830: f0 06 20 08 ld [ %i0 + 8 ], %i0 switch ( previous_state ) { 2009834: 80 a6 20 01 cmp %i0, 1 2009838: 22 80 00 1e be,a 20098b0 <_Watchdog_Remove+0x8c> 200983c: c0 24 20 08 clr [ %l0 + 8 ] 2009840: 0a 80 00 1d bcs 20098b4 <_Watchdog_Remove+0x90> 2009844: 03 00 80 73 sethi %hi(0x201cc00), %g1 2009848: 80 a6 20 03 cmp %i0, 3 200984c: 18 80 00 1a bgu 20098b4 <_Watchdog_Remove+0x90> <== NEVER TAKEN 2009850: 01 00 00 00 nop 2009854: c2 04 00 00 ld [ %l0 ], %g1 break; case WATCHDOG_ACTIVE: case WATCHDOG_REMOVE_IT: the_watchdog->state = WATCHDOG_INACTIVE; 2009858: c0 24 20 08 clr [ %l0 + 8 ] next_watchdog = _Watchdog_Next( the_watchdog ); if ( _Watchdog_Next(next_watchdog) ) 200985c: c4 00 40 00 ld [ %g1 ], %g2 2009860: 80 a0 a0 00 cmp %g2, 0 2009864: 22 80 00 07 be,a 2009880 <_Watchdog_Remove+0x5c> 2009868: 03 00 80 73 sethi %hi(0x201cc00), %g1 next_watchdog->delta_interval += the_watchdog->delta_interval; 200986c: c6 00 60 10 ld [ %g1 + 0x10 ], %g3 ! 201cc10 <_Thread_BSP_context+0x78> 2009870: c4 04 20 10 ld [ %l0 + 0x10 ], %g2 2009874: 84 00 c0 02 add %g3, %g2, %g2 2009878: c4 20 60 10 st %g2, [ %g1 + 0x10 ] if ( _Watchdog_Sync_count ) 200987c: 03 00 80 73 sethi %hi(0x201cc00), %g1 2009880: c2 00 61 70 ld [ %g1 + 0x170 ], %g1 ! 201cd70 <_Watchdog_Sync_count> 2009884: 80 a0 60 00 cmp %g1, 0 2009888: 22 80 00 07 be,a 20098a4 <_Watchdog_Remove+0x80> 200988c: c2 04 00 00 ld [ %l0 ], %g1 _Watchdog_Sync_level = _ISR_Nest_level; 2009890: 03 00 80 73 sethi %hi(0x201cc00), %g1 2009894: c4 00 60 bc ld [ %g1 + 0xbc ], %g2 ! 201ccbc <_ISR_Nest_level> 2009898: 03 00 80 73 sethi %hi(0x201cc00), %g1 200989c: c4 20 60 dc st %g2, [ %g1 + 0xdc ] ! 201ccdc <_Watchdog_Sync_level> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 20098a0: c2 04 00 00 ld [ %l0 ], %g1 previous = the_node->previous; 20098a4: c4 04 20 04 ld [ %l0 + 4 ], %g2 next->previous = previous; previous->next = next; 20098a8: c2 20 80 00 st %g1, [ %g2 ] Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; 20098ac: c4 20 60 04 st %g2, [ %g1 + 4 ] _Chain_Extract_unprotected( &the_watchdog->Node ); break; } the_watchdog->stop_time = _Watchdog_Ticks_since_boot; 20098b0: 03 00 80 73 sethi %hi(0x201cc00), %g1 20098b4: c2 00 61 74 ld [ %g1 + 0x174 ], %g1 ! 201cd74 <_Watchdog_Ticks_since_boot> 20098b8: c2 24 20 18 st %g1, [ %l0 + 0x18 ] _ISR_Enable( level ); 20098bc: 7f ff e1 c6 call 2001fd4 20098c0: 01 00 00 00 nop return( previous_state ); } 20098c4: 81 c7 e0 08 ret 20098c8: 81 e8 00 00 restore =============================================================================== 0200afc8 <_Watchdog_Report_chain>: void _Watchdog_Report_chain( const char *name, Chain_Control *header ) { 200afc8: 9d e3 bf a0 save %sp, -96, %sp ISR_Level level; Chain_Node *node; _ISR_Disable( level ); 200afcc: 7f ff de a2 call 2002a54 200afd0: a0 10 00 18 mov %i0, %l0 200afd4: b0 10 00 08 mov %o0, %i0 printk( "Watchdog Chain: %s %p\n", name, header ); 200afd8: 11 00 80 82 sethi %hi(0x2020800), %o0 200afdc: 94 10 00 19 mov %i1, %o2 200afe0: 90 12 21 d0 or %o0, 0x1d0, %o0 200afe4: 7f ff e5 ee call 200479c 200afe8: 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)); 200afec: 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; 200aff0: b2 06 60 04 add %i1, 4, %i1 if ( !_Chain_Is_empty( header ) ) { 200aff4: 80 a4 40 19 cmp %l1, %i1 200aff8: 02 80 00 0e be 200b030 <_Watchdog_Report_chain+0x68> 200affc: 11 00 80 82 sethi %hi(0x2020800), %o0 node != _Chain_Tail(header) ; node = node->next ) { Watchdog_Control *watch = (Watchdog_Control *) node; _Watchdog_Report( NULL, watch ); 200b000: 92 10 00 11 mov %l1, %o1 200b004: 40 00 00 10 call 200b044 <_Watchdog_Report> 200b008: 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 ) 200b00c: 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 ; 200b010: 80 a4 40 19 cmp %l1, %i1 200b014: 12 bf ff fc bne 200b004 <_Watchdog_Report_chain+0x3c> <== NEVER TAKEN 200b018: 92 10 00 11 mov %l1, %o1 { Watchdog_Control *watch = (Watchdog_Control *) node; _Watchdog_Report( NULL, watch ); } printk( "== end of %s \n", name ); 200b01c: 92 10 00 10 mov %l0, %o1 200b020: 11 00 80 82 sethi %hi(0x2020800), %o0 200b024: 7f ff e5 de call 200479c 200b028: 90 12 21 e8 or %o0, 0x1e8, %o0 ! 20209e8 200b02c: 30 80 00 03 b,a 200b038 <_Watchdog_Report_chain+0x70> } else { printk( "Chain is empty\n" ); 200b030: 7f ff e5 db call 200479c 200b034: 90 12 21 f8 or %o0, 0x1f8, %o0 } _ISR_Enable( level ); 200b038: 7f ff de 8b call 2002a64 200b03c: 81 e8 00 00 restore =============================================================================== 020225ec <__kill>: #endif int __kill( pid_t pid, int sig ) { return 0; } 20225ec: 81 c3 e0 08 retl <== NOT EXECUTED 20225f0: 90 10 20 00 clr %o0 <== NOT EXECUTED =============================================================================== 0201a16c <_exit>: /* * If the toolset uses init/fini sections, then we need to * run the global destructors now. */ #if defined(__USE_INIT_FINI__) FINI_SYMBOL(); 201a16c: 9d e3 bf a0 save %sp, -96, %sp 201a170: 40 00 07 c5 call 201c084 <_fini> 201a174: 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(); 201a178: 7f ff ff e1 call 201a0fc 201a17c: 01 00 00 00 nop rtems_shutdown_executive(status); 201a180: 40 00 00 4c call 201a2b0 201a184: 90 10 00 18 mov %i0, %o0 201a188: 30 80 00 00 b,a 201a188 <_exit+0x1c> <== NOT EXECUTED =============================================================================== 02026130 <_fat_block_read>: uint32_t start, uint32_t offset, uint32_t count, void *buff ) { 2026130: 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; 2026134: 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; 2026138: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED 202613c: b0 10 20 00 clr %i0 <== NOT EXECUTED uint32_t c = 0; while (count > 0) 2026140: 10 80 00 18 b 20261a0 <_fat_block_read+0x70> <== NOT EXECUTED 2026144: a2 07 bf fc add %fp, -4, %l1 <== NOT EXECUTED { rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block); 2026148: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED 202614c: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED 2026150: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2026154: 7f ff fe 91 call 2025b98 <== NOT EXECUTED 2026158: b2 06 60 01 inc %i1 <== NOT EXECUTED if (rc != RC_OK) 202615c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2026160: 22 80 00 04 be,a 2026170 <_fat_block_read+0x40> <== NOT EXECUTED 2026164: d4 14 00 00 lduh [ %l0 ], %o2 <== NOT EXECUTED 2026168: 81 c7 e0 08 ret <== NOT EXECUTED 202616c: 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); 2026170: 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)); 2026174: 94 22 80 1a sub %o2, %i2, %o2 <== NOT EXECUTED 2026178: 80 a2 80 1b cmp %o2, %i3 <== NOT EXECUTED 202617c: 08 80 00 03 bleu 2026188 <_fat_block_read+0x58> <== NOT EXECUTED 2026180: 90 07 00 18 add %i4, %i0, %o0 <== NOT EXECUTED 2026184: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED memcpy((buff + cmpltd), (block->buffer + ofs), c); 2026188: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED count -= c; cmpltd += c; 202618c: 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); 2026190: 92 02 40 1a add %o1, %i2, %o1 <== NOT EXECUTED count -= c; 2026194: 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); 2026198: 40 00 7f f0 call 2046158 <== NOT EXECUTED 202619c: 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) 20261a0: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 20261a4: 12 bf ff e9 bne 2026148 <_fat_block_read+0x18> <== NOT EXECUTED 20261a8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED cmpltd += c; blk++; ofs = 0; } return cmpltd; } 20261ac: 81 c7 e0 08 ret <== NOT EXECUTED 20261b0: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02025b84 <_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); 2025b84: d0 02 20 34 ld [ %o0 + 0x34 ], %o0 <== NOT EXECUTED 2025b88: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2025b8c: 7f ff ff a2 call 2025a14 <== NOT EXECUTED 2025b90: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED =============================================================================== 02025d94 <_fat_block_write>: rtems_filesystem_mount_table_entry_t *mt_entry, uint32_t start, uint32_t offset, uint32_t count, const void *buff) { 2025d94: 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; 2025d98: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED int rc = RC_OK; fat_fs_info_t *fs_info = mt_entry->fs_info; 2025d9c: 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; 2025da0: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED 2025da4: b0 10 20 00 clr %i0 <== NOT EXECUTED uint32_t c = 0; while(count > 0) 2025da8: 10 80 00 22 b 2025e30 <_fat_block_write+0x9c> <== NOT EXECUTED 2025dac: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED { c = MIN(count, (fs_info->vol.bps - ofs)); 2025db0: a2 20 40 1a sub %g1, %i2, %l1 <== NOT EXECUTED 2025db4: 80 a4 40 1b cmp %l1, %i3 <== NOT EXECUTED 2025db8: 08 80 00 03 bleu 2025dc4 <_fat_block_write+0x30> <== NOT EXECUTED 2025dbc: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2025dc0: a2 10 00 1b mov %i3, %l1 <== NOT EXECUTED if (c == fs_info->vol.bps) 2025dc4: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED 2025dc8: 32 80 00 07 bne,a 2025de4 <_fat_block_write+0x50> <== NOT EXECUTED 2025dcc: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_GET, &block); 2025dd0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2025dd4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2025dd8: 94 10 20 02 mov 2, %o2 <== NOT EXECUTED 2025ddc: 10 80 00 04 b 2025dec <_fat_block_write+0x58> <== NOT EXECUTED 2025de0: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED else rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block); 2025de4: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED 2025de8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2025dec: 7f ff ff 6b call 2025b98 <== NOT EXECUTED 2025df0: 01 00 00 00 nop <== NOT EXECUTED if (rc != RC_OK) 2025df4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025df8: 02 80 00 04 be 2025e08 <_fat_block_write+0x74> <== NOT EXECUTED 2025dfc: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 2025e00: 81 c7 e0 08 ret <== NOT EXECUTED 2025e04: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED return -1; memcpy((block->buffer + ofs), (buff + cmpltd), c); 2025e08: 92 07 00 18 add %i4, %i0, %o1 <== NOT EXECUTED 2025e0c: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED 2025e10: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED 2025e14: 90 02 00 1a add %o0, %i2, %o0 <== NOT EXECUTED 2025e18: 40 00 80 d0 call 2046158 <== NOT EXECUTED 2025e1c: b6 26 c0 11 sub %i3, %l1, %i3 <== NOT EXECUTED fat_buf_mark_modified(fs_info); count -= c; cmpltd +=c; blk++; 2025e20: 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; 2025e24: b0 04 40 18 add %l1, %i0, %i0 <== NOT EXECUTED 2025e28: e6 2c 20 84 stb %l3, [ %l0 + 0x84 ] <== NOT EXECUTED blk++; 2025e2c: 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) 2025e30: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 2025e34: 32 bf ff df bne,a 2025db0 <_fat_block_write+0x1c> <== NOT EXECUTED 2025e38: c2 14 00 00 lduh [ %l0 ], %g1 <== NOT EXECUTED cmpltd +=c; blk++; ofs = 0; } return cmpltd; } 2025e3c: 81 c7 e0 08 ret <== NOT EXECUTED 2025e40: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0203f704 <_fcntl_r>: int fd, int cmd, int arg ) { return fcntl( fd, cmd, arg ); 203f704: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 203f708: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 203f70c: 94 10 00 0b mov %o3, %o2 <== NOT EXECUTED 203f710: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 203f714: 7f ff ff 7f call 203f510 <== NOT EXECUTED 203f718: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED =============================================================================== 020225c0 <_getpid_r>: pid_t _getpid_r( struct _reent *ptr __attribute__((unused)) ) { return getpid(); } 20225c0: 81 c3 e0 08 retl <== NOT EXECUTED 20225c4: 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 =============================================================================== 020225e4 <_kill_r>: #include int _kill_r( struct _reent *ptr, pid_t pid, int sig ) { return 0; } 20225e4: 81 c3 e0 08 retl <== NOT EXECUTED 20225e8: 90 10 20 00 clr %o0 <== NOT EXECUTED =============================================================================== 0202989c <_link_r>: struct _reent *ptr __attribute__((unused)), const char *existing, const char *new ) { return link( existing, new ); 202989c: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 20298a0: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 20298a4: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 20298a8: 7f ff ff 74 call 2029678 <== NOT EXECUTED 20298ac: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED =============================================================================== 02029ae4 <_lstat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 2029ae4: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 2029ae8: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 2029aec: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2029af0: 7f ff ff c0 call 20299f0 <== NOT EXECUTED 2029af4: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED =============================================================================== 0201a27c <_realloc_r>: struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { return realloc( ptr, size ); 201a27c: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 201a280: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 201a284: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 201a288: 40 00 00 17 call 201a2e4 <== NOT EXECUTED 201a28c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED =============================================================================== 0205c86c <_rename_r>: int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { 205c86c: 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 ); 205c870: 7f fe ae 13 call 20080bc 205c874: 90 10 00 19 mov %i1, %o0 if ( old_parent_pathlen == 0 ) 205c878: a0 92 20 00 orcc %o0, 0, %l0 205c87c: 12 80 00 09 bne 205c8a0 <_rename_r+0x34> 205c880: 96 07 bf d0 add %fp, -48, %o3 rtems_filesystem_get_start_loc( old, &i, &old_parent_loc ); 205c884: 94 10 00 0b mov %o3, %o2 205c888: 90 10 00 19 mov %i1, %o0 205c88c: 92 07 bf fc add %fp, -4, %o1 205c890: 7f fe b4 f8 call 2009c70 205c894: a2 10 20 00 clr %l1 /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; 205c898: 10 80 00 0b b 205c8c4 <_rename_r+0x58> 205c89c: 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, 205c8a0: 90 10 00 19 mov %i1, %o0 205c8a4: 92 10 00 10 mov %l0, %o1 205c8a8: 94 10 20 02 mov 2, %o2 205c8ac: 7f fe ae 50 call 20081ec 205c8b0: 98 10 20 00 clr %o4 RTEMS_LIBIO_PERMS_WRITE, &old_parent_loc, false ); if ( result != 0 ) 205c8b4: 80 a2 20 00 cmp %o0, 0 205c8b8: 12 80 00 de bne 205cc30 <_rename_r+0x3c4> <== NEVER TAKEN 205c8bc: 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; 205c8c0: 94 10 20 14 mov 0x14, %o2 205c8c4: a6 07 bf e4 add %fp, -28, %l3 205c8c8: a4 07 bf d0 add %fp, -48, %l2 205c8cc: 90 10 00 13 mov %l3, %o0 205c8d0: 7f ff a6 22 call 2046158 205c8d4: 92 10 00 12 mov %l2, %o1 name = old + old_parent_pathlen; 205c8d8: b2 06 40 10 add %i1, %l0, %i1 205c8dc: f2 27 bf f8 st %i1, [ %fp + -8 ] name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 205c8e0: 7f ff b4 7a call 2049ac8 205c8e4: 90 10 00 19 mov %i1, %o0 205c8e8: 92 10 00 08 mov %o0, %o1 205c8ec: 7f fe ad e2 call 2008074 205c8f0: 90 10 00 19 mov %i1, %o0 205c8f4: b2 06 40 08 add %i1, %o0, %i1 205c8f8: f2 27 bf f8 st %i1, [ %fp + -8 ] result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 205c8fc: 7f ff b4 73 call 2049ac8 205c900: 90 10 00 19 mov %i1, %o0 205c904: 94 10 20 00 clr %o2 205c908: 92 10 00 08 mov %o0, %o1 205c90c: 96 10 00 13 mov %l3, %o3 205c910: 90 10 00 19 mov %i1, %o0 205c914: 7f fe ad fa call 20080fc 205c918: 98 10 20 00 clr %o4 0, &old_loc, false ); if ( result != 0 ) { 205c91c: 80 a2 20 00 cmp %o0, 0 205c920: 22 80 00 0e be,a 205c958 <_rename_r+0xec> 205c924: a0 07 bf bc add %fp, -68, %l0 if ( free_old_parentloc ) 205c928: 80 8c 60 ff btst 0xff, %l1 205c92c: 02 80 00 49 be 205ca50 <_rename_r+0x1e4> <== NEVER TAKEN 205c930: b0 10 3f ff mov -1, %i0 rtems_filesystem_freenode( &old_parent_loc ); 205c934: c2 07 bf dc ld [ %fp + -36 ], %g1 205c938: 80 a0 60 00 cmp %g1, 0 205c93c: 02 80 00 be be 205cc34 <_rename_r+0x3c8> <== NEVER TAKEN 205c940: 01 00 00 00 nop 205c944: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 205c948: 80 a0 60 00 cmp %g1, 0 205c94c: 02 80 00 41 be 205ca50 <_rename_r+0x1e4> <== NEVER TAKEN 205c950: 90 10 00 12 mov %l2, %o0 205c954: 30 80 00 3d b,a 205ca48 <_rename_r+0x1dc> /* * Get the parent of the new node we are renaming to. */ rtems_filesystem_get_start_loc( new, &i, &new_parent_loc ); 205c958: 90 10 00 1a mov %i2, %o0 205c95c: 92 07 bf fc add %fp, -4, %o1 205c960: 7f fe b4 c4 call 2009c70 205c964: 94 10 00 10 mov %l0, %o2 if ( !new_parent_loc.ops->evalformake_h ) { 205c968: c2 07 bf c8 ld [ %fp + -56 ], %g1 205c96c: c2 00 60 04 ld [ %g1 + 4 ], %g1 205c970: 80 a0 60 00 cmp %g1, 0 205c974: 12 80 00 0f bne 205c9b0 <_rename_r+0x144> 205c978: d0 07 bf fc ld [ %fp + -4 ], %o0 if ( free_old_parentloc ) 205c97c: 80 8c 60 ff btst 0xff, %l1 205c980: 02 80 00 76 be 205cb58 <_rename_r+0x2ec> <== NEVER TAKEN 205c984: c2 07 bf f0 ld [ %fp + -16 ], %g1 rtems_filesystem_freenode( &old_parent_loc ); 205c988: c2 07 bf dc ld [ %fp + -36 ], %g1 205c98c: 80 a0 60 00 cmp %g1, 0 205c990: 22 80 00 72 be,a 205cb58 <_rename_r+0x2ec> <== NEVER TAKEN 205c994: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 205c998: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 205c99c: 80 a0 60 00 cmp %g1, 0 205c9a0: 12 80 00 6b bne 205cb4c <_rename_r+0x2e0> <== ALWAYS TAKEN 205c9a4: 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 ); 205c9a8: 10 80 00 6c b 205cb58 <_rename_r+0x2ec> <== NOT EXECUTED 205c9ac: 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 ); 205c9b0: 92 10 00 10 mov %l0, %o1 205c9b4: 90 06 80 08 add %i2, %o0, %o0 205c9b8: 9f c0 40 00 call %g1 205c9bc: 94 07 bf f8 add %fp, -8, %o2 if ( result != 0 ) { 205c9c0: 80 a2 20 00 cmp %o0, 0 205c9c4: 02 80 00 25 be 205ca58 <_rename_r+0x1ec> 205c9c8: c2 07 bf cc ld [ %fp + -52 ], %g1 rtems_filesystem_freenode( &new_parent_loc ); 205c9cc: c2 07 bf c8 ld [ %fp + -56 ], %g1 205c9d0: 80 a0 60 00 cmp %g1, 0 205c9d4: 02 80 00 09 be 205c9f8 <_rename_r+0x18c> <== NEVER TAKEN 205c9d8: 80 8c 60 ff btst 0xff, %l1 205c9dc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 205c9e0: 80 a0 60 00 cmp %g1, 0 205c9e4: 02 80 00 05 be 205c9f8 <_rename_r+0x18c> <== NEVER TAKEN 205c9e8: 80 8c 60 ff btst 0xff, %l1 205c9ec: 9f c0 40 00 call %g1 205c9f0: 90 10 00 10 mov %l0, %o0 if ( free_old_parentloc ) 205c9f4: 80 8c 60 ff btst 0xff, %l1 205c9f8: 02 80 00 0d be 205ca2c <_rename_r+0x1c0> <== NEVER TAKEN 205c9fc: c2 07 bf f0 ld [ %fp + -16 ], %g1 rtems_filesystem_freenode( &old_parent_loc ); 205ca00: c2 07 bf dc ld [ %fp + -36 ], %g1 205ca04: 80 a0 60 00 cmp %g1, 0 205ca08: 22 80 00 09 be,a 205ca2c <_rename_r+0x1c0> <== NEVER TAKEN 205ca0c: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 205ca10: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 205ca14: 80 a0 60 00 cmp %g1, 0 205ca18: 22 80 00 05 be,a 205ca2c <_rename_r+0x1c0> <== NEVER TAKEN 205ca1c: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 205ca20: 9f c0 40 00 call %g1 205ca24: 90 07 bf d0 add %fp, -48, %o0 rtems_filesystem_freenode( &old_loc ); 205ca28: c2 07 bf f0 ld [ %fp + -16 ], %g1 205ca2c: 80 a0 60 00 cmp %g1, 0 205ca30: 02 80 00 08 be 205ca50 <_rename_r+0x1e4> <== NEVER TAKEN 205ca34: b0 10 3f ff mov -1, %i0 205ca38: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 205ca3c: 80 a0 60 00 cmp %g1, 0 205ca40: 02 80 00 04 be 205ca50 <_rename_r+0x1e4> <== NEVER TAKEN 205ca44: 90 07 bf e4 add %fp, -28, %o0 205ca48: 9f c0 40 00 call %g1 205ca4c: b0 10 3f ff mov -1, %i0 205ca50: 81 c7 e0 08 ret 205ca54: 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 ) { 205ca58: c6 07 bf e0 ld [ %fp + -32 ], %g3 205ca5c: 80 a0 c0 01 cmp %g3, %g1 205ca60: 02 80 00 26 be 205caf8 <_rename_r+0x28c> 205ca64: c4 07 bf c8 ld [ %fp + -56 ], %g2 rtems_filesystem_freenode( &new_parent_loc ); 205ca68: 80 a0 a0 00 cmp %g2, 0 205ca6c: 02 80 00 09 be 205ca90 <_rename_r+0x224> <== NEVER TAKEN 205ca70: 80 8c 60 ff btst 0xff, %l1 205ca74: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 205ca78: 80 a0 60 00 cmp %g1, 0 205ca7c: 02 80 00 05 be 205ca90 <_rename_r+0x224> <== NEVER TAKEN 205ca80: 80 8c 60 ff btst 0xff, %l1 205ca84: 9f c0 40 00 call %g1 205ca88: 90 10 00 10 mov %l0, %o0 if ( free_old_parentloc ) 205ca8c: 80 8c 60 ff btst 0xff, %l1 205ca90: 02 80 00 0d be 205cac4 <_rename_r+0x258> 205ca94: c2 07 bf f0 ld [ %fp + -16 ], %g1 rtems_filesystem_freenode( &old_parent_loc ); 205ca98: c2 07 bf dc ld [ %fp + -36 ], %g1 205ca9c: 80 a0 60 00 cmp %g1, 0 205caa0: 22 80 00 09 be,a 205cac4 <_rename_r+0x258> <== NEVER TAKEN 205caa4: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 205caa8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 205caac: 80 a0 60 00 cmp %g1, 0 205cab0: 22 80 00 05 be,a 205cac4 <_rename_r+0x258> <== NEVER TAKEN 205cab4: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 205cab8: 9f c0 40 00 call %g1 205cabc: 90 07 bf d0 add %fp, -48, %o0 rtems_filesystem_freenode( &old_loc ); 205cac0: c2 07 bf f0 ld [ %fp + -16 ], %g1 205cac4: 80 a0 60 00 cmp %g1, 0 205cac8: 02 80 00 08 be 205cae8 <_rename_r+0x27c> <== NEVER TAKEN 205cacc: 01 00 00 00 nop 205cad0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 205cad4: 80 a0 60 00 cmp %g1, 0 205cad8: 02 80 00 04 be 205cae8 <_rename_r+0x27c> <== NEVER TAKEN 205cadc: 01 00 00 00 nop 205cae0: 9f c0 40 00 call %g1 205cae4: 90 07 bf e4 add %fp, -28, %o0 rtems_set_errno_and_return_minus_one( EXDEV ); 205cae8: 7f ff 98 50 call 2042c28 <__errno> 205caec: b0 10 3f ff mov -1, %i0 205caf0: 10 80 00 26 b 205cb88 <_rename_r+0x31c> 205caf4: 82 10 20 12 mov 0x12, %g1 } if ( !new_parent_loc.ops->rename_h ) { 205caf8: c2 00 a0 40 ld [ %g2 + 0x40 ], %g1 205cafc: 80 a0 60 00 cmp %g1, 0 205cb00: 12 80 00 25 bne 205cb94 <_rename_r+0x328> 205cb04: d6 07 bf f8 ld [ %fp + -8 ], %o3 rtems_filesystem_freenode( &new_parent_loc ); 205cb08: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 205cb0c: 80 a0 60 00 cmp %g1, 0 205cb10: 02 80 00 05 be 205cb24 <_rename_r+0x2b8> <== NEVER TAKEN 205cb14: 80 8c 60 ff btst 0xff, %l1 205cb18: 9f c0 40 00 call %g1 205cb1c: 90 10 00 10 mov %l0, %o0 if ( free_old_parentloc ) 205cb20: 80 8c 60 ff btst 0xff, %l1 205cb24: 02 80 00 0d be 205cb58 <_rename_r+0x2ec> <== NEVER TAKEN 205cb28: c2 07 bf f0 ld [ %fp + -16 ], %g1 rtems_filesystem_freenode( &old_parent_loc ); 205cb2c: c2 07 bf dc ld [ %fp + -36 ], %g1 205cb30: 80 a0 60 00 cmp %g1, 0 205cb34: 22 80 00 09 be,a 205cb58 <_rename_r+0x2ec> <== NEVER TAKEN 205cb38: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 205cb3c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 205cb40: 80 a0 60 00 cmp %g1, 0 205cb44: 02 80 00 04 be 205cb54 <_rename_r+0x2e8> <== NEVER TAKEN 205cb48: 90 07 bf d0 add %fp, -48, %o0 205cb4c: 9f c0 40 00 call %g1 205cb50: 01 00 00 00 nop rtems_filesystem_freenode( &old_loc ); 205cb54: c2 07 bf f0 ld [ %fp + -16 ], %g1 205cb58: 80 a0 60 00 cmp %g1, 0 205cb5c: 02 80 00 08 be 205cb7c <_rename_r+0x310> <== NEVER TAKEN 205cb60: 01 00 00 00 nop 205cb64: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 205cb68: 80 a0 60 00 cmp %g1, 0 205cb6c: 02 80 00 04 be 205cb7c <_rename_r+0x310> <== NEVER TAKEN 205cb70: 01 00 00 00 nop 205cb74: 9f c0 40 00 call %g1 205cb78: 90 07 bf e4 add %fp, -28, %o0 rtems_set_errno_and_return_minus_one( ENOTSUP ); 205cb7c: 7f ff 98 2b call 2042c28 <__errno> 205cb80: b0 10 3f ff mov -1, %i0 205cb84: 82 10 20 86 mov 0x86, %g1 205cb88: c2 22 00 00 st %g1, [ %o0 ] 205cb8c: 81 c7 e0 08 ret 205cb90: 81 e8 00 00 restore } result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name ); 205cb94: 90 10 00 12 mov %l2, %o0 205cb98: 92 10 00 13 mov %l3, %o1 205cb9c: 9f c0 40 00 call %g1 205cba0: 94 10 00 10 mov %l0, %o2 rtems_filesystem_freenode( &new_parent_loc ); 205cba4: c2 07 bf c8 ld [ %fp + -56 ], %g1 205cba8: 80 a0 60 00 cmp %g1, 0 205cbac: 02 80 00 08 be 205cbcc <_rename_r+0x360> <== NEVER TAKEN 205cbb0: b0 10 00 08 mov %o0, %i0 205cbb4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 205cbb8: 80 a0 60 00 cmp %g1, 0 205cbbc: 02 80 00 05 be 205cbd0 <_rename_r+0x364> <== NEVER TAKEN 205cbc0: 80 8c 60 ff btst 0xff, %l1 205cbc4: 9f c0 40 00 call %g1 205cbc8: 90 10 00 10 mov %l0, %o0 if ( free_old_parentloc ) 205cbcc: 80 8c 60 ff btst 0xff, %l1 205cbd0: 02 80 00 0d be 205cc04 <_rename_r+0x398> 205cbd4: c2 07 bf f0 ld [ %fp + -16 ], %g1 rtems_filesystem_freenode( &old_parent_loc ); 205cbd8: c2 07 bf dc ld [ %fp + -36 ], %g1 205cbdc: 80 a0 60 00 cmp %g1, 0 205cbe0: 22 80 00 09 be,a 205cc04 <_rename_r+0x398> <== NEVER TAKEN 205cbe4: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 205cbe8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 205cbec: 80 a0 60 00 cmp %g1, 0 205cbf0: 22 80 00 05 be,a 205cc04 <_rename_r+0x398> <== NEVER TAKEN 205cbf4: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 205cbf8: 9f c0 40 00 call %g1 205cbfc: 90 07 bf d0 add %fp, -48, %o0 rtems_filesystem_freenode( &old_loc ); 205cc00: c2 07 bf f0 ld [ %fp + -16 ], %g1 205cc04: 80 a0 60 00 cmp %g1, 0 205cc08: 02 80 00 0b be 205cc34 <_rename_r+0x3c8> <== NEVER TAKEN 205cc0c: 01 00 00 00 nop 205cc10: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 205cc14: 80 a0 60 00 cmp %g1, 0 205cc18: 02 80 00 07 be 205cc34 <_rename_r+0x3c8> <== NEVER TAKEN 205cc1c: 01 00 00 00 nop 205cc20: 9f c0 40 00 call %g1 205cc24: 90 07 bf e4 add %fp, -28, %o0 205cc28: 81 c7 e0 08 ret 205cc2c: 81 e8 00 00 restore 205cc30: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return result; } 205cc34: 81 c7 e0 08 ret <== NOT EXECUTED 205cc38: 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 =============================================================================== 0200ef58 <_unlink_r>: int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) { return unlink( path ); 200ef58: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 200ef5c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 200ef60: 7f ff ff 66 call 200ecf8 <== NOT EXECUTED 200ef64: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED =============================================================================== 020028b4 : ) { register char *cptr; size_t length; MSBUMP(calloc_calls, 1); 20028b4: 9d e3 bf a0 save %sp, -96, %sp 20028b8: 03 00 80 72 sethi %hi(0x201c800), %g1 20028bc: 82 10 62 60 or %g1, 0x260, %g1 ! 201ca60 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 58 2c call 2018980 <.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 35 87 call 200ff08 20028f0: 92 10 20 00 clr %o1 MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ 20028f4: 03 00 80 72 sethi %hi(0x201c800), %g1 20028f8: 82 10 62 60 or %g1, 0x260, %g1 ! 201ca60 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 =============================================================================== 020285c4 : #include int chdir( const char *pathname ) { 20285c4: 9d e3 bf 88 save %sp, -120, %sp rtems_filesystem_location_info_t loc; int result; if ( !pathname ) 20285c8: 80 a6 20 00 cmp %i0, 0 20285cc: 12 80 00 06 bne 20285e4 20285d0: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EFAULT ); 20285d4: 40 00 69 95 call 2042c28 <__errno> 20285d8: 01 00 00 00 nop 20285dc: 10 80 00 2f b 2028698 20285e0: 82 10 20 0e mov 0xe, %g1 ! e /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 20285e4: 40 00 85 39 call 2049ac8 20285e8: 90 10 00 18 mov %i0, %o0 20285ec: a0 07 bf ec add %fp, -20, %l0 20285f0: 92 10 00 08 mov %o0, %o1 20285f4: 94 10 20 01 mov 1, %o2 20285f8: 90 10 00 18 mov %i0, %o0 20285fc: 96 10 00 10 mov %l0, %o3 2028600: 98 10 20 01 mov 1, %o4 2028604: 7f ff 7e fa call 20081ec 2028608: b0 10 3f ff mov -1, %i0 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) 202860c: 80 a2 20 00 cmp %o0, 0 2028610: 12 80 00 37 bne 20286ec 2028614: c4 07 bf f8 ld [ %fp + -8 ], %g2 return -1; /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { 2028618: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 202861c: 80 a0 60 00 cmp %g1, 0 2028620: 12 80 00 0c bne 2028650 <== ALWAYS TAKEN 2028624: 01 00 00 00 nop rtems_filesystem_freenode( &loc ); 2028628: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 202862c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2028630: 02 80 00 04 be 2028640 <== NOT EXECUTED 2028634: 01 00 00 00 nop <== NOT EXECUTED 2028638: 9f c0 40 00 call %g1 <== NOT EXECUTED 202863c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2028640: 40 00 69 7a call 2042c28 <__errno> <== NOT EXECUTED 2028644: 01 00 00 00 nop <== NOT EXECUTED 2028648: 10 80 00 14 b 2028698 <== NOT EXECUTED 202864c: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 2028650: 9f c0 40 00 call %g1 2028654: 90 10 00 10 mov %l0, %o0 2028658: 80 a2 20 01 cmp %o0, 1 202865c: 02 80 00 12 be 20286a4 2028660: 03 00 81 a5 sethi %hi(0x2069400), %g1 rtems_filesystem_freenode( &loc ); 2028664: c2 07 bf f8 ld [ %fp + -8 ], %g1 2028668: 80 a0 60 00 cmp %g1, 0 202866c: 02 80 00 08 be 202868c <== NEVER TAKEN 2028670: 01 00 00 00 nop 2028674: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2028678: 80 a0 60 00 cmp %g1, 0 202867c: 02 80 00 04 be 202868c <== NEVER TAKEN 2028680: 01 00 00 00 nop 2028684: 9f c0 40 00 call %g1 2028688: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( ENOTDIR ); 202868c: 40 00 69 67 call 2042c28 <__errno> 2028690: 01 00 00 00 nop 2028694: 82 10 20 14 mov 0x14, %g1 ! 14 2028698: c2 22 00 00 st %g1, [ %o0 ] 202869c: 81 c7 e0 08 ret 20286a0: 91 e8 3f ff restore %g0, -1, %o0 } rtems_filesystem_freenode( &rtems_filesystem_current ); 20286a4: d0 00 60 34 ld [ %g1 + 0x34 ], %o0 20286a8: c2 02 20 10 ld [ %o0 + 0x10 ], %g1 20286ac: 80 a0 60 00 cmp %g1, 0 20286b0: 22 80 00 09 be,a 20286d4 <== NEVER TAKEN 20286b4: 03 00 81 a5 sethi %hi(0x2069400), %g1 <== NOT EXECUTED 20286b8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 206941c 20286bc: 80 a0 60 00 cmp %g1, 0 20286c0: 22 80 00 05 be,a 20286d4 <== NEVER TAKEN 20286c4: 03 00 81 a5 sethi %hi(0x2069400), %g1 <== NOT EXECUTED 20286c8: 9f c0 40 00 call %g1 20286cc: 90 02 20 04 add %o0, 4, %o0 rtems_filesystem_current = loc; 20286d0: 03 00 81 a5 sethi %hi(0x2069400), %g1 20286d4: d0 00 60 34 ld [ %g1 + 0x34 ], %o0 ! 2069434 20286d8: 92 07 bf ec add %fp, -20, %o1 20286dc: 90 02 20 04 add %o0, 4, %o0 20286e0: 94 10 20 14 mov 0x14, %o2 20286e4: 40 00 76 9d call 2046158 20286e8: b0 10 20 00 clr %i0 return 0; } 20286ec: 81 c7 e0 08 ret 20286f0: 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 07 91 call 2049ac8 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 eb cf call 2042c28 <__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 eb be call 2042c28 <__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 =============================================================================== 020286f4 : int chown( const char *path, uid_t owner, gid_t group ) { 20286f4: 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 ) ) 20286f8: 40 00 84 f4 call 2049ac8 20286fc: 90 10 00 18 mov %i0, %o0 2028700: a0 07 bf ec add %fp, -20, %l0 2028704: 92 10 00 08 mov %o0, %o1 2028708: 94 10 20 00 clr %o2 202870c: 90 10 00 18 mov %i0, %o0 2028710: 96 10 00 10 mov %l0, %o3 2028714: 98 10 20 01 mov 1, %o4 2028718: 7f ff 7e b5 call 20081ec 202871c: b0 10 3f ff mov -1, %i0 2028720: 80 a2 20 00 cmp %o0, 0 2028724: 12 80 00 10 bne 2028764 2028728: c4 07 bf f8 ld [ %fp + -8 ], %g2 return -1; if ( !loc.ops->chown_h ) { 202872c: c2 00 a0 18 ld [ %g2 + 0x18 ], %g1 2028730: 80 a0 60 00 cmp %g1, 0 2028734: 12 80 00 0e bne 202876c <== ALWAYS TAKEN 2028738: 93 2e 60 10 sll %i1, 0x10, %o1 rtems_filesystem_freenode( &loc ); 202873c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2028740: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2028744: 02 80 00 04 be 2028754 <== NOT EXECUTED 2028748: 01 00 00 00 nop <== NOT EXECUTED 202874c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2028750: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2028754: 40 00 69 35 call 2042c28 <__errno> <== NOT EXECUTED 2028758: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202875c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2028760: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2028764: 81 c7 e0 08 ret 2028768: 81 e8 00 00 restore } result = (*loc.ops->chown_h)( &loc, owner, group ); 202876c: 95 2e a0 10 sll %i2, 0x10, %o2 2028770: 93 32 60 10 srl %o1, 0x10, %o1 2028774: 95 32 a0 10 srl %o2, 0x10, %o2 2028778: 9f c0 40 00 call %g1 202877c: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &loc ); 2028780: c2 07 bf f8 ld [ %fp + -8 ], %g1 2028784: 80 a0 60 00 cmp %g1, 0 2028788: 02 bf ff f7 be 2028764 <== NEVER TAKEN 202878c: b0 10 00 08 mov %o0, %i0 2028790: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2028794: 80 a0 60 00 cmp %g1, 0 2028798: 02 80 00 04 be 20287a8 <== NEVER TAKEN 202879c: 01 00 00 00 nop 20287a0: 9f c0 40 00 call %g1 20287a4: 90 10 00 10 mov %l0, %o0 return result; } 20287a8: 81 c7 e0 08 ret 20287ac: 81 e8 00 00 restore =============================================================================== 020287b0 : #include int chroot( const char *pathname ) { 20287b0: 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) { 20287b4: 23 00 81 a5 sethi %hi(0x2069400), %l1 20287b8: e0 04 60 34 ld [ %l1 + 0x34 ], %l0 ! 2069434 20287bc: 03 00 81 b4 sethi %hi(0x206d000), %g1 20287c0: 82 10 62 3c or %g1, 0x23c, %g1 ! 206d23c 20287c4: 80 a4 00 01 cmp %l0, %g1 20287c8: 12 80 00 0e bne 2028800 <== NEVER TAKEN 20287cc: 01 00 00 00 nop rtems_libio_set_private_env(); /* try to set a new private env*/ 20287d0: 40 00 06 1e call 202a048 20287d4: 01 00 00 00 nop if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ 20287d8: c2 04 60 34 ld [ %l1 + 0x34 ], %g1 20287dc: 80 a0 40 10 cmp %g1, %l0 20287e0: 12 80 00 08 bne 2028800 <== ALWAYS TAKEN 20287e4: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); 20287e8: 40 00 69 10 call 2042c28 <__errno> <== NOT EXECUTED 20287ec: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 20287f0: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 20287f4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20287f8: 81 c7 e0 08 ret <== NOT EXECUTED 20287fc: 81 e8 00 00 restore <== NOT EXECUTED } result = chdir(pathname); 2028800: 7f ff ff 71 call 20285c4 2028804: 90 10 00 18 mov %i0, %o0 if (result) { 2028808: 80 a2 20 00 cmp %o0, 0 202880c: 12 80 00 0b bne 2028838 <== NEVER TAKEN 2028810: 11 00 81 8d sethi %hi(0x2063400), %o0 rtems_set_errno_and_return_minus_one( errno ); } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 2028814: 92 10 20 01 mov 1, %o1 2028818: 90 12 22 10 or %o0, 0x210, %o0 202881c: 94 10 20 00 clr %o2 2028820: 96 07 bf ec add %fp, -20, %o3 2028824: 7f ff 7e 72 call 20081ec 2028828: 98 10 20 00 clr %o4 202882c: 80 a2 20 00 cmp %o0, 0 2028830: 02 80 00 0a be 2028858 <== ALWAYS TAKEN 2028834: 03 00 81 a5 sethi %hi(0x2069400), %g1 /* our cwd has changed, though - but there is no easy way of return :-( */ rtems_set_errno_and_return_minus_one( errno ); 2028838: 40 00 68 fc call 2042c28 <__errno> <== NOT EXECUTED 202883c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2028840: 40 00 68 fa call 2042c28 <__errno> <== NOT EXECUTED 2028844: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED 2028848: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 202884c: c2 24 00 00 st %g1, [ %l0 ] <== NOT EXECUTED 2028850: 81 c7 e0 08 ret <== NOT EXECUTED 2028854: 81 e8 00 00 restore <== NOT EXECUTED } rtems_filesystem_freenode(&rtems_filesystem_root); 2028858: d0 00 60 34 ld [ %g1 + 0x34 ], %o0 202885c: c2 02 20 24 ld [ %o0 + 0x24 ], %g1 2028860: 80 a0 60 00 cmp %g1, 0 2028864: 22 80 00 09 be,a 2028888 <== NEVER TAKEN 2028868: 03 00 81 a5 sethi %hi(0x2069400), %g1 <== NOT EXECUTED 202886c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 206941c 2028870: 80 a0 60 00 cmp %g1, 0 2028874: 22 80 00 05 be,a 2028888 <== NEVER TAKEN 2028878: 03 00 81 a5 sethi %hi(0x2069400), %g1 <== NOT EXECUTED 202887c: 9f c0 40 00 call %g1 2028880: 90 02 20 18 add %o0, 0x18, %o0 rtems_filesystem_root = loc; 2028884: 03 00 81 a5 sethi %hi(0x2069400), %g1 2028888: d0 00 60 34 ld [ %g1 + 0x34 ], %o0 ! 2069434 202888c: 92 07 bf ec add %fp, -20, %o1 2028890: 94 10 20 14 mov 0x14, %o2 2028894: 90 02 20 18 add %o0, 0x18, %o0 2028898: 40 00 76 30 call 2046158 202889c: b0 10 20 00 clr %i0 return 0; } 20288a0: 81 c7 e0 08 ret 20288a4: 81 e8 00 00 restore =============================================================================== 0200bb9c : #include int close( int fd ) { 200bb9c: 9d e3 bf a0 save %sp, -96, %sp rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); 200bba0: 03 00 80 70 sethi %hi(0x201c000), %g1 200bba4: c2 00 60 b4 ld [ %g1 + 0xb4 ], %g1 ! 201c0b4 200bba8: 80 a6 00 01 cmp %i0, %g1 200bbac: 1a 80 00 0b bcc 200bbd8 200bbb0: 03 00 80 72 sethi %hi(0x201c800), %g1 iop = rtems_libio_iop(fd); 200bbb4: e0 00 62 48 ld [ %g1 + 0x248 ], %l0 ! 201ca48 200bbb8: 83 2e 20 06 sll %i0, 6, %g1 200bbbc: b1 2e 20 03 sll %i0, 3, %i0 200bbc0: b0 06 00 01 add %i0, %g1, %i0 200bbc4: a0 04 00 18 add %l0, %i0, %l0 rtems_libio_check_is_open(iop); 200bbc8: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 200bbcc: 80 88 61 00 btst 0x100, %g1 200bbd0: 32 80 00 08 bne,a 200bbf0 200bbd4: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 200bbd8: 40 00 0e 51 call 200f51c <__errno> 200bbdc: b0 10 3f ff mov -1, %i0 200bbe0: 82 10 20 09 mov 9, %g1 200bbe4: c2 22 00 00 st %g1, [ %o0 ] 200bbe8: 81 c7 e0 08 ret 200bbec: 81 e8 00 00 restore rc = RTEMS_SUCCESSFUL; if ( iop->handlers->close_h ) 200bbf0: c2 00 60 04 ld [ %g1 + 4 ], %g1 200bbf4: 80 a0 60 00 cmp %g1, 0 200bbf8: 02 80 00 05 be 200bc0c <== NEVER TAKEN 200bbfc: b0 10 20 00 clr %i0 rc = (*iop->handlers->close_h)( iop ); 200bc00: 9f c0 40 00 call %g1 200bc04: 90 10 00 10 mov %l0, %o0 200bc08: b0 10 00 08 mov %o0, %i0 rtems_filesystem_freenode( &iop->pathinfo ); 200bc0c: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 200bc10: 80 a0 60 00 cmp %g1, 0 200bc14: 02 80 00 08 be 200bc34 <== NEVER TAKEN 200bc18: 01 00 00 00 nop 200bc1c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200bc20: 80 a0 60 00 cmp %g1, 0 200bc24: 02 80 00 04 be 200bc34 200bc28: 01 00 00 00 nop 200bc2c: 9f c0 40 00 call %g1 200bc30: 90 04 20 1c add %l0, 0x1c, %o0 rtems_libio_free( iop ); 200bc34: 40 00 00 99 call 200be98 200bc38: 90 10 00 10 mov %l0, %o0 return rc; } 200bc3c: 81 c7 e0 08 ret 200bc40: 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 81 sethi %hi(0x2020400), %g1 2002e34: e2 00 60 d0 ld [ %g1 + 0xd0 ], %l1 ! 20204d0 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 81 sethi %hi(0x2020400), %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 60 cc ld [ %g1 + 0xcc ], %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 44 27 call 2013f18 <== NOT EXECUTED 2002e80: 92 10 20 00 clr %o1 <== NOT EXECUTED disktab = table; 2002e84: 03 00 80 81 sethi %hi(0x2020400), %g1 <== NOT EXECUTED 2002e88: e6 20 60 cc st %l3, [ %g1 + 0xcc ] ! 20204cc <== NOT EXECUTED disktab_size = new_size; 2002e8c: 03 00 80 81 sethi %hi(0x2020400), %g1 <== NOT EXECUTED 2002e90: e4 20 60 d0 st %l2, [ %g1 + 0xd0 ] ! 20204d0 <== NOT EXECUTED } if (disktab [major].minor == NULL || minor >= disktab[major].size) { 2002e94: 03 00 80 81 sethi %hi(0x2020400), %g1 2002e98: c2 00 60 cc ld [ %g1 + 0xcc ], %g1 ! 20204cc 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 81 sethi %hi(0x2020400), %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 ! 2020404 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 44 06 call 2013f18 2002f04: 92 10 20 00 clr %o1 disktab [major].minor = table; 2002f08: 03 00 80 81 sethi %hi(0x2020400), %g1 2002f0c: c2 00 60 cc ld [ %g1 + 0xcc ], %g1 ! 20204cc 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 81 sethi %hi(0x2020400), %g1 2002f20: c2 00 60 cc ld [ %g1 + 0xcc ], %g1 ! 20204cc 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 44 fb call 2014354 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 =============================================================================== 0200969c : #include "devfs.h" int devFS_close( rtems_libio_t *iop ) { 200969c: 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; 20096a0: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.flags = 0; 20096a4: c0 27 bf f8 clr [ %fp + -8 ] args.mode = 0; 20096a8: c0 27 bf fc clr [ %fp + -4 ] status = rtems_io_close( 20096ac: d2 00 60 0c ld [ %g1 + 0xc ], %o1 20096b0: 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; 20096b4: f0 27 bf f4 st %i0, [ %fp + -12 ] args.flags = 0; args.mode = 0; status = rtems_io_close( 20096b8: 94 07 bf f4 add %fp, -12, %o2 20096bc: 40 00 03 f1 call 200a680 20096c0: b0 10 20 00 clr %i0 np->major, np->minor, (void *) &args ); if ( status ) { 20096c4: 80 a2 20 00 cmp %o0, 0 20096c8: 02 80 00 05 be 20096dc <== ALWAYS TAKEN 20096cc: 01 00 00 00 nop return rtems_deviceio_errno(status); 20096d0: 40 00 00 42 call 20097d8 <== NOT EXECUTED 20096d4: 01 00 00 00 nop <== NOT EXECUTED 20096d8: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED } return 0; } 20096dc: 81 c7 e0 08 ret 20096e0: 81 e8 00 00 restore =============================================================================== 020096f0 : const char *pathname, size_t pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { 20096f0: 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 ) ) 20096f4: 80 8e bf f8 btst -8, %i2 20096f8: 22 80 00 06 be,a 2009710 <== ALWAYS TAKEN 20096fc: e0 06 c0 00 ld [ %i3 ], %l0 rtems_set_errno_and_return_minus_one( EPERM ); 2009700: 40 00 07 c9 call 200b624 <__errno> <== NOT EXECUTED 2009704: 01 00 00 00 nop <== NOT EXECUTED 2009708: 10 80 00 0b b 2009734 <== NOT EXECUTED 200970c: 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) 2009710: 80 a4 20 00 cmp %l0, 0 2009714: 02 80 00 05 be 2009728 <== NEVER TAKEN 2009718: 27 00 80 3b sethi %hi(0x200ec00), %l3 200971c: a2 10 20 00 clr %l1 rtems_set_errno_and_return_minus_one( EFAULT ); for (i = 0; i < rtems_device_table_size; i++) { 2009720: 10 80 00 24 b 20097b0 2009724: a6 14 e3 58 or %l3, 0x358, %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 ); 2009728: 40 00 07 bf call 200b624 <__errno> <== NOT EXECUTED 200972c: 01 00 00 00 nop <== NOT EXECUTED 2009730: 82 10 20 0e mov 0xe, %g1 ! e <== NOT EXECUTED 2009734: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2009738: 81 c7 e0 08 ret <== NOT EXECUTED 200973c: 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) 2009740: e4 04 00 00 ld [ %l0 ], %l2 2009744: 80 a4 a0 00 cmp %l2, 0 2009748: 02 80 00 19 be 20097ac 200974c: a2 04 60 01 inc %l1 continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) 2009750: 92 10 00 12 mov %l2, %o1 2009754: 40 00 0b 55 call 200c4a8 2009758: 94 10 00 19 mov %i1, %o2 200975c: 80 a2 20 00 cmp %o0, 0 2009760: 32 80 00 14 bne,a 20097b0 <== NEVER TAKEN 2009764: a0 04 20 14 add %l0, 0x14, %l0 <== NOT EXECUTED continue; if (device_name_table[i].device_name[pathnamelen] != '\0') 2009768: c2 4c 80 19 ldsb [ %l2 + %i1 ], %g1 200976c: 80 a0 60 00 cmp %g1, 0 2009770: 32 80 00 10 bne,a 20097b0 2009774: 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; 2009778: 03 00 80 3c sethi %hi(0x200f000), %g1 200977c: c2 00 61 88 ld [ %g1 + 0x188 ], %g1 ! 200f188 if (device_name_table[i].device_name[pathnamelen] != '\0') continue; /* find the device, set proper values */ pathloc->node_access = (void *)&device_name_table[i]; 2009780: e0 26 c0 00 st %l0, [ %i3 ] pathloc->handlers = &devFS_file_handlers; pathloc->ops = &devFS_ops; pathloc->mt_entry = rtems_filesystem_root.mt_entry; 2009784: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 2009788: 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; 200978c: 03 00 80 3c sethi %hi(0x200f000), %g1 2009790: 82 10 61 30 or %g1, 0x130, %g1 ! 200f130 2009794: c2 26 e0 08 st %g1, [ %i3 + 8 ] pathloc->ops = &devFS_ops; 2009798: 03 00 80 3c sethi %hi(0x200f000), %g1 200979c: 82 10 60 e8 or %g1, 0xe8, %g1 ! 200f0e8 20097a0: c2 26 e0 0c st %g1, [ %i3 + 0xc ] pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; 20097a4: 81 c7 e0 08 ret 20097a8: 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++) { 20097ac: a0 04 20 14 add %l0, 0x14, %l0 20097b0: c2 04 c0 00 ld [ %l3 ], %g1 20097b4: 80 a4 40 01 cmp %l1, %g1 20097b8: 0a bf ff e2 bcs 2009740 20097bc: 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 ); 20097c0: 40 00 07 99 call 200b624 <__errno> 20097c4: b0 10 3f ff mov -1, %i0 20097c8: 82 10 20 02 mov 2, %g1 20097cc: c2 22 00 00 st %g1, [ %o0 ] } 20097d0: 81 c7 e0 08 ret 20097d4: 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 3b sethi %hi(0x200ec00), %l1 2001f14: c2 04 63 58 ld [ %l1 + 0x358 ], %g1 ! 200ef58 2001f18: 85 28 60 04 sll %g1, 4, %g2 2001f1c: 83 28 60 02 sll %g1, 2, %g1 2001f20: 40 00 1c 1c call 2008f90 <_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 63 58 ld [ %l1 + 0x358 ], %g1 rtems_set_errno_and_return_minus_one( ENOMEM ); 2001f34: 40 00 25 bc call 200b624 <__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 28 14 call 200bfa8 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 3c sethi %hi(0x200f000), %g1 2001f64: 82 10 61 30 or %g1, 0x130, %g1 ! 200f130 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 3c sethi %hi(0x200f000), %g1 2001f74: 82 10 60 e8 or %g1, 0xe8, %g1 ! 200f0e8 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 37 call 20061f0 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 ac call 20097d8 <== 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 25 8d call 200b624 <__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 3b sethi %hi(0x200ec00), %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 63 58 or %l5, 0x358, %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 25 80 call 200b624 <__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 28 93 call 200c290 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 25 73 call 200b624 <__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 25 66 call 200b624 <__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 28 c4 call 200c3d4 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 6d call 200631c 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 97 call 20097d8 <== 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 6d call 2006374 <== 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 81 call 20097d8 <== 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 25 08 call 200b624 <__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 59 call 20063cc 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 57 call 20097d8 <== 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 =============================================================================== 0200e804 : */ int device_close( rtems_libio_t *iop ) { 200e804: 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; 200e808: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; 200e80c: f0 27 bf f4 st %i0, [ %fp + -12 ] args.flags = 0; 200e810: c0 27 bf f8 clr [ %fp + -8 ] args.mode = 0; 200e814: c0 27 bf fc clr [ %fp + -4 ] status = rtems_io_close( 200e818: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 200e81c: 94 07 bf f4 add %fp, -12, %o2 200e820: 40 00 02 30 call 200f0e0 200e824: b0 10 20 00 clr %i0 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) { 200e828: 80 a2 20 00 cmp %o0, 0 200e82c: 02 80 00 05 be 200e840 <== ALWAYS TAKEN 200e830: 01 00 00 00 nop return rtems_deviceio_errno(status); 200e834: 40 00 03 03 call 200f440 <== NOT EXECUTED 200e838: 01 00 00 00 nop <== NOT EXECUTED 200e83c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED } return 0; } 200e840: 81 c7 e0 08 ret 200e844: 81 e8 00 00 restore =============================================================================== 0200e704 : int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 200e704: 9d e3 bf 90 save %sp, -112, %sp args.iop = iop; args.command = command; args.buffer = buffer; the_jnode = iop->file_info; 200e708: 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; 200e70c: f2 27 bf f4 st %i1, [ %fp + -12 ] args.buffer = buffer; 200e710: 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; 200e714: f0 27 bf f0 st %i0, [ %fp + -16 ] args.command = command; args.buffer = buffer; the_jnode = iop->file_info; status = rtems_io_control( 200e718: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 200e71c: 40 00 02 87 call 200f138 200e720: 94 07 bf f0 add %fp, -16, %o2 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200e724: 80 a2 20 00 cmp %o0, 0 200e728: 22 80 00 06 be,a 200e740 <== ALWAYS TAKEN 200e72c: d0 07 bf fc ld [ %fp + -4 ], %o0 return rtems_deviceio_errno(status); 200e730: 40 00 03 44 call 200f440 <== NOT EXECUTED 200e734: 01 00 00 00 nop <== NOT EXECUTED 200e738: 81 c7 e0 08 ret <== NOT EXECUTED 200e73c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return args.ioctl_return; } 200e740: b0 10 00 08 mov %o0, %i0 200e744: 81 c7 e0 08 ret 200e748: 81 e8 00 00 restore =============================================================================== 0200e848 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 200e848: 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; 200e84c: 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; 200e850: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; 200e854: f0 27 bf f4 st %i0, [ %fp + -12 ] args.flags = iop->flags; 200e858: c4 27 bf f8 st %g2, [ %fp + -8 ] args.mode = mode; 200e85c: f6 27 bf fc st %i3, [ %fp + -4 ] status = rtems_io_open( 200e860: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 200e864: 94 07 bf f4 add %fp, -12, %o2 200e868: 40 00 02 4a call 200f190 200e86c: b0 10 20 00 clr %i0 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200e870: 80 a2 20 00 cmp %o0, 0 200e874: 02 80 00 05 be 200e888 <== ALWAYS TAKEN 200e878: 01 00 00 00 nop return rtems_deviceio_errno(status); 200e87c: 40 00 02 f1 call 200f440 <== NOT EXECUTED 200e880: 01 00 00 00 nop <== NOT EXECUTED 200e884: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED return 0; } 200e888: 81 c7 e0 08 ret 200e88c: 81 e8 00 00 restore =============================================================================== 0200e7a8 : ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { 200e7a8: 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; 200e7ac: 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; 200e7b0: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.offset = iop->offset; 200e7b4: d8 1e 20 10 ldd [ %i0 + 0x10 ], %o4 args.buffer = buffer; 200e7b8: 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; 200e7bc: d8 3f bf e8 std %o4, [ %fp + -24 ] args.buffer = buffer; args.count = count; 200e7c0: f4 27 bf f4 st %i2, [ %fp + -12 ] args.flags = iop->flags; 200e7c4: 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; 200e7c8: 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; 200e7cc: c0 27 bf fc clr [ %fp + -4 ] status = rtems_io_read( 200e7d0: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 200e7d4: 40 00 02 85 call 200f1e8 200e7d8: 94 07 bf e0 add %fp, -32, %o2 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200e7dc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200e7e0: 22 80 00 06 be,a 200e7f8 <== NOT EXECUTED 200e7e4: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED return rtems_deviceio_errno(status); 200e7e8: 40 00 03 16 call 200f440 <== NOT EXECUTED 200e7ec: 01 00 00 00 nop <== NOT EXECUTED 200e7f0: 81 c7 e0 08 ret <== NOT EXECUTED 200e7f4: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 200e7f8: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 200e7fc: 81 c7 e0 08 ret <== NOT EXECUTED 200e800: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0200e74c : ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 200e74c: 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; 200e750: 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; 200e754: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.offset = iop->offset; 200e758: d8 1e 20 10 ldd [ %i0 + 0x10 ], %o4 args.buffer = (void *) buffer; 200e75c: 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; 200e760: d8 3f bf e8 std %o4, [ %fp + -24 ] args.buffer = (void *) buffer; args.count = count; 200e764: f4 27 bf f4 st %i2, [ %fp + -12 ] args.flags = iop->flags; 200e768: 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; 200e76c: 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; 200e770: c0 27 bf fc clr [ %fp + -4 ] status = rtems_io_write( 200e774: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 200e778: 40 00 02 b2 call 200f240 200e77c: 94 07 bf e0 add %fp, -32, %o2 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200e780: 80 a2 20 00 cmp %o0, 0 200e784: 22 80 00 06 be,a 200e79c <== ALWAYS TAKEN 200e788: d0 07 bf fc ld [ %fp + -4 ], %o0 return rtems_deviceio_errno(status); 200e78c: 40 00 03 2d call 200f440 <== NOT EXECUTED 200e790: 01 00 00 00 nop <== NOT EXECUTED 200e794: 81 c7 e0 08 ret <== NOT EXECUTED 200e798: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 200e79c: b0 10 00 08 mov %o0, %i0 200e7a0: 81 c7 e0 08 ret 200e7a4: 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 81 sethi %hi(0x2020400), %g1 2002a64: d0 00 60 d4 ld [ %g1 + 0xd4 ], %o0 ! 20204d4 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 81 sethi %hi(0x2020400), %g1 2002a88: b0 10 20 00 clr %i0 2002a8c: c4 28 60 d8 stb %g2, [ %g1 + 0xd8 ] 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 81 sethi %hi(0x2020400), %g1 2002aa0: d0 00 60 d4 ld [ %g1 + 0xd4 ], %o0 ! 20204d4 static void disk_unlock(void) { rtems_status_code sc = RTEMS_SUCCESSFUL; diskdevs_protected = false; 2002aa4: 03 00 80 81 sethi %hi(0x2020400), %g1 2002aa8: c0 28 60 d8 clrb [ %g1 + 0xd8 ] ! 20204d8 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 91 call 2007d04 <== 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 07 ff call 20069a8 <== 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 70 sethi %hi(0x201c000), %g1 <== NOT EXECUTED 20043c8: c4 00 62 e8 ld [ %g1 + 0x2e8 ], %g2 ! 201c2e8 <__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 =============================================================================== 02028c84 : group_fp = fopen("/etc/group", "r"); } void endgrent(void) { if (group_fp != NULL) 2028c84: 03 00 81 b3 sethi %hi(0x206cc00), %g1 <== NOT EXECUTED 2028c88: d0 00 62 dc ld [ %g1 + 0x2dc ], %o0 ! 206cedc <== NOT EXECUTED 2028c8c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2028c90: 02 80 00 05 be 2028ca4 <== NOT EXECUTED 2028c94: 01 00 00 00 nop <== NOT EXECUTED fclose(group_fp); 2028c98: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2028c9c: 40 00 68 3b call 2042d88 <== NOT EXECUTED 2028ca0: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2028ca4: 81 c3 e0 08 retl <== NOT EXECUTED =============================================================================== 02028cac : passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { if (passwd_fp != NULL) 2028cac: 03 00 81 b3 sethi %hi(0x206cc00), %g1 <== NOT EXECUTED 2028cb0: d0 00 61 f4 ld [ %g1 + 0x1f4 ], %o0 ! 206cdf4 <== NOT EXECUTED 2028cb4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2028cb8: 02 80 00 05 be 2028ccc <== NOT EXECUTED 2028cbc: 01 00 00 00 nop <== NOT EXECUTED fclose(passwd_fp); 2028cc0: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2028cc4: 40 00 68 31 call 2042d88 <== NOT EXECUTED 2028cc8: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2028ccc: 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 70 sethi %hi(0x201c000), %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 70 sethi %hi(0x201c000), %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 6c sethi %hi(0x201b000), %l3 <== NOT EXECUTED /* * Back up over the tab */ while (tty->column > col) { rtems_termios_puts ("\b", 1, tty); 2004644: 29 00 80 6c sethi %hi(0x201b000), %l4 <== NOT EXECUTED 2004648: a4 14 a2 e8 or %l2, 0x2e8, %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 50 or %l3, 0x50, %l3 <== NOT EXECUTED /* * Back up over the tab */ while (tty->column > col) { rtems_termios_puts ("\b", 1, tty); 2004650: a8 15 20 48 or %l4, 0x48, %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 =============================================================================== 02025b98 : #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) { 2025b98: 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) 2025b9c: c2 0e 20 85 ldub [ %i0 + 0x85 ], %g1 <== NOT EXECUTED 2025ba0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2025ba4: 32 80 00 13 bne,a 2025bf0 <== NOT EXECUTED 2025ba8: c2 06 20 80 ld [ %i0 + 0x80 ], %g1 <== NOT EXECUTED { if (op_type == FAT_OP_TYPE_READ) 2025bac: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED 2025bb0: d0 1e 20 58 ldd [ %i0 + 0x58 ], %o0 <== NOT EXECUTED 2025bb4: 12 80 00 06 bne 2025bcc <== NOT EXECUTED 2025bb8: 96 06 20 88 add %i0, 0x88, %o3 <== NOT EXECUTED sc = rtems_bdbuf_read(fs_info->vol.dev, blk, &fs_info->c.buf); 2025bbc: 7f ff 80 3c call 2005cac <== NOT EXECUTED 2025bc0: 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) 2025bc4: 10 80 00 05 b 2025bd8 <== NOT EXECUTED 2025bc8: 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); 2025bcc: 7f ff 80 05 call 2005be0 <== NOT EXECUTED 2025bd0: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 2025bd4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025bd8: 12 80 00 63 bne 2025d64 <== NOT EXECUTED 2025bdc: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EIO); fs_info->c.blk_num = blk; 2025be0: f2 26 20 80 st %i1, [ %i0 + 0x80 ] <== NOT EXECUTED fs_info->c.modified = 0; 2025be4: c0 2e 20 84 clrb [ %i0 + 0x84 ] <== NOT EXECUTED fs_info->c.state = FAT_CACHE_ACTUAL; 2025be8: c2 2e 20 85 stb %g1, [ %i0 + 0x85 ] <== NOT EXECUTED } sec_of_fat = ((fs_info->c.blk_num >= fs_info->vol.fat_loc) && 2025bec: c2 06 20 80 ld [ %i0 + 0x80 ], %g1 <== NOT EXECUTED 2025bf0: c4 16 20 14 lduh [ %i0 + 0x14 ], %g2 <== NOT EXECUTED 2025bf4: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2025bf8: 0a 80 00 05 bcs 2025c0c <== NOT EXECUTED 2025bfc: a0 10 20 00 clr %l0 <== NOT EXECUTED 2025c00: c4 06 20 1c ld [ %i0 + 0x1c ], %g2 <== NOT EXECUTED 2025c04: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2025c08: 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) 2025c0c: 80 a0 40 19 cmp %g1, %i1 <== NOT EXECUTED 2025c10: 22 80 00 5e be,a 2025d88 <== NOT EXECUTED 2025c14: c2 06 20 88 ld [ %i0 + 0x88 ], %g1 <== NOT EXECUTED { if (fs_info->c.modified) 2025c18: c2 0e 20 84 ldub [ %i0 + 0x84 ], %g1 <== NOT EXECUTED 2025c1c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2025c20: 02 80 00 3f be 2025d1c <== NOT EXECUTED 2025c24: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED { if (sec_of_fat && !fs_info->vol.mirror) 2025c28: 02 80 00 0b be 2025c54 <== NOT EXECUTED 2025c2c: 01 00 00 00 nop <== NOT EXECUTED 2025c30: c2 0e 20 48 ldub [ %i0 + 0x48 ], %g1 <== NOT EXECUTED 2025c34: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2025c38: 12 80 00 07 bne 2025c54 <== NOT EXECUTED 2025c3c: 01 00 00 00 nop <== NOT EXECUTED memcpy(fs_info->sec_buf, fs_info->c.buf->buffer, 2025c40: c2 06 20 88 ld [ %i0 + 0x88 ], %g1 <== NOT EXECUTED 2025c44: d0 06 20 8c ld [ %i0 + 0x8c ], %o0 <== NOT EXECUTED 2025c48: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED 2025c4c: 40 00 81 43 call 2046158 <== NOT EXECUTED 2025c50: d4 16 00 00 lduh [ %i0 ], %o2 <== NOT EXECUTED fs_info->vol.bps); sc = rtems_bdbuf_release_modified(fs_info->c.buf); 2025c54: 7f ff 7b 58 call 20049b4 <== NOT EXECUTED 2025c58: d0 06 20 88 ld [ %i0 + 0x88 ], %o0 <== NOT EXECUTED fs_info->c.state = FAT_CACHE_EMPTY; 2025c5c: c0 2e 20 85 clrb [ %i0 + 0x85 ] <== NOT EXECUTED fs_info->c.modified = 0; if (sc != RTEMS_SUCCESSFUL) 2025c60: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025c64: 12 80 00 40 bne 2025d64 <== NOT EXECUTED 2025c68: 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) 2025c6c: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED 2025c70: 02 80 00 31 be 2025d34 <== NOT EXECUTED 2025c74: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED 2025c78: c2 0e 20 48 ldub [ %i0 + 0x48 ], %g1 <== NOT EXECUTED 2025c7c: a0 10 20 01 mov 1, %l0 <== NOT EXECUTED 2025c80: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2025c84: 02 80 00 1f be 2025d00 <== NOT EXECUTED 2025c88: 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) 2025c8c: 10 80 00 2a b 2025d34 <== NOT EXECUTED 2025c90: 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, 2025c94: d2 06 20 18 ld [ %i0 + 0x18 ], %o1 <== NOT EXECUTED 2025c98: 7f ff 73 58 call 20029f8 <.umul> <== NOT EXECUTED 2025c9c: e4 1e 20 58 ldd [ %i0 + 0x58 ], %l2 <== NOT EXECUTED 2025ca0: d4 06 20 80 ld [ %i0 + 0x80 ], %o2 <== NOT EXECUTED 2025ca4: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED 2025ca8: 94 02 00 0a add %o0, %o2, %o2 <== NOT EXECUTED 2025cac: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED 2025cb0: 7f ff 7f cc call 2005be0 <== NOT EXECUTED 2025cb4: 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) 2025cb8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025cbc: 12 80 00 0d bne 2025cf0 <== NOT EXECUTED 2025cc0: 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); 2025cc4: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 2025cc8: d2 06 20 8c ld [ %i0 + 0x8c ], %o1 <== NOT EXECUTED 2025ccc: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED 2025cd0: d4 16 00 00 lduh [ %i0 ], %o2 <== NOT EXECUTED 2025cd4: 40 00 81 21 call 2046158 <== NOT EXECUTED 2025cd8: a0 04 20 01 inc %l0 <== NOT EXECUTED sc = rtems_bdbuf_release_modified(b); 2025cdc: 7f ff 7b 36 call 20049b4 <== NOT EXECUTED 2025ce0: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED if ( sc != RTEMS_SUCCESSFUL) 2025ce4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025ce8: 22 80 00 07 be,a 2025d04 <== NOT EXECUTED 2025cec: c4 0e 20 09 ldub [ %i0 + 9 ], %g2 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 2025cf0: 40 00 73 ce call 2042c28 <__errno> <== NOT EXECUTED 2025cf4: 01 00 00 00 nop <== NOT EXECUTED 2025cf8: 10 80 00 1e b 2025d70 <== NOT EXECUTED 2025cfc: 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++) 2025d00: c4 0e 20 09 ldub [ %i0 + 9 ], %g2 <== NOT EXECUTED 2025d04: 82 0c 20 ff and %l0, 0xff, %g1 <== NOT EXECUTED 2025d08: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2025d0c: 0a bf ff e2 bcs 2025c94 <== NOT EXECUTED 2025d10: 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) 2025d14: 10 80 00 08 b 2025d34 <== NOT EXECUTED 2025d18: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED } } } else { sc = rtems_bdbuf_release(fs_info->c.buf); 2025d1c: 7f ff 7b 4c call 2004a4c <== NOT EXECUTED 2025d20: d0 06 20 88 ld [ %i0 + 0x88 ], %o0 <== NOT EXECUTED fs_info->c.state = FAT_CACHE_EMPTY; if (sc != RTEMS_SUCCESSFUL) 2025d24: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025d28: 12 80 00 0f bne 2025d64 <== NOT EXECUTED 2025d2c: c0 2e 20 85 clrb [ %i0 + 0x85 ] <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EIO); } if (op_type == FAT_OP_TYPE_READ) 2025d30: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED 2025d34: d0 1e 20 58 ldd [ %i0 + 0x58 ], %o0 <== NOT EXECUTED 2025d38: 12 80 00 06 bne 2025d50 <== NOT EXECUTED 2025d3c: 96 06 20 88 add %i0, 0x88, %o3 <== NOT EXECUTED sc = rtems_bdbuf_read(fs_info->vol.dev, blk, &fs_info->c.buf); 2025d40: 7f ff 7f db call 2005cac <== NOT EXECUTED 2025d44: 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) 2025d48: 10 80 00 05 b 2025d5c <== NOT EXECUTED 2025d4c: 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); 2025d50: 7f ff 7f a4 call 2005be0 <== NOT EXECUTED 2025d54: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 2025d58: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025d5c: 02 80 00 08 be 2025d7c <== NOT EXECUTED 2025d60: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EIO); 2025d64: 40 00 73 b1 call 2042c28 <__errno> <== NOT EXECUTED 2025d68: 01 00 00 00 nop <== NOT EXECUTED 2025d6c: 82 10 20 05 mov 5, %g1 ! 5 <== NOT EXECUTED 2025d70: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2025d74: 81 c7 e0 08 ret <== NOT EXECUTED 2025d78: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED fs_info->c.blk_num = blk; 2025d7c: f2 26 20 80 st %i1, [ %i0 + 0x80 ] <== NOT EXECUTED fs_info->c.state = FAT_CACHE_ACTUAL; 2025d80: c2 2e 20 85 stb %g1, [ %i0 + 0x85 ] <== NOT EXECUTED } *buf = fs_info->c.buf; 2025d84: c2 06 20 88 ld [ %i0 + 0x88 ], %g1 <== NOT EXECUTED 2025d88: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED return RC_OK; } 2025d8c: 81 c7 e0 08 ret <== NOT EXECUTED 2025d90: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED =============================================================================== 02025a14 : return RC_OK; } int fat_buf_release(fat_fs_info_t *fs_info) { 2025a14: 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) 2025a18: c2 0e 20 85 ldub [ %i0 + 0x85 ], %g1 <== NOT EXECUTED return RC_OK; } int fat_buf_release(fat_fs_info_t *fs_info) { 2025a1c: 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) 2025a20: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2025a24: 02 80 00 56 be 2025b7c <== NOT EXECUTED 2025a28: b0 10 20 00 clr %i0 <== NOT EXECUTED return RC_OK; sec_of_fat = ((fs_info->c.blk_num >= fs_info->vol.fat_loc) && 2025a2c: c2 04 20 80 ld [ %l0 + 0x80 ], %g1 <== NOT EXECUTED 2025a30: c4 14 20 14 lduh [ %l0 + 0x14 ], %g2 <== NOT EXECUTED 2025a34: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2025a38: 0a 80 00 05 bcs 2025a4c <== NOT EXECUTED 2025a3c: a2 10 20 00 clr %l1 <== NOT EXECUTED 2025a40: c4 04 20 1c ld [ %l0 + 0x1c ], %g2 <== NOT EXECUTED 2025a44: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2025a48: 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) 2025a4c: c2 0c 20 84 ldub [ %l0 + 0x84 ], %g1 <== NOT EXECUTED 2025a50: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2025a54: 02 80 00 3d be 2025b48 <== NOT EXECUTED 2025a58: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED { if (sec_of_fat && !fs_info->vol.mirror) 2025a5c: 02 80 00 0b be 2025a88 <== NOT EXECUTED 2025a60: 01 00 00 00 nop <== NOT EXECUTED 2025a64: c2 0c 20 48 ldub [ %l0 + 0x48 ], %g1 <== NOT EXECUTED 2025a68: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2025a6c: 12 80 00 07 bne 2025a88 <== NOT EXECUTED 2025a70: 01 00 00 00 nop <== NOT EXECUTED memcpy(fs_info->sec_buf, fs_info->c.buf->buffer, fs_info->vol.bps); 2025a74: c2 04 20 88 ld [ %l0 + 0x88 ], %g1 <== NOT EXECUTED 2025a78: d0 04 20 8c ld [ %l0 + 0x8c ], %o0 <== NOT EXECUTED 2025a7c: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED 2025a80: 40 00 81 b6 call 2046158 <== NOT EXECUTED 2025a84: d4 14 00 00 lduh [ %l0 ], %o2 <== NOT EXECUTED sc = rtems_bdbuf_release_modified(fs_info->c.buf); 2025a88: 7f ff 7b cb call 20049b4 <== NOT EXECUTED 2025a8c: d0 04 20 88 ld [ %l0 + 0x88 ], %o0 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 2025a90: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025a94: 12 80 00 32 bne 2025b5c <== NOT EXECUTED 2025a98: 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) 2025a9c: 02 80 00 36 be 2025b74 <== NOT EXECUTED 2025aa0: c0 2c 20 84 clrb [ %l0 + 0x84 ] <== NOT EXECUTED 2025aa4: c2 0c 20 48 ldub [ %l0 + 0x48 ], %g1 <== NOT EXECUTED 2025aa8: a2 10 20 01 mov 1, %l1 <== NOT EXECUTED 2025aac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2025ab0: 02 80 00 1f be 2025b2c <== NOT EXECUTED 2025ab4: 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; 2025ab8: 10 80 00 30 b 2025b78 <== NOT EXECUTED 2025abc: 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, 2025ac0: d2 04 20 18 ld [ %l0 + 0x18 ], %o1 <== NOT EXECUTED 2025ac4: 7f ff 73 cd call 20029f8 <.umul> <== NOT EXECUTED 2025ac8: e8 1c 20 58 ldd [ %l0 + 0x58 ], %l4 <== NOT EXECUTED 2025acc: d4 04 20 80 ld [ %l0 + 0x80 ], %o2 <== NOT EXECUTED 2025ad0: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED 2025ad4: 94 02 00 0a add %o0, %o2, %o2 <== NOT EXECUTED 2025ad8: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED 2025adc: 7f ff 80 41 call 2005be0 <== NOT EXECUTED 2025ae0: 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) 2025ae4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025ae8: 12 80 00 0d bne 2025b1c <== NOT EXECUTED 2025aec: 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); 2025af0: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 2025af4: d2 04 20 8c ld [ %l0 + 0x8c ], %o1 <== NOT EXECUTED 2025af8: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED 2025afc: d4 14 00 00 lduh [ %l0 ], %o2 <== NOT EXECUTED 2025b00: 40 00 81 96 call 2046158 <== NOT EXECUTED 2025b04: a2 04 60 01 inc %l1 <== NOT EXECUTED sc = rtems_bdbuf_release_modified(b); 2025b08: 7f ff 7b ab call 20049b4 <== NOT EXECUTED 2025b0c: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED if ( sc != RTEMS_SUCCESSFUL) 2025b10: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025b14: 22 80 00 07 be,a 2025b30 <== NOT EXECUTED 2025b18: c4 0c 20 09 ldub [ %l0 + 9 ], %g2 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 2025b1c: 40 00 74 43 call 2042c28 <__errno> <== NOT EXECUTED 2025b20: 01 00 00 00 nop <== NOT EXECUTED 2025b24: 10 80 00 11 b 2025b68 <== NOT EXECUTED 2025b28: 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++) 2025b2c: c4 0c 20 09 ldub [ %l0 + 9 ], %g2 <== NOT EXECUTED 2025b30: 82 0c 60 ff and %l1, 0xff, %g1 <== NOT EXECUTED 2025b34: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2025b38: 0a bf ff e2 bcs 2025ac0 <== NOT EXECUTED 2025b3c: 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; 2025b40: 10 80 00 0e b 2025b78 <== NOT EXECUTED 2025b44: c0 2c 20 85 clrb [ %l0 + 0x85 ] <== NOT EXECUTED } } } else { sc = rtems_bdbuf_release(fs_info->c.buf); 2025b48: 7f ff 7b c1 call 2004a4c <== NOT EXECUTED 2025b4c: d0 04 20 88 ld [ %l0 + 0x88 ], %o0 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 2025b50: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025b54: 22 80 00 09 be,a 2025b78 <== NOT EXECUTED 2025b58: c0 2c 20 85 clrb [ %l0 + 0x85 ] <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EIO); 2025b5c: 40 00 74 33 call 2042c28 <__errno> <== NOT EXECUTED 2025b60: 01 00 00 00 nop <== NOT EXECUTED 2025b64: 82 10 20 05 mov 5, %g1 ! 5 <== NOT EXECUTED 2025b68: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2025b6c: 81 c7 e0 08 ret <== NOT EXECUTED 2025b70: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED } fs_info->c.state = FAT_CACHE_EMPTY; 2025b74: c0 2c 20 85 clrb [ %l0 + 0x85 ] <== NOT EXECUTED 2025b78: b0 10 20 00 clr %i0 <== NOT EXECUTED return RC_OK; } 2025b7c: 81 c7 e0 08 ret <== NOT EXECUTED 2025b80: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 020268ac : fat_cluster_read( rtems_filesystem_mount_table_entry_t *mt_entry, uint32_t cln, void *buff ) { 20268ac: 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)) ) 20268b0: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED 20268b4: 12 80 00 08 bne 20268d4 <== NOT EXECUTED 20268b8: c4 02 20 34 ld [ %o0 + 0x34 ], %g2 <== NOT EXECUTED 20268bc: c2 08 a0 0a ldub [ %g2 + 0xa ], %g1 <== NOT EXECUTED 20268c0: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED 20268c4: 22 80 00 05 be,a 20268d8 <== NOT EXECUTED 20268c8: c6 08 a0 05 ldub [ %g2 + 5 ], %g3 <== NOT EXECUTED return fs_info->vol.rdir_loc; 20268cc: 10 80 00 07 b 20268e8 <== NOT EXECUTED 20268d0: d2 00 a0 1c ld [ %g2 + 0x1c ], %o1 <== NOT EXECUTED return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) + 20268d4: c6 08 a0 05 ldub [ %g2 + 5 ], %g3 <== NOT EXECUTED 20268d8: c2 00 a0 30 ld [ %g2 + 0x30 ], %g1 <== NOT EXECUTED 20268dc: 92 02 7f fe add %o1, -2, %o1 <== NOT EXECUTED 20268e0: 93 2a 40 03 sll %o1, %g3, %o1 <== NOT EXECUTED 20268e4: 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, 20268e8: c2 08 a0 02 ldub [ %g2 + 2 ], %g1 <== NOT EXECUTED 20268ec: d6 08 a0 04 ldub [ %g2 + 4 ], %o3 <== NOT EXECUTED 20268f0: 94 10 20 00 clr %o2 <== NOT EXECUTED 20268f4: 97 2a c0 01 sll %o3, %g1, %o3 <== NOT EXECUTED 20268f8: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 20268fc: 7f ff fe 0d call 2026130 <_fat_block_read> <== NOT EXECUTED 2026900: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED =============================================================================== 02026014 : fat_cluster_write( rtems_filesystem_mount_table_entry_t *mt_entry, uint32_t cln, const void *buff ) { 2026014: 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)) ) 2026018: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED 202601c: 12 80 00 08 bne 202603c <== NOT EXECUTED 2026020: c4 02 20 34 ld [ %o0 + 0x34 ], %g2 <== NOT EXECUTED 2026024: c2 08 a0 0a ldub [ %g2 + 0xa ], %g1 <== NOT EXECUTED 2026028: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED 202602c: 22 80 00 05 be,a 2026040 <== NOT EXECUTED 2026030: c6 08 a0 05 ldub [ %g2 + 5 ], %g3 <== NOT EXECUTED return fs_info->vol.rdir_loc; 2026034: 10 80 00 07 b 2026050 <== NOT EXECUTED 2026038: d2 00 a0 1c ld [ %g2 + 0x1c ], %o1 <== NOT EXECUTED return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) + 202603c: c6 08 a0 05 ldub [ %g2 + 5 ], %g3 <== NOT EXECUTED 2026040: c2 00 a0 30 ld [ %g2 + 0x30 ], %g1 <== NOT EXECUTED 2026044: 92 02 7f fe add %o1, -2, %o1 <== NOT EXECUTED 2026048: 93 2a 40 03 sll %o1, %g3, %o1 <== NOT EXECUTED 202604c: 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, 2026050: c2 08 a0 02 ldub [ %g2 + 2 ], %g1 <== NOT EXECUTED 2026054: d6 08 a0 04 ldub [ %g2 + 4 ], %o3 <== NOT EXECUTED 2026058: 94 10 20 00 clr %o2 <== NOT EXECUTED 202605c: 97 2a c0 01 sll %o3, %g1, %o3 <== NOT EXECUTED 2026060: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2026064: 7f ff ff 4c call 2025d94 <_fat_block_write> <== NOT EXECUTED 2026068: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED =============================================================================== 02025e44 : fat_fat32_update_fsinfo_sector( rtems_filesystem_mount_table_entry_t *mt_entry, uint32_t free_count, uint32_t next_free ) { 2025e44: 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; 2025e48: 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); 2025e4c: 89 2e 60 18 sll %i1, 0x18, %g4 <== NOT EXECUTED le_next_free = CT_LE_L(next_free); ret1 = _fat_block_write(mt_entry, 2025e50: 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); 2025e54: 87 36 60 10 srl %i1, 0x10, %g3 <== NOT EXECUTED 2025e58: 83 36 60 18 srl %i1, 0x18, %g1 <== NOT EXECUTED 2025e5c: 86 08 e0 ff and %g3, 0xff, %g3 <== NOT EXECUTED 2025e60: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED 2025e64: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED 2025e68: b3 36 60 08 srl %i1, 8, %i1 <== NOT EXECUTED 2025e6c: b2 0e 60 ff and %i1, 0xff, %i1 <== NOT EXECUTED 2025e70: b3 2e 60 10 sll %i1, 0x10, %i1 <== NOT EXECUTED 2025e74: 82 10 40 19 or %g1, %i1, %g1 <== NOT EXECUTED 2025e78: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED le_next_free = CT_LE_L(next_free); 2025e7c: 85 36 a0 10 srl %i2, 0x10, %g2 <== NOT EXECUTED 2025e80: 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); 2025e84: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED le_next_free = CT_LE_L(next_free); 2025e88: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED 2025e8c: 83 36 a0 18 srl %i2, 0x18, %g1 <== NOT EXECUTED 2025e90: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED 2025e94: 82 10 c0 01 or %g3, %g1, %g1 <== NOT EXECUTED 2025e98: b5 36 a0 08 srl %i2, 8, %i2 <== NOT EXECUTED 2025e9c: b4 0e a0 ff and %i2, 0xff, %i2 <== NOT EXECUTED 2025ea0: b5 2e a0 10 sll %i2, 0x10, %i2 <== NOT EXECUTED 2025ea4: 82 10 40 1a or %g1, %i2, %g1 <== NOT EXECUTED 2025ea8: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED ret1 = _fat_block_write(mt_entry, 2025eac: 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); 2025eb0: c2 27 bf f8 st %g1, [ %fp + -8 ] <== NOT EXECUTED ret1 = _fat_block_write(mt_entry, 2025eb4: 96 10 20 04 mov 4, %o3 <== NOT EXECUTED 2025eb8: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED 2025ebc: 7f ff ff b6 call 2025d94 <_fat_block_write> <== NOT EXECUTED 2025ec0: 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, 2025ec4: 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, 2025ec8: 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, 2025ecc: 94 10 21 ec mov 0x1ec, %o2 <== NOT EXECUTED 2025ed0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2025ed4: 96 10 20 04 mov 4, %o3 <== NOT EXECUTED 2025ed8: 7f ff ff af call 2025d94 <_fat_block_write> <== NOT EXECUTED 2025edc: 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) ) 2025ee0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025ee4: 06 80 00 04 bl 2025ef4 <== NOT EXECUTED 2025ee8: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 2025eec: 16 80 00 03 bge 2025ef8 <== NOT EXECUTED 2025ef0: b0 10 20 00 clr %i0 <== NOT EXECUTED 2025ef4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return -1; return RC_OK; } 2025ef8: 81 c7 e0 08 ret <== NOT EXECUTED 2025efc: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02025598 : int fat_file_close( rtems_filesystem_mount_table_entry_t *mt_entry, fat_file_fd_t *fat_fd ) { 2025598: 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) 202559c: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED 20255a0: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 20255a4: 08 80 00 06 bleu 20255bc <== NOT EXECUTED 20255a8: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 <== NOT EXECUTED { fat_fd->links_num--; 20255ac: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 20255b0: 90 10 20 00 clr %o0 <== NOT EXECUTED return rc; 20255b4: 10 80 00 26 b 202564c <== NOT EXECUTED 20255b8: 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) 20255bc: c2 0e 60 30 ldub [ %i1 + 0x30 ], %g1 <== NOT EXECUTED 20255c0: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 20255c4: 22 80 00 15 be,a 2025618 <== NOT EXECUTED 20255c8: d2 06 60 0c ld [ %i1 + 0xc ], %o1 <== NOT EXECUTED { rc = fat_file_truncate(mt_entry, fat_fd, 0); 20255cc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 20255d0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 20255d4: 7f ff fe 18 call 2024e34 <== NOT EXECUTED 20255d8: 94 10 20 00 clr %o2 <== NOT EXECUTED if ( rc != RC_OK ) 20255dc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20255e0: 12 80 00 1b bne 202564c <== NOT EXECUTED 20255e4: 01 00 00 00 nop <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 20255e8: 7f ff a0 57 call 200d744 <_Chain_Extract> <== NOT EXECUTED 20255ec: 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) ) 20255f0: d2 06 60 0c ld [ %i1 + 0xc ], %o1 <== NOT EXECUTED 20255f4: 40 00 00 cb call 2025920 <== NOT EXECUTED 20255f8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 20255fc: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED 2025600: 02 80 00 0f be 202563c <== NOT EXECUTED 2025604: 01 00 00 00 nop <== NOT EXECUTED fat_free_unique_ino(mt_entry, fat_fd->ino); 2025608: d2 06 60 0c ld [ %i1 + 0xc ], %o1 <== NOT EXECUTED 202560c: 40 00 00 b7 call 20258e8 <== NOT EXECUTED 2025610: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2025614: 30 80 00 0a b,a 202563c <== NOT EXECUTED free(fat_fd); } else { if (fat_ino_is_unique(mt_entry, fat_fd->ino)) 2025618: 40 00 00 c2 call 2025920 <== NOT EXECUTED 202561c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2025620: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED 2025624: 02 80 00 04 be 2025634 <== NOT EXECUTED 2025628: 01 00 00 00 nop <== NOT EXECUTED { fat_fd->links_num = 0; 202562c: 10 80 00 06 b 2025644 <== NOT EXECUTED 2025630: c0 26 60 08 clr [ %i1 + 8 ] <== NOT EXECUTED 2025634: 7f ff a0 44 call 200d744 <_Chain_Extract> <== NOT EXECUTED 2025638: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED } else { _hash_delete(fs_info->vhash, key, fat_fd->ino, fat_fd); free(fat_fd); 202563c: 7f ff 8b 09 call 2008260 <== NOT EXECUTED 2025640: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED } } /* * flush any modified "cached" buffer back to disk */ rc = fat_buf_release(fs_info); 2025644: 40 00 00 f4 call 2025a14 <== NOT EXECUTED 2025648: 91 e8 00 11 restore %g0, %l1, %o0 <== NOT EXECUTED return rc; } 202564c: 81 c7 e0 08 ret <== NOT EXECUTED 2025650: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED =============================================================================== 02024bf4 : int fat_file_datasync( rtems_filesystem_mount_table_entry_t *mt_entry, fat_file_fd_t *fat_fd ) { 2024bf4: 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) 2024bf8: 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; 2024bfc: 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) 2024c00: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2024c04: a0 10 20 00 clr %l0 <== NOT EXECUTED 2024c08: 02 80 00 40 be 2024d08 <== NOT EXECUTED 2024c0c: 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; 2024c10: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED rtems_bdbuf_buffer *block = NULL; 2024c14: 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); 2024c18: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2024c1c: 40 00 03 7e call 2025a14 <== NOT EXECUTED 2024c20: aa 07 bf f8 add %fp, -8, %l5 <== NOT EXECUTED if (rc != RC_OK) 2024c24: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED 2024c28: 02 80 00 31 be 2024cec <== NOT EXECUTED 2024c2c: 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; } 2024c30: 81 c7 e0 08 ret <== NOT EXECUTED 2024c34: 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)) ) 2024c38: 12 80 00 08 bne 2024c58 <== NOT EXECUTED 2024c3c: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 <== NOT EXECUTED 2024c40: c6 08 60 0a ldub [ %g1 + 0xa ], %g3 <== NOT EXECUTED 2024c44: 80 88 e0 03 btst 3, %g3 <== NOT EXECUTED 2024c48: 22 80 00 05 be,a 2024c5c <== NOT EXECUTED 2024c4c: c6 00 60 30 ld [ %g1 + 0x30 ], %g3 <== NOT EXECUTED return fs_info->vol.rdir_loc; 2024c50: 10 80 00 07 b 2024c6c <== NOT EXECUTED 2024c54: e6 00 60 1c ld [ %g1 + 0x1c ], %l3 <== NOT EXECUTED return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) + 2024c58: c6 00 60 30 ld [ %g1 + 0x30 ], %g3 <== NOT EXECUTED 2024c5c: c2 08 60 05 ldub [ %g1 + 5 ], %g1 <== NOT EXECUTED 2024c60: a6 00 bf fe add %g2, -2, %l3 <== NOT EXECUTED 2024c64: a7 2c c0 01 sll %l3, %g1, %l3 <== NOT EXECUTED 2024c68: 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++ ) 2024c6c: 10 80 00 13 b 2024cb8 <== NOT EXECUTED 2024c70: a4 10 20 00 clr %l2 <== NOT EXECUTED { /* ... sync it */ sc = rtems_bdbuf_read(fs_info->vol.dev, (sec + i), &block); 2024c74: d0 1c 60 58 ldd [ %l1 + 0x58 ], %o0 <== NOT EXECUTED 2024c78: 96 10 00 15 mov %l5, %o3 <== NOT EXECUTED 2024c7c: 7f ff 84 0c call 2005cac <== NOT EXECUTED 2024c80: a4 04 a0 01 inc %l2 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 2024c84: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2024c88: 12 80 00 07 bne 2024ca4 <== NOT EXECUTED 2024c8c: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EIO ); sc = rtems_bdbuf_sync(block); 2024c90: 7f ff 81 e4 call 2005420 <== NOT EXECUTED 2024c94: d0 07 bf f8 ld [ %fp + -8 ], %o0 <== NOT EXECUTED if ( sc != RTEMS_SUCCESSFUL ) 2024c98: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2024c9c: 22 80 00 08 be,a 2024cbc <== NOT EXECUTED 2024ca0: c2 0c 60 04 ldub [ %l1 + 4 ], %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EIO ); 2024ca4: 40 00 77 e1 call 2042c28 <__errno> <== NOT EXECUTED 2024ca8: a0 10 3f ff mov -1, %l0 <== NOT EXECUTED 2024cac: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED 2024cb0: 10 80 00 16 b 2024d08 <== NOT EXECUTED 2024cb4: 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++ ) 2024cb8: c2 0c 60 04 ldub [ %l1 + 4 ], %g1 <== NOT EXECUTED 2024cbc: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED 2024cc0: 0a bf ff ed bcs 2024c74 <== NOT EXECUTED 2024cc4: 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); 2024cc8: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED 2024ccc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2024cd0: 40 00 67 a3 call 203eb5c <== NOT EXECUTED 2024cd4: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED if ( rc != RC_OK ) 2024cd8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2024cdc: 22 80 00 05 be,a 2024cf0 <== NOT EXECUTED 2024ce0: c4 07 bf fc ld [ %fp + -4 ], %g2 <== NOT EXECUTED 2024ce4: 10 80 00 09 b 2024d08 <== NOT EXECUTED 2024ce8: 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) 2024cec: c4 07 bf fc ld [ %fp + -4 ], %g2 <== NOT EXECUTED 2024cf0: c6 04 60 0c ld [ %l1 + 0xc ], %g3 <== NOT EXECUTED 2024cf4: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED 2024cf8: 86 08 80 03 and %g2, %g3, %g3 <== NOT EXECUTED 2024cfc: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 2024d00: 0a bf ff ce bcs 2024c38 <== NOT EXECUTED 2024d04: 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; } 2024d08: b0 10 00 10 mov %l0, %i0 <== NOT EXECUTED 2024d0c: 81 c7 e0 08 ret <== NOT EXECUTED 2024d10: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02024f40 : rtems_filesystem_mount_table_entry_t *mt_entry, fat_file_fd_t *fat_fd, uint32_t new_length, uint32_t *a_length ) { 2024f40: 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; 2024f44: f4 26 c0 00 st %i2, [ %i3 ] <== NOT EXECUTED if (new_length <= fat_fd->fat_file_size) 2024f48: 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; 2024f4c: 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; 2024f50: 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 ) { 2024f54: 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) 2024f58: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED 2024f5c: 08 80 00 73 bleu 2025128 <== NOT EXECUTED 2024f60: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 <== NOT EXECUTED return RC_OK; if ((FAT_FD_OF_ROOT_DIR(fat_fd)) && 2024f64: c4 06 60 20 ld [ %i1 + 0x20 ], %g2 <== NOT EXECUTED 2024f68: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED 2024f6c: 32 80 00 0b bne,a 2024f98 <== NOT EXECUTED 2024f70: c6 14 60 06 lduh [ %l1 + 6 ], %g3 <== NOT EXECUTED 2024f74: c4 06 60 24 ld [ %i1 + 0x24 ], %g2 <== NOT EXECUTED 2024f78: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2024f7c: 32 80 00 07 bne,a 2024f98 <== NOT EXECUTED 2024f80: c6 14 60 06 lduh [ %l1 + 6 ], %g3 <== NOT EXECUTED (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16))) 2024f84: c4 0c 60 0a ldub [ %l1 + 0xa ], %g2 <== NOT EXECUTED 2024f88: 80 88 a0 03 btst 3, %g2 <== NOT EXECUTED 2024f8c: 12 80 00 1f bne 2025008 <== NOT EXECUTED 2024f90: 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))) & 2024f94: c6 14 60 06 lduh [ %l1 + 6 ], %g3 <== NOT EXECUTED (fs_info->vol.bpc - 1); bytes2add = new_length - fat_fd->fat_file_size; 2024f98: 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))) & 2024f9c: 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 - 2024fa0: a4 08 80 01 and %g2, %g1, %l2 <== NOT EXECUTED 2024fa4: a4 20 c0 12 sub %g3, %l2, %l2 <== NOT EXECUTED 2024fa8: 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) 2024fac: 80 a5 00 12 cmp %l4, %l2 <== NOT EXECUTED 2024fb0: 08 80 00 1a bleu 2025018 <== NOT EXECUTED 2024fb4: 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) 2024fb8: a8 a5 00 12 subcc %l4, %l2, %l4 <== NOT EXECUTED 2024fbc: 02 80 00 17 be 2025018 <== NOT EXECUTED 2024fc0: a6 05 3f ff add %l4, -1, %l3 <== NOT EXECUTED return RC_OK; cls2add = ((bytes2add - 1) >> fs_info->vol.bpc_log2) + 1; 2024fc4: c2 0c 60 08 ldub [ %l1 + 8 ], %g1 <== NOT EXECUTED rc = fat_scan_fat_for_free_clusters(mt_entry, &chain, cls2add, 2024fc8: 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; 2024fcc: a7 34 c0 01 srl %l3, %g1, %l3 <== NOT EXECUTED rc = fat_scan_fat_for_free_clusters(mt_entry, &chain, cls2add, 2024fd0: 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; 2024fd4: a6 04 e0 01 inc %l3 <== NOT EXECUTED rc = fat_scan_fat_for_free_clusters(mt_entry, &chain, cls2add, 2024fd8: 96 07 bf f0 add %fp, -16, %o3 <== NOT EXECUTED 2024fdc: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED 2024fe0: 40 00 67 90 call 203ee20 <== NOT EXECUTED 2024fe4: 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) 2024fe8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 2024fec: 12 80 00 0b bne 2025018 <== NOT EXECUTED 2024ff0: 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)) 2024ff4: 12 80 00 0b bne 2025020 <== NOT EXECUTED 2024ff8: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2024ffc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2025000: 12 80 00 09 bne 2025024 <== NOT EXECUTED 2025004: 80 a4 c0 01 cmp %l3, %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOSPC); 2025008: 40 00 77 08 call 2042c28 <__errno> <== NOT EXECUTED 202500c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2025010: 82 10 20 1c mov 0x1c, %g1 <== NOT EXECUTED 2025014: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2025018: 81 c7 e0 08 ret <== NOT EXECUTED 202501c: 81 e8 00 00 restore <== NOT EXECUTED /* check wether we satisfied request for 'cls2add' clusters */ if (cls2add != cls_added) 2025020: 80 a4 c0 01 cmp %l3, %g1 <== NOT EXECUTED 2025024: 02 80 00 0b be 2025050 <== NOT EXECUTED 2025028: 82 38 00 01 xnor %g0, %g1, %g1 <== NOT EXECUTED *a_length = new_length - 202502c: c6 0c 60 08 ldub [ %l1 + 8 ], %g3 <== NOT EXECUTED 2025030: c4 14 60 06 lduh [ %l1 + 6 ], %g2 <== NOT EXECUTED 2025034: a6 00 40 13 add %g1, %l3, %l3 <== NOT EXECUTED 2025038: 82 00 bf ff add %g2, -1, %g1 <== NOT EXECUTED 202503c: a7 2c c0 03 sll %l3, %g3, %l3 <== NOT EXECUTED 2025040: a8 0d 00 01 and %l4, %g1, %l4 <== NOT EXECUTED 2025044: a6 26 80 13 sub %i2, %l3, %l3 <== NOT EXECUTED 2025048: a8 24 c0 14 sub %l3, %l4, %l4 <== NOT EXECUTED 202504c: 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 ) 2025050: d6 06 60 18 ld [ %i1 + 0x18 ], %o3 <== NOT EXECUTED 2025054: 80 a2 e0 00 cmp %o3, 0 <== NOT EXECUTED 2025058: 32 80 00 07 bne,a 2025074 <== NOT EXECUTED 202505c: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED { fat_fd->map.disk_cln = fat_fd->cln = chain; 2025060: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED fat_fd->map.file_cln = 0; 2025064: 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; 2025068: c2 26 60 38 st %g1, [ %i1 + 0x38 ] <== NOT EXECUTED 202506c: 10 80 00 18 b 20250cc <== NOT EXECUTED 2025070: 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) 2025074: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED 2025078: 02 80 00 04 be 2025088 <== NOT EXECUTED 202507c: 96 02 ff ff add %o3, -1, %o3 <== NOT EXECUTED { old_last_cl = fat_fd->map.last_cln; 2025080: 10 80 00 0a b 20250a8 <== NOT EXECUTED 2025084: c2 27 bf f8 st %g1, [ %fp + -8 ] <== NOT EXECUTED } else { rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM, 2025088: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 202508c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2025090: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED 2025094: 7f ff ff 35 call 2024d68 <== NOT EXECUTED 2025098: 98 07 bf f8 add %fp, -8, %o4 <== NOT EXECUTED (fat_fd->fat_file_size - 1), &old_last_cl); if ( rc != RC_OK ) 202509c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 20250a0: 12 80 00 1b bne 202510c <== NOT EXECUTED 20250a4: 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); 20250a8: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED 20250ac: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED 20250b0: 40 00 65 fe call 203e8a8 <== NOT EXECUTED 20250b4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( rc != RC_OK ) 20250b8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 20250bc: 12 80 00 14 bne 202510c <== NOT EXECUTED 20250c0: 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); 20250c4: 40 00 02 54 call 2025a14 <== NOT EXECUTED 20250c8: 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) 20250cc: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 20250d0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20250d4: 22 80 00 13 be,a 2025120 <== NOT EXECUTED 20250d8: f4 26 60 18 st %i2, [ %i1 + 0x18 ] <== NOT EXECUTED { fat_fd->map.last_cln = last_cl; 20250dc: c4 07 bf f4 ld [ %fp + -12 ], %g2 <== NOT EXECUTED if (fat_fd->fat_file_type == FAT_DIRECTORY) 20250e0: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 <== NOT EXECUTED 20250e4: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 20250e8: 12 80 00 0d bne 202511c <== NOT EXECUTED 20250ec: c4 26 60 3c st %g2, [ %i1 + 0x3c ] <== NOT EXECUTED { rc = fat_init_clusters_chain(mt_entry, chain); 20250f0: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED 20250f4: 40 00 03 df call 2026070 <== NOT EXECUTED 20250f8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( rc != RC_OK ) 20250fc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 2025100: 22 80 00 08 be,a 2025120 <== NOT EXECUTED 2025104: f4 26 60 18 st %i2, [ %i1 + 0x18 ] <== NOT EXECUTED { fat_free_fat_clusters_chain(mt_entry, chain); 2025108: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED 202510c: 40 00 67 11 call 203ed50 <== NOT EXECUTED 2025110: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return rc; 2025114: 81 c7 e0 08 ret <== NOT EXECUTED 2025118: 81 e8 00 00 restore <== NOT EXECUTED } } } fat_fd->fat_file_size = new_length; 202511c: f4 26 60 18 st %i2, [ %i1 + 0x18 ] <== NOT EXECUTED return RC_OK; 2025120: 81 c7 e0 08 ret <== NOT EXECUTED 2025124: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 2025128: b0 10 20 00 clr %i0 <== NOT EXECUTED } 202512c: 81 c7 e0 08 ret <== NOT EXECUTED 2025130: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02024d68 : fat_file_ioctl( rtems_filesystem_mount_table_entry_t *mt_entry, fat_file_fd_t *fat_fd, int cmd, ...) { 2024d68: 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); 2024d6c: 82 07 a0 50 add %fp, 0x50, %g1 <== NOT EXECUTED 2024d70: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED 2024d74: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED 2024d78: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED 2024d7c: 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; 2024d80: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED uint32_t *ret; va_list ap; va_start(ap, cmd); switch (cmd) 2024d84: 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, ...) { 2024d88: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2024d8c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED uint32_t *ret; va_list ap; va_start(ap, cmd); switch (cmd) 2024d90: 12 80 00 22 bne 2024e18 <== NOT EXECUTED 2024d94: 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 ) 2024d98: 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 *); 2024d9c: 86 07 a0 58 add %fp, 0x58, %g3 <== NOT EXECUTED /* sanity check */ if ( pos >= fat_fd->fat_file_size ) 2024da0: 80 a6 c0 02 cmp %i3, %g2 <== NOT EXECUTED 2024da4: 0a 80 00 06 bcs 2024dbc <== NOT EXECUTED 2024da8: c6 27 bf f8 st %g3, [ %fp + -8 ] <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EIO ); 2024dac: 40 00 77 9f call 2042c28 <__errno> <== NOT EXECUTED 2024db0: 01 00 00 00 nop <== NOT EXECUTED 2024db4: 10 80 00 1c b 2024e24 <== NOT EXECUTED 2024db8: 82 10 20 05 mov 5, %g1 ! 5 <== NOT EXECUTED if ((FAT_FD_OF_ROOT_DIR(fat_fd)) && 2024dbc: c4 06 60 20 ld [ %i1 + 0x20 ], %g2 <== NOT EXECUTED 2024dc0: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED 2024dc4: 32 80 00 0d bne,a 2024df8 <== NOT EXECUTED 2024dc8: d4 08 60 08 ldub [ %g1 + 8 ], %o2 <== NOT EXECUTED 2024dcc: c4 06 60 24 ld [ %i1 + 0x24 ], %g2 <== NOT EXECUTED 2024dd0: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2024dd4: 32 80 00 09 bne,a 2024df8 <== NOT EXECUTED 2024dd8: d4 08 60 08 ldub [ %g1 + 8 ], %o2 <== NOT EXECUTED (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16))) 2024ddc: c4 08 60 0a ldub [ %g1 + 0xa ], %g2 <== NOT EXECUTED 2024de0: 80 88 a0 03 btst 3, %g2 <== NOT EXECUTED 2024de4: 22 80 00 05 be,a 2024df8 <== NOT EXECUTED 2024de8: d4 08 60 08 ldub [ %g1 + 8 ], %o2 <== NOT EXECUTED { /* cluster 0 (zero) reserved for root dir */ *ret = 0; 2024dec: c0 27 00 00 clr [ %i4 ] <== NOT EXECUTED return RC_OK; 2024df0: 10 80 00 0f b 2024e2c <== NOT EXECUTED 2024df4: 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); 2024df8: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED 2024dfc: 7f ff ff 55 call 2024b50 <== NOT EXECUTED 2024e00: 95 36 c0 0a srl %i3, %o2, %o2 <== NOT EXECUTED if ( rc != RC_OK ) 2024e04: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED 2024e08: 12 80 00 09 bne 2024e2c <== NOT EXECUTED 2024e0c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED return rc; *ret = cur_cln; break; 2024e10: 10 80 00 07 b 2024e2c <== NOT EXECUTED 2024e14: c2 27 00 00 st %g1, [ %i4 ] <== NOT EXECUTED default: errno = EINVAL; 2024e18: 40 00 77 84 call 2042c28 <__errno> <== NOT EXECUTED 2024e1c: 01 00 00 00 nop <== NOT EXECUTED 2024e20: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED 2024e24: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2024e28: 92 10 3f ff mov -1, %o1 <== NOT EXECUTED rc = -1; break; } return rc; } 2024e2c: 81 c7 e0 08 ret <== NOT EXECUTED 2024e30: 91 e8 00 09 restore %g0, %o1, %o0 <== NOT EXECUTED =============================================================================== 02024b50 : rtems_filesystem_mount_table_entry_t *mt_entry, fat_file_fd_t *fat_fd, uint32_t file_cln, uint32_t *disk_cln ) { 2024b50: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED int rc = RC_OK; if (file_cln == fat_fd->map.file_cln) 2024b54: e2 06 60 34 ld [ %i1 + 0x34 ], %l1 <== NOT EXECUTED 2024b58: 80 a6 80 11 cmp %i2, %l1 <== NOT EXECUTED 2024b5c: 12 80 00 06 bne 2024b74 <== NOT EXECUTED 2024b60: 84 10 20 00 clr %g2 <== NOT EXECUTED *disk_cln = fat_fd->map.disk_cln; 2024b64: c2 06 60 38 ld [ %i1 + 0x38 ], %g1 <== NOT EXECUTED 2024b68: 86 10 20 00 clr %g3 <== NOT EXECUTED 2024b6c: 10 80 00 1f b 2024be8 <== NOT EXECUTED 2024b70: 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) 2024b74: 28 80 00 05 bleu,a 2024b88 <== NOT EXECUTED 2024b78: c2 06 60 1c ld [ %i1 + 0x1c ], %g1 <== NOT EXECUTED { cur_cln = fat_fd->map.disk_cln; 2024b7c: c2 06 60 38 ld [ %i1 + 0x38 ], %g1 <== NOT EXECUTED count = file_cln - fat_fd->map.file_cln; 2024b80: 10 80 00 03 b 2024b8c <== NOT EXECUTED 2024b84: a2 26 80 11 sub %i2, %l1, %l1 <== NOT EXECUTED } else { cur_cln = fat_fd->cln; 2024b88: a2 10 00 1a mov %i2, %l1 <== NOT EXECUTED 2024b8c: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED 2024b90: a0 10 20 00 clr %l0 <== NOT EXECUTED count = file_cln; } /* skip over the clusters */ for (i = 0; i < count; i++) 2024b94: 10 80 00 0a b 2024bbc <== NOT EXECUTED 2024b98: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED { rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln); 2024b9c: 40 00 67 f0 call 203eb5c <== NOT EXECUTED 2024ba0: 01 00 00 00 nop <== NOT EXECUTED if ( rc != RC_OK ) 2024ba4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2024ba8: 02 80 00 06 be 2024bc0 <== NOT EXECUTED 2024bac: 80 a4 00 11 cmp %l0, %l1 <== NOT EXECUTED return rc; 2024bb0: 86 10 00 08 mov %o0, %g3 <== NOT EXECUTED 2024bb4: 10 80 00 0d b 2024be8 <== NOT EXECUTED 2024bb8: 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++) 2024bbc: 80 a4 00 11 cmp %l0, %l1 <== NOT EXECUTED { rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln); 2024bc0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2024bc4: 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++) 2024bc8: a0 04 20 01 inc %l0 <== NOT EXECUTED 2024bcc: 0a bf ff f4 bcs 2024b9c <== NOT EXECUTED 2024bd0: 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; 2024bd4: f4 26 60 34 st %i2, [ %i1 + 0x34 ] <== NOT EXECUTED fat_fd->map.disk_cln = cur_cln; 2024bd8: d2 26 60 38 st %o1, [ %i1 + 0x38 ] <== NOT EXECUTED *disk_cln = cur_cln; 2024bdc: d2 26 c0 00 st %o1, [ %i3 ] <== NOT EXECUTED 2024be0: 84 10 20 00 clr %g2 <== NOT EXECUTED 2024be4: 86 10 20 00 clr %g3 <== NOT EXECUTED } return RC_OK; } 2024be8: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED 2024bec: 81 c7 e0 08 ret <== NOT EXECUTED 2024bf0: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED =============================================================================== 02024d14 : void fat_file_mark_removed( rtems_filesystem_mount_table_entry_t *mt_entry, fat_file_fd_t *fat_fd ) { 2024d14: 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) + 2024d18: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED fat_fs_info_t *fs_info = mt_entry->fs_info; 2024d1c: 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) 2024d20: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED (pos->ofs >> FAT_SECTOR512_BITS)) << 4) + 2024d24: 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 ); 2024d28: 7f ff a2 87 call 200d744 <_Chain_Extract> <== NOT EXECUTED 2024d2c: 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 ); 2024d30: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED 2024d34: a3 34 60 05 srl %l1, 5, %l1 <== NOT EXECUTED 2024d38: a2 0c 60 01 and %l1, 1, %l1 <== NOT EXECUTED 2024d3c: 83 2c 60 04 sll %l1, 4, %g1 <== NOT EXECUTED 2024d40: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2024d44: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED 2024d48: a2 20 40 11 sub %g1, %l1, %l1 <== NOT EXECUTED 2024d4c: 7f ff a2 72 call 200d714 <_Chain_Append> <== NOT EXECUTED 2024d50: 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; 2024d54: c2 0e 60 30 ldub [ %i1 + 0x30 ], %g1 <== NOT EXECUTED 2024d58: 82 10 60 01 or %g1, 1, %g1 <== NOT EXECUTED 2024d5c: c2 2e 60 30 stb %g1, [ %i1 + 0x30 ] <== NOT EXECUTED } 2024d60: 81 c7 e0 08 ret <== NOT EXECUTED 2024d64: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02025654 : fat_file_open( rtems_filesystem_mount_table_entry_t *mt_entry, fat_dir_pos_t *dir_pos, fat_file_fd_t **fat_fd ) { 2025654: 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) + 2025658: c2 06 40 00 ld [ %i1 ], %g1 <== NOT EXECUTED int rc = RC_OK; fat_fs_info_t *fs_info = mt_entry->fs_info; 202565c: 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) 2025660: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 2025664: 02 80 00 11 be 20256a8 <== NOT EXECUTED 2025668: 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)) ) 202566c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2025670: 32 80 00 08 bne,a 2025690 <== NOT EXECUTED 2025674: c6 0c 20 05 ldub [ %l0 + 5 ], %g3 <== NOT EXECUTED 2025678: c4 0c 20 0a ldub [ %l0 + 0xa ], %g2 <== NOT EXECUTED 202567c: 80 88 a0 03 btst 3, %g2 <== NOT EXECUTED 2025680: 22 80 00 04 be,a 2025690 <== NOT EXECUTED 2025684: c6 0c 20 05 ldub [ %l0 + 5 ], %g3 <== NOT EXECUTED return fs_info->vol.rdir_loc; 2025688: 10 80 00 06 b 20256a0 <== NOT EXECUTED 202568c: c6 04 20 1c ld [ %l0 + 0x1c ], %g3 <== NOT EXECUTED return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) + 2025690: c4 04 20 30 ld [ %l0 + 0x30 ], %g2 <== NOT EXECUTED 2025694: 82 00 7f fe add %g1, -2, %g1 <== NOT EXECUTED 2025698: 87 28 40 03 sll %g1, %g3, %g3 <== NOT EXECUTED 202569c: 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) << 20256a0: e4 0c 20 03 ldub [ %l0 + 3 ], %l2 <== NOT EXECUTED 20256a4: 87 28 c0 12 sll %g3, %l2, %g3 <== NOT EXECUTED (pos->ofs >> FAT_SECTOR512_BITS)) << 4) + 20256a8: 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; 20256ac: 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) + 20256b0: 89 30 60 05 srl %g1, 5, %g4 <== NOT EXECUTED 20256b4: a5 30 60 09 srl %g1, 9, %l2 <== NOT EXECUTED 20256b8: 88 09 20 0f and %g4, 0xf, %g4 <== NOT EXECUTED 20256bc: a4 00 c0 12 add %g3, %l2, %l2 <== NOT EXECUTED 20256c0: a5 2c a0 04 sll %l2, 4, %l2 <== NOT EXECUTED 20256c4: a4 04 80 04 add %l2, %g4, %l2 <== NOT EXECUTED 20256c8: 82 0c a0 01 and %l2, 1, %g1 <== NOT EXECUTED 20256cc: a7 28 60 04 sll %g1, 4, %l3 <== NOT EXECUTED 20256d0: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED 20256d4: a6 24 c0 01 sub %l3, %g1, %l3 <== NOT EXECUTED 20256d8: c2 00 80 13 ld [ %g2 + %l3 ], %g1 <== NOT EXECUTED 20256dc: 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; 20256e0: 10 80 00 24 b 2025770 <== NOT EXECUTED 20256e4: 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) 20256e8: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED 20256ec: 02 80 00 11 be 2025730 <== NOT EXECUTED 20256f0: 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)) ) 20256f4: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 20256f8: 32 80 00 08 bne,a 2025718 <== NOT EXECUTED 20256fc: c6 0c 20 05 ldub [ %l0 + 5 ], %g3 <== NOT EXECUTED 2025700: c6 0c 20 0a ldub [ %l0 + 0xa ], %g3 <== NOT EXECUTED 2025704: 80 88 e0 03 btst 3, %g3 <== NOT EXECUTED 2025708: 22 80 00 04 be,a 2025718 <== NOT EXECUTED 202570c: c6 0c 20 05 ldub [ %l0 + 5 ], %g3 <== NOT EXECUTED return fs_info->vol.rdir_loc; 2025710: 10 80 00 06 b 2025728 <== NOT EXECUTED 2025714: c6 04 20 1c ld [ %l0 + 0x1c ], %g3 <== NOT EXECUTED return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) + 2025718: c8 04 20 30 ld [ %l0 + 0x30 ], %g4 <== NOT EXECUTED 202571c: 84 00 bf fe add %g2, -2, %g2 <== NOT EXECUTED 2025720: 87 28 80 03 sll %g2, %g3, %g3 <== NOT EXECUTED 2025724: 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) << 2025728: c4 0c 20 03 ldub [ %l0 + 3 ], %g2 <== NOT EXECUTED 202572c: 87 28 c0 02 sll %g3, %g2, %g3 <== NOT EXECUTED (pos->ofs >> FAT_SECTOR512_BITS)) << 4) + 2025730: 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) 2025734: 85 31 20 05 srl %g4, 5, %g2 <== NOT EXECUTED 2025738: 89 31 20 09 srl %g4, 9, %g4 <== NOT EXECUTED 202573c: 84 08 a0 0f and %g2, 0xf, %g2 <== NOT EXECUTED 2025740: 86 00 c0 04 add %g3, %g4, %g3 <== NOT EXECUTED 2025744: 87 28 e0 04 sll %g3, 4, %g3 <== NOT EXECUTED 2025748: 86 00 c0 02 add %g3, %g2, %g3 <== NOT EXECUTED 202574c: 80 a4 80 03 cmp %l2, %g3 <== NOT EXECUTED 2025750: 32 80 00 08 bne,a 2025770 <== NOT EXECUTED 2025754: 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++; 2025758: 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; 202575c: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED lfat_fd->links_num++; 2025760: 84 00 a0 01 inc %g2 <== NOT EXECUTED 2025764: c4 20 60 08 st %g2, [ %g1 + 8 ] <== NOT EXECUTED return rc; 2025768: 81 c7 e0 08 ret <== NOT EXECUTED 202576c: 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) ; ) 2025770: 80 a0 40 0d cmp %g1, %o5 <== NOT EXECUTED 2025774: 32 bf ff dd bne,a 20256e8 <== NOT EXECUTED 2025778: 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; 202577c: 10 80 00 57 b 20258d8 <== NOT EXECUTED 2025780: 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) 2025784: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED 2025788: 02 80 00 11 be 20257cc <== NOT EXECUTED 202578c: 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)) ) 2025790: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2025794: 32 80 00 08 bne,a 20257b4 <== NOT EXECUTED 2025798: c6 0c 20 05 ldub [ %l0 + 5 ], %g3 <== NOT EXECUTED 202579c: c6 0c 20 0a ldub [ %l0 + 0xa ], %g3 <== NOT EXECUTED 20257a0: 80 88 e0 03 btst 3, %g3 <== NOT EXECUTED 20257a4: 22 80 00 04 be,a 20257b4 <== NOT EXECUTED 20257a8: c6 0c 20 05 ldub [ %l0 + 5 ], %g3 <== NOT EXECUTED return fs_info->vol.rdir_loc; 20257ac: 10 80 00 06 b 20257c4 <== NOT EXECUTED 20257b0: c6 04 20 1c ld [ %l0 + 0x1c ], %g3 <== NOT EXECUTED return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) + 20257b4: c8 04 20 30 ld [ %l0 + 0x30 ], %g4 <== NOT EXECUTED 20257b8: 84 00 bf fe add %g2, -2, %g2 <== NOT EXECUTED 20257bc: 87 28 80 03 sll %g2, %g3, %g3 <== NOT EXECUTED 20257c0: 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) << 20257c4: c4 0c 20 03 ldub [ %l0 + 3 ], %g2 <== NOT EXECUTED 20257c8: 87 28 c0 02 sll %g3, %g2, %g3 <== NOT EXECUTED 20257cc: 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) 20257d0: 85 31 20 05 srl %g4, 5, %g2 <== NOT EXECUTED 20257d4: 89 31 20 09 srl %g4, 9, %g4 <== NOT EXECUTED 20257d8: 84 08 a0 0f and %g2, 0xf, %g2 <== NOT EXECUTED 20257dc: 86 00 c0 04 add %g3, %g4, %g3 <== NOT EXECUTED 20257e0: 87 28 e0 04 sll %g3, 4, %g3 <== NOT EXECUTED 20257e4: 86 00 c0 02 add %g3, %g2, %g3 <== NOT EXECUTED 20257e8: 80 a4 80 03 cmp %l2, %g3 <== NOT EXECUTED 20257ec: 32 80 00 0a bne,a 2025814 <== NOT EXECUTED 20257f0: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED { if ( ((key2) == 0) || ((key2) == ffd->ino) ) 20257f4: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED 20257f8: 02 80 00 0b be 2025824 <== NOT EXECUTED 20257fc: a8 10 20 00 clr %l4 <== NOT EXECUTED 2025800: c4 00 60 0c ld [ %g1 + 0xc ], %g2 <== NOT EXECUTED 2025804: 80 a4 80 02 cmp %l2, %g2 <== NOT EXECUTED 2025808: 02 80 00 07 be 2025824 <== NOT EXECUTED 202580c: 01 00 00 00 nop <== NOT EXECUTED { *ret = (void *)the_node; return 0; } } the_node = the_node->next; 2025810: 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) ; ) 2025814: 80 a0 40 0d cmp %g1, %o5 <== NOT EXECUTED 2025818: 32 bf ff db bne,a 2025784 <== NOT EXECUTED 202581c: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 <== NOT EXECUTED 2025820: 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)); 2025824: 7f ff 8c 56 call 200897c <== NOT EXECUTED 2025828: 90 10 20 44 mov 0x44, %o0 <== NOT EXECUTED 202582c: d0 26 80 00 st %o0, [ %i2 ] <== NOT EXECUTED if ( lfat_fd == NULL ) 2025830: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025834: 02 80 00 1c be 20258a4 <== NOT EXECUTED 2025838: 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)); 202583c: 92 10 20 00 clr %o1 <== NOT EXECUTED 2025840: 40 00 82 d9 call 20463a4 <== NOT EXECUTED 2025844: 94 10 20 44 mov 0x44, %o2 <== NOT EXECUTED lfat_fd->links_num = 1; lfat_fd->flags &= ~FAT_FILE_REMOVED; 2025848: c2 0c 60 30 ldub [ %l1 + 0x30 ], %g1 <== NOT EXECUTED lfat_fd->map.last_cln = FAT_UNDEFINED_VALUE; lfat_fd->dir_pos = *dir_pos; 202584c: 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; 2025850: 82 08 7f fe and %g1, -2, %g1 <== NOT EXECUTED 2025854: 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; 2025858: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 202585c: c2 24 60 08 st %g1, [ %l1 + 8 ] <== NOT EXECUTED lfat_fd->flags &= ~FAT_FILE_REMOVED; lfat_fd->map.last_cln = FAT_UNDEFINED_VALUE; 2025860: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED lfat_fd->dir_pos = *dir_pos; 2025864: 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; 2025868: c2 24 60 3c st %g1, [ %l1 + 0x3c ] <== NOT EXECUTED lfat_fd->dir_pos = *dir_pos; 202586c: 40 00 82 3b call 2046158 <== NOT EXECUTED 2025870: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED if ( rc != RC_OK ) 2025874: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED 2025878: 02 80 00 04 be 2025888 <== NOT EXECUTED 202587c: 01 00 00 00 nop <== NOT EXECUTED lfat_fd->ino = key; 2025880: 10 80 00 0f b 20258bc <== NOT EXECUTED 2025884: e4 24 60 0c st %l2, [ %l1 + 0xc ] <== NOT EXECUTED else { lfat_fd->ino = fat_get_unique_ino(mt_entry); 2025888: 40 00 00 2b call 2025934 <== NOT EXECUTED 202588c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED if ( lfat_fd->ino == 0 ) 2025890: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025894: 12 80 00 0a bne 20258bc <== NOT EXECUTED 2025898: d0 24 60 0c st %o0, [ %l1 + 0xc ] <== NOT EXECUTED { free((*fat_fd)); 202589c: 7f ff 8a 71 call 2008260 <== NOT EXECUTED 20258a0: 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 ); 20258a4: 40 00 74 e1 call 2042c28 <__errno> <== NOT EXECUTED 20258a8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20258ac: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 20258b0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20258b4: 81 c7 e0 08 ret <== NOT EXECUTED 20258b8: 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 ); 20258bc: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED 20258c0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED 20258c4: 90 02 00 13 add %o0, %l3, %o0 <== NOT EXECUTED 20258c8: 7f ff 9f 93 call 200d714 <_Chain_Append> <== NOT EXECUTED 20258cc: b0 10 20 00 clr %i0 <== NOT EXECUTED * other fields of fat-file descriptor will be initialized on upper * level */ return RC_OK; } 20258d0: 81 c7 e0 08 ret <== NOT EXECUTED 20258d4: 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; 20258d8: c2 00 80 13 ld [ %g2 + %l3 ], %g1 <== NOT EXECUTED 20258dc: 84 00 80 13 add %g2, %l3, %g2 <== NOT EXECUTED 20258e0: 10 bf ff cd b 2025814 <== NOT EXECUTED 20258e4: 9a 00 a0 04 add %g2, 4, %o5 <== NOT EXECUTED =============================================================================== 02025394 : fat_file_fd_t *fat_fd, uint32_t start, uint32_t count, uint8_t *buf ) { 2025394: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED 2025398: 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) 202539c: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 20253a0: 02 80 00 79 be 2025584 <== NOT EXECUTED 20253a4: 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 ) 20253a8: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED 20253ac: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED 20253b0: 1a 80 00 75 bcc 2025584 <== NOT EXECUTED 20253b4: 80 a6 c0 01 cmp %i3, %g1 <== NOT EXECUTED return FAT_EOF; if ((count > fat_fd->fat_file_size) || 20253b8: 38 80 00 07 bgu,a 20253d4 <== NOT EXECUTED 20253bc: b6 20 40 1a sub %g1, %i2, %i3 <== NOT EXECUTED 20253c0: 84 20 40 1b sub %g1, %i3, %g2 <== NOT EXECUTED 20253c4: 80 a6 80 02 cmp %i2, %g2 <== NOT EXECUTED 20253c8: 28 80 00 04 bleu,a 20253d8 <== NOT EXECUTED 20253cc: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED (start > fat_fd->fat_file_size - count)) count = fat_fd->fat_file_size - start; 20253d0: b6 20 40 1a sub %g1, %i2, %i3 <== NOT EXECUTED if ((FAT_FD_OF_ROOT_DIR(fat_fd)) && 20253d4: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED 20253d8: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 20253dc: 12 80 00 23 bne 2025468 <== NOT EXECUTED 20253e0: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED 20253e4: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 <== NOT EXECUTED 20253e8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20253ec: 32 80 00 20 bne,a 202546c <== NOT EXECUTED 20253f0: e6 0c 60 08 ldub [ %l1 + 8 ], %l3 <== NOT EXECUTED (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16))) 20253f4: c2 0c 60 0a ldub [ %l1 + 0xa ], %g1 <== NOT EXECUTED 20253f8: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED 20253fc: 22 80 00 1c be,a 202546c <== NOT EXECUTED 2025400: e6 0c 60 08 ldub [ %l1 + 8 ], %l3 <== NOT EXECUTED { sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->cln); 2025404: 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)) ) 2025408: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 202540c: 32 80 00 04 bne,a 202541c <== NOT EXECUTED 2025410: c8 0c 60 05 ldub [ %l1 + 5 ], %g4 <== NOT EXECUTED return fs_info->vol.rdir_loc; 2025414: 10 80 00 06 b 202542c <== NOT EXECUTED 2025418: c2 04 60 1c ld [ %l1 + 0x1c ], %g1 <== NOT EXECUTED return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) + 202541c: c6 04 60 30 ld [ %l1 + 0x30 ], %g3 <== NOT EXECUTED 2025420: 82 00 bf fe add %g2, -2, %g1 <== NOT EXECUTED 2025424: 83 28 40 04 sll %g1, %g4, %g1 <== NOT EXECUTED 2025428: 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); 202542c: d4 14 40 00 lduh [ %l1 ], %o2 <== NOT EXECUTED 2025430: c4 0c 60 02 ldub [ %l1 + 2 ], %g2 <== NOT EXECUTED 2025434: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED 2025438: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 202543c: 94 0e 80 0a and %i2, %o2, %o2 <== NOT EXECUTED 2025440: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED 2025444: b5 36 80 02 srl %i2, %g2, %i2 <== NOT EXECUTED 2025448: 98 10 00 1c mov %i4, %o4 <== NOT EXECUTED 202544c: 40 00 03 39 call 2026130 <_fat_block_read> <== NOT EXECUTED 2025450: 92 00 40 1a add %g1, %i2, %o1 <== NOT EXECUTED if ( ret < 0 ) 2025454: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025458: 16 80 00 4e bge 2025590 <== NOT EXECUTED 202545c: 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; 2025460: 10 80 00 4c b 2025590 <== NOT EXECUTED 2025464: 90 10 3f ff mov -1, %o0 ! ffffffff <== NOT EXECUTED return -1; return ret; } cl_start = start >> fs_info->vol.bpc_log2; 2025468: e6 0c 60 08 ldub [ %l1 + 8 ], %l3 <== NOT EXECUTED save_ofs = ofs = start & (fs_info->vol.bpc - 1); 202546c: e4 14 60 06 lduh [ %l1 + 6 ], %l2 <== NOT EXECUTED return -1; return ret; } cl_start = start >> fs_info->vol.bpc_log2; 2025470: 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); 2025474: a8 07 bf fc add %fp, -4, %l4 <== NOT EXECUTED 2025478: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 202547c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2025480: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED 2025484: 7f ff fd b3 call 2024b50 <== NOT EXECUTED 2025488: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED if (rc != RC_OK) 202548c: 90 92 60 00 orcc %o1, 0, %o0 <== NOT EXECUTED 2025490: 12 80 00 40 bne 2025590 <== NOT EXECUTED 2025494: 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); 2025498: a5 34 a0 10 srl %l2, 0x10, %l2 <== NOT EXECUTED 202549c: a4 04 bf ff add %l2, -1, %l2 <== NOT EXECUTED 20254a0: aa 10 20 00 clr %l5 <== NOT EXECUTED 20254a4: b4 0e 80 12 and %i2, %l2, %i2 <== NOT EXECUTED 20254a8: a4 10 20 00 clr %l2 <== NOT EXECUTED 20254ac: 10 80 00 2a b 2025554 <== NOT EXECUTED 20254b0: 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)); 20254b4: 96 22 c0 01 sub %o3, %g1, %o3 <== NOT EXECUTED 20254b8: 80 a2 c0 1b cmp %o3, %i3 <== NOT EXECUTED 20254bc: 08 80 00 03 bleu 20254c8 <== NOT EXECUTED 20254c0: c4 07 bf fc ld [ %fp + -4 ], %g2 <== NOT EXECUTED 20254c4: 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)) ) 20254c8: 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) + 20254cc: 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)) ) 20254d0: 12 80 00 08 bne 20254f0 <== NOT EXECUTED 20254d4: c4 04 20 34 ld [ %l0 + 0x34 ], %g2 <== NOT EXECUTED 20254d8: c6 08 a0 0a ldub [ %g2 + 0xa ], %g3 <== NOT EXECUTED 20254dc: 80 88 e0 03 btst 3, %g3 <== NOT EXECUTED 20254e0: 22 80 00 05 be,a 20254f4 <== NOT EXECUTED 20254e4: c6 00 a0 30 ld [ %g2 + 0x30 ], %g3 <== NOT EXECUTED return fs_info->vol.rdir_loc; 20254e8: 10 80 00 06 b 2025500 <== NOT EXECUTED 20254ec: c4 00 a0 1c ld [ %g2 + 0x1c ], %g2 <== NOT EXECUTED return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) + 20254f0: c6 00 a0 30 ld [ %g2 + 0x30 ], %g3 <== NOT EXECUTED 20254f4: c8 08 a0 05 ldub [ %g2 + 5 ], %g4 <== NOT EXECUTED 20254f8: 85 2b 40 04 sll %o5, %g4, %g2 <== NOT EXECUTED 20254fc: 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); 2025500: d2 0c 60 02 ldub [ %l1 + 2 ], %o1 <== NOT EXECUTED 2025504: d4 14 40 00 lduh [ %l1 ], %o2 <== NOT EXECUTED 2025508: 93 30 40 09 srl %g1, %o1, %o1 <== NOT EXECUTED 202550c: 98 07 00 12 add %i4, %l2, %o4 <== NOT EXECUTED 2025510: 92 00 80 09 add %g2, %o1, %o1 <== NOT EXECUTED 2025514: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED if ( ret < 0 ) return -1; count -= c; 2025518: 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); 202551c: 94 08 40 0a and %g1, %o2, %o2 <== NOT EXECUTED if ( ret < 0 ) return -1; count -= c; cmpltd += c; 2025520: 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); 2025524: 40 00 03 03 call 2026130 <_fat_block_read> <== NOT EXECUTED 2025528: 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); 202552c: 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 ) 2025530: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025534: 06 80 00 16 bl 202558c <== NOT EXECUTED 2025538: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return -1; count -= c; cmpltd += c; save_cln = cur_cln; 202553c: ea 07 bf fc ld [ %fp + -4 ], %l5 <== NOT EXECUTED rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln); 2025540: 40 00 65 87 call 203eb5c <== NOT EXECUTED 2025544: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED if ( rc != RC_OK ) 2025548: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202554c: 12 80 00 11 bne 2025590 <== NOT EXECUTED 2025550: 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) 2025554: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 2025558: 32 bf ff d7 bne,a 20254b4 <== NOT EXECUTED 202555c: 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 + 2025560: c2 0c 60 08 ldub [ %l1 + 8 ], %g1 <== NOT EXECUTED 2025564: 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; 2025568: 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; 202556c: 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 + 2025570: a4 06 80 12 add %i2, %l2, %l2 <== NOT EXECUTED 2025574: a5 34 80 01 srl %l2, %g1, %l2 <== NOT EXECUTED 2025578: 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; 202557c: 10 80 00 05 b 2025590 <== NOT EXECUTED 2025580: e6 26 60 34 st %l3, [ %i1 + 0x34 ] <== NOT EXECUTED 2025584: 10 80 00 03 b 2025590 <== NOT EXECUTED 2025588: 90 10 20 00 clr %o0 <== NOT EXECUTED 202558c: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED } 2025590: 81 c7 e0 08 ret <== NOT EXECUTED 2025594: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED =============================================================================== 02024a80 : * RC_OK */ int fat_file_reopen(fat_file_fd_t *fat_fd) { fat_fd->links_num++; 2024a80: c4 02 20 08 ld [ %o0 + 8 ], %g2 <== NOT EXECUTED * RETURNS: * RC_OK */ int fat_file_reopen(fat_file_fd_t *fat_fd) { 2024a84: 82 10 00 08 mov %o0, %g1 <== NOT EXECUTED fat_fd->links_num++; 2024a88: 84 00 a0 01 inc %g2 <== NOT EXECUTED return RC_OK; } 2024a8c: 90 10 20 00 clr %o0 <== NOT EXECUTED 2024a90: 81 c3 e0 08 retl <== NOT EXECUTED 2024a94: c4 20 60 08 st %g2, [ %g1 + 8 ] <== NOT EXECUTED =============================================================================== 02024a98 : int fat_file_size( rtems_filesystem_mount_table_entry_t *mt_entry, fat_file_fd_t *fat_fd ) { 2024a98: 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)) && 2024a9c: 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 ) { 2024aa0: 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)) && 2024aa4: 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; 2024aa8: 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)) && 2024aac: 12 80 00 0e bne 2024ae4 <== NOT EXECUTED 2024ab0: c2 06 60 1c ld [ %i1 + 0x1c ], %g1 <== NOT EXECUTED 2024ab4: c4 06 60 24 ld [ %i1 + 0x24 ], %g2 <== NOT EXECUTED 2024ab8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2024abc: 32 80 00 0b bne,a 2024ae8 <== NOT EXECUTED 2024ac0: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16))) 2024ac4: c4 0c 20 0a ldub [ %l0 + 0xa ], %g2 <== NOT EXECUTED 2024ac8: 80 88 a0 03 btst 3, %g2 <== NOT EXECUTED 2024acc: 22 80 00 07 be,a 2024ae8 <== NOT EXECUTED 2024ad0: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED { fat_fd->fat_file_size = fs_info->vol.rdir_size; 2024ad4: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED 2024ad8: 90 10 20 00 clr %o0 <== NOT EXECUTED return rc; 2024adc: 10 80 00 1b b 2024b48 <== NOT EXECUTED 2024ae0: 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; 2024ae4: 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; 2024ae8: c0 26 60 18 clr [ %i1 + 0x18 ] <== NOT EXECUTED 2024aec: 82 10 20 00 clr %g1 <== NOT EXECUTED while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val) 2024af0: 10 80 00 0b b 2024b1c <== NOT EXECUTED 2024af4: 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); 2024af8: 40 00 68 19 call 203eb5c <== NOT EXECUTED 2024afc: 01 00 00 00 nop <== NOT EXECUTED if ( rc != RC_OK ) 2024b00: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2024b04: 12 80 00 11 bne 2024b48 <== NOT EXECUTED 2024b08: 82 10 00 11 mov %l1, %g1 <== NOT EXECUTED return rc; fat_fd->fat_file_size += fs_info->vol.bpc; 2024b0c: c6 06 60 18 ld [ %i1 + 0x18 ], %g3 <== NOT EXECUTED 2024b10: c4 14 20 06 lduh [ %l0 + 6 ], %g2 <== NOT EXECUTED 2024b14: 84 00 c0 02 add %g3, %g2, %g2 <== NOT EXECUTED 2024b18: 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) 2024b1c: e2 07 bf fc ld [ %fp + -4 ], %l1 <== NOT EXECUTED 2024b20: c6 04 20 0c ld [ %l0 + 0xc ], %g3 <== NOT EXECUTED 2024b24: c4 04 20 10 ld [ %l0 + 0x10 ], %g2 <== NOT EXECUTED 2024b28: 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); 2024b2c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 2024b30: 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) 2024b34: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED 2024b38: 0a bf ff f0 bcs 2024af8 <== NOT EXECUTED 2024b3c: 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; 2024b40: c2 26 60 3c st %g1, [ %i1 + 0x3c ] <== NOT EXECUTED 2024b44: 90 10 20 00 clr %o0 <== NOT EXECUTED return rc; } 2024b48: 81 c7 e0 08 ret <== NOT EXECUTED 2024b4c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED =============================================================================== 02024e34 : fat_file_truncate( rtems_filesystem_mount_table_entry_t *mt_entry, fat_file_fd_t *fat_fd, uint32_t new_length ) { 2024e34: 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 ) 2024e38: 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 ) { 2024e3c: 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 ) 2024e40: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED 2024e44: 1a 80 00 3c bcc 2024f34 <== NOT EXECUTED 2024e48: 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; 2024e4c: 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; 2024e50: 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); 2024e54: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2024e58: 12 80 00 0a bne 2024e80 <== NOT EXECUTED 2024e5c: c6 27 bf f8 st %g3, [ %fp + -8 ] <== NOT EXECUTED 2024e60: 11 00 81 8c sethi %hi(0x2063000), %o0 <== NOT EXECUTED 2024e64: 15 00 81 8c sethi %hi(0x2063000), %o2 <== NOT EXECUTED 2024e68: 17 00 81 8c sethi %hi(0x2063000), %o3 <== NOT EXECUTED 2024e6c: 90 12 22 60 or %o0, 0x260, %o0 <== NOT EXECUTED 2024e70: 94 12 a2 c8 or %o2, 0x2c8, %o2 <== NOT EXECUTED 2024e74: 96 12 e2 b0 or %o3, 0x2b0, %o3 <== NOT EXECUTED 2024e78: 40 00 0d 68 call 2028418 <__assert_func> <== NOT EXECUTED 2024e7c: 92 10 22 6d mov 0x26d, %o1 <== NOT EXECUTED cl_start = (new_length + fs_info->vol.bpc - 1) >> fs_info->vol.bpc_log2; 2024e80: c6 10 a0 06 lduh [ %g2 + 6 ], %g3 <== NOT EXECUTED 2024e84: c4 08 a0 08 ldub [ %g2 + 8 ], %g2 <== NOT EXECUTED 2024e88: 86 00 ff ff add %g3, -1, %g3 <== NOT EXECUTED 2024e8c: b4 00 c0 1a add %g3, %i2, %i2 <== NOT EXECUTED 2024e90: b5 36 80 02 srl %i2, %g2, %i2 <== NOT EXECUTED if ((cl_start << fs_info->vol.bpc_log2) >= fat_fd->fat_file_size) 2024e94: 85 2e 80 02 sll %i2, %g2, %g2 <== NOT EXECUTED 2024e98: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2024e9c: 1a 80 00 26 bcc 2024f34 <== NOT EXECUTED 2024ea0: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED return RC_OK; if (cl_start != 0) 2024ea4: 02 80 00 0a be 2024ecc <== NOT EXECUTED 2024ea8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED { rc = fat_file_lseek(mt_entry, fat_fd, cl_start - 1, &new_last_cln); 2024eac: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2024eb0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2024eb4: 94 06 bf ff add %i2, -1, %o2 <== NOT EXECUTED 2024eb8: 7f ff ff 26 call 2024b50 <== NOT EXECUTED 2024ebc: 96 07 bf f8 add %fp, -8, %o3 <== NOT EXECUTED if (rc != RC_OK) 2024ec0: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED 2024ec4: 12 80 00 1d bne 2024f38 <== NOT EXECUTED 2024ec8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return rc; } rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln); 2024ecc: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2024ed0: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED 2024ed4: 7f ff ff 1f call 2024b50 <== NOT EXECUTED 2024ed8: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED if (rc != RC_OK) 2024edc: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED 2024ee0: 12 80 00 16 bne 2024f38 <== NOT EXECUTED 2024ee4: 01 00 00 00 nop <== NOT EXECUTED return rc; rc = fat_free_fat_clusters_chain(mt_entry, cur_cln); 2024ee8: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED 2024eec: 40 00 67 99 call 203ed50 <== NOT EXECUTED 2024ef0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if (rc != RC_OK) 2024ef4: 92 92 20 00 orcc %o0, 0, %o1 <== NOT EXECUTED 2024ef8: 12 80 00 10 bne 2024f38 <== NOT EXECUTED 2024efc: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED return rc; if (cl_start != 0) 2024f00: 02 80 00 0e be 2024f38 <== NOT EXECUTED 2024f04: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED { rc = fat_set_fat_cluster(mt_entry, new_last_cln, FAT_GENFAT_EOC); 2024f08: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED 2024f0c: 40 00 66 67 call 203e8a8 <== NOT EXECUTED 2024f10: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED if ( rc != RC_OK ) 2024f14: 92 92 20 00 orcc %o0, 0, %o1 <== NOT EXECUTED 2024f18: 12 80 00 08 bne 2024f38 <== NOT EXECUTED 2024f1c: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED return rc; fat_fd->map.file_cln = cl_start - 1; 2024f20: 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; 2024f24: 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; 2024f28: f4 26 60 34 st %i2, [ %i1 + 0x34 ] <== NOT EXECUTED fat_fd->map.disk_cln = new_last_cln; 2024f2c: 10 80 00 03 b 2024f38 <== NOT EXECUTED 2024f30: c2 26 60 38 st %g1, [ %i1 + 0x38 ] <== NOT EXECUTED fat_fd->map.last_cln = new_last_cln; 2024f34: 92 10 20 00 clr %o1 <== NOT EXECUTED } return RC_OK; } 2024f38: 81 c7 e0 08 ret <== NOT EXECUTED 2024f3c: 91 e8 00 09 restore %g0, %o1, %o0 <== NOT EXECUTED =============================================================================== 02025134 : fat_file_fd_t *fat_fd, uint32_t start, uint32_t count, const uint8_t *buf ) { 2025134: 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 ) 2025138: 90 10 20 00 clr %o0 <== NOT EXECUTED fat_file_fd_t *fat_fd, uint32_t start, uint32_t count, const uint8_t *buf ) { 202513c: 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 ) 2025140: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 2025144: 02 80 00 92 be 202538c <== NOT EXECUTED 2025148: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 <== NOT EXECUTED return cmpltd; if ( start > fat_fd->fat_file_size ) 202514c: 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; 2025150: 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 ) 2025154: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED 2025158: 18 80 00 09 bgu 202517c <== NOT EXECUTED 202515c: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EIO ); if ((count > fat_fd->size_limit) || 2025160: c2 06 60 14 ld [ %i1 + 0x14 ], %g1 <== NOT EXECUTED 2025164: 80 a6 c0 01 cmp %i3, %g1 <== NOT EXECUTED 2025168: 18 80 00 05 bgu 202517c <== NOT EXECUTED 202516c: 82 20 40 1b sub %g1, %i3, %g1 <== NOT EXECUTED 2025170: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED 2025174: 08 80 00 07 bleu 2025190 <== NOT EXECUTED 2025178: a4 06 c0 1a add %i3, %i2, %l2 <== NOT EXECUTED (start > fat_fd->size_limit - count)) rtems_set_errno_and_return_minus_one( EIO ); 202517c: 40 00 76 ab call 2042c28 <__errno> <== NOT EXECUTED 2025180: 01 00 00 00 nop <== NOT EXECUTED 2025184: 82 10 20 05 mov 5, %g1 ! 5 <== NOT EXECUTED 2025188: 10 80 00 80 b 2025388 <== NOT EXECUTED 202518c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED rc = fat_file_extend(mt_entry, fat_fd, start + count, &c); 2025190: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2025194: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2025198: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED 202519c: 7f ff ff 69 call 2024f40 <== NOT EXECUTED 20251a0: 96 07 bf f8 add %fp, -8, %o3 <== NOT EXECUTED if (rc != RC_OK) 20251a4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20251a8: 12 80 00 79 bne 202538c <== NOT EXECUTED 20251ac: 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)) 20251b0: 80 a0 40 12 cmp %g1, %l2 <== NOT EXECUTED 20251b4: 32 80 00 02 bne,a 20251bc <== NOT EXECUTED 20251b8: b6 20 40 1a sub %g1, %i2, %i3 <== NOT EXECUTED count = c - start; if ((FAT_FD_OF_ROOT_DIR(fat_fd)) && 20251bc: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED 20251c0: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 20251c4: 32 80 00 28 bne,a 2025264 <== NOT EXECUTED 20251c8: e6 0c 60 08 ldub [ %l1 + 8 ], %l3 <== NOT EXECUTED 20251cc: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 <== NOT EXECUTED 20251d0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20251d4: 32 80 00 24 bne,a 2025264 <== NOT EXECUTED 20251d8: e6 0c 60 08 ldub [ %l1 + 8 ], %l3 <== NOT EXECUTED (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16))) 20251dc: c2 0c 60 0a ldub [ %l1 + 0xa ], %g1 <== NOT EXECUTED 20251e0: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED 20251e4: 22 80 00 20 be,a 2025264 <== NOT EXECUTED 20251e8: e6 0c 60 08 ldub [ %l1 + 8 ], %l3 <== NOT EXECUTED { sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->cln); 20251ec: 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)) ) 20251f0: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED 20251f4: 12 80 00 08 bne 2025214 <== NOT EXECUTED 20251f8: c4 04 20 34 ld [ %l0 + 0x34 ], %g2 <== NOT EXECUTED 20251fc: c2 08 a0 0a ldub [ %g2 + 0xa ], %g1 <== NOT EXECUTED 2025200: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED 2025204: 22 80 00 05 be,a 2025218 <== NOT EXECUTED 2025208: c8 00 a0 30 ld [ %g2 + 0x30 ], %g4 <== NOT EXECUTED return fs_info->vol.rdir_loc; 202520c: 10 80 00 07 b 2025228 <== NOT EXECUTED 2025210: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) + 2025214: c8 00 a0 30 ld [ %g2 + 0x30 ], %g4 <== NOT EXECUTED 2025218: c4 08 a0 05 ldub [ %g2 + 5 ], %g2 <== NOT EXECUTED 202521c: 82 00 ff fe add %g3, -2, %g1 <== NOT EXECUTED 2025220: 83 28 40 02 sll %g1, %g2, %g1 <== NOT EXECUTED 2025224: 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); 2025228: d4 14 40 00 lduh [ %l1 ], %o2 <== NOT EXECUTED 202522c: c4 0c 60 02 ldub [ %l1 + 2 ], %g2 <== NOT EXECUTED 2025230: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED 2025234: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2025238: 94 0e 80 0a and %i2, %o2, %o2 <== NOT EXECUTED 202523c: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED 2025240: b5 36 80 02 srl %i2, %g2, %i2 <== NOT EXECUTED 2025244: 98 10 00 1c mov %i4, %o4 <== NOT EXECUTED 2025248: 40 00 02 d3 call 2025d94 <_fat_block_write> <== NOT EXECUTED 202524c: 92 00 40 1a add %g1, %i2, %o1 <== NOT EXECUTED if ( ret < 0 ) 2025250: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025254: 16 80 00 4e bge 202538c <== NOT EXECUTED 2025258: 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; 202525c: 10 80 00 4c b 202538c <== NOT EXECUTED 2025260: 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); 2025264: e4 14 60 06 lduh [ %l1 + 6 ], %l2 <== NOT EXECUTED return -1; return ret; } cl_start = start >> fs_info->vol.bpc_log2; 2025268: 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); 202526c: a8 07 bf fc add %fp, -4, %l4 <== NOT EXECUTED 2025270: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2025274: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2025278: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED 202527c: 7f ff fe 35 call 2024b50 <== NOT EXECUTED 2025280: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED if (rc != RC_OK) 2025284: 90 92 60 00 orcc %o1, 0, %o0 <== NOT EXECUTED 2025288: 12 80 00 41 bne 202538c <== NOT EXECUTED 202528c: 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); 2025290: a5 34 a0 10 srl %l2, 0x10, %l2 <== NOT EXECUTED 2025294: a4 04 bf ff add %l2, -1, %l2 <== NOT EXECUTED 2025298: aa 10 20 00 clr %l5 <== NOT EXECUTED 202529c: b4 0e 80 12 and %i2, %l2, %i2 <== NOT EXECUTED 20252a0: a4 10 20 00 clr %l2 <== NOT EXECUTED 20252a4: 10 80 00 2d b 2025358 <== NOT EXECUTED 20252a8: 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)); 20252ac: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 20252b0: 80 a0 40 1b cmp %g1, %i3 <== NOT EXECUTED 20252b4: 08 80 00 03 bleu 20252c0 <== NOT EXECUTED 20252b8: c6 07 bf fc ld [ %fp + -4 ], %g3 <== NOT EXECUTED 20252bc: 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)) ) 20252c0: 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) + 20252c4: 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)) ) 20252c8: 12 80 00 08 bne 20252e8 <== NOT EXECUTED 20252cc: c6 04 20 34 ld [ %l0 + 0x34 ], %g3 <== NOT EXECUTED 20252d0: c8 08 e0 0a ldub [ %g3 + 0xa ], %g4 <== NOT EXECUTED 20252d4: 80 89 20 03 btst 3, %g4 <== NOT EXECUTED 20252d8: 22 80 00 05 be,a 20252ec <== NOT EXECUTED 20252dc: c8 00 e0 30 ld [ %g3 + 0x30 ], %g4 <== NOT EXECUTED return fs_info->vol.rdir_loc; 20252e0: 10 80 00 06 b 20252f8 <== NOT EXECUTED 20252e4: c6 00 e0 1c ld [ %g3 + 0x1c ], %g3 <== NOT EXECUTED return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) + 20252e8: c8 00 e0 30 ld [ %g3 + 0x30 ], %g4 <== NOT EXECUTED 20252ec: da 08 e0 05 ldub [ %g3 + 5 ], %o5 <== NOT EXECUTED 20252f0: 87 2b 00 0d sll %o4, %o5, %g3 <== NOT EXECUTED 20252f4: 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); 20252f8: d2 0c 60 02 ldub [ %l1 + 2 ], %o1 <== NOT EXECUTED byte = ofs & (fs_info->vol.bps - 1); 20252fc: 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); 2025300: 93 30 80 09 srl %g2, %o1, %o1 <== NOT EXECUTED byte = ofs & (fs_info->vol.bps - 1); 2025304: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED ret = _fat_block_write(mt_entry, sec, byte, c, buf + cmpltd); 2025308: 92 00 c0 09 add %g3, %o1, %o1 <== NOT EXECUTED 202530c: 94 08 80 0a and %g2, %o2, %o2 <== NOT EXECUTED 2025310: 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)); 2025314: 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); 2025318: 98 07 00 12 add %i4, %l2, %o4 <== NOT EXECUTED 202531c: 40 00 02 9e call 2025d94 <_fat_block_write> <== NOT EXECUTED 2025320: 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); 2025324: 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 ) 2025328: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202532c: 06 80 00 17 bl 2025388 <== NOT EXECUTED 2025330: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return -1; count -= c; cmpltd += c; save_cln = cur_cln; 2025334: 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; 2025338: 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); 202533c: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED 2025340: 40 00 66 07 call 203eb5c <== NOT EXECUTED 2025344: a4 04 80 16 add %l2, %l6, %l2 <== NOT EXECUTED if ( rc != RC_OK ) 2025348: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202534c: 12 80 00 10 bne 202538c <== NOT EXECUTED 2025350: 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; 2025354: 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) 2025358: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 202535c: 32 bf ff d4 bne,a 20252ac <== NOT EXECUTED 2025360: 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 + 2025364: c2 0c 60 08 ldub [ %l1 + 8 ], %g1 <== NOT EXECUTED 2025368: 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; 202536c: 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; 2025370: 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 + 2025374: a4 06 80 12 add %i2, %l2, %l2 <== NOT EXECUTED 2025378: a5 34 80 01 srl %l2, %g1, %l2 <== NOT EXECUTED 202537c: 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; 2025380: 10 80 00 03 b 202538c <== NOT EXECUTED 2025384: e6 26 60 34 st %l3, [ %i1 + 0x34 ] <== NOT EXECUTED 2025388: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED } 202538c: 81 c7 e0 08 ret <== NOT EXECUTED 2025390: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED =============================================================================== 0203ed50 : int fat_free_fat_clusters_chain( rtems_filesystem_mount_table_entry_t *mt_entry, uint32_t chain ) { 203ed50: 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; 203ed54: 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 ) { 203ed58: 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; 203ed5c: 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; 203ed60: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 <== NOT EXECUTED uint32_t cur_cln = chain; uint32_t next_cln = 0; 203ed64: a6 10 00 19 mov %i1, %l3 <== NOT EXECUTED 203ed68: 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) 203ed6c: 10 80 00 1a b 203edd4 <== NOT EXECUTED 203ed70: aa 07 bf fc add %fp, -4, %l5 <== NOT EXECUTED { rc = fat_get_fat_cluster(mt_entry, cur_cln, &next_cln); 203ed74: 7f ff ff 7a call 203eb5c <== NOT EXECUTED 203ed78: 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); 203ed7c: 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); 203ed80: 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); 203ed84: 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 ) 203ed88: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 203ed8c: 02 80 00 0b be 203edb8 <== NOT EXECUTED 203ed90: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED { if(fs_info->vol.free_cls != FAT_UNDEFINED_VALUE) 203ed94: c2 04 60 40 ld [ %l1 + 0x40 ], %g1 <== NOT EXECUTED 203ed98: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED 203ed9c: 02 80 00 03 be 203eda8 <== NOT EXECUTED 203eda0: a4 04 80 01 add %l2, %g1, %l2 <== NOT EXECUTED fs_info->vol.free_cls += freed_cls_cnt; 203eda4: e4 24 60 40 st %l2, [ %l1 + 0x40 ] <== NOT EXECUTED fat_buf_release(fs_info); 203eda8: 7f ff 9b 1b call 2025a14 <== NOT EXECUTED 203edac: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED return rc; 203edb0: 81 c7 e0 08 ret <== NOT EXECUTED 203edb4: 81 e8 00 00 restore <== NOT EXECUTED } rc = fat_set_fat_cluster(mt_entry, cur_cln, FAT_GENFAT_FREE); 203edb8: 7f ff fe bc call 203e8a8 <== NOT EXECUTED 203edbc: 01 00 00 00 nop <== NOT EXECUTED if ( rc != RC_OK ) 203edc0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 203edc4: 02 80 00 03 be 203edd0 <== NOT EXECUTED 203edc8: e6 07 bf fc ld [ %fp + -4 ], %l3 <== NOT EXECUTED 203edcc: a8 10 00 08 mov %o0, %l4 <== NOT EXECUTED rc1 = rc; freed_cls_cnt++; 203edd0: 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) 203edd4: c4 04 60 0c ld [ %l1 + 0xc ], %g2 <== NOT EXECUTED 203edd8: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED 203eddc: 84 0c c0 02 and %l3, %g2, %g2 <== NOT EXECUTED { rc = fat_get_fat_cluster(mt_entry, cur_cln, &next_cln); 203ede0: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED 203ede4: 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) 203ede8: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 203edec: 0a bf ff e2 bcs 203ed74 <== NOT EXECUTED 203edf0: 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) 203edf4: c2 04 60 40 ld [ %l1 + 0x40 ], %g1 <== NOT EXECUTED 203edf8: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED 203edfc: 02 80 00 04 be 203ee0c <== NOT EXECUTED 203ee00: f2 24 60 44 st %i1, [ %l1 + 0x44 ] <== NOT EXECUTED fs_info->vol.free_cls += freed_cls_cnt; 203ee04: a4 04 80 01 add %l2, %g1, %l2 <== NOT EXECUTED 203ee08: e4 24 60 40 st %l2, [ %l1 + 0x40 ] <== NOT EXECUTED fat_buf_release(fs_info); 203ee0c: b0 10 00 14 mov %l4, %i0 <== NOT EXECUTED 203ee10: 7f ff 9b 01 call 2025a14 <== NOT EXECUTED 203ee14: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED if (rc1 != RC_OK) return rc1; return RC_OK; } 203ee18: 81 c7 e0 08 ret <== NOT EXECUTED 203ee1c: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 020258e8 : void fat_free_unique_ino( rtems_filesystem_mount_table_entry_t *mt_entry, uint32_t ino ) { 20258e8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED fat_fs_info_t *fs_info = mt_entry->fs_info; 20258ec: c4 06 20 34 ld [ %i0 + 0x34 ], %g2 <== NOT EXECUTED FAT_SET_UNIQ_INO_FREE((ino - fs_info->uino_base), fs_info->uino); 20258f0: 9a 10 20 01 mov 1, %o5 <== NOT EXECUTED 20258f4: c2 00 a0 70 ld [ %g2 + 0x70 ], %g1 <== NOT EXECUTED 20258f8: c4 00 a0 7c ld [ %g2 + 0x7c ], %g2 <== NOT EXECUTED 20258fc: 84 26 40 02 sub %i1, %g2, %g2 <== NOT EXECUTED 2025900: 87 30 a0 03 srl %g2, 3, %g3 <== NOT EXECUTED 2025904: c8 08 40 03 ldub [ %g1 + %g3 ], %g4 <== NOT EXECUTED 2025908: 84 08 a0 07 and %g2, 7, %g2 <== NOT EXECUTED 202590c: 85 2b 40 02 sll %o5, %g2, %g2 <== NOT EXECUTED 2025910: 84 29 00 02 andn %g4, %g2, %g2 <== NOT EXECUTED 2025914: c4 28 40 03 stb %g2, [ %g1 + %g3 ] <== NOT EXECUTED } 2025918: 81 c7 e0 08 ret <== NOT EXECUTED 202591c: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0203eb5c : fat_get_fat_cluster( rtems_filesystem_mount_table_entry_t *mt_entry, uint32_t cln, uint32_t *ret_val ) { 203eb5c: 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; 203eb60: 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)) ) 203eb64: 80 a6 60 01 cmp %i1, 1 <== NOT EXECUTED 203eb68: 08 80 00 07 bleu 203eb84 <== NOT EXECUTED 203eb6c: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED 203eb70: c2 04 20 34 ld [ %l0 + 0x34 ], %g1 <== NOT EXECUTED 203eb74: 82 00 60 01 inc %g1 <== NOT EXECUTED 203eb78: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 203eb7c: 28 80 00 08 bleu,a 203eb9c <== NOT EXECUTED 203eb80: c2 0c 20 0a ldub [ %l0 + 0xa ], %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EIO); 203eb84: 40 00 10 29 call 2042c28 <__errno> <== NOT EXECUTED 203eb88: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 203eb8c: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED 203eb90: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 203eb94: 81 c7 e0 08 ret <== NOT EXECUTED 203eb98: 81 e8 00 00 restore <== NOT EXECUTED sec = (FAT_FAT_OFFSET(fs_info->vol.type, cln) >> fs_info->vol.sec_log2) + 203eb9c: 88 88 60 01 andcc %g1, 1, %g4 <== NOT EXECUTED 203eba0: 02 80 00 05 be 203ebb4 <== NOT EXECUTED 203eba4: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED 203eba8: 85 36 60 01 srl %i1, 1, %g2 <== NOT EXECUTED 203ebac: 10 80 00 05 b 203ebc0 <== NOT EXECUTED 203ebb0: 84 00 80 19 add %g2, %i1, %g2 <== NOT EXECUTED 203ebb4: 02 80 00 03 be 203ebc0 <== NOT EXECUTED 203ebb8: 85 2e 60 02 sll %i1, 2, %g2 <== NOT EXECUTED 203ebbc: 85 2e 60 01 sll %i1, 1, %g2 <== NOT EXECUTED 203ebc0: e6 0c 20 02 ldub [ %l0 + 2 ], %l3 <== NOT EXECUTED 203ebc4: c6 04 20 4c ld [ %l0 + 0x4c ], %g3 <== NOT EXECUTED 203ebc8: 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); 203ebcc: a3 36 60 01 srl %i1, 1, %l1 <== NOT EXECUTED 203ebd0: 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) + 203ebd4: 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); 203ebd8: 12 80 00 06 bne 203ebf0 <== NOT EXECUTED 203ebdc: a2 04 40 19 add %l1, %i1, %l1 <== NOT EXECUTED 203ebe0: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED 203ebe4: 02 80 00 03 be 203ebf0 <== NOT EXECUTED 203ebe8: a3 2e 60 02 sll %i1, 2, %l1 <== NOT EXECUTED 203ebec: a3 2e 60 01 sll %i1, 1, %l1 <== NOT EXECUTED 203ebf0: e8 14 00 00 lduh [ %l0 ], %l4 <== NOT EXECUTED rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &block0); 203ebf4: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED 203ebf8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 203ebfc: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED 203ec00: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED 203ec04: 7f ff 9b e5 call 2025b98 <== NOT EXECUTED 203ec08: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED if (rc != RC_OK) 203ec0c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 203ec10: 12 bf ff e1 bne 203eb94 <== NOT EXECUTED 203ec14: a9 2d 20 10 sll %l4, 0x10, %l4 <== NOT EXECUTED return rc; switch ( fs_info->vol.type ) 203ec18: c2 0c 20 0a ldub [ %l0 + 0xa ], %g1 <== NOT EXECUTED 203ec1c: 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); 203ec20: a9 35 20 10 srl %l4, 0x10, %l4 <== NOT EXECUTED 203ec24: 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 ) 203ec28: 02 80 00 29 be 203eccc <== NOT EXECUTED 203ec2c: a2 0c 40 14 and %l1, %l4, %l1 <== NOT EXECUTED 203ec30: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED 203ec34: 02 80 00 30 be 203ecf4 <== NOT EXECUTED 203ec38: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 203ec3c: 12 80 00 3f bne 203ed38 <== NOT EXECUTED 203ec40: 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) ) 203ec44: 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))); 203ec48: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 <== NOT EXECUTED if ( ofs == (fs_info->vol.bps - 1) ) 203ec4c: 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))); 203ec50: c2 08 80 11 ldub [ %g2 + %l1 ], %g1 <== NOT EXECUTED if ( ofs == (fs_info->vol.bps - 1) ) 203ec54: 80 a4 40 03 cmp %l1, %g3 <== NOT EXECUTED 203ec58: 12 80 00 11 bne 203ec9c <== NOT EXECUTED 203ec5c: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED { rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ, 203ec60: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 203ec64: 92 04 e0 01 add %l3, 1, %o1 <== NOT EXECUTED 203ec68: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED 203ec6c: 7f ff 9b cb call 2025b98 <== NOT EXECUTED 203ec70: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED &block0); if (rc != RC_OK) 203ec74: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 203ec78: 02 80 00 04 be 203ec88 <== NOT EXECUTED 203ec7c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 203ec80: 81 c7 e0 08 ret <== NOT EXECUTED 203ec84: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return rc; *ret_val |= (*((uint8_t *)(block0->buffer)))<<8; 203ec88: c4 06 80 00 ld [ %i2 ], %g2 <== NOT EXECUTED 203ec8c: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED 203ec90: c2 08 40 00 ldub [ %g1 ], %g1 <== NOT EXECUTED 203ec94: 10 80 00 05 b 203eca8 <== NOT EXECUTED 203ec98: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED } else { *ret_val |= (*((uint8_t *)(block0->buffer + ofs + 1)))<<8; 203ec9c: a2 00 80 11 add %g2, %l1, %l1 <== NOT EXECUTED 203eca0: c4 0c 60 01 ldub [ %l1 + 1 ], %g2 <== NOT EXECUTED 203eca4: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED 203eca8: 82 10 80 01 or %g2, %g1, %g1 <== NOT EXECUTED 203ecac: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED } if ( FAT_CLUSTER_IS_ODD(cln) ) 203ecb0: 80 8e 60 01 btst 1, %i1 <== NOT EXECUTED 203ecb4: 02 80 00 04 be 203ecc4 <== NOT EXECUTED 203ecb8: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED *ret_val = (*ret_val) >> FAT12_SHIFT; 203ecbc: 10 80 00 1c b 203ed2c <== NOT EXECUTED 203ecc0: 83 30 60 04 srl %g1, 4, %g1 <== NOT EXECUTED else *ret_val = (*ret_val) & FAT_FAT12_MASK; 203ecc4: 10 80 00 1a b 203ed2c <== NOT EXECUTED 203ecc8: 82 08 6f ff and %g1, 0xfff, %g1 <== NOT EXECUTED break; case FAT_FAT16: *ret_val = *((uint16_t *)(block0->buffer + ofs)); 203eccc: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED *ret_val = CF_LE_W(*ret_val); 203ecd0: 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)); 203ecd4: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED *ret_val = CF_LE_W(*ret_val); 203ecd8: 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)); 203ecdc: c2 10 40 11 lduh [ %g1 + %l1 ], %g1 <== NOT EXECUTED *ret_val = CF_LE_W(*ret_val); 203ece0: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED 203ece4: 85 30 60 18 srl %g1, 0x18, %g2 <== NOT EXECUTED 203ece8: 83 30 60 08 srl %g1, 8, %g1 <== NOT EXECUTED 203ecec: 10 80 00 0f b 203ed28 <== NOT EXECUTED 203ecf0: 82 08 40 03 and %g1, %g3, %g1 <== NOT EXECUTED break; case FAT_FAT32: *ret_val = *((uint32_t *)(block0->buffer + ofs)); 203ecf4: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 203ecf8: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED 203ecfc: c2 00 40 11 ld [ %g1 + %l1 ], %g1 <== NOT EXECUTED *ret_val = CF_LE_L(*ret_val); 203ed00: 87 30 60 18 srl %g1, 0x18, %g3 <== NOT EXECUTED 203ed04: 85 30 60 10 srl %g1, 0x10, %g2 <== NOT EXECUTED 203ed08: 89 28 60 18 sll %g1, 0x18, %g4 <== NOT EXECUTED 203ed0c: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED 203ed10: 88 11 00 03 or %g4, %g3, %g4 <== NOT EXECUTED 203ed14: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED 203ed18: 87 30 60 08 srl %g1, 8, %g3 <== NOT EXECUTED 203ed1c: 86 08 e0 ff and %g3, 0xff, %g3 <== NOT EXECUTED 203ed20: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED 203ed24: 82 11 00 03 or %g4, %g3, %g1 <== NOT EXECUTED 203ed28: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED 203ed2c: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED break; 203ed30: 81 c7 e0 08 ret <== NOT EXECUTED 203ed34: 81 e8 00 00 restore <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one(EIO); 203ed38: 40 00 0f bc call 2042c28 <__errno> <== NOT EXECUTED 203ed3c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 203ed40: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED 203ed44: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED break; } return RC_OK; } 203ed48: 81 c7 e0 08 ret <== NOT EXECUTED 203ed4c: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02025934 : * 0 means FAILED !!! * */ uint32_t fat_get_unique_ino(rtems_filesystem_mount_table_entry_t *mt_entry) { 2025934: 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)) 2025938: 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; 202593c: 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)) 2025940: 10 80 00 30 b 2025a00 <== NOT EXECUTED 2025944: 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)) 2025948: c6 04 20 70 ld [ %l0 + 0x70 ], %g3 <== NOT EXECUTED 202594c: 85 31 20 03 srl %g4, 3, %g2 <== NOT EXECUTED 2025950: 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++; 2025954: 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)) 2025958: d8 08 c0 02 ldub [ %g3 + %g2 ], %o4 <== NOT EXECUTED 202595c: 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++) 2025960: 82 00 60 01 inc %g1 <== NOT EXECUTED { if (!FAT_UNIQ_INO_IS_BUSY(fs_info->index, fs_info->uino)) 2025964: 97 3a c0 04 sra %o3, %g4, %o3 <== NOT EXECUTED 2025968: 80 8a e0 01 btst 1, %o3 <== NOT EXECUTED 202596c: 12 80 00 0a bne 2025994 <== NOT EXECUTED 2025970: 84 00 c0 02 add %g3, %g2, %g2 <== NOT EXECUTED { FAT_SET_UNIQ_INO_BUSY(fs_info->index, fs_info->uino); 2025974: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 2025978: 89 28 40 04 sll %g1, %g4, %g4 <== NOT EXECUTED 202597c: 88 11 00 0c or %g4, %o4, %g4 <== NOT EXECUTED 2025980: c8 28 80 00 stb %g4, [ %g2 ] <== NOT EXECUTED return (fs_info->uino_base + fs_info->index); 2025984: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED 2025988: f0 04 20 74 ld [ %l0 + 0x74 ], %i0 <== NOT EXECUTED 202598c: 81 c7 e0 08 ret <== NOT EXECUTED 2025990: 91 ee 00 01 restore %i0, %g1, %o0 <== NOT EXECUTED } fs_info->index++; if (fs_info->index >= fs_info->uino_pool_size) 2025994: c4 04 20 78 ld [ %l0 + 0x78 ], %g2 <== NOT EXECUTED 2025998: 80 a3 40 02 cmp %o5, %g2 <== NOT EXECUTED 202599c: 0a 80 00 03 bcs 20259a8 <== NOT EXECUTED 20259a0: da 24 20 74 st %o5, [ %l0 + 0x74 ] <== NOT EXECUTED fs_info->index = 0; 20259a4: 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++) 20259a8: 80 a0 40 09 cmp %g1, %o1 <== NOT EXECUTED 20259ac: 2a bf ff e7 bcs,a 2025948 <== NOT EXECUTED 20259b0: 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)) 20259b4: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED 20259b8: 93 2a 60 01 sll %o1, 1, %o1 <== NOT EXECUTED 20259bc: 82 24 40 01 sub %l1, %g1, %g1 <== NOT EXECUTED 20259c0: 80 a2 40 01 cmp %o1, %g1 <== NOT EXECUTED 20259c4: 1a 80 00 12 bcc 2025a0c <== NOT EXECUTED 20259c8: 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); 20259cc: d0 04 20 70 ld [ %l0 + 0x70 ], %o0 <== NOT EXECUTED 20259d0: 7f ff 8f 86 call 20097e8 <== NOT EXECUTED 20259d4: d2 24 20 78 st %o1, [ %l0 + 0x78 ] <== NOT EXECUTED 20259d8: d0 24 20 70 st %o0, [ %l0 + 0x70 ] <== NOT EXECUTED if (fs_info->uino != NULL) 20259dc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20259e0: 02 80 00 05 be 20259f4 <== NOT EXECUTED 20259e4: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED fs_info->index = fs_info->uino_pool_size; 20259e8: c4 04 20 78 ld [ %l0 + 0x78 ], %g2 <== NOT EXECUTED 20259ec: 82 10 20 00 clr %g1 <== NOT EXECUTED 20259f0: 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) 20259f4: 80 88 60 ff btst 0xff, %g1 <== NOT EXECUTED 20259f8: 12 80 00 05 bne 2025a0c <== NOT EXECUTED 20259fc: 01 00 00 00 nop <== NOT EXECUTED { for (j = 0; j < fs_info->uino_pool_size; j++) 2025a00: d2 04 20 78 ld [ %l0 + 0x78 ], %o1 <== NOT EXECUTED 2025a04: 10 bf ff e9 b 20259a8 <== NOT EXECUTED 2025a08: 82 10 20 00 clr %g1 <== NOT EXECUTED } else resrc_unsuff = true; } return 0; } 2025a0c: 81 c7 e0 08 ret <== NOT EXECUTED 2025a10: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED =============================================================================== 02026070 : int fat_init_clusters_chain( rtems_filesystem_mount_table_entry_t *mt_entry, uint32_t start_cln ) { 2026070: 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; 2026074: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED uint32_t cur_cln = start_cln; 2026078: f2 27 bf fc st %i1, [ %fp + -4 ] <== NOT EXECUTED char *buf; buf = calloc(fs_info->vol.bpc, sizeof(char)); 202607c: d0 14 20 06 lduh [ %l0 + 6 ], %o0 <== NOT EXECUTED 2026080: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 2026084: 7f ff 86 e8 call 2007c24 <== NOT EXECUTED 2026088: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED if ( buf == NULL ) 202608c: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED 2026090: 12 80 00 1c bne 2026100 <== NOT EXECUTED 2026094: a6 07 bf fc add %fp, -4, %l3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EIO ); 2026098: 40 00 72 e4 call 2042c28 <__errno> <== NOT EXECUTED 202609c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20260a0: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED 20260a4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20260a8: 81 c7 e0 08 ret <== NOT EXECUTED 20260ac: 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); 20260b0: 7f ff ff d9 call 2026014 <== NOT EXECUTED 20260b4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED { free(buf); return -1; } rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln); 20260b8: 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 ) 20260bc: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 20260c0: 12 80 00 07 bne 20260dc <== NOT EXECUTED 20260c4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED { free(buf); 20260c8: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 20260cc: 7f ff 88 65 call 2008260 <== NOT EXECUTED 20260d0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return -1; 20260d4: 81 c7 e0 08 ret <== NOT EXECUTED 20260d8: 81 e8 00 00 restore <== NOT EXECUTED } rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln); 20260dc: 40 00 62 a0 call 203eb5c <== NOT EXECUTED 20260e0: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED if ( rc != RC_OK ) 20260e4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 20260e8: 02 80 00 07 be 2026104 <== NOT EXECUTED 20260ec: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED { free(buf); 20260f0: 7f ff 88 5c call 2008260 <== NOT EXECUTED 20260f4: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED return rc; 20260f8: 81 c7 e0 08 ret <== NOT EXECUTED 20260fc: 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) 2026100: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED 2026104: c4 04 20 0c ld [ %l0 + 0xc ], %g2 <== NOT EXECUTED 2026108: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 202610c: 84 0a 40 02 and %o1, %g2, %g2 <== NOT EXECUTED 2026110: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2026114: 0a bf ff e7 bcs 20260b0 <== NOT EXECUTED 2026118: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED free(buf); return rc; } } free(buf); 202611c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 2026120: 7f ff 88 50 call 2008260 <== NOT EXECUTED 2026124: b0 10 20 00 clr %i0 <== NOT EXECUTED return rc; } 2026128: 81 c7 e0 08 ret <== NOT EXECUTED 202612c: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 020261b4 : * 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) { 20261b4: 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); 20261b8: 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; 20261bc: 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) { 20261c0: 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; 20261c4: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED rc = stat(mt_entry->dev, &stat_buf); 20261c8: 7f ff 8e 67 call 2009b64 <== NOT EXECUTED 20261cc: 92 07 bf a8 add %fp, -88, %o1 <== NOT EXECUTED if (rc == -1) 20261d0: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 20261d4: 02 80 01 4c be 2026704 <== NOT EXECUTED 20261d8: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED return rc; /* Must be a block device. */ if (!S_ISBLK(stat_buf.st_mode)) 20261dc: c4 07 bf b4 ld [ %fp + -76 ], %g2 <== NOT EXECUTED 20261e0: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED 20261e4: 84 08 80 01 and %g2, %g1, %g2 <== NOT EXECUTED 20261e8: 03 00 00 18 sethi %hi(0x6000), %g1 <== NOT EXECUTED 20261ec: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 20261f0: 22 80 00 06 be,a 2026208 <== NOT EXECUTED 20261f4: d0 1f bf c0 ldd [ %fp + -64 ], %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOTTY); 20261f8: 40 00 72 8c call 2042c28 <__errno> <== NOT EXECUTED 20261fc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2026200: 10 80 01 92 b 2026848 <== NOT EXECUTED 2026204: 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); 2026208: 7f ff 83 4d call 2006f3c <== NOT EXECUTED 202620c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED if (vol->dd == NULL) 2026210: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2026214: 02 80 00 16 be 202626c <== NOT EXECUTED 2026218: d0 24 20 60 st %o0, [ %l0 + 0x60 ] <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EIO); vol->dev = stat_buf.st_rdev; 202621c: 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); 2026220: 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; 2026224: 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); 2026228: 7f ff 7e a1 call 2005cac <== NOT EXECUTED 202622c: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 2026230: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2026234: 12 80 00 0b bne 2026260 <== NOT EXECUTED 2026238: 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); 202623c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 2026240: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED 2026244: 40 00 7f c5 call 2046158 <== NOT EXECUTED 2026248: 90 07 bf 48 add %fp, -184, %o0 <== NOT EXECUTED sc = rtems_bdbuf_release( block); 202624c: 7f ff 7a 00 call 2004a4c <== NOT EXECUTED 2026250: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 2026254: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2026258: 02 80 00 09 be 202627c <== NOT EXECUTED 202625c: c4 0f bf 54 ldub [ %fp + -172 ], %g2 <== NOT EXECUTED { rtems_disk_release(vol->dd); 2026260: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED 2026264: 7f ff 83 24 call 2006ef4 <== NOT EXECUTED 2026268: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EIO ); 202626c: 40 00 72 6f call 2042c28 <__errno> <== NOT EXECUTED 2026270: 01 00 00 00 nop <== NOT EXECUTED 2026274: 10 80 01 75 b 2026848 <== NOT EXECUTED 2026278: 82 10 20 05 mov 5, %g1 ! 5 <== NOT EXECUTED } /* Evaluate boot record */ vol->bps = FAT_GET_BR_BYTES_PER_SECTOR(boot_rec); 202627c: c6 0f bf 53 ldub [ %fp + -173 ], %g3 <== NOT EXECUTED 2026280: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED 2026284: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED if ( (vol->bps != 512) && 2026288: 83 28 a0 10 sll %g2, 0x10, %g1 <== NOT EXECUTED 202628c: 83 30 60 10 srl %g1, 0x10, %g1 <== NOT EXECUTED 2026290: 80 a0 64 00 cmp %g1, 0x400 <== NOT EXECUTED 2026294: 02 80 00 0b be 20262c0 <== NOT EXECUTED 2026298: c4 34 00 00 sth %g2, [ %l0 ] <== NOT EXECUTED 202629c: 80 a0 62 00 cmp %g1, 0x200 <== NOT EXECUTED 20262a0: 22 80 00 09 be,a 20262c4 <== NOT EXECUTED 20262a4: 83 28 a0 10 sll %g2, 0x10, %g1 <== NOT EXECUTED 20262a8: 80 a0 68 00 cmp %g1, 0x800 <== NOT EXECUTED 20262ac: 02 80 00 05 be 20262c0 <== NOT EXECUTED 20262b0: 07 00 00 04 sethi %hi(0x1000), %g3 <== NOT EXECUTED 20262b4: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 20262b8: 32 80 00 c1 bne,a 20265bc <== NOT EXECUTED 20262bc: 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; 20262c0: 83 28 a0 10 sll %g2, 0x10, %g1 <== NOT EXECUTED 20262c4: c0 2c 20 03 clrb [ %l0 + 3 ] <== NOT EXECUTED 20262c8: 10 80 00 05 b 20262dc <== NOT EXECUTED 20262cc: 83 30 60 19 srl %g1, 0x19, %g1 <== NOT EXECUTED i >>= 1, vol->sec_mul++); 20262d0: 83 38 60 01 sra %g1, 1, %g1 <== NOT EXECUTED 20262d4: 84 00 a0 01 inc %g2 <== NOT EXECUTED 20262d8: 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; 20262dc: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 20262e0: 22 bf ff fc be,a 20262d0 <== NOT EXECUTED 20262e4: 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; 20262e8: c0 2c 20 02 clrb [ %l0 + 2 ] <== NOT EXECUTED 20262ec: 10 80 00 05 b 2026300 <== NOT EXECUTED 20262f0: c2 14 00 00 lduh [ %l0 ], %g1 <== NOT EXECUTED i >>= 1, vol->sec_log2++); 20262f4: 83 38 60 01 sra %g1, 1, %g1 <== NOT EXECUTED 20262f8: 84 00 a0 01 inc %g2 <== NOT EXECUTED 20262fc: 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; 2026300: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 2026304: 22 bf ff fc be,a 20262f4 <== NOT EXECUTED 2026308: c4 0c 20 02 ldub [ %l0 + 2 ], %g2 <== NOT EXECUTED if ( (ret1 < 0) || (ret2 < 0) ) return -1; return RC_OK; } 202630c: 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); 2026310: 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) 2026314: 84 88 a0 ff andcc %g2, 0xff, %g2 <== NOT EXECUTED 2026318: 22 80 00 a9 be,a 20265bc <== NOT EXECUTED 202631c: 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; 2026320: 10 80 00 04 b 2026330 <== NOT EXECUTED 2026324: c0 2c 20 05 clrb [ %l0 + 5 ] <== NOT EXECUTED i >>= 1, vol->spc_log2++); 2026328: 82 00 60 01 inc %g1 <== NOT EXECUTED 202632c: 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; 2026330: 80 88 a0 01 btst 1, %g2 <== NOT EXECUTED 2026334: c2 0c 20 05 ldub [ %l0 + 5 ], %g1 <== NOT EXECUTED 2026338: 02 bf ff fc be 2026328 <== NOT EXECUTED 202633c: 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) 2026340: c4 14 00 00 lduh [ %l0 ], %g2 <== NOT EXECUTED 2026344: 83 28 80 01 sll %g2, %g1, %g1 <== NOT EXECUTED 2026348: c2 34 20 06 sth %g1, [ %l0 + 6 ] <== NOT EXECUTED 202634c: 05 00 00 20 sethi %hi(0x8000), %g2 <== NOT EXECUTED 2026350: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED 2026354: 83 30 60 10 srl %g1, 0x10, %g1 <== NOT EXECUTED 2026358: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 202635c: 38 80 00 98 bgu,a 20265bc <== NOT EXECUTED 2026360: 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; 2026364: 10 80 00 05 b 2026378 <== NOT EXECUTED 2026368: c0 2c 20 08 clrb [ %l0 + 8 ] <== NOT EXECUTED i >>= 1, vol->bpc_log2++); 202636c: 83 38 60 01 sra %g1, 1, %g1 <== NOT EXECUTED 2026370: 84 00 a0 01 inc %g2 <== NOT EXECUTED 2026374: 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; 2026378: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 202637c: 22 bf ff fc be,a 202636c <== NOT EXECUTED 2026380: c4 0c 20 08 ldub [ %l0 + 8 ], %g2 <== NOT EXECUTED i >>= 1, vol->bpc_log2++); vol->fats = FAT_GET_BR_FAT_NUM(boot_rec); 2026384: 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)) / 2026388: 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); 202638c: c4 2c 20 09 stb %g2, [ %l0 + 9 ] <== NOT EXECUTED vol->fat_loc = FAT_GET_BR_RESERVED_SECTORS_NUM(boot_rec); 2026390: c6 0f bf 56 ldub [ %fp + -170 ], %g3 <== NOT EXECUTED 2026394: 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)) / 2026398: 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); 202639c: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED 20263a0: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED 20263a4: c4 34 20 14 sth %g2, [ %l0 + 0x14 ] <== NOT EXECUTED vol->rdir_entrs = FAT_GET_BR_FILES_PER_ROOT_DIR(boot_rec); 20263a8: c6 0f bf 59 ldub [ %fp + -167 ], %g3 <== NOT EXECUTED 20263ac: 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)) / 20263b0: 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); 20263b4: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED 20263b8: 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)) / 20263bc: 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); 20263c0: 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)) / 20263c4: 85 30 e0 0b srl %g3, 0xb, %g2 <== NOT EXECUTED 20263c8: 40 00 d3 47 call 205b0e4 <.div> <== NOT EXECUTED 20263cc: 90 00 40 02 add %g1, %g2, %o0 <== NOT EXECUTED vol->bps; vol->rdir_size = vol->rdir_secs << vol->sec_log2; 20263d0: 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)) / 20263d4: d0 24 20 24 st %o0, [ %l0 + 0x24 ] <== NOT EXECUTED vol->bps; vol->rdir_size = vol->rdir_secs << vol->sec_log2; 20263d8: 91 2a 00 01 sll %o0, %g1, %o0 <== NOT EXECUTED 20263dc: d0 24 20 28 st %o0, [ %l0 + 0x28 ] <== NOT EXECUTED if ( (FAT_GET_BR_SECTORS_PER_FAT(boot_rec)) != 0) 20263e0: c2 0f bf 5f ldub [ %fp + -161 ], %g1 <== NOT EXECUTED 20263e4: c4 0f bf 5e ldub [ %fp + -162 ], %g2 <== NOT EXECUTED 20263e8: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED 20263ec: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED 20263f0: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED 20263f4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20263f8: 02 80 00 04 be 2026408 <== NOT EXECUTED 20263fc: c8 0f bf 6d ldub [ %fp + -147 ], %g4 <== NOT EXECUTED vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT(boot_rec); 2026400: 10 80 00 0b b 202642c <== NOT EXECUTED 2026404: 83 30 60 10 srl %g1, 0x10, %g1 <== NOT EXECUTED else vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT32(boot_rec); 2026408: c2 0f bf 6e ldub [ %fp + -146 ], %g1 <== NOT EXECUTED 202640c: c6 0f bf 6c ldub [ %fp + -148 ], %g3 <== NOT EXECUTED 2026410: c4 0f bf 6f ldub [ %fp + -145 ], %g2 <== NOT EXECUTED 2026414: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED 2026418: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED 202641c: 85 28 a0 18 sll %g2, 0x18, %g2 <== NOT EXECUTED 2026420: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED 2026424: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED 2026428: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED 202642c: c2 24 20 18 st %g1, [ %l0 + 0x18 ] <== NOT EXECUTED vol->data_fsec = vol->fat_loc + vol->fats * vol->fat_length + 2026430: d0 0c 20 09 ldub [ %l0 + 9 ], %o0 <== NOT EXECUTED 2026434: d2 04 20 18 ld [ %l0 + 0x18 ], %o1 <== NOT EXECUTED 2026438: e4 14 20 14 lduh [ %l0 + 0x14 ], %l2 <== NOT EXECUTED 202643c: 7f ff 71 6f call 20029f8 <.umul> <== NOT EXECUTED 2026440: e6 04 20 24 ld [ %l0 + 0x24 ], %l3 <== NOT EXECUTED 2026444: 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; 2026448: 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 + 202644c: 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; 2026450: 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 + 2026454: 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) 2026458: c2 0f bf 5c ldub [ %fp + -164 ], %g1 <== NOT EXECUTED 202645c: c4 0f bf 5b ldub [ %fp + -165 ], %g2 <== NOT EXECUTED 2026460: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED 2026464: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED 2026468: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED 202646c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026470: 02 80 00 04 be 2026480 <== NOT EXECUTED 2026474: c8 0f bf 69 ldub [ %fp + -151 ], %g4 <== NOT EXECUTED vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM16(boot_rec); 2026478: 10 80 00 0b b 20264a4 <== NOT EXECUTED 202647c: 83 30 60 10 srl %g1, 0x10, %g1 <== NOT EXECUTED else vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM32(boot_rec); 2026480: c2 0f bf 6a ldub [ %fp + -150 ], %g1 <== NOT EXECUTED 2026484: c6 0f bf 68 ldub [ %fp + -152 ], %g3 <== NOT EXECUTED 2026488: c4 0f bf 6b ldub [ %fp + -149 ], %g2 <== NOT EXECUTED 202648c: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED 2026490: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED 2026494: 85 28 a0 18 sll %g2, 0x18, %g2 <== NOT EXECUTED 2026498: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED 202649c: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED 20264a0: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED 20264a4: 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; 20264a8: d2 0c 20 04 ldub [ %l0 + 4 ], %o1 <== NOT EXECUTED 20264ac: c2 04 20 30 ld [ %l0 + 0x30 ], %g1 <== NOT EXECUTED 20264b0: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED 20264b4: 40 00 d3 0a call 205b0dc <.udiv> <== NOT EXECUTED 20264b8: 90 22 00 01 sub %o0, %g1, %o0 <== NOT EXECUTED /* determine FAT type at least */ if ( vol->data_cls < FAT_FAT12_MAX_CLN) 20264bc: 80 a2 2f f4 cmp %o0, 0xff4 <== NOT EXECUTED 20264c0: 18 80 00 09 bgu 20264e4 <== NOT EXECUTED 20264c4: d0 24 20 34 st %o0, [ %l0 + 0x34 ] <== NOT EXECUTED { vol->type = FAT_FAT12; 20264c8: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 20264cc: c2 2c 20 0a stb %g1, [ %l0 + 0xa ] <== NOT EXECUTED vol->mask = FAT_FAT12_MASK; 20264d0: 82 10 2f ff mov 0xfff, %g1 <== NOT EXECUTED 20264d4: c2 24 20 0c st %g1, [ %l0 + 0xc ] <== NOT EXECUTED vol->eoc_val = FAT_FAT12_EOC; 20264d8: 82 10 2f f8 mov 0xff8, %g1 <== NOT EXECUTED 20264dc: 10 80 00 11 b 2026520 <== NOT EXECUTED 20264e0: c2 24 20 10 st %g1, [ %l0 + 0x10 ] <== NOT EXECUTED } else { if ( vol->data_cls < FAT_FAT16_MAX_CLN) 20264e4: 03 00 00 3f sethi %hi(0xfc00), %g1 <== NOT EXECUTED 20264e8: 84 10 63 f4 or %g1, 0x3f4, %g2 ! fff4 <== NOT EXECUTED 20264ec: 80 a2 00 02 cmp %o0, %g2 <== NOT EXECUTED 20264f0: 38 80 00 06 bgu,a 2026508 <== NOT EXECUTED 20264f4: 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; 20264f8: 84 10 63 f8 or %g1, 0x3f8, %g2 ! ffffff8 <== NOT EXECUTED 20264fc: c4 24 20 10 st %g2, [ %l0 + 0x10 ] <== NOT EXECUTED } else { if ( vol->data_cls < FAT_FAT16_MAX_CLN) { vol->type = FAT_FAT16; 2026500: 10 80 00 05 b 2026514 <== NOT EXECUTED 2026504: 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; 2026508: 84 10 63 f8 or %g1, 0x3f8, %g2 <== NOT EXECUTED 202650c: 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; 2026510: 84 10 20 04 mov 4, %g2 <== NOT EXECUTED vol->mask = FAT_FAT32_MASK; 2026514: 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; 2026518: c4 2c 20 0a stb %g2, [ %l0 + 0xa ] <== NOT EXECUTED vol->mask = FAT_FAT32_MASK; 202651c: 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; 2026520: c2 0c 20 0a ldub [ %l0 + 0xa ], %g1 <== NOT EXECUTED 2026524: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED 2026528: 12 80 00 79 bne 202670c <== NOT EXECUTED 202652c: 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); 2026530: c8 0f bf 75 ldub [ %fp + -139 ], %g4 <== NOT EXECUTED 2026534: c2 0f bf 76 ldub [ %fp + -138 ], %g1 <== NOT EXECUTED 2026538: c6 0f bf 74 ldub [ %fp + -140 ], %g3 <== NOT EXECUTED 202653c: c4 0f bf 77 ldub [ %fp + -137 ], %g2 <== NOT EXECUTED 2026540: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED 2026544: 85 28 a0 18 sll %g2, 0x18, %g2 <== NOT EXECUTED 2026548: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED 202654c: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED 2026550: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED 2026554: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED 2026558: c2 24 20 38 st %g1, [ %l0 + 0x38 ] <== NOT EXECUTED vol->mirror = FAT_GET_BR_EXT_FLAGS(boot_rec) & FAT_BR_EXT_FLAGS_MIRROR; 202655c: c2 0f bf 71 ldub [ %fp + -143 ], %g1 <== NOT EXECUTED 2026560: c4 0f bf 70 ldub [ %fp + -144 ], %g2 <== NOT EXECUTED 2026564: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED 2026568: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED 202656c: 82 08 7f 80 and %g1, -128, %g1 <== NOT EXECUTED if (vol->mirror) 2026570: 80 88 60 80 btst 0x80, %g1 <== NOT EXECUTED 2026574: 02 80 00 06 be 202658c <== NOT EXECUTED 2026578: 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; 202657c: c2 0f bf 70 ldub [ %fp + -144 ], %g1 <== NOT EXECUTED 2026580: 82 08 60 0f and %g1, 0xf, %g1 <== NOT EXECUTED 2026584: 10 80 00 03 b 2026590 <== NOT EXECUTED 2026588: c2 2c 20 50 stb %g1, [ %l0 + 0x50 ] <== NOT EXECUTED else vol->afat = 0; 202658c: c0 2c 20 50 clrb [ %l0 + 0x50 ] <== NOT EXECUTED vol->info_sec = FAT_GET_BR_FAT32_FS_INFO_SECTOR(boot_rec); 2026590: d2 0f bf 79 ldub [ %fp + -135 ], %o1 <== NOT EXECUTED 2026594: c2 0f bf 78 ldub [ %fp + -136 ], %g1 <== NOT EXECUTED 2026598: 93 2a 60 08 sll %o1, 8, %o1 <== NOT EXECUTED 202659c: 92 12 40 01 or %o1, %g1, %o1 <== NOT EXECUTED 20265a0: d2 34 20 3c sth %o1, [ %l0 + 0x3c ] <== NOT EXECUTED if( vol->info_sec == 0 ) 20265a4: 93 2a 60 10 sll %o1, 0x10, %o1 <== NOT EXECUTED 20265a8: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED 20265ac: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED 20265b0: 32 80 00 05 bne,a 20265c4 <== NOT EXECUTED 20265b4: a4 07 bf f0 add %fp, -16, %l2 <== NOT EXECUTED { rtems_disk_release(vol->dd); 20265b8: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); 20265bc: 10 80 00 1f b 2026638 <== NOT EXECUTED 20265c0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED } else { ret = _fat_block_read(mt_entry, vol->info_sec , 0, 20265c4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 20265c8: 94 10 20 00 clr %o2 <== NOT EXECUTED 20265cc: 96 10 20 04 mov 4, %o3 <== NOT EXECUTED 20265d0: 7f ff fe d8 call 2026130 <_fat_block_read> <== NOT EXECUTED 20265d4: 98 10 00 12 mov %l2, %o4 <== NOT EXECUTED FAT_FSI_LEADSIG_SIZE, fs_info_sector); if ( ret < 0 ) 20265d8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20265dc: 16 80 00 05 bge 20265f0 <== NOT EXECUTED 20265e0: c2 0f bf f3 ldub [ %fp + -13 ], %g1 <== NOT EXECUTED { rtems_disk_release(vol->dd); 20265e4: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED 20265e8: 10 80 00 45 b 20266fc <== NOT EXECUTED 20265ec: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return -1; } if (FAT_GET_FSINFO_LEAD_SIGNATURE(fs_info_sector) != 20265f0: c8 0f bf f1 ldub [ %fp + -15 ], %g4 <== NOT EXECUTED 20265f4: c4 0f bf f2 ldub [ %fp + -14 ], %g2 <== NOT EXECUTED 20265f8: c6 0f bf f0 ldub [ %fp + -16 ], %g3 <== NOT EXECUTED 20265fc: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED 2026600: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED 2026604: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED 2026608: 84 11 00 02 or %g4, %g2, %g2 <== NOT EXECUTED 202660c: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED 2026610: 84 10 80 01 or %g2, %g1, %g2 <== NOT EXECUTED 2026614: 03 10 58 54 sethi %hi(0x41615000), %g1 <== NOT EXECUTED 2026618: 82 10 62 52 or %g1, 0x252, %g1 ! 41615252 <== NOT EXECUTED 202661c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2026620: 22 80 00 0c be,a 2026650 <== NOT EXECUTED 2026624: 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); 2026628: d0 04 60 34 ld [ %l1 + 0x34 ], %o0 <== NOT EXECUTED 202662c: 7f ff fc fa call 2025a14 <== NOT EXECUTED 2026630: 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); 2026634: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED 2026638: 7f ff 82 2f call 2006ef4 <== NOT EXECUTED 202663c: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); 2026640: 40 00 71 7a call 2042c28 <__errno> <== NOT EXECUTED 2026644: 01 00 00 00 nop <== NOT EXECUTED 2026648: 10 80 00 80 b 2026848 <== NOT EXECUTED 202664c: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED } else { ret = _fat_block_read(mt_entry, vol->info_sec , FAT_FSI_INFO, 2026650: 98 10 00 12 mov %l2, %o4 <== NOT EXECUTED 2026654: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2026658: 94 10 21 e4 mov 0x1e4, %o2 <== NOT EXECUTED 202665c: 7f ff fe b5 call 2026130 <_fat_block_read> <== NOT EXECUTED 2026660: 96 10 20 0c mov 0xc, %o3 <== NOT EXECUTED FAT_USEFUL_INFO_SIZE, fs_info_sector); if ( ret < 0 ) 2026664: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2026668: 16 80 00 05 bge 202667c <== NOT EXECUTED 202666c: 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); 2026670: 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); 2026674: 10 80 00 1f b 20266f0 <== NOT EXECUTED 2026678: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return -1; } vol->free_cls = FAT_GET_FSINFO_FREE_CLUSTER_COUNT(fs_info_sector); 202667c: c8 0f bf f5 ldub [ %fp + -11 ], %g4 <== NOT EXECUTED 2026680: c2 0f bf f6 ldub [ %fp + -10 ], %g1 <== NOT EXECUTED 2026684: c4 0f bf f7 ldub [ %fp + -9 ], %g2 <== NOT EXECUTED 2026688: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED 202668c: 85 28 a0 18 sll %g2, 0x18, %g2 <== NOT EXECUTED 2026690: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED 2026694: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED 2026698: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED 202669c: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED 20266a0: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED vol->next_cl = FAT_GET_FSINFO_NEXT_FREE_CLUSTER(fs_info_sector); 20266a4: c8 0f bf f9 ldub [ %fp + -7 ], %g4 <== NOT EXECUTED 20266a8: c2 0f bf fa ldub [ %fp + -6 ], %g1 <== NOT EXECUTED 20266ac: c6 0f bf f8 ldub [ %fp + -8 ], %g3 <== NOT EXECUTED 20266b0: c4 0f bf fb ldub [ %fp + -5 ], %g2 <== NOT EXECUTED 20266b4: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED 20266b8: 85 28 a0 18 sll %g2, 0x18, %g2 <== NOT EXECUTED 20266bc: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED 20266c0: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED 20266c4: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED 20266c8: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED rc = fat_fat32_update_fsinfo_sector(mt_entry, 0xFFFFFFFF, 20266cc: 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); 20266d0: c2 24 20 44 st %g1, [ %l0 + 0x44 ] <== NOT EXECUTED rc = fat_fat32_update_fsinfo_sector(mt_entry, 0xFFFFFFFF, 20266d4: 92 10 3f ff mov -1, %o1 <== NOT EXECUTED 20266d8: 7f ff fd db call 2025e44 <== NOT EXECUTED 20266dc: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED 0xFFFFFFFF); if ( rc != RC_OK ) 20266e0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 20266e4: 02 80 00 0f be 2026720 <== NOT EXECUTED 20266e8: 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); 20266ec: d0 04 60 34 ld [ %l1 + 0x34 ], %o0 <== NOT EXECUTED 20266f0: 7f ff fc c9 call 2025a14 <== NOT EXECUTED 20266f4: 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); 20266f8: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED 20266fc: 7f ff 81 fe call 2006ef4 <== NOT EXECUTED 2026700: 01 00 00 00 nop <== NOT EXECUTED return rc; 2026704: 81 c7 e0 08 ret <== NOT EXECUTED 2026708: 81 e8 00 00 restore <== NOT EXECUTED } } } else { vol->rdir_cl = 0; 202670c: c0 24 20 38 clr [ %l0 + 0x38 ] <== NOT EXECUTED vol->mirror = 0; 2026710: c0 2c 20 48 clrb [ %l0 + 0x48 ] <== NOT EXECUTED vol->afat = 0; 2026714: c0 2c 20 50 clrb [ %l0 + 0x50 ] <== NOT EXECUTED vol->free_cls = 0xFFFFFFFF; vol->next_cl = 0xFFFFFFFF; 2026718: 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; 202671c: 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); 2026720: 7f ff fc bd call 2025a14 <== NOT EXECUTED 2026724: 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; 2026728: d2 04 20 18 ld [ %l0 + 0x18 ], %o1 <== NOT EXECUTED 202672c: 7f ff 70 b3 call 20029f8 <.umul> <== NOT EXECUTED 2026730: d0 0c 20 50 ldub [ %l0 + 0x50 ], %o0 <== NOT EXECUTED 2026734: 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)); 2026738: 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; 202673c: 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)); 2026740: 90 10 20 02 mov 2, %o0 <== NOT EXECUTED 2026744: 7f ff 85 38 call 2007c24 <== NOT EXECUTED 2026748: c2 24 20 4c st %g1, [ %l0 + 0x4c ] <== NOT EXECUTED if ( fs_info->vhash == NULL ) 202674c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2026750: 02 80 00 13 be 202679c <== NOT EXECUTED 2026754: 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); 2026758: 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; 202675c: c0 22 20 04 clr [ %o0 + 4 ] <== NOT EXECUTED the_chain->last = _Chain_Head(the_chain); 2026760: d0 22 20 08 st %o0, [ %o0 + 8 ] <== NOT EXECUTED 2026764: 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; 2026768: 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); 202676c: 82 02 20 04 add %o0, 4, %g1 <== NOT EXECUTED 2026770: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2026774: 82 02 20 10 add %o0, 0x10, %g1 <== NOT EXECUTED fs_info->rhash = calloc(FAT_HASH_SIZE, sizeof(rtems_chain_control)); 2026778: 92 10 20 0c mov 0xc, %o1 <== NOT EXECUTED 202677c: c2 22 20 0c st %g1, [ %o0 + 0xc ] <== NOT EXECUTED 2026780: 7f ff 85 29 call 2007c24 <== NOT EXECUTED 2026784: 90 10 20 02 mov 2, %o0 <== NOT EXECUTED if ( fs_info->rhash == NULL ) 2026788: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202678c: 12 80 00 08 bne 20267ac <== NOT EXECUTED 2026790: d0 24 20 6c st %o0, [ %l0 + 0x6c ] <== NOT EXECUTED { rtems_disk_release(vol->dd); 2026794: 10 80 00 1f b 2026810 <== NOT EXECUTED 2026798: 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); 202679c: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED 20267a0: 7f ff 81 d5 call 2006ef4 <== NOT EXECUTED 20267a4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20267a8: 30 80 00 25 b,a 202683c <== NOT EXECUTED the_chain->permanent_null = NULL; 20267ac: c0 22 20 04 clr [ %o0 + 4 ] <== NOT EXECUTED the_chain->last = _Chain_Head(the_chain); 20267b0: 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); 20267b4: 82 02 20 0c add %o0, 0xc, %g1 <== NOT EXECUTED 20267b8: 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; 20267bc: 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); 20267c0: 82 02 20 04 add %o0, 4, %g1 <== NOT EXECUTED 20267c4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20267c8: 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; 20267cc: c4 04 20 2c ld [ %l0 + 0x2c ], %g2 <== NOT EXECUTED 20267d0: c2 22 20 0c st %g1, [ %o0 + 0xc ] <== NOT EXECUTED 20267d4: c2 0c 20 03 ldub [ %l0 + 3 ], %g1 <== NOT EXECUTED fs_info->index = 0; 20267d8: 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; 20267dc: 83 28 80 01 sll %g2, %g1, %g1 <== NOT EXECUTED 20267e0: 83 28 60 04 sll %g1, 4, %g1 <== NOT EXECUTED 20267e4: 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; 20267e8: 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)); 20267ec: 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; 20267f0: 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)); 20267f4: 7f ff 85 0c call 2007c24 <== NOT EXECUTED 20267f8: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED if ( fs_info->uino == NULL ) 20267fc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2026800: 12 80 00 15 bne 2026854 <== NOT EXECUTED 2026804: d0 24 20 70 st %o0, [ %l0 + 0x70 ] <== NOT EXECUTED { rtems_disk_release(vol->dd); 2026808: 10 80 00 06 b 2026820 <== NOT EXECUTED 202680c: 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); 2026810: 7f ff 81 b9 call 2006ef4 <== NOT EXECUTED 2026814: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED free(fs_info->vhash); 2026818: 10 80 00 07 b 2026834 <== NOT EXECUTED 202681c: 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); 2026820: 7f ff 81 b5 call 2006ef4 <== NOT EXECUTED 2026824: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED free(fs_info->vhash); 2026828: 7f ff 86 8e call 2008260 <== NOT EXECUTED 202682c: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED free(fs_info->rhash); 2026830: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED 2026834: 7f ff 86 8b call 2008260 <== NOT EXECUTED 2026838: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOMEM ); 202683c: 40 00 70 fb call 2042c28 <__errno> <== NOT EXECUTED 2026840: 01 00 00 00 nop <== NOT EXECUTED 2026844: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 2026848: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202684c: 81 c7 e0 08 ret <== NOT EXECUTED 2026850: 81 e8 00 00 restore <== NOT EXECUTED } fs_info->sec_buf = (uint8_t *)calloc(vol->bps, sizeof(uint8_t)); 2026854: d0 14 00 00 lduh [ %l0 ], %o0 <== NOT EXECUTED 2026858: 7f ff 84 f3 call 2007c24 <== NOT EXECUTED 202685c: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 2026860: d0 24 20 8c st %o0, [ %l0 + 0x8c ] <== NOT EXECUTED if (fs_info->sec_buf == NULL) 2026864: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2026868: 12 bf ff a7 bne 2026704 <== NOT EXECUTED 202686c: b0 10 20 00 clr %i0 <== NOT EXECUTED { rtems_disk_release(vol->dd); 2026870: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED 2026874: 7f ff 81 a0 call 2006ef4 <== NOT EXECUTED 2026878: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED free(fs_info->vhash); 202687c: 7f ff 86 79 call 2008260 <== NOT EXECUTED 2026880: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED free(fs_info->rhash); 2026884: 7f ff 86 77 call 2008260 <== NOT EXECUTED 2026888: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED free(fs_info->uino); 202688c: 7f ff 86 75 call 2008260 <== NOT EXECUTED 2026890: d0 04 20 70 ld [ %l0 + 0x70 ], %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOMEM ); 2026894: 40 00 70 e5 call 2042c28 <__errno> <== NOT EXECUTED 2026898: 01 00 00 00 nop <== NOT EXECUTED 202689c: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 20268a0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED } return RC_OK; } 20268a4: 81 c7 e0 08 ret <== NOT EXECUTED 20268a8: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02025920 : inline bool fat_ino_is_unique( rtems_filesystem_mount_table_entry_t *mt_entry, uint32_t ino ) { 2025920: c2 02 20 34 ld [ %o0 + 0x34 ], %g1 <== NOT EXECUTED 2025924: c2 00 60 7c ld [ %g1 + 0x7c ], %g1 <== NOT EXECUTED 2025928: 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); } 202592c: 81 c3 e0 08 retl <== NOT EXECUTED 2025930: 90 60 3f ff subx %g0, -1, %o0 <== NOT EXECUTED =============================================================================== 0203ee20 : uint32_t *chain, uint32_t count, uint32_t *cls_added, uint32_t *last_cl ) { 203ee20: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED int rc = RC_OK; fat_fs_info_t *fs_info = mt_entry->fs_info; 203ee24: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED uint32_t *chain, uint32_t count, uint32_t *cls_added, uint32_t *last_cl ) { 203ee28: 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; 203ee2c: 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; 203ee30: 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; 203ee34: 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; 203ee38: aa 05 60 02 add %l5, 2, %l5 <== NOT EXECUTED uint32_t i = 2; *cls_added = 0; if (count == 0) 203ee3c: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 203ee40: 02 80 00 24 be 203eed0 <== NOT EXECUTED 203ee44: b0 10 20 00 clr %i0 <== NOT EXECUTED return rc; if (fs_info->vol.next_cl != FAT_UNDEFINED_VALUE) 203ee48: e4 04 20 44 ld [ %l0 + 0x44 ], %l2 <== NOT EXECUTED 203ee4c: 80 a4 bf ff cmp %l2, -1 <== NOT EXECUTED 203ee50: 22 80 00 02 be,a 203ee58 <== NOT EXECUTED 203ee54: a4 10 20 02 mov 2, %l2 <== NOT EXECUTED 203ee58: a8 10 20 02 mov 2, %l4 <== NOT EXECUTED 203ee5c: 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); 203ee60: 10 80 00 50 b 203efa0 <== NOT EXECUTED 203ee64: ac 07 bf fc add %fp, -4, %l6 <== NOT EXECUTED 203ee68: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED 203ee6c: 7f ff ff 3c call 203eb5c <== NOT EXECUTED 203ee70: 94 10 00 16 mov %l6, %o2 <== NOT EXECUTED if ( rc != RC_OK ) 203ee74: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 203ee78: 22 80 00 08 be,a 203ee98 <== NOT EXECUTED 203ee7c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED { if (*cls_added != 0) 203ee80: c4 06 c0 00 ld [ %i3 ], %g2 <== NOT EXECUTED 203ee84: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 203ee88: 02 80 00 12 be 203eed0 <== NOT EXECUTED 203ee8c: 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)); 203ee90: 10 80 00 19 b 203eef4 <== NOT EXECUTED 203ee94: 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) 203ee98: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 203ee9c: 32 80 00 3d bne,a 203ef90 <== NOT EXECUTED 203eea0: 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) 203eea4: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED 203eea8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 203eeac: 12 80 00 0b bne 203eed8 <== NOT EXECUTED 203eeb0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED { *chain = cl4find; 203eeb4: e4 26 40 00 st %l2, [ %i1 ] <== NOT EXECUTED rc = fat_set_fat_cluster(mt_entry, cl4find, FAT_GENFAT_EOC); 203eeb8: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED 203eebc: 7f ff fe 7b call 203e8a8 <== NOT EXECUTED 203eec0: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED if ( rc != RC_OK ) 203eec4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 203eec8: 22 80 00 1e be,a 203ef40 <== NOT EXECUTED 203eecc: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED 203eed0: 81 c7 e0 08 ret <== NOT EXECUTED 203eed4: 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); 203eed8: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED 203eedc: 7f ff fe 73 call 203e8a8 <== NOT EXECUTED 203eee0: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED if ( rc != RC_OK ) 203eee4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 203eee8: 02 80 00 07 be 203ef04 <== NOT EXECUTED 203eeec: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED { /* cleanup activity */ fat_free_fat_clusters_chain(mt_entry, (*chain)); 203eef0: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED 203eef4: 7f ff ff 97 call 203ed50 <== NOT EXECUTED 203eef8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED return rc; 203eefc: 81 c7 e0 08 ret <== NOT EXECUTED 203ef00: 81 e8 00 00 restore <== NOT EXECUTED } rc = fat_set_fat_cluster(mt_entry, save_cln, cl4find); 203ef04: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 203ef08: 7f ff fe 68 call 203e8a8 <== NOT EXECUTED 203ef0c: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED if ( rc != RC_OK ) 203ef10: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 203ef14: 22 80 00 0b be,a 203ef40 <== NOT EXECUTED 203ef18: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED { /* cleanup activity */ fat_free_fat_clusters_chain(mt_entry, (*chain)); 203ef1c: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED 203ef20: 7f ff ff 8c call 203ed50 <== NOT EXECUTED 203ef24: 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); 203ef28: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 203ef2c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED 203ef30: 7f ff fe 5e call 203e8a8 <== NOT EXECUTED 203ef34: 94 10 20 00 clr %o2 <== NOT EXECUTED fat_buf_release(fs_info); 203ef38: 10 80 00 10 b 203ef78 <== NOT EXECUTED 203ef3c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return rc; } } save_cln = cl4find; (*cls_added)++; 203ef40: 82 00 60 01 inc %g1 <== NOT EXECUTED /* have we satisfied request ? */ if (*cls_added == count) 203ef44: 80 a0 40 1a cmp %g1, %i2 <== NOT EXECUTED 203ef48: 12 80 00 10 bne 203ef88 <== NOT EXECUTED 203ef4c: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED { fs_info->vol.next_cl = save_cln; if (fs_info->vol.free_cls != 0xFFFFFFFF) 203ef50: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 <== NOT EXECUTED 203ef54: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED 203ef58: 02 80 00 05 be 203ef6c <== NOT EXECUTED 203ef5c: e4 24 20 44 st %l2, [ %l0 + 0x44 ] <== NOT EXECUTED fs_info->vol.free_cls -= (*cls_added); 203ef60: c4 06 c0 00 ld [ %i3 ], %g2 <== NOT EXECUTED 203ef64: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 203ef68: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED *last_cl = save_cln; 203ef6c: e4 27 00 00 st %l2, [ %i4 ] <== NOT EXECUTED fat_buf_release(fs_info); 203ef70: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 203ef74: b0 10 20 00 clr %i0 <== NOT EXECUTED 203ef78: 7f ff 9a a7 call 2025a14 <== NOT EXECUTED 203ef7c: 01 00 00 00 nop <== NOT EXECUTED return rc; 203ef80: 81 c7 e0 08 ret <== NOT EXECUTED 203ef84: 81 e8 00 00 restore <== NOT EXECUTED 203ef88: a6 10 00 12 mov %l2, %l3 <== NOT EXECUTED } } i++; cl4find++; 203ef8c: a4 04 a0 01 inc %l2 <== NOT EXECUTED if (cl4find >= data_cls_val) 203ef90: 80 a4 80 15 cmp %l2, %l5 <== NOT EXECUTED 203ef94: 3a 80 00 02 bcc,a 203ef9c <== NOT EXECUTED 203ef98: a4 10 20 02 mov 2, %l2 <== NOT EXECUTED *last_cl = save_cln; fat_buf_release(fs_info); return rc; } } i++; 203ef9c: 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) 203efa0: 80 a5 00 15 cmp %l4, %l5 <== NOT EXECUTED 203efa4: 0a bf ff b1 bcs 203ee68 <== NOT EXECUTED 203efa8: 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) 203efac: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 <== NOT EXECUTED 203efb0: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED 203efb4: 02 80 00 05 be 203efc8 <== NOT EXECUTED 203efb8: e6 24 20 44 st %l3, [ %l0 + 0x44 ] <== NOT EXECUTED fs_info->vol.free_cls -= (*cls_added); 203efbc: c4 06 c0 00 ld [ %i3 ], %g2 <== NOT EXECUTED 203efc0: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 203efc4: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED *last_cl = save_cln; 203efc8: e6 27 00 00 st %l3, [ %i4 ] <== NOT EXECUTED fat_buf_release(fs_info); 203efcc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 203efd0: 7f ff 9a 91 call 2025a14 <== NOT EXECUTED 203efd4: b0 10 20 00 clr %i0 <== NOT EXECUTED return RC_OK; } 203efd8: 81 c7 e0 08 ret <== NOT EXECUTED 203efdc: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0203e8a8 : fat_set_fat_cluster( rtems_filesystem_mount_table_entry_t *mt_entry, uint32_t cln, uint32_t in_val ) { 203e8a8: 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; 203e8ac: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED /* sanity check */ if ( (cln < 2) || (cln > (fs_info->vol.data_cls + 1)) ) 203e8b0: 80 a6 60 01 cmp %i1, 1 <== NOT EXECUTED 203e8b4: 08 80 00 a3 bleu 203eb40 <== NOT EXECUTED 203e8b8: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED 203e8bc: c2 04 20 34 ld [ %l0 + 0x34 ], %g1 <== NOT EXECUTED 203e8c0: 82 00 60 01 inc %g1 <== NOT EXECUTED 203e8c4: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 203e8c8: 18 80 00 9e bgu 203eb40 <== NOT EXECUTED 203e8cc: 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) + 203e8d0: c2 0c 20 0a ldub [ %l0 + 0xa ], %g1 <== NOT EXECUTED 203e8d4: 88 88 60 01 andcc %g1, 1, %g4 <== NOT EXECUTED 203e8d8: 02 80 00 05 be 203e8ec <== NOT EXECUTED 203e8dc: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED 203e8e0: 85 36 60 01 srl %i1, 1, %g2 <== NOT EXECUTED 203e8e4: 10 80 00 05 b 203e8f8 <== NOT EXECUTED 203e8e8: 84 00 80 19 add %g2, %i1, %g2 <== NOT EXECUTED 203e8ec: 02 80 00 03 be 203e8f8 <== NOT EXECUTED 203e8f0: 85 2e 60 02 sll %i1, 2, %g2 <== NOT EXECUTED 203e8f4: 85 2e 60 01 sll %i1, 1, %g2 <== NOT EXECUTED 203e8f8: e6 0c 20 02 ldub [ %l0 + 2 ], %l3 <== NOT EXECUTED 203e8fc: c6 04 20 4c ld [ %l0 + 0x4c ], %g3 <== NOT EXECUTED 203e900: 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); 203e904: a9 36 60 01 srl %i1, 1, %l4 <== NOT EXECUTED 203e908: 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) + 203e90c: 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); 203e910: 12 80 00 06 bne 203e928 <== NOT EXECUTED 203e914: a8 05 00 19 add %l4, %i1, %l4 <== NOT EXECUTED 203e918: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED 203e91c: 02 80 00 03 be 203e928 <== NOT EXECUTED 203e920: a9 2e 60 02 sll %i1, 2, %l4 <== NOT EXECUTED 203e924: a9 2e 60 01 sll %i1, 1, %l4 <== NOT EXECUTED 203e928: ea 14 00 00 lduh [ %l0 ], %l5 <== NOT EXECUTED rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &block0); 203e92c: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED 203e930: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 203e934: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED 203e938: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED 203e93c: 7f ff 9c 97 call 2025b98 <== NOT EXECUTED 203e940: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED if (rc != RC_OK) 203e944: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 203e948: 12 80 00 83 bne 203eb54 <== NOT EXECUTED 203e94c: ab 2d 60 10 sll %l5, 0x10, %l5 <== NOT EXECUTED return rc; switch ( fs_info->vol.type ) 203e950: e2 0c 20 0a ldub [ %l0 + 0xa ], %l1 <== NOT EXECUTED 203e954: 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); 203e958: ab 35 60 10 srl %l5, 0x10, %l5 <== NOT EXECUTED 203e95c: 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 ) 203e960: 02 80 00 5a be 203eac8 <== NOT EXECUTED 203e964: a8 0d 00 15 and %l4, %l5, %l4 <== NOT EXECUTED 203e968: 80 a4 60 04 cmp %l1, 4 <== NOT EXECUTED 203e96c: 02 80 00 5f be 203eae8 <== NOT EXECUTED 203e970: 80 a4 60 01 cmp %l1, 1 <== NOT EXECUTED 203e974: 12 80 00 73 bne 203eb40 <== NOT EXECUTED 203e978: 80 8e 60 01 btst 1, %i1 <== NOT EXECUTED { case FAT_FAT12: if ( FAT_CLUSTER_IS_ODD(cln) ) 203e97c: 02 80 00 25 be 203ea10 <== NOT EXECUTED 203e980: 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; 203e984: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED *((uint8_t *)(block0->buffer + ofs)) = 203e988: 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)) = 203e98c: c6 08 40 14 ldub [ %g1 + %l4 ], %g3 <== NOT EXECUTED 203e990: 86 08 e0 0f and %g3, 0xf, %g3 <== NOT EXECUTED 203e994: 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))) | 203e998: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 203e99c: 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)) = 203e9a0: c6 08 40 14 ldub [ %g1 + %l4 ], %g3 <== NOT EXECUTED 203e9a4: 84 10 c0 02 or %g3, %g2, %g2 <== NOT EXECUTED 203e9a8: 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) ) 203e9ac: c2 14 00 00 lduh [ %l0 ], %g1 <== NOT EXECUTED 203e9b0: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 203e9b4: 80 a5 00 01 cmp %l4, %g1 <== NOT EXECUTED 203e9b8: 12 80 00 0f bne 203e9f4 <== NOT EXECUTED 203e9bc: e2 2c 20 84 stb %l1, [ %l0 + 0x84 ] <== NOT EXECUTED { rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ, 203e9c0: 92 04 e0 01 add %l3, 1, %o1 <== NOT EXECUTED 203e9c4: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED 203e9c8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 203e9cc: 7f ff 9c 73 call 2025b98 <== NOT EXECUTED 203e9d0: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED &block0); if (rc != RC_OK) 203e9d4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 203e9d8: 12 80 00 5f bne 203eb54 <== NOT EXECUTED 203e9dc: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED return rc; *((uint8_t *)(block0->buffer)) &= 0x00; *((uint8_t *)(block0->buffer)) = 203e9e0: 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; 203e9e4: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED *((uint8_t *)(block0->buffer)) = 203e9e8: 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; 203e9ec: 10 80 00 23 b 203ea78 <== NOT EXECUTED 203e9f0: c0 28 40 00 clrb [ %g1 ] <== NOT EXECUTED fat_buf_mark_modified(fs_info); } else { *((uint8_t *)(block0->buffer + ofs + 1)) &= 0x00; 203e9f4: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 203e9f8: a8 05 20 01 inc %l4 <== NOT EXECUTED 203e9fc: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED *((uint8_t *)(block0->buffer + ofs + 1)) = 203ea00: b5 2e a0 14 sll %i2, 0x14, %i2 <== NOT EXECUTED fat_buf_mark_modified(fs_info); } else { *((uint8_t *)(block0->buffer + ofs + 1)) &= 0x00; 203ea04: c0 28 40 14 clrb [ %g1 + %l4 ] <== NOT EXECUTED *((uint8_t *)(block0->buffer + ofs + 1)) = 203ea08: 10 80 00 2a b 203eab0 <== NOT EXECUTED 203ea0c: 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; 203ea10: 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; 203ea14: b4 0e af ff and %i2, 0xfff, %i2 <== NOT EXECUTED *((uint8_t *)(block0->buffer + ofs)) &= 0x00; 203ea18: c0 28 40 14 clrb [ %g1 + %l4 ] <== NOT EXECUTED *((uint8_t *)(block0->buffer + ofs)) = (*((uint8_t *)(block0->buffer + ofs))) | 203ea1c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 203ea20: 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)) = 203ea24: c4 08 40 14 ldub [ %g1 + %l4 ], %g2 <== NOT EXECUTED 203ea28: 84 16 80 02 or %i2, %g2, %g2 <== NOT EXECUTED 203ea2c: 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) ) 203ea30: c2 14 00 00 lduh [ %l0 ], %g1 <== NOT EXECUTED 203ea34: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 203ea38: 80 a5 00 01 cmp %l4, %g1 <== NOT EXECUTED 203ea3c: 12 80 00 16 bne 203ea94 <== NOT EXECUTED 203ea40: e2 2c 20 84 stb %l1, [ %l0 + 0x84 ] <== NOT EXECUTED { rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ, 203ea44: 92 04 e0 01 add %l3, 1, %o1 <== NOT EXECUTED 203ea48: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED 203ea4c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 203ea50: 7f ff 9c 52 call 2025b98 <== NOT EXECUTED 203ea54: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED &block0); if (rc != RC_OK) 203ea58: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 203ea5c: 12 80 00 3e bne 203eb54 <== NOT EXECUTED 203ea60: 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)) = 203ea64: 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; 203ea68: 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)) = 203ea6c: c4 08 40 00 ldub [ %g1 ], %g2 <== NOT EXECUTED 203ea70: 84 08 bf f0 and %g2, -16, %g2 <== NOT EXECUTED 203ea74: c4 28 40 00 stb %g2, [ %g1 ] <== NOT EXECUTED (*((uint8_t *)(block0->buffer))) & 0xF0; *((uint8_t *)(block0->buffer)) = (*((uint8_t *)(block0->buffer))) | 203ea78: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 203ea7c: 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)) = 203ea80: c4 08 40 00 ldub [ %g1 ], %g2 <== NOT EXECUTED 203ea84: b4 16 80 02 or %i2, %g2, %i2 <== NOT EXECUTED 203ea88: 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; 203ea8c: 10 80 00 32 b 203eb54 <== NOT EXECUTED 203ea90: 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; 203ea94: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 203ea98: a8 05 20 01 inc %l4 <== NOT EXECUTED 203ea9c: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED *((uint8_t *)(block0->buffer + ofs+1)) = 203eaa0: b5 36 a0 08 srl %i2, 8, %i2 <== NOT EXECUTED fat_buf_mark_modified(fs_info); } else { *((uint8_t *)(block0->buffer + ofs + 1)) = 203eaa4: c4 08 40 14 ldub [ %g1 + %l4 ], %g2 <== NOT EXECUTED 203eaa8: 84 08 bf f0 and %g2, -16, %g2 <== NOT EXECUTED 203eaac: 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))) | 203eab0: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 203eab4: 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)) = 203eab8: c4 08 40 14 ldub [ %g1 + %l4 ], %g2 <== NOT EXECUTED 203eabc: b4 10 80 1a or %g2, %i2, %i2 <== NOT EXECUTED 203eac0: 10 80 00 25 b 203eb54 <== NOT EXECUTED 203eac4: f4 28 40 14 stb %i2, [ %g1 + %l4 ] <== NOT EXECUTED } } break; case FAT_FAT16: *((uint16_t *)(block0->buffer + ofs)) = 203eac8: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 203eacc: b5 2e a0 10 sll %i2, 0x10, %i2 <== NOT EXECUTED 203ead0: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED 203ead4: 85 36 a0 18 srl %i2, 0x18, %g2 <== NOT EXECUTED 203ead8: b5 36 a0 08 srl %i2, 8, %i2 <== NOT EXECUTED 203eadc: b4 16 80 02 or %i2, %g2, %i2 <== NOT EXECUTED 203eae0: 10 80 00 15 b 203eb34 <== NOT EXECUTED 203eae4: 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)); 203eae8: 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)); 203eaec: 05 3c 00 00 sethi %hi(0xf0000000), %g2 <== NOT EXECUTED *((uint32_t *)(block0->buffer + ofs)) = (*((uint32_t *)(block0->buffer + ofs))) & (CT_LE_L(0xF0000000)); 203eaf0: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED *((uint32_t *)(block0->buffer + ofs)) = 203eaf4: 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)) = 203eaf8: 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)); 203eafc: b4 2e 80 02 andn %i2, %g2, %i2 <== NOT EXECUTED *((uint32_t *)(block0->buffer + ofs)) = 203eb00: 86 08 e0 f0 and %g3, 0xf0, %g3 <== NOT EXECUTED (*((uint32_t *)(block0->buffer + ofs))) & (CT_LE_L(0xF0000000)); *((uint32_t *)(block0->buffer + ofs)) = 203eb04: 89 36 a0 10 srl %i2, 0x10, %g4 <== NOT EXECUTED 203eb08: 85 36 a0 18 srl %i2, 0x18, %g2 <== NOT EXECUTED 203eb0c: 88 09 20 ff and %g4, 0xff, %g4 <== NOT EXECUTED 203eb10: 84 13 40 02 or %o5, %g2, %g2 <== NOT EXECUTED 203eb14: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED 203eb18: b5 36 a0 08 srl %i2, 8, %i2 <== NOT EXECUTED 203eb1c: b4 0e a0 ff and %i2, 0xff, %i2 <== NOT EXECUTED 203eb20: b5 2e a0 10 sll %i2, 0x10, %i2 <== NOT EXECUTED 203eb24: 84 10 80 1a or %g2, %i2, %g2 <== NOT EXECUTED 203eb28: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED 203eb2c: 84 10 c0 02 or %g3, %g2, %g2 <== NOT EXECUTED 203eb30: c4 20 40 14 st %g2, [ %g1 + %l4 ] <== NOT EXECUTED 203eb34: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 203eb38: 10 80 00 07 b 203eb54 <== NOT EXECUTED 203eb3c: 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); 203eb40: 40 00 10 3a call 2042c28 <__errno> <== NOT EXECUTED 203eb44: 01 00 00 00 nop <== NOT EXECUTED 203eb48: 82 10 20 05 mov 5, %g1 ! 5 <== NOT EXECUTED 203eb4c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 203eb50: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED break; } return RC_OK; } 203eb54: 81 c7 e0 08 ret <== NOT EXECUTED 203eb58: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED =============================================================================== 02025f00 : * 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) { 2025f00: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED int rc = RC_OK; fat_fs_info_t *fs_info = mt_entry->fs_info; 2025f04: 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) { 2025f08: 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) 2025f0c: c2 0c 20 0a ldub [ %l0 + 0xa ], %g1 <== NOT EXECUTED 2025f10: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED 2025f14: 02 80 00 08 be 2025f34 <== NOT EXECUTED 2025f18: a2 10 20 00 clr %l1 <== NOT EXECUTED { rc = fat_fat32_update_fsinfo_sector(mt_entry, fs_info->vol.free_cls, 2025f1c: d2 04 20 40 ld [ %l0 + 0x40 ], %o1 <== NOT EXECUTED 2025f20: 7f ff ff c9 call 2025e44 <== NOT EXECUTED 2025f24: d4 04 20 44 ld [ %l0 + 0x44 ], %o2 <== NOT EXECUTED fs_info->vol.next_cl); if ( rc != RC_OK ) 2025f28: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED 2025f2c: 32 80 00 02 bne,a 2025f34 <== NOT EXECUTED 2025f30: a2 10 3f ff mov -1, %l1 <== NOT EXECUTED rc = -1; } fat_buf_release(fs_info); 2025f34: 7f ff fe b8 call 2025a14 <== NOT EXECUTED 2025f38: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if (rtems_bdbuf_syncdev(fs_info->vol.dev) != RTEMS_SUCCESSFUL) 2025f3c: 7f ff 77 f3 call 2003f08 <== NOT EXECUTED 2025f40: d0 1c 20 58 ldd [ %l0 + 0x58 ], %o0 <== NOT EXECUTED 2025f44: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025f48: 32 80 00 02 bne,a 2025f50 <== NOT EXECUTED 2025f4c: a2 10 3f ff mov -1, %l1 <== NOT EXECUTED 2025f50: 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; 2025f54: e6 04 20 68 ld [ %l0 + 0x68 ], %l3 <== NOT EXECUTED while ( (node = rtems_chain_get(the_chain)) != NULL ) 2025f58: 10 80 00 04 b 2025f68 <== NOT EXECUTED 2025f5c: a6 04 c0 12 add %l3, %l2, %l3 <== NOT EXECUTED free(node); 2025f60: 7f ff 88 c0 call 2008260 <== NOT EXECUTED 2025f64: 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 ); 2025f68: 7f ff 9e 01 call 200d76c <_Chain_Get> <== NOT EXECUTED 2025f6c: 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 ) 2025f70: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025f74: 12 bf ff fb bne 2025f60 <== NOT EXECUTED 2025f78: 01 00 00 00 nop <== NOT EXECUTED 2025f7c: 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++) 2025f80: 80 a4 a0 18 cmp %l2, 0x18 <== NOT EXECUTED 2025f84: 32 bf ff f5 bne,a 2025f58 <== NOT EXECUTED 2025f88: e6 04 20 68 ld [ %l0 + 0x68 ], %l3 <== NOT EXECUTED 2025f8c: 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; 2025f90: e6 04 20 6c ld [ %l0 + 0x6c ], %l3 <== NOT EXECUTED while ( (node = rtems_chain_get(the_chain)) != NULL ) 2025f94: 10 80 00 04 b 2025fa4 <== NOT EXECUTED 2025f98: a6 04 c0 12 add %l3, %l2, %l3 <== NOT EXECUTED free(node); 2025f9c: 7f ff 88 b1 call 2008260 <== NOT EXECUTED 2025fa0: 01 00 00 00 nop <== NOT EXECUTED 2025fa4: 7f ff 9d f2 call 200d76c <_Chain_Get> <== NOT EXECUTED 2025fa8: 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 ) 2025fac: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025fb0: 12 bf ff fb bne 2025f9c <== NOT EXECUTED 2025fb4: 01 00 00 00 nop <== NOT EXECUTED 2025fb8: 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++) 2025fbc: 80 a4 a0 18 cmp %l2, 0x18 <== NOT EXECUTED 2025fc0: 32 bf ff f5 bne,a 2025f94 <== NOT EXECUTED 2025fc4: e6 04 20 6c ld [ %l0 + 0x6c ], %l3 <== NOT EXECUTED while ( (node = rtems_chain_get(the_chain)) != NULL ) free(node); } free(fs_info->vhash); 2025fc8: 7f ff 88 a6 call 2008260 <== NOT EXECUTED 2025fcc: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED free(fs_info->rhash); 2025fd0: 7f ff 88 a4 call 2008260 <== NOT EXECUTED 2025fd4: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED free(fs_info->uino); 2025fd8: 7f ff 88 a2 call 2008260 <== NOT EXECUTED 2025fdc: d0 04 20 70 ld [ %l0 + 0x70 ], %o0 <== NOT EXECUTED free(fs_info->sec_buf); 2025fe0: 7f ff 88 a0 call 2008260 <== NOT EXECUTED 2025fe4: d0 04 20 8c ld [ %l0 + 0x8c ], %o0 <== NOT EXECUTED rtems_disk_release(fs_info->vol.dd); 2025fe8: 7f ff 83 c3 call 2006ef4 <== NOT EXECUTED 2025fec: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED if (rc) 2025ff0: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 2025ff4: 02 80 00 06 be 202600c <== NOT EXECUTED 2025ff8: 01 00 00 00 nop <== NOT EXECUTED errno = EIO; 2025ffc: 40 00 73 0b call 2042c28 <__errno> <== NOT EXECUTED 2026000: 01 00 00 00 nop <== NOT EXECUTED 2026004: 82 10 20 05 mov 5, %g1 ! 5 <== NOT EXECUTED 2026008: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return rc; } 202600c: 81 c7 e0 08 ret <== NOT EXECUTED 2026010: 91 e8 00 11 restore %g0, %l1, %o0 <== NOT EXECUTED =============================================================================== 0203f38c : #include int fchdir( int fd ) { 203f38c: 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 ); 203f390: 03 00 81 a4 sethi %hi(0x2069000), %g1 <== NOT EXECUTED 203f394: c2 00 60 04 ld [ %g1 + 4 ], %g1 ! 2069004 <== NOT EXECUTED 203f398: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 203f39c: 1a 80 00 0c bcc 203f3cc <== NOT EXECUTED 203f3a0: 01 00 00 00 nop <== NOT EXECUTED iop = rtems_libio_iop( fd ); 203f3a4: 03 00 81 b4 sethi %hi(0x206d000), %g1 <== NOT EXECUTED 203f3a8: e4 00 61 e4 ld [ %g1 + 0x1e4 ], %l2 ! 206d1e4 <== NOT EXECUTED 203f3ac: 83 2e 20 06 sll %i0, 6, %g1 <== NOT EXECUTED 203f3b0: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED 203f3b4: b0 06 00 01 add %i0, %g1, %i0 <== NOT EXECUTED 203f3b8: a4 04 80 18 add %l2, %i0, %l2 <== NOT EXECUTED rtems_libio_check_is_open(iop); 203f3bc: c2 04 a0 18 ld [ %l2 + 0x18 ], %g1 <== NOT EXECUTED 203f3c0: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 203f3c4: 32 80 00 06 bne,a 203f3dc <== NOT EXECUTED 203f3c8: c2 04 a0 28 ld [ %l2 + 0x28 ], %g1 <== NOT EXECUTED 203f3cc: 40 00 0e 17 call 2042c28 <__errno> <== NOT EXECUTED 203f3d0: 01 00 00 00 nop <== NOT EXECUTED 203f3d4: 10 80 00 15 b 203f428 <== NOT EXECUTED 203f3d8: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !iop->pathinfo.ops ) { 203f3dc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 203f3e0: 02 80 00 06 be 203f3f8 <== NOT EXECUTED 203f3e4: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { 203f3e8: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 <== NOT EXECUTED 203f3ec: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 203f3f0: 32 80 00 06 bne,a 203f408 <== NOT EXECUTED 203f3f4: a4 04 a0 1c add %l2, 0x1c, %l2 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 203f3f8: 40 00 0e 0c call 2042c28 <__errno> <== NOT EXECUTED 203f3fc: 01 00 00 00 nop <== NOT EXECUTED 203f400: 10 80 00 0a b 203f428 <== NOT EXECUTED 203f404: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != 203f408: 9f c0 40 00 call %g1 <== NOT EXECUTED 203f40c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 203f410: 80 a2 20 01 cmp %o0, 1 <== NOT EXECUTED 203f414: 02 80 00 07 be 203f430 <== NOT EXECUTED 203f418: 23 00 81 a5 sethi %hi(0x2069400), %l1 <== NOT EXECUTED RTEMS_FILESYSTEM_DIRECTORY ) { rtems_set_errno_and_return_minus_one( ENOTDIR ); 203f41c: 40 00 0e 03 call 2042c28 <__errno> <== NOT EXECUTED 203f420: 01 00 00 00 nop <== NOT EXECUTED 203f424: 82 10 20 14 mov 0x14, %g1 ! 14 <== NOT EXECUTED 203f428: 10 80 00 1c b 203f498 <== NOT EXECUTED 203f42c: 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; 203f430: e6 04 60 34 ld [ %l1 + 0x34 ], %l3 <== NOT EXECUTED 203f434: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 203f438: a6 04 e0 04 add %l3, 4, %l3 <== NOT EXECUTED 203f43c: a0 07 bf d8 add %fp, -40, %l0 <== NOT EXECUTED 203f440: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED 203f444: 40 00 1b 45 call 2046158 <== NOT EXECUTED 203f448: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; 203f44c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED 203f450: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 203f454: 40 00 1b 41 call 2046158 <== NOT EXECUTED 203f458: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 203f45c: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 203f460: 11 00 81 9d sethi %hi(0x2067400), %o0 <== NOT EXECUTED 203f464: 94 10 20 00 clr %o2 <== NOT EXECUTED 203f468: 90 12 21 50 or %o0, 0x150, %o0 <== NOT EXECUTED 203f46c: 96 07 bf ec add %fp, -20, %o3 <== NOT EXECUTED 203f470: 7f ff 23 5f call 20081ec <== NOT EXECUTED 203f474: 98 10 20 00 clr %o4 <== NOT EXECUTED 203f478: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 203f47c: 02 80 00 09 be 203f4a0 <== NOT EXECUTED 203f480: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; 203f484: d0 04 60 34 ld [ %l1 + 0x34 ], %o0 <== NOT EXECUTED 203f488: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 203f48c: 90 02 20 04 add %o0, 4, %o0 <== NOT EXECUTED 203f490: 40 00 1b 32 call 2046158 <== NOT EXECUTED 203f494: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED return -1; 203f498: 81 c7 e0 08 ret <== NOT EXECUTED 203f49c: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED } /* release the old one */ rtems_filesystem_freenode( &saved ); 203f4a0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 203f4a4: 22 80 00 09 be,a 203f4c8 <== NOT EXECUTED 203f4a8: 03 00 81 a5 sethi %hi(0x2069400), %g1 <== NOT EXECUTED 203f4ac: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 206941c <== NOT EXECUTED 203f4b0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 203f4b4: 22 80 00 05 be,a 203f4c8 <== NOT EXECUTED 203f4b8: 03 00 81 a5 sethi %hi(0x2069400), %g1 <== NOT EXECUTED 203f4bc: 9f c0 40 00 call %g1 <== NOT EXECUTED 203f4c0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_current = loc; 203f4c4: 03 00 81 a5 sethi %hi(0x2069400), %g1 <== NOT EXECUTED 203f4c8: d0 00 60 34 ld [ %g1 + 0x34 ], %o0 ! 2069434 <== NOT EXECUTED 203f4cc: 92 07 bf ec add %fp, -20, %o1 <== NOT EXECUTED 203f4d0: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 203f4d4: 90 02 20 04 add %o0, 4, %o0 <== NOT EXECUTED 203f4d8: 40 00 1b 20 call 2046158 <== NOT EXECUTED 203f4dc: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; } 203f4e0: 81 c7 e0 08 ret <== NOT EXECUTED 203f4e4: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 020288a8 : int fchmod( int fd, mode_t mode ) { 20288a8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 20288ac: 03 00 81 a4 sethi %hi(0x2069000), %g1 <== NOT EXECUTED 20288b0: c2 00 60 04 ld [ %g1 + 4 ], %g1 ! 2069004 <== NOT EXECUTED 20288b4: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 20288b8: 1a 80 00 0c bcc 20288e8 <== NOT EXECUTED 20288bc: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 20288c0: 03 00 81 b4 sethi %hi(0x206d000), %g1 <== NOT EXECUTED 20288c4: d0 00 61 e4 ld [ %g1 + 0x1e4 ], %o0 ! 206d1e4 <== NOT EXECUTED 20288c8: 83 2e 20 06 sll %i0, 6, %g1 <== NOT EXECUTED 20288cc: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED 20288d0: b0 06 00 01 add %i0, %g1, %i0 <== NOT EXECUTED 20288d4: 90 02 00 18 add %o0, %i0, %o0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 20288d8: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 <== NOT EXECUTED 20288dc: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 20288e0: 32 80 00 06 bne,a 20288f8 <== NOT EXECUTED 20288e4: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 <== NOT EXECUTED 20288e8: 40 00 68 d0 call 2042c28 <__errno> <== NOT EXECUTED 20288ec: 01 00 00 00 nop <== NOT EXECUTED 20288f0: 10 80 00 09 b 2028914 <== NOT EXECUTED 20288f4: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED /* * Now process the fchmod(). */ if ( !iop->handlers->fchmod_h ) 20288f8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20288fc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2028900: 32 80 00 08 bne,a 2028920 <== NOT EXECUTED 2028904: c2 02 20 24 ld [ %o0 + 0x24 ], %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2028908: 40 00 68 c8 call 2042c28 <__errno> <== NOT EXECUTED 202890c: 01 00 00 00 nop <== NOT EXECUTED 2028910: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 2028914: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2028918: 10 80 00 05 b 202892c <== NOT EXECUTED 202891c: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); 2028920: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2028924: 9f c0 40 00 call %g1 <== NOT EXECUTED 2028928: 90 02 20 1c add %o0, 0x1c, %o0 <== NOT EXECUTED } 202892c: 81 c7 e0 08 ret <== NOT EXECUTED 2028930: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED =============================================================================== 02028934 : int fchown( int fd, uid_t owner, gid_t group ) { 2028934: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 2028938: 03 00 81 a4 sethi %hi(0x2069000), %g1 <== NOT EXECUTED 202893c: c2 00 60 04 ld [ %g1 + 4 ], %g1 ! 2069004 <== NOT EXECUTED 2028940: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 2028944: 1a 80 00 0c bcc 2028974 <== NOT EXECUTED 2028948: 01 00 00 00 nop <== NOT EXECUTED iop = rtems_libio_iop( fd ); 202894c: 03 00 81 b4 sethi %hi(0x206d000), %g1 <== NOT EXECUTED 2028950: d0 00 61 e4 ld [ %g1 + 0x1e4 ], %o0 ! 206d1e4 <== NOT EXECUTED 2028954: 83 2e 20 06 sll %i0, 6, %g1 <== NOT EXECUTED 2028958: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED 202895c: b0 06 00 01 add %i0, %g1, %i0 <== NOT EXECUTED 2028960: 90 02 00 18 add %o0, %i0, %o0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 2028964: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 <== NOT EXECUTED 2028968: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 202896c: 12 80 00 06 bne 2028984 <== NOT EXECUTED 2028970: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED 2028974: 40 00 68 ad call 2042c28 <__errno> <== NOT EXECUTED 2028978: 01 00 00 00 nop <== NOT EXECUTED 202897c: 10 80 00 0f b 20289b8 <== NOT EXECUTED 2028980: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 2028984: 32 80 00 06 bne,a 202899c <== NOT EXECUTED 2028988: c2 02 20 28 ld [ %o0 + 0x28 ], %g1 <== NOT EXECUTED 202898c: 40 00 68 a7 call 2042c28 <__errno> <== NOT EXECUTED 2028990: 01 00 00 00 nop <== NOT EXECUTED 2028994: 10 80 00 09 b 20289b8 <== NOT EXECUTED 2028998: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) 202899c: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 20289a0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20289a4: 12 80 00 08 bne 20289c4 <== NOT EXECUTED 20289a8: 93 2e 60 10 sll %i1, 0x10, %o1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 20289ac: 40 00 68 9f call 2042c28 <__errno> <== NOT EXECUTED 20289b0: 01 00 00 00 nop <== NOT EXECUTED 20289b4: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 20289b8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20289bc: 10 80 00 07 b 20289d8 <== NOT EXECUTED 20289c0: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); 20289c4: 95 2e a0 10 sll %i2, 0x10, %o2 <== NOT EXECUTED 20289c8: 90 02 20 1c add %o0, 0x1c, %o0 <== NOT EXECUTED 20289cc: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED 20289d0: 9f c0 40 00 call %g1 <== NOT EXECUTED 20289d4: 95 32 a0 10 srl %o2, 0x10, %o2 <== NOT EXECUTED } 20289d8: 81 c7 e0 08 ret <== NOT EXECUTED 20289dc: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED =============================================================================== 0203f510 : int fcntl( int fd, int cmd, ... ) { 203f510: 9d e3 bf 98 save %sp, -104, %sp int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 203f514: 03 00 81 a4 sethi %hi(0x2069000), %g1 203f518: c2 00 60 04 ld [ %g1 + 4 ], %g1 ! 2069004 ... ) { int ret; va_list ap; va_start( ap, cmd ); 203f51c: 84 07 a0 4c add %fp, 0x4c, %g2 203f520: f4 27 a0 4c st %i2, [ %fp + 0x4c ] 203f524: f6 27 a0 50 st %i3, [ %fp + 0x50 ] 203f528: f8 27 a0 54 st %i4, [ %fp + 0x54 ] 203f52c: fa 27 a0 58 st %i5, [ %fp + 0x58 ] int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 203f530: 80 a6 00 01 cmp %i0, %g1 203f534: 1a 80 00 0c bcc 203f564 <== NEVER TAKEN 203f538: c4 27 bf fc st %g2, [ %fp + -4 ] iop = rtems_libio_iop( fd ); 203f53c: 07 00 81 b4 sethi %hi(0x206d000), %g3 203f540: c6 00 e1 e4 ld [ %g3 + 0x1e4 ], %g3 ! 206d1e4 203f544: 89 2e 20 06 sll %i0, 6, %g4 203f548: a1 2e 20 03 sll %i0, 3, %l0 203f54c: a0 04 00 04 add %l0, %g4, %l0 203f550: a0 00 c0 10 add %g3, %l0, %l0 rtems_libio_check_is_open(iop); 203f554: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 203f558: 80 8a 21 00 btst 0x100, %o0 203f55c: 12 80 00 06 bne 203f574 <== ALWAYS TAKEN 203f560: 80 a6 60 09 cmp %i1, 9 203f564: 40 00 0d b1 call 2042c28 <__errno> <== NOT EXECUTED 203f568: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 203f56c: 10 80 00 51 b 203f6b0 <== NOT EXECUTED 203f570: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { 203f574: 18 80 00 4c bgu 203f6a4 203f578: 89 2e 60 02 sll %i1, 2, %g4 203f57c: 1b 00 80 fd sethi %hi(0x203f400), %o5 203f580: 9a 13 60 e8 or %o5, 0xe8, %o5 ! 203f4e8 203f584: c8 03 40 04 ld [ %o5 + %g4 ], %g4 203f588: 81 c1 00 00 jmp %g4 203f58c: 01 00 00 00 nop case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); 203f590: c4 00 80 00 ld [ %g2 ], %g2 if ( fd2 ) 203f594: 80 a0 a0 00 cmp %g2, 0 203f598: 02 80 00 09 be 203f5bc <== ALWAYS TAKEN 203f59c: 80 a0 80 01 cmp %g2, %g1 diop = rtems_libio_iop( fd2 ); 203f5a0: 1a 80 00 0c bcc 203f5d0 <== NOT EXECUTED 203f5a4: a2 10 20 00 clr %l1 <== NOT EXECUTED 203f5a8: 83 28 a0 06 sll %g2, 6, %g1 <== NOT EXECUTED 203f5ac: a3 28 a0 03 sll %g2, 3, %l1 <== NOT EXECUTED 203f5b0: a2 04 40 01 add %l1, %g1, %l1 <== NOT EXECUTED 203f5b4: 10 80 00 07 b 203f5d0 <== NOT EXECUTED 203f5b8: a2 00 c0 11 add %g3, %l1, %l1 <== NOT EXECUTED else { /* allocate a file control block */ diop = rtems_libio_allocate(); 203f5bc: 7f ff 24 45 call 20086d0 203f5c0: b0 10 3f ff mov -1, %i0 if ( diop == 0 ) { 203f5c4: a2 92 20 00 orcc %o0, 0, %l1 203f5c8: 02 80 00 4d be 203f6fc <== NEVER TAKEN 203f5cc: 01 00 00 00 nop break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; 203f5d0: c4 04 20 3c ld [ %l0 + 0x3c ], %g2 diop->flags = iop->flags; 203f5d4: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 ret = -1; break; } } diop->handlers = iop->handlers; 203f5d8: c6 04 20 40 ld [ %l0 + 0x40 ], %g3 diop->file_info = iop->file_info; 203f5dc: c4 24 60 3c st %g2, [ %l1 + 0x3c ] diop->flags = iop->flags; 203f5e0: c2 24 60 18 st %g1, [ %l1 + 0x18 ] ret = -1; break; } } diop->handlers = iop->handlers; 203f5e4: c6 24 60 40 st %g3, [ %l1 + 0x40 ] diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 203f5e8: 90 04 60 1c add %l1, 0x1c, %o0 203f5ec: 92 04 20 1c add %l0, 0x1c, %o1 203f5f0: 40 00 1a da call 2046158 203f5f4: 94 10 20 14 mov 0x14, %o2 ret = (int) (diop - rtems_libio_iops); 203f5f8: 03 00 81 b4 sethi %hi(0x206d000), %g1 203f5fc: f0 00 61 e4 ld [ %g1 + 0x1e4 ], %i0 ! 206d1e4 203f600: a2 24 40 18 sub %l1, %i0, %l1 203f604: a3 3c 60 03 sra %l1, 3, %l1 203f608: 85 2c 60 06 sll %l1, 6, %g2 203f60c: 83 2c 60 03 sll %l1, 3, %g1 203f610: 82 20 80 01 sub %g2, %g1, %g1 203f614: 85 28 60 06 sll %g1, 6, %g2 203f618: 82 00 40 02 add %g1, %g2, %g1 203f61c: 82 00 40 11 add %g1, %l1, %g1 203f620: b1 28 60 0f sll %g1, 0xf, %i0 203f624: b0 26 00 01 sub %i0, %g1, %i0 203f628: b1 2e 20 03 sll %i0, 3, %i0 203f62c: 10 80 00 24 b 203f6bc 203f630: b0 06 00 11 add %i0, %l1, %i0 break; case F_GETFD: /* get f_flags */ ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0); 203f634: b1 32 20 0b srl %o0, 0xb, %i0 203f638: 10 80 00 24 b 203f6c8 203f63c: 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 ) ) 203f640: c2 00 80 00 ld [ %g2 ], %g1 203f644: 80 a0 60 00 cmp %g1, 0 203f648: 22 80 00 03 be,a 203f654 <== NEVER TAKEN 203f64c: 90 0a 37 ff and %o0, -2049, %o0 <== NOT EXECUTED 203f650: 90 12 28 00 or %o0, 0x800, %o0 iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; 203f654: d0 24 20 18 st %o0, [ %l0 + 0x18 ] 203f658: 10 80 00 1c b 203f6c8 203f65c: b0 10 20 00 clr %i0 break; case F_GETFL: /* more flags (cloexec) */ ret = rtems_libio_to_fcntl_flags( iop->flags ); 203f660: 7f ff 23 b1 call 2008524 203f664: 01 00 00 00 nop 203f668: 10 80 00 15 b 203f6bc 203f66c: b0 10 00 08 mov %o0, %i0 break; case F_SETFL: flags = rtems_libio_fcntl_flags( va_arg( ap, int ) ); 203f670: d0 00 80 00 ld [ %g2 ], %o0 203f674: 7f ff 24 4b call 20087a0 203f678: 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); 203f67c: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 203f680: 90 0a 22 01 and %o0, 0x201, %o0 203f684: 82 08 7d fe and %g1, -514, %g1 203f688: 82 12 00 01 or %o0, %g1, %g1 203f68c: 10 80 00 0f b 203f6c8 203f690: c2 24 20 18 st %g1, [ %l0 + 0x18 ] errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP; 203f694: 40 00 0d 65 call 2042c28 <__errno> 203f698: b0 10 3f ff mov -1, %i0 203f69c: 10 80 00 05 b 203f6b0 203f6a0: 82 10 20 86 mov 0x86, %g1 ret = -1; break; default: errno = EINVAL; 203f6a4: 40 00 0d 61 call 2042c28 <__errno> 203f6a8: b0 10 3f ff mov -1, %i0 203f6ac: 82 10 20 16 mov 0x16, %g1 203f6b0: c2 22 00 00 st %g1, [ %o0 ] 203f6b4: 81 c7 e0 08 ret 203f6b8: 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) { 203f6bc: 80 a6 20 00 cmp %i0, 0 203f6c0: 06 80 00 0f bl 203f6fc <== NEVER TAKEN 203f6c4: 01 00 00 00 nop if (iop->handlers->fcntl_h) { 203f6c8: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 203f6cc: c2 00 60 30 ld [ %g1 + 0x30 ], %g1 203f6d0: 80 a0 60 00 cmp %g1, 0 203f6d4: 02 bf ff f8 be 203f6b4 <== NEVER TAKEN 203f6d8: 92 10 00 10 mov %l0, %o1 int err = (*iop->handlers->fcntl_h)( cmd, iop ); 203f6dc: 9f c0 40 00 call %g1 203f6e0: 90 10 00 19 mov %i1, %o0 if (err) { 203f6e4: a0 92 20 00 orcc %o0, 0, %l0 203f6e8: 02 80 00 05 be 203f6fc <== ALWAYS TAKEN 203f6ec: 01 00 00 00 nop errno = err; 203f6f0: 40 00 0d 4e call 2042c28 <__errno> <== NOT EXECUTED 203f6f4: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 203f6f8: 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; } 203f6fc: 81 c7 e0 08 ret 203f700: 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 78 sethi %hi(0x201e000), %g1 2003728: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 ! 201e014 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 7a sethi %hi(0x201e800), %g1 200373c: d0 00 61 ac ld [ %g1 + 0x1ac ], %o0 ! 201e9ac 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 34 70 call 2010928 <__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 34 68 call 2010928 <__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 =============================================================================== 0200a628 : */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 200a628: 9d e3 bf 98 save %sp, -104, %sp ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 200a62c: 03 00 80 72 sethi %hi(0x201c800), %g1 200a630: d0 00 60 cc ld [ %g1 + 0xcc ], %o0 ! 201c8cc */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 200a634: a0 10 00 18 mov %i0, %l0 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 200a638: 92 10 20 00 clr %o1 200a63c: 94 10 20 00 clr %o2 200a640: 7f ff ef 41 call 2006344 200a644: b0 10 3f fc mov -4, %i0 200a648: 80 a2 20 00 cmp %o0, 0 200a64c: 12 80 00 da bne 200a9b4 <== ALWAYS TAKEN 200a650: 01 00 00 00 nop RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL) return -EINTR; pipe = *pipep; 200a654: e2 04 00 00 ld [ %l0 ], %l1 <== NOT EXECUTED if (pipe == NULL) { 200a658: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 200a65c: 32 80 00 45 bne,a 200a770 <== NOT EXECUTED 200a660: 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)); 200a664: 7f ff e2 05 call 2002e78 <== NOT EXECUTED 200a668: 90 10 20 34 mov 0x34, %o0 <== NOT EXECUTED if (pipe == NULL) 200a66c: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED 200a670: 02 80 00 3d be 200a764 <== NOT EXECUTED 200a674: a6 10 00 11 mov %l1, %l3 <== NOT EXECUTED return err; memset(pipe, 0, sizeof(pipe_control_t)); 200a678: 92 10 20 00 clr %o1 <== NOT EXECUTED 200a67c: 40 00 16 23 call 200ff08 <== NOT EXECUTED 200a680: 94 10 20 34 mov 0x34, %o2 <== NOT EXECUTED pipe->Size = PIPE_BUF; 200a684: 82 10 22 00 mov 0x200, %g1 <== NOT EXECUTED pipe->Buffer = malloc(pipe->Size); 200a688: 90 10 22 00 mov 0x200, %o0 <== NOT EXECUTED 200a68c: 7f ff e1 fb call 2002e78 <== NOT EXECUTED 200a690: c2 24 60 04 st %g1, [ %l1 + 4 ] <== NOT EXECUTED if (! pipe->Buffer) 200a694: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200a698: 02 80 00 31 be 200a75c <== NOT EXECUTED 200a69c: d0 24 40 00 st %o0, [ %l1 ] <== NOT EXECUTED goto err_buf; err = -ENOMEM; if (rtems_barrier_create( 200a6a0: 25 00 80 70 sethi %hi(0x201c000), %l2 <== NOT EXECUTED 200a6a4: d0 4c a2 84 ldsb [ %l2 + 0x284 ], %o0 ! 201c284 <== NOT EXECUTED 200a6a8: 29 14 12 5c sethi %hi(0x50497000), %l4 <== NOT EXECUTED 200a6ac: 82 15 22 00 or %l4, 0x200, %g1 ! 50497200 <== NOT EXECUTED 200a6b0: 92 10 20 00 clr %o1 <== NOT EXECUTED 200a6b4: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 200a6b8: 94 10 20 00 clr %o2 <== NOT EXECUTED 200a6bc: 40 00 07 74 call 200c48c <== NOT EXECUTED 200a6c0: 96 04 60 2c add %l1, 0x2c, %o3 <== NOT EXECUTED 200a6c4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200a6c8: 12 80 00 23 bne 200a754 <== NOT EXECUTED 200a6cc: d0 4c a2 84 ldsb [ %l2 + 0x284 ], %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( 200a6d0: 03 14 12 5d sethi %hi(0x50497400), %g1 <== NOT EXECUTED 200a6d4: 82 10 63 00 or %g1, 0x300, %g1 ! 50497700 <== NOT EXECUTED 200a6d8: 92 10 20 00 clr %o1 <== NOT EXECUTED 200a6dc: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 200a6e0: 94 10 20 00 clr %o2 <== NOT EXECUTED 200a6e4: 40 00 07 6a call 200c48c <== NOT EXECUTED 200a6e8: 96 04 60 30 add %l1, 0x30, %o3 <== NOT EXECUTED 200a6ec: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200a6f0: 12 80 00 17 bne 200a74c <== NOT EXECUTED 200a6f4: d0 4c a2 84 ldsb [ %l2 + 0x284 ], %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( 200a6f8: a8 15 23 00 or %l4, 0x300, %l4 <== NOT EXECUTED 200a6fc: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 200a700: 90 12 00 14 or %o0, %l4, %o0 <== NOT EXECUTED 200a704: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 200a708: 96 10 20 00 clr %o3 <== NOT EXECUTED 200a70c: 7f ff ee 6c call 20060bc <== NOT EXECUTED 200a710: 98 04 60 28 add %l1, 0x28, %o4 <== NOT EXECUTED 200a714: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200a718: 12 80 00 0b bne 200a744 <== NOT EXECUTED 200a71c: c2 0c a2 84 ldub [ %l2 + 0x284 ], %g1 <== NOT EXECUTED #ifdef RTEMS_POSIX_API pipe_interruptible(pipe); #endif *pipep = pipe; if (c ++ == 'z') 200a720: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED 200a724: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED 200a728: 83 38 60 18 sra %g1, 0x18, %g1 <== NOT EXECUTED 200a72c: 80 a0 60 7a cmp %g1, 0x7a <== NOT EXECUTED 200a730: 12 80 00 0f bne 200a76c <== NOT EXECUTED 200a734: c4 2c a2 84 stb %g2, [ %l2 + 0x284 ] <== NOT EXECUTED c = 'a'; 200a738: 82 10 20 61 mov 0x61, %g1 <== NOT EXECUTED 200a73c: 10 80 00 0c b 200a76c <== NOT EXECUTED 200a740: c2 2c a2 84 stb %g1, [ %l2 + 0x284 ] <== NOT EXECUTED return 0; err_sem: rtems_barrier_delete(pipe->writeBarrier); 200a744: 40 00 07 80 call 200c544 <== NOT EXECUTED 200a748: d0 04 60 30 ld [ %l1 + 0x30 ], %o0 <== NOT EXECUTED err_wbar: rtems_barrier_delete(pipe->readBarrier); 200a74c: 40 00 07 7e call 200c544 <== NOT EXECUTED 200a750: d0 04 e0 2c ld [ %l3 + 0x2c ], %o0 <== NOT EXECUTED err_rbar: free(pipe->Buffer); 200a754: 7f ff e0 ea call 2002afc <== NOT EXECUTED 200a758: d0 04 c0 00 ld [ %l3 ], %o0 <== NOT EXECUTED err_buf: free(pipe); 200a75c: 7f ff e0 e8 call 2002afc <== NOT EXECUTED 200a760: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 200a764: 10 80 00 14 b 200a7b4 <== NOT EXECUTED 200a768: b0 10 3f f4 mov -12, %i0 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 200a76c: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED 200a770: 92 10 20 00 clr %o1 <== NOT EXECUTED 200a774: 7f ff ee f4 call 2006344 <== NOT EXECUTED 200a778: 94 10 20 00 clr %o2 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 200a77c: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 200a780: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED 200a784: b0 40 3f ff addx %g0, -1, %i0 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 200a788: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 200a78c: b0 0e 20 04 and %i0, 4, %i0 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 200a790: 12 80 00 09 bne 200a7b4 <== NOT EXECUTED 200a794: b0 06 3f fc add %i0, -4, %i0 <== NOT EXECUTED if (err) 200a798: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200a79c: 22 80 00 06 be,a 200a7b4 <== NOT EXECUTED 200a7a0: e2 24 00 00 st %l1, [ %l0 ] <== NOT EXECUTED pipe_free(pipe); 200a7a4: 7f ff ff 51 call 200a4e8 <== NOT EXECUTED 200a7a8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 200a7ac: 10 80 00 03 b 200a7b8 <== NOT EXECUTED 200a7b0: 03 00 80 72 sethi %hi(0x201c800), %g1 <== NOT EXECUTED 200a7b4: 03 00 80 72 sethi %hi(0x201c800), %g1 <== NOT EXECUTED 200a7b8: 7f ff ef 2a call 2006460 <== NOT EXECUTED 200a7bc: d0 00 60 cc ld [ %g1 + 0xcc ], %o0 ! 201c8cc <== NOT EXECUTED pipe_control_t *pipe; unsigned int prevCounter; int err; err = pipe_new(pipep); if (err) 200a7c0: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200a7c4: 12 80 00 7c bne 200a9b4 <== NOT EXECUTED 200a7c8: 01 00 00 00 nop <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { 200a7cc: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED 200a7d0: 82 08 60 06 and %g1, 6, %g1 <== NOT EXECUTED 200a7d4: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED 200a7d8: 02 80 00 2e be 200a890 <== NOT EXECUTED 200a7dc: e2 04 00 00 ld [ %l0 ], %l1 <== NOT EXECUTED 200a7e0: 80 a0 60 06 cmp %g1, 6 <== NOT EXECUTED 200a7e4: 02 80 00 56 be 200a93c <== NOT EXECUTED 200a7e8: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 200a7ec: 12 80 00 6a bne 200a994 <== NOT EXECUTED 200a7f0: 01 00 00 00 nop <== NOT EXECUTED case LIBIO_FLAGS_READ: pipe->readerCounter ++; if (pipe->Readers ++ == 0) 200a7f4: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; 200a7f8: c4 04 60 20 ld [ %l1 + 0x20 ], %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 200a7fc: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; 200a800: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 200a804: c6 24 60 10 st %g3, [ %l1 + 0x10 ] <== NOT EXECUTED 200a808: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200a80c: 12 80 00 05 bne 200a820 <== NOT EXECUTED 200a810: c4 24 60 20 st %g2, [ %l1 + 0x20 ] <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); 200a814: d0 04 60 30 ld [ %l1 + 0x30 ], %o0 <== NOT EXECUTED 200a818: 40 00 07 65 call 200c5ac <== NOT EXECUTED 200a81c: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED if (pipe->Writers == 0) { 200a820: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 200a824: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200a828: 12 80 00 5b bne 200a994 <== NOT EXECUTED 200a82c: 01 00 00 00 nop <== NOT EXECUTED /* Not an error */ if (LIBIO_NODELAY(iop)) 200a830: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED 200a834: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 200a838: 12 80 00 57 bne 200a994 <== NOT EXECUTED 200a83c: 01 00 00 00 nop <== NOT EXECUTED break; prevCounter = pipe->writerCounter; 200a840: e4 04 60 24 ld [ %l1 + 0x24 ], %l2 <== NOT EXECUTED err = -EINTR; /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); 200a844: 7f ff ef 07 call 2006460 <== NOT EXECUTED 200a848: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 200a84c: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED 200a850: 40 00 07 6e call 200c608 <== NOT EXECUTED 200a854: 92 10 20 00 clr %o1 <== NOT EXECUTED 200a858: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200a85c: 12 80 00 52 bne 200a9a4 <== NOT EXECUTED 200a860: 92 10 20 00 clr %o1 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) 200a864: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED 200a868: 7f ff ee b7 call 2006344 <== NOT EXECUTED 200a86c: 94 10 20 00 clr %o2 <== NOT EXECUTED 200a870: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200a874: 32 80 00 4d bne,a 200a9a8 <== NOT EXECUTED 200a878: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->writerCounter); 200a87c: c2 04 60 24 ld [ %l1 + 0x24 ], %g1 <== NOT EXECUTED 200a880: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED 200a884: 02 bf ff f0 be 200a844 <== NOT EXECUTED 200a888: 01 00 00 00 nop <== NOT EXECUTED 200a88c: 30 80 00 42 b,a 200a994 <== NOT EXECUTED break; case LIBIO_FLAGS_WRITE: pipe->writerCounter ++; if (pipe->Writers ++ == 0) 200a890: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED } while (prevCounter == pipe->writerCounter); } break; case LIBIO_FLAGS_WRITE: pipe->writerCounter ++; 200a894: c4 04 60 24 ld [ %l1 + 0x24 ], %g2 <== NOT EXECUTED if (pipe->Writers ++ == 0) 200a898: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED } while (prevCounter == pipe->writerCounter); } break; case LIBIO_FLAGS_WRITE: pipe->writerCounter ++; 200a89c: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Writers ++ == 0) 200a8a0: c6 24 60 14 st %g3, [ %l1 + 0x14 ] <== NOT EXECUTED 200a8a4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200a8a8: 12 80 00 05 bne 200a8bc <== NOT EXECUTED 200a8ac: c4 24 60 24 st %g2, [ %l1 + 0x24 ] <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 200a8b0: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED 200a8b4: 40 00 07 3e call 200c5ac <== NOT EXECUTED 200a8b8: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { 200a8bc: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED 200a8c0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200a8c4: 12 80 00 34 bne 200a994 <== NOT EXECUTED 200a8c8: 01 00 00 00 nop <== NOT EXECUTED 200a8cc: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED 200a8d0: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 200a8d4: 22 80 00 07 be,a 200a8f0 <== NOT EXECUTED 200a8d8: e4 04 60 20 ld [ %l1 + 0x20 ], %l2 <== NOT EXECUTED PIPE_UNLOCK(pipe); 200a8dc: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED 200a8e0: 7f ff ee e0 call 2006460 <== NOT EXECUTED 200a8e4: b0 10 3f fa mov -6, %i0 <== NOT EXECUTED err = -ENXIO; goto out_error; 200a8e8: 10 80 00 31 b 200a9ac <== NOT EXECUTED 200a8ec: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if (pipe->Readers == 0) { prevCounter = pipe->readerCounter; err = -EINTR; do { PIPE_UNLOCK(pipe); 200a8f0: 7f ff ee dc call 2006460 <== NOT EXECUTED 200a8f4: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 200a8f8: d0 04 60 30 ld [ %l1 + 0x30 ], %o0 <== NOT EXECUTED 200a8fc: 40 00 07 43 call 200c608 <== NOT EXECUTED 200a900: 92 10 20 00 clr %o1 <== NOT EXECUTED 200a904: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200a908: 12 80 00 27 bne 200a9a4 <== NOT EXECUTED 200a90c: 92 10 20 00 clr %o1 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) 200a910: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED 200a914: 7f ff ee 8c call 2006344 <== NOT EXECUTED 200a918: 94 10 20 00 clr %o2 <== NOT EXECUTED 200a91c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200a920: 32 80 00 22 bne,a 200a9a8 <== NOT EXECUTED 200a924: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->readerCounter); 200a928: c2 04 60 20 ld [ %l1 + 0x20 ], %g1 <== NOT EXECUTED 200a92c: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED 200a930: 02 bf ff f0 be 200a8f0 <== NOT EXECUTED 200a934: 01 00 00 00 nop <== NOT EXECUTED 200a938: 30 80 00 17 b,a 200a994 <== NOT EXECUTED } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) 200a93c: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; 200a940: c4 04 60 20 ld [ %l1 + 0x20 ], %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 200a944: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; 200a948: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 200a94c: c6 24 60 10 st %g3, [ %l1 + 0x10 ] <== NOT EXECUTED 200a950: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200a954: 12 80 00 05 bne 200a968 <== NOT EXECUTED 200a958: c4 24 60 20 st %g2, [ %l1 + 0x20 ] <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); 200a95c: d0 04 60 30 ld [ %l1 + 0x30 ], %o0 <== NOT EXECUTED 200a960: 40 00 07 13 call 200c5ac <== NOT EXECUTED 200a964: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED pipe->writerCounter ++; if (pipe->Writers ++ == 0) 200a968: 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 ++; 200a96c: c4 04 60 24 ld [ %l1 + 0x24 ], %g2 <== NOT EXECUTED if (pipe->Writers ++ == 0) 200a970: 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 ++; 200a974: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Writers ++ == 0) 200a978: c6 24 60 14 st %g3, [ %l1 + 0x14 ] <== NOT EXECUTED 200a97c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200a980: 12 80 00 05 bne 200a994 <== NOT EXECUTED 200a984: c4 24 60 24 st %g2, [ %l1 + 0x24 ] <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 200a988: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED 200a98c: 40 00 07 08 call 200c5ac <== NOT EXECUTED 200a990: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED break; } PIPE_UNLOCK(pipe); 200a994: 7f ff ee b3 call 2006460 <== NOT EXECUTED 200a998: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED return 0; 200a99c: 81 c7 e0 08 ret <== NOT EXECUTED 200a9a0: 81 e8 00 00 restore <== NOT EXECUTED 200a9a4: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED out_error: pipe_release(pipep, iop); 200a9a8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 200a9ac: 7f ff fe db call 200a518 <== NOT EXECUTED 200a9b0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED return err; } 200a9b4: 81 c7 e0 08 ret 200a9b8: 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 78 sethi %hi(0x201e000), %g1 20037e8: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 ! 201e014 20037ec: 80 a6 00 01 cmp %i0, %g1 20037f0: 1a 80 00 0b bcc 200381c 20037f4: 03 00 80 7a sethi %hi(0x201e800), %g1 iop = rtems_libio_iop(fd); 20037f8: c2 00 61 ac ld [ %g1 + 0x1ac ], %g1 ! 201e9ac 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 34 43 call 2010928 <__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 34 11 call 2010928 <__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 72 sethi %hi(0x201c800), %g1 2002b04: 82 10 62 60 or %g1, 0x260, %g1 ! 201ca60 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 73 sethi %hi(0x201cc00), %g1 2002b24: c2 00 61 c0 ld [ %g1 + 0x1c0 ], %g1 ! 201cdc0 <_System_state_Current> 2002b28: 80 a0 60 03 cmp %g1, 3 2002b2c: 12 80 00 09 bne 2002b50 <== NEVER TAKEN 2002b30: 03 00 80 71 sethi %hi(0x201c400), %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 71 sethi %hi(0x201c400), %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 63 a8 ld [ %g1 + 0x3a8 ], %g1 2002b54: 80 a0 60 00 cmp %g1, 0 2002b58: 02 80 00 06 be 2002b70 <== ALWAYS TAKEN 2002b5c: 21 00 80 70 sethi %hi(0x201c000), %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 70 sethi %hi(0x201c000), %l0 <== NOT EXECUTED 2002b70: d0 04 20 c0 ld [ %l0 + 0xc0 ], %o0 ! 201c0c0 2002b74: 40 00 14 d4 call 2007ec4 <_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 20 c0 ld [ %l0 + 0xc0 ], %g1 printk( "Program heap: free of bad pointer %p -- range %p - %p \n", 2002b88: 31 00 80 6b sethi %hi(0x201ac00), %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 a8 restore %i0, 0x3a8, %o0 <== NOT EXECUTED 2002b9c: 81 c7 e0 08 ret 2002ba0: 81 e8 00 00 restore =============================================================================== 02029f14 : * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { 2029f14: 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 2029f18: 03 00 81 b4 sethi %hi(0x206d000), %g1 <== NOT EXECUTED 2029f1c: 82 10 62 3c or %g1, 0x23c, %g1 ! 206d23c <== NOT EXECUTED 2029f20: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 2029f24: 02 80 00 18 be 2029f84 <== NOT EXECUTED 2029f28: 01 00 00 00 nop <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); 2029f2c: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED 2029f30: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029f34: 22 80 00 09 be,a 2029f58 <== NOT EXECUTED 2029f38: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED 2029f3c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2029f40: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029f44: 22 80 00 05 be,a 2029f58 <== NOT EXECUTED 2029f48: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED 2029f4c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2029f50: 90 06 20 04 add %i0, 4, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); 2029f54: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED 2029f58: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029f5c: 02 80 00 08 be 2029f7c <== NOT EXECUTED 2029f60: 01 00 00 00 nop <== NOT EXECUTED 2029f64: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2029f68: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029f6c: 02 80 00 04 be 2029f7c <== NOT EXECUTED 2029f70: 01 00 00 00 nop <== NOT EXECUTED 2029f74: 9f c0 40 00 call %g1 <== NOT EXECUTED 2029f78: 90 06 20 18 add %i0, 0x18, %o0 <== NOT EXECUTED free(env); 2029f7c: 7f ff 78 b9 call 2008260 <== NOT EXECUTED 2029f80: 81 e8 00 00 restore <== NOT EXECUTED 2029f84: 81 c7 e0 08 ret <== NOT EXECUTED 2029f88: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02019ec0 : int fstat( int fd, struct stat *sbuf ) { 2019ec0: 9d e3 bf a0 save %sp, -96, %sp /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) 2019ec4: 80 a6 60 00 cmp %i1, 0 2019ec8: 32 80 00 06 bne,a 2019ee0 2019ecc: 03 00 80 70 sethi %hi(0x201c000), %g1 rtems_set_errno_and_return_minus_one( EFAULT ); 2019ed0: 7f ff d5 93 call 200f51c <__errno> 2019ed4: 01 00 00 00 nop 2019ed8: 10 80 00 12 b 2019f20 2019edc: 82 10 20 0e mov 0xe, %g1 ! e /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); 2019ee0: c2 00 60 b4 ld [ %g1 + 0xb4 ], %g1 2019ee4: 80 a6 00 01 cmp %i0, %g1 2019ee8: 1a 80 00 0b bcc 2019f14 2019eec: 03 00 80 72 sethi %hi(0x201c800), %g1 2019ef0: c2 00 62 48 ld [ %g1 + 0x248 ], %g1 ! 201ca48 2019ef4: 85 2e 20 06 sll %i0, 6, %g2 2019ef8: b1 2e 20 03 sll %i0, 3, %i0 2019efc: b0 06 00 02 add %i0, %g2, %i0 2019f00: b0 00 40 18 add %g1, %i0, %i0 rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); 2019f04: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 2019f08: 80 88 61 00 btst 0x100, %g1 2019f0c: 32 80 00 08 bne,a 2019f2c <== ALWAYS TAKEN 2019f10: c2 06 20 40 ld [ %i0 + 0x40 ], %g1 /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); rtems_libio_check_fd( fd ); 2019f14: 7f ff d5 82 call 200f51c <__errno> 2019f18: 01 00 00 00 nop 2019f1c: 82 10 20 09 mov 9, %g1 ! 9 2019f20: c2 22 00 00 st %g1, [ %o0 ] 2019f24: 10 80 00 15 b 2019f78 2019f28: 90 10 3f ff mov -1, %o0 rtems_libio_check_is_open(iop); if ( !iop->handlers ) 2019f2c: 80 a0 60 00 cmp %g1, 0 2019f30: 02 bf ff f9 be 2019f14 <== NEVER TAKEN 2019f34: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h ) 2019f38: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 2019f3c: 80 a0 60 00 cmp %g1, 0 2019f40: 12 80 00 06 bne 2019f58 <== ALWAYS TAKEN 2019f44: 92 10 20 00 clr %o1 rtems_set_errno_and_return_minus_one( ENOTSUP ); 2019f48: 7f ff d5 75 call 200f51c <__errno> <== NOT EXECUTED 2019f4c: 01 00 00 00 nop <== NOT EXECUTED 2019f50: 10 bf ff f4 b 2019f20 <== NOT EXECUTED 2019f54: 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) ); 2019f58: 94 10 20 48 mov 0x48, %o2 2019f5c: 7f ff d7 eb call 200ff08 2019f60: 90 10 00 19 mov %i1, %o0 return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); 2019f64: c2 06 20 40 ld [ %i0 + 0x40 ], %g1 2019f68: 90 06 20 1c add %i0, 0x1c, %o0 2019f6c: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 2019f70: 9f c0 40 00 call %g1 2019f74: 92 10 00 19 mov %i1, %o1 } 2019f78: 81 c7 e0 08 ret 2019f7c: 91 e8 00 08 restore %g0, %o0, %o0 =============================================================================== 02028ab8 : #include int fsync( int fd ) { 2028ab8: 9d e3 bf a0 save %sp, -96, %sp rtems_libio_t *iop; rtems_libio_check_fd( fd ); 2028abc: 03 00 81 a4 sethi %hi(0x2069000), %g1 2028ac0: c2 00 60 04 ld [ %g1 + 4 ], %g1 ! 2069004 2028ac4: 80 a6 00 01 cmp %i0, %g1 2028ac8: 1a 80 00 10 bcc 2028b08 <== NEVER TAKEN 2028acc: 01 00 00 00 nop iop = rtems_libio_iop( fd ); 2028ad0: 03 00 81 b4 sethi %hi(0x206d000), %g1 2028ad4: d0 00 61 e4 ld [ %g1 + 0x1e4 ], %o0 ! 206d1e4 2028ad8: 83 2e 20 06 sll %i0, 6, %g1 2028adc: b1 2e 20 03 sll %i0, 3, %i0 2028ae0: b0 06 00 01 add %i0, %g1, %i0 2028ae4: 90 02 00 18 add %o0, %i0, %o0 rtems_libio_check_is_open(iop); 2028ae8: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 2028aec: 80 88 61 00 btst 0x100, %g1 2028af0: 02 80 00 06 be 2028b08 <== NEVER TAKEN 2028af4: 01 00 00 00 nop /* * Now process the fsync(). */ if ( !iop->handlers ) 2028af8: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 2028afc: 80 a0 60 00 cmp %g1, 0 2028b00: 32 80 00 06 bne,a 2028b18 <== ALWAYS TAKEN 2028b04: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 rtems_set_errno_and_return_minus_one( EBADF ); 2028b08: 40 00 68 48 call 2042c28 <__errno> <== NOT EXECUTED 2028b0c: 01 00 00 00 nop <== NOT EXECUTED 2028b10: 10 80 00 08 b 2028b30 <== NOT EXECUTED 2028b14: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED if ( !iop->handlers->fsync_h ) 2028b18: 80 a0 60 00 cmp %g1, 0 2028b1c: 12 80 00 08 bne 2028b3c 2028b20: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); 2028b24: 40 00 68 41 call 2042c28 <__errno> 2028b28: 01 00 00 00 nop 2028b2c: 82 10 20 86 mov 0x86, %g1 ! 86 2028b30: c2 22 00 00 st %g1, [ %o0 ] 2028b34: 10 80 00 04 b 2028b44 2028b38: 90 10 3f ff mov -1, %o0 return (*iop->handlers->fsync_h)( iop ); 2028b3c: 9f c0 40 00 call %g1 2028b40: 01 00 00 00 nop } 2028b44: 81 c7 e0 08 ret 2028b48: 91 e8 00 08 restore %g0, %o0, %o0 =============================================================================== 0200bc58 : int ftruncate( int fd, off_t length ) { 200bc58: 9d e3 bf 88 save %sp, -120, %sp rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 200bc5c: 03 00 80 70 sethi %hi(0x201c000), %g1 200bc60: c2 00 60 b4 ld [ %g1 + 0xb4 ], %g1 ! 201c0b4 200bc64: 80 a6 00 01 cmp %i0, %g1 200bc68: 1a 80 00 0b bcc 200bc94 <== NEVER TAKEN 200bc6c: 85 2e 20 06 sll %i0, 6, %g2 iop = rtems_libio_iop( fd ); 200bc70: 03 00 80 72 sethi %hi(0x201c800), %g1 200bc74: c2 00 62 48 ld [ %g1 + 0x248 ], %g1 ! 201ca48 200bc78: b1 2e 20 03 sll %i0, 3, %i0 200bc7c: b0 06 00 02 add %i0, %g2, %i0 200bc80: b0 00 40 18 add %g1, %i0, %i0 rtems_libio_check_is_open(iop); 200bc84: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 200bc88: 80 88 61 00 btst 0x100, %g1 200bc8c: 12 80 00 06 bne 200bca4 <== ALWAYS TAKEN 200bc90: 80 88 60 04 btst 4, %g1 200bc94: 40 00 0e 22 call 200f51c <__errno> <== NOT EXECUTED 200bc98: 01 00 00 00 nop <== NOT EXECUTED 200bc9c: 10 80 00 24 b 200bd2c <== NOT EXECUTED 200bca0: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 200bca4: 02 80 00 17 be 200bd00 <== NEVER TAKEN 200bca8: a0 07 bf ec add %fp, -20, %l0 /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 200bcac: 92 06 20 1c add %i0, 0x1c, %o1 200bcb0: 90 10 00 10 mov %l0, %o0 200bcb4: 40 00 10 56 call 200fe0c 200bcb8: 94 10 20 14 mov 0x14, %o2 if ( !loc.ops->node_type_h ) 200bcbc: c2 07 bf f8 ld [ %fp + -8 ], %g1 200bcc0: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 200bcc4: 80 a0 60 00 cmp %g1, 0 200bcc8: 02 80 00 16 be 200bd20 <== NEVER TAKEN 200bccc: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) 200bcd0: 9f c0 40 00 call %g1 200bcd4: 90 10 00 10 mov %l0, %o0 200bcd8: 80 a2 20 01 cmp %o0, 1 200bcdc: 32 80 00 06 bne,a 200bcf4 200bce0: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 rtems_set_errno_and_return_minus_one( EISDIR ); 200bce4: 40 00 0e 0e call 200f51c <__errno> 200bce8: 01 00 00 00 nop 200bcec: 10 80 00 10 b 200bd2c 200bcf0: 82 10 20 15 mov 0x15, %g1 ! 15 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 200bcf4: 80 88 60 04 btst 4, %g1 200bcf8: 32 80 00 06 bne,a 200bd10 <== ALWAYS TAKEN 200bcfc: c2 06 20 40 ld [ %i0 + 0x40 ], %g1 200bd00: 40 00 0e 07 call 200f51c <__errno> <== NOT EXECUTED 200bd04: 01 00 00 00 nop <== NOT EXECUTED 200bd08: 10 80 00 09 b 200bd2c <== NOT EXECUTED 200bd0c: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) 200bd10: c2 00 60 20 ld [ %g1 + 0x20 ], %g1 200bd14: 80 a0 60 00 cmp %g1, 0 200bd18: 32 80 00 08 bne,a 200bd38 <== ALWAYS TAKEN 200bd1c: 90 10 00 18 mov %i0, %o0 rtems_set_errno_and_return_minus_one( ENOTSUP ); 200bd20: 40 00 0d ff call 200f51c <__errno> <== NOT EXECUTED 200bd24: 01 00 00 00 nop <== NOT EXECUTED 200bd28: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 200bd2c: c2 22 00 00 st %g1, [ %o0 ] 200bd30: 10 80 00 05 b 200bd44 200bd34: 90 10 3f ff mov -1, %o0 return (*iop->handlers->ftruncate_h)( iop, length ); 200bd38: 92 10 00 19 mov %i1, %o1 200bd3c: 9f c0 40 00 call %g1 200bd40: 94 10 00 1a mov %i2, %o2 } 200bd44: 81 c7 e0 08 ret 200bd48: 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 81 sethi %hi(0x2020400), %g1 2002814: c2 00 60 d0 ld [ %g1 + 0xd0 ], %g1 ! 20204d0 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 81 sethi %hi(0x2020400), %g1 2002828: c2 00 60 cc ld [ %g1 + 0xcc ], %g1 ! 20204cc 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 =============================================================================== 0205c74c : int getdents( int dd_fd, char *dd_buf, int dd_len ) { 205c74c: 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 ); 205c750: 03 00 81 a4 sethi %hi(0x2069000), %g1 205c754: c2 00 60 04 ld [ %g1 + 4 ], %g1 ! 2069004 205c758: 80 a6 00 01 cmp %i0, %g1 205c75c: 1a 80 00 08 bcc 205c77c <== NEVER TAKEN 205c760: a0 10 20 00 clr %l0 205c764: 03 00 81 b4 sethi %hi(0x206d000), %g1 205c768: e0 00 61 e4 ld [ %g1 + 0x1e4 ], %l0 ! 206d1e4 205c76c: 83 2e 20 06 sll %i0, 6, %g1 205c770: b1 2e 20 03 sll %i0, 3, %i0 205c774: b0 06 00 01 add %i0, %g1, %i0 205c778: a0 04 00 18 add %l0, %i0, %l0 /* * Make sure we are working on a directory */ loc = iop->pathinfo; 205c77c: a2 07 bf ec add %fp, -20, %l1 205c780: 92 04 20 1c add %l0, 0x1c, %o1 205c784: 90 10 00 11 mov %l1, %o0 205c788: 7f ff a6 74 call 2046158 205c78c: 94 10 20 14 mov 0x14, %o2 if ( !loc.ops->node_type_h ) 205c790: c2 07 bf f8 ld [ %fp + -8 ], %g1 205c794: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 205c798: 80 a0 60 00 cmp %g1, 0 205c79c: 02 80 00 11 be 205c7e0 <== NEVER TAKEN 205c7a0: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) 205c7a4: 9f c0 40 00 call %g1 205c7a8: 90 10 00 11 mov %l1, %o0 205c7ac: 80 a2 20 01 cmp %o0, 1 205c7b0: 22 80 00 08 be,a 205c7d0 205c7b4: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 rtems_set_errno_and_return_minus_one( ENOTDIR ); 205c7b8: 7f ff 99 1c call 2042c28 <__errno> 205c7bc: 01 00 00 00 nop 205c7c0: 82 10 20 14 mov 0x14, %g1 ! 14 205c7c4: c2 22 00 00 st %g1, [ %o0 ] 205c7c8: 10 80 00 0d b 205c7fc 205c7cc: 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 ) 205c7d0: c2 00 60 08 ld [ %g1 + 8 ], %g1 205c7d4: 80 a0 60 00 cmp %g1, 0 205c7d8: 32 80 00 06 bne,a 205c7f0 <== ALWAYS TAKEN 205c7dc: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( ENOTSUP ); 205c7e0: 7f ff 99 12 call 2042c28 <__errno> <== NOT EXECUTED 205c7e4: 01 00 00 00 nop <== NOT EXECUTED 205c7e8: 10 bf ff f7 b 205c7c4 <== NOT EXECUTED 205c7ec: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); 205c7f0: 92 10 00 19 mov %i1, %o1 205c7f4: 9f c0 40 00 call %g1 205c7f8: 94 10 00 1a mov %i2, %o2 } 205c7fc: 81 c7 e0 08 ret 205c800: 91 e8 00 08 restore %g0, %o0, %o0 =============================================================================== 02028c60 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getgid( void ) { 2028c60: 03 00 81 a5 sethi %hi(0x2069400), %g1 <== NOT EXECUTED 2028c64: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 ! 2069434 <== NOT EXECUTED return _POSIX_types_Gid; } 2028c68: 81 c3 e0 08 retl <== NOT EXECUTED 2028c6c: d0 10 60 34 lduh [ %g1 + 0x34 ], %o0 <== NOT EXECUTED =============================================================================== 020292dc : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 20292dc: 9d e3 bf a0 save %sp, -96, %sp FILE *fp; int match; init_etc_passwd_group(); 20292e0: 7f ff ff b6 call 20291b8 20292e4: 01 00 00 00 nop if ((fp = fopen("/etc/group", "r")) == NULL) { 20292e8: 11 00 81 8d sethi %hi(0x2063400), %o0 20292ec: 13 00 81 8d sethi %hi(0x2063400), %o1 20292f0: 90 12 22 a8 or %o0, 0x2a8, %o0 20292f4: 40 00 68 f5 call 20436c8 20292f8: 92 12 62 30 or %o1, 0x230, %o1 20292fc: a0 92 20 00 orcc %o0, 0, %l0 2029300: 12 80 00 08 bne 2029320 <== ALWAYS TAKEN 2029304: 92 10 00 1a mov %i2, %o1 errno = EINVAL; 2029308: 40 00 66 48 call 2042c28 <__errno> <== NOT EXECUTED 202930c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2029310: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2029314: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2029318: 81 c7 e0 08 ret <== NOT EXECUTED 202931c: 81 e8 00 00 restore <== NOT EXECUTED return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { 2029320: 94 10 00 1b mov %i3, %o2 2029324: 96 10 00 1c mov %i4, %o3 2029328: 7f ff fe ea call 2028ed0 202932c: 90 10 00 10 mov %l0, %o0 2029330: 80 a2 20 00 cmp %o0, 0 2029334: 12 80 00 0a bne 202935c <== ALWAYS TAKEN 2029338: 80 a6 20 00 cmp %i0, 0 errno = EINVAL; 202933c: 40 00 66 3b call 2042c28 <__errno> <== NOT EXECUTED 2029340: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2029344: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2029348: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED fclose(fp); 202934c: 40 00 66 8f call 2042d88 <== NOT EXECUTED 2029350: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return -1; 2029354: 81 c7 e0 08 ret <== NOT EXECUTED 2029358: 81 e8 00 00 restore <== NOT EXECUTED } if (name) { 202935c: 22 80 00 07 be,a 2029378 <== NEVER TAKEN 2029360: c2 16 a0 08 lduh [ %i2 + 8 ], %g1 <== NOT EXECUTED match = (strcmp(grp->gr_name, name) == 0); 2029364: d0 06 80 00 ld [ %i2 ], %o0 2029368: 40 00 7f d7 call 20492c4 202936c: 92 10 00 18 mov %i0, %o1 2029370: 10 80 00 04 b 2029380 2029374: 80 a0 00 08 cmp %g0, %o0 } else { match = (grp->gr_gid == gid); 2029378: 82 18 40 19 xor %g1, %i1, %g1 <== NOT EXECUTED 202937c: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED 2029380: 82 60 3f ff subx %g0, -1, %g1 } if (match) { 2029384: 80 a0 60 00 cmp %g1, 0 2029388: 02 bf ff e6 be 2029320 202938c: 92 10 00 1a mov %i2, %o1 fclose(fp); 2029390: 90 10 00 10 mov %l0, %o0 2029394: 40 00 66 7d call 2042d88 2029398: b0 10 20 00 clr %i0 *result = grp; 202939c: f4 27 40 00 st %i2, [ %i5 ] } } fclose(fp); errno = EINVAL; return -1; } 20293a0: 81 c7 e0 08 ret 20293a4: 81 e8 00 00 restore =============================================================================== 0202900c : return NULL; return p; } struct group *getgrent(void) { 202900c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (group_fp == NULL) 2029010: 03 00 81 b3 sethi %hi(0x206cc00), %g1 <== NOT EXECUTED 2029014: d0 00 62 dc ld [ %g1 + 0x2dc ], %o0 ! 206cedc <== NOT EXECUTED 2029018: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202901c: 22 80 00 0c be,a 202904c <== NOT EXECUTED 2029020: b0 10 20 00 clr %i0 <== NOT EXECUTED return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) 2029024: 31 00 81 b3 sethi %hi(0x206cc00), %i0 <== NOT EXECUTED 2029028: 15 00 81 b3 sethi %hi(0x206cc00), %o2 <== NOT EXECUTED 202902c: 92 16 23 a8 or %i0, 0x3a8, %o1 <== NOT EXECUTED 2029030: 94 12 a2 e0 or %o2, 0x2e0, %o2 <== NOT EXECUTED 2029034: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 2029038: 7f ff ff a6 call 2028ed0 <== NOT EXECUTED 202903c: b0 16 23 a8 or %i0, 0x3a8, %i0 <== NOT EXECUTED 2029040: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029044: 22 80 00 02 be,a 202904c <== NOT EXECUTED 2029048: b0 10 20 00 clr %i0 <== NOT EXECUTED return NULL; return &grent; } 202904c: 81 c7 e0 08 ret <== NOT EXECUTED 2029050: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 020293dc : } struct group *getgrgid( gid_t gid ) { 20293dc: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 20293e0: 13 00 81 b3 sethi %hi(0x206cc00), %o1 <== NOT EXECUTED 20293e4: 91 2e 20 10 sll %i0, 0x10, %o0 <== NOT EXECUTED 20293e8: 92 12 63 a8 or %o1, 0x3a8, %o1 <== NOT EXECUTED 20293ec: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED 20293f0: 15 00 81 b3 sethi %hi(0x206cc00), %o2 <== NOT EXECUTED 20293f4: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 20293f8: 94 12 a2 e0 or %o2, 0x2e0, %o2 <== NOT EXECUTED 20293fc: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED 2029400: 7f ff ff ea call 20293a8 <== NOT EXECUTED 2029404: b0 10 20 00 clr %i0 <== NOT EXECUTED 2029408: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202940c: 22 80 00 02 be,a 2029414 <== NOT EXECUTED 2029410: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED return NULL; return p; } 2029414: 81 c7 e0 08 ret <== NOT EXECUTED 2029418: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 020293a8 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 20293a8: 84 10 00 0a mov %o2, %g2 <== NOT EXECUTED 20293ac: 82 10 00 0b mov %o3, %g1 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 20293b0: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 20293b4: 9a 10 00 0c mov %o4, %o5 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 20293b8: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED 20293bc: 96 10 00 02 mov %g2, %o3 <== NOT EXECUTED 20293c0: 93 32 20 10 srl %o0, 0x10, %o1 <== NOT EXECUTED 20293c4: 98 10 00 01 mov %g1, %o4 <== NOT EXECUTED 20293c8: 90 10 20 00 clr %o0 <== NOT EXECUTED 20293cc: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 20293d0: 7f ff ff c3 call 20292dc <== NOT EXECUTED 20293d4: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED =============================================================================== 02029448 : } struct group *getgrnam( const char *name ) { 2029448: 9d e3 bf 98 save %sp, -104, %sp struct group *p; if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p)) 202944c: 13 00 81 b3 sethi %hi(0x206cc00), %o1 2029450: 90 10 00 18 mov %i0, %o0 2029454: 92 12 63 a8 or %o1, 0x3a8, %o1 2029458: 15 00 81 b3 sethi %hi(0x206cc00), %o2 202945c: 96 10 20 c8 mov 0xc8, %o3 2029460: 94 12 a2 e0 or %o2, 0x2e0, %o2 2029464: 98 07 bf fc add %fp, -4, %o4 2029468: 7f ff ff ed call 202941c 202946c: b0 10 20 00 clr %i0 2029470: 80 a2 20 00 cmp %o0, 0 2029474: 22 80 00 02 be,a 202947c <== ALWAYS TAKEN 2029478: f0 07 bf fc ld [ %fp + -4 ], %i0 return NULL; return p; } 202947c: 81 c7 e0 08 ret 2029480: 81 e8 00 00 restore =============================================================================== 020225b8 : */ pid_t getpid( void ) { return _Objects_Local_node; } 20225b8: 81 c3 e0 08 retl <== NOT EXECUTED 20225bc: 90 10 20 01 mov 1, %o0 ! 1 <== NOT EXECUTED =============================================================================== 020294d0 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 20294d0: 9d e3 bf a0 save %sp, -96, %sp FILE *fp; int match; init_etc_passwd_group(); 20294d4: 7f ff ff 39 call 20291b8 20294d8: 01 00 00 00 nop if ((fp = fopen("/etc/passwd", "r")) == NULL) { 20294dc: 11 00 81 8d sethi %hi(0x2063400), %o0 20294e0: 13 00 81 8d sethi %hi(0x2063400), %o1 20294e4: 90 12 22 20 or %o0, 0x220, %o0 20294e8: 40 00 68 78 call 20436c8 20294ec: 92 12 62 30 or %o1, 0x230, %o1 20294f0: a0 92 20 00 orcc %o0, 0, %l0 20294f4: 12 80 00 08 bne 2029514 <== ALWAYS TAKEN 20294f8: 92 10 00 1a mov %i2, %o1 errno = EINVAL; 20294fc: 40 00 65 cb call 2042c28 <__errno> <== NOT EXECUTED 2029500: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2029504: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2029508: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202950c: 81 c7 e0 08 ret <== NOT EXECUTED 2029510: 81 e8 00 00 restore <== NOT EXECUTED return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { 2029514: 94 10 00 1b mov %i3, %o2 2029518: 96 10 00 1c mov %i4, %o3 202951c: 7f ff fe ce call 2029054 2029520: 90 10 00 10 mov %l0, %o0 2029524: 80 a2 20 00 cmp %o0, 0 2029528: 12 80 00 0a bne 2029550 <== ALWAYS TAKEN 202952c: 80 a6 20 00 cmp %i0, 0 errno = EINVAL; 2029530: 40 00 65 be call 2042c28 <__errno> <== NOT EXECUTED 2029534: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2029538: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 202953c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED fclose(fp); 2029540: 40 00 66 12 call 2042d88 <== NOT EXECUTED 2029544: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return -1; 2029548: 81 c7 e0 08 ret <== NOT EXECUTED 202954c: 81 e8 00 00 restore <== NOT EXECUTED } if (name) { 2029550: 22 80 00 07 be,a 202956c <== NEVER TAKEN 2029554: c2 16 a0 08 lduh [ %i2 + 8 ], %g1 <== NOT EXECUTED match = (strcmp(pwd->pw_name, name) == 0); 2029558: d0 06 80 00 ld [ %i2 ], %o0 202955c: 40 00 7f 5a call 20492c4 2029560: 92 10 00 18 mov %i0, %o1 2029564: 10 80 00 04 b 2029574 2029568: 80 a0 00 08 cmp %g0, %o0 } else { match = (pwd->pw_uid == uid); 202956c: 82 18 40 19 xor %g1, %i1, %g1 <== NOT EXECUTED 2029570: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED 2029574: 82 60 3f ff subx %g0, -1, %g1 } if (match) { 2029578: 80 a0 60 00 cmp %g1, 0 202957c: 02 bf ff e6 be 2029514 2029580: 92 10 00 1a mov %i2, %o1 fclose(fp); 2029584: 90 10 00 10 mov %l0, %o0 2029588: 40 00 66 00 call 2042d88 202958c: b0 10 20 00 clr %i0 *result = pwd; 2029590: f4 27 40 00 st %i2, [ %i5 ] } } fclose(fp); errno = EINVAL; return -1; } 2029594: 81 c7 e0 08 ret 2029598: 81 e8 00 00 restore =============================================================================== 02029170 : return NULL; return p; } struct passwd *getpwent(void) { 2029170: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (passwd_fp == NULL) 2029174: 03 00 81 b3 sethi %hi(0x206cc00), %g1 <== NOT EXECUTED 2029178: d0 00 61 f4 ld [ %g1 + 0x1f4 ], %o0 ! 206cdf4 <== NOT EXECUTED 202917c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029180: 22 80 00 0c be,a 20291b0 <== NOT EXECUTED 2029184: b0 10 20 00 clr %i0 <== NOT EXECUTED return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) 2029188: 31 00 81 b3 sethi %hi(0x206cc00), %i0 <== NOT EXECUTED 202918c: 15 00 81 b3 sethi %hi(0x206cc00), %o2 <== NOT EXECUTED 2029190: 92 16 22 c0 or %i0, 0x2c0, %o1 <== NOT EXECUTED 2029194: 94 12 a1 f8 or %o2, 0x1f8, %o2 <== NOT EXECUTED 2029198: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 202919c: 7f ff ff ae call 2029054 <== NOT EXECUTED 20291a0: b0 16 22 c0 or %i0, 0x2c0, %i0 <== NOT EXECUTED 20291a4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20291a8: 22 80 00 02 be,a 20291b0 <== NOT EXECUTED 20291ac: b0 10 20 00 clr %i0 <== NOT EXECUTED return NULL; return &pwent; } 20291b0: 81 c7 e0 08 ret <== NOT EXECUTED 20291b4: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0202963c : } struct passwd *getpwnam( const char *name ) { 202963c: 9d e3 bf 98 save %sp, -104, %sp struct passwd *p; if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p)) 2029640: 13 00 81 b3 sethi %hi(0x206cc00), %o1 2029644: 90 10 00 18 mov %i0, %o0 2029648: 92 12 62 c0 or %o1, 0x2c0, %o1 202964c: 15 00 81 b3 sethi %hi(0x206cc00), %o2 2029650: 96 10 20 c8 mov 0xc8, %o3 2029654: 94 12 a1 f8 or %o2, 0x1f8, %o2 2029658: 98 07 bf fc add %fp, -4, %o4 202965c: 7f ff ff ed call 2029610 2029660: b0 10 20 00 clr %i0 2029664: 80 a2 20 00 cmp %o0, 0 2029668: 22 80 00 02 be,a 2029670 <== ALWAYS TAKEN 202966c: f0 07 bf fc ld [ %fp + -4 ], %i0 return NULL; return p; } 2029670: 81 c7 e0 08 ret 2029674: 81 e8 00 00 restore =============================================================================== 020295d0 : } struct passwd *getpwuid( uid_t uid ) { 20295d0: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 20295d4: 13 00 81 b3 sethi %hi(0x206cc00), %o1 <== NOT EXECUTED 20295d8: 91 2e 20 10 sll %i0, 0x10, %o0 <== NOT EXECUTED 20295dc: 92 12 62 c0 or %o1, 0x2c0, %o1 <== NOT EXECUTED 20295e0: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED 20295e4: 15 00 81 b3 sethi %hi(0x206cc00), %o2 <== NOT EXECUTED 20295e8: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 20295ec: 94 12 a1 f8 or %o2, 0x1f8, %o2 <== NOT EXECUTED 20295f0: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED 20295f4: 7f ff ff ea call 202959c <== NOT EXECUTED 20295f8: b0 10 20 00 clr %i0 <== NOT EXECUTED 20295fc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029600: 22 80 00 02 be,a 2029608 <== NOT EXECUTED 2029604: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED return NULL; return p; } 2029608: 81 c7 e0 08 ret <== NOT EXECUTED 202960c: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0202959c : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 202959c: 84 10 00 0a mov %o2, %g2 <== NOT EXECUTED 20295a0: 82 10 00 0b mov %o3, %g1 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 20295a4: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 20295a8: 9a 10 00 0c mov %o4, %o5 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 20295ac: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED 20295b0: 96 10 00 02 mov %g2, %o3 <== NOT EXECUTED 20295b4: 93 32 20 10 srl %o0, 0x10, %o1 <== NOT EXECUTED 20295b8: 98 10 00 01 mov %g1, %o4 <== NOT EXECUTED 20295bc: 90 10 20 00 clr %o0 <== NOT EXECUTED 20295c0: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 20295c4: 7f ff ff c3 call 20294d0 <== NOT EXECUTED 20295c8: 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 32 5a call 200f51c <__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 53 call 2007124 <_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 57 9f call 2018a70 <.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 a5 sethi %hi(0x2069400), %g1 <== NOT EXECUTED 2008398: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 ! 2069434 <== 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 =============================================================================== 0200e890 : ) { IMFS_jnode_t *the_jnode; /* Is the node a directory ? */ the_jnode = (IMFS_jnode_t *) iop->file_info; 200e890: c4 02 20 3c ld [ %o0 + 0x3c ], %g2 200e894: c4 00 a0 4c ld [ %g2 + 0x4c ], %g2 200e898: 80 a0 a0 01 cmp %g2, 1 200e89c: 12 80 00 05 bne 200e8b0 <== NEVER TAKEN 200e8a0: 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; 200e8a4: c0 22 20 10 clr [ %o0 + 0x10 ] 200e8a8: c0 22 20 14 clr [ %o0 + 0x14 ] 200e8ac: 82 10 20 00 clr %g1 return 0; } 200e8b0: 81 c3 e0 08 retl 200e8b4: 90 10 00 01 mov %g1, %o0 =============================================================================== 0200e9ec : int imfs_dir_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 200e9ec: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 200e9f0: e0 06 40 00 ld [ %i1 ], %l0 200e9f4: c4 04 20 50 ld [ %l0 + 0x50 ], %g2 200e9f8: 82 04 20 54 add %l0, 0x54, %g1 200e9fc: 80 a0 80 01 cmp %g2, %g1 200ea00: 22 80 00 06 be,a 200ea18 200ea04: 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 ); 200ea08: 40 00 02 c5 call 200f51c <__errno> 200ea0c: 01 00 00 00 nop 200ea10: 10 80 00 0d b 200ea44 200ea14: 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 ) 200ea18: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200ea1c: 80 a0 40 10 cmp %g1, %l0 200ea20: 02 80 00 06 be 200ea38 200ea24: 01 00 00 00 nop /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) 200ea28: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 200ea2c: 80 a0 60 00 cmp %g1, 0 200ea30: 22 80 00 08 be,a 200ea50 <== ALWAYS TAKEN 200ea34: c2 04 20 08 ld [ %l0 + 8 ], %g1 rtems_set_errno_and_return_minus_one( EBUSY ); 200ea38: 40 00 02 b9 call 200f51c <__errno> 200ea3c: 01 00 00 00 nop 200ea40: 82 10 20 10 mov 0x10, %g1 ! 10 200ea44: c2 22 00 00 st %g1, [ %o0 ] 200ea48: 81 c7 e0 08 ret 200ea4c: 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 ) { 200ea50: 80 a0 60 00 cmp %g1, 0 200ea54: 22 80 00 06 be,a 200ea6c 200ea58: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 200ea5c: 7f ff e0 9f call 2006cd8 <_Chain_Extract> 200ea60: 90 10 00 10 mov %l0, %o0 rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 200ea64: c0 24 20 08 clr [ %l0 + 8 ] /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 200ea68: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 IMFS_update_ctime( the_jnode ); 200ea6c: 92 10 20 00 clr %o1 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 200ea70: 82 00 7f ff add %g1, -1, %g1 IMFS_update_ctime( the_jnode ); 200ea74: 90 07 bf f8 add %fp, -8, %o0 200ea78: 7f ff d0 4b call 2002ba4 200ea7c: c2 34 20 34 sth %g1, [ %l0 + 0x34 ] 200ea80: 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) ) { 200ea84: 90 10 00 10 mov %l0, %o0 200ea88: 7f ff f4 c6 call 200bda0 200ea8c: c2 24 20 48 st %g1, [ %l0 + 0x48 ] 200ea90: 80 a2 20 00 cmp %o0, 0 200ea94: 12 80 00 11 bne 200ead8 200ea98: 01 00 00 00 nop 200ea9c: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 200eaa0: 80 a0 60 00 cmp %g1, 0 200eaa4: 12 80 00 0d bne 200ead8 200eaa8: 03 00 80 70 sethi %hi(0x201c000), %g1 /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 200eaac: c2 00 62 80 ld [ %g1 + 0x280 ], %g1 ! 201c280 200eab0: c4 06 40 00 ld [ %i1 ], %g2 200eab4: c6 00 60 04 ld [ %g1 + 4 ], %g3 200eab8: 80 a0 c0 02 cmp %g3, %g2 200eabc: 22 80 00 02 be,a 200eac4 <== NEVER TAKEN 200eac0: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED /* * Free memory associated with a memory file. */ free( the_jnode ); 200eac4: 90 10 00 10 mov %l0, %o0 200eac8: 7f ff d0 0d call 2002afc 200eacc: b0 10 20 00 clr %i0 200ead0: 81 c7 e0 08 ret 200ead4: 81 e8 00 00 restore } return 0; } 200ead8: 81 c7 e0 08 ret 200eadc: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 020291b8 : /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) { 20291b8: 9d e3 bf a0 save %sp, -96, %sp FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) 20291bc: 03 00 81 b3 sethi %hi(0x206cc00), %g1 20291c0: c4 48 61 f0 ldsb [ %g1 + 0x1f0 ], %g2 ! 206cdf0 20291c4: 80 a0 a0 00 cmp %g2, 0 20291c8: 12 80 00 30 bne 2029288 20291cc: 84 10 20 01 mov 1, %g2 return; etc_passwd_initted = 1; mkdir("/etc", 0777); 20291d0: 92 10 21 ff mov 0x1ff, %o1 FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) return; etc_passwd_initted = 1; 20291d4: c4 28 61 f0 stb %g2, [ %g1 + 0x1f0 ] mkdir("/etc", 0777); 20291d8: 11 00 81 8d sethi %hi(0x2063400), %o0 20291dc: 7f ff 7e 59 call 2008b40 20291e0: 90 12 22 18 or %o0, 0x218, %o0 ! 2063618 /* * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { 20291e4: 21 00 81 8d sethi %hi(0x2063400), %l0 20291e8: 13 00 81 8d sethi %hi(0x2063400), %o1 20291ec: 90 14 22 20 or %l0, 0x220, %o0 20291f0: 40 00 69 36 call 20436c8 20291f4: 92 12 62 30 or %o1, 0x230, %o1 20291f8: 80 a2 20 00 cmp %o0, 0 20291fc: 12 80 00 0d bne 2029230 <== NEVER TAKEN 2029200: 01 00 00 00 nop fclose(fp); } else if ((fp = fopen("/etc/passwd", "w")) != NULL) { 2029204: 90 14 22 20 or %l0, 0x220, %o0 2029208: 13 00 81 8d sethi %hi(0x2063400), %o1 202920c: 40 00 69 2f call 20436c8 2029210: 92 12 62 38 or %o1, 0x238, %o1 ! 2063638 2029214: b0 92 20 00 orcc %o0, 0, %i0 2029218: 02 80 00 08 be 2029238 <== NEVER TAKEN 202921c: 11 00 81 8d sethi %hi(0x2063400), %o0 fprintf(fp, "root:*:0:0:root::/:/bin/sh\n" 2029220: 92 10 00 18 mov %i0, %o1 2029224: 40 00 69 8f call 2043860 2029228: 90 12 22 40 or %o0, 0x240, %o0 "rtems:*:1:1:RTEMS Application::/:/bin/sh\n" "tty:!:2:2:tty owner::/:/bin/false\n" ); fclose(fp); 202922c: 90 10 00 18 mov %i0, %o0 2029230: 40 00 66 d6 call 2042d88 2029234: 01 00 00 00 nop } /* * Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) { 2029238: 21 00 81 8d sethi %hi(0x2063400), %l0 202923c: 13 00 81 8d sethi %hi(0x2063400), %o1 2029240: 90 14 22 a8 or %l0, 0x2a8, %o0 2029244: 40 00 69 21 call 20436c8 2029248: 92 12 62 30 or %o1, 0x230, %o1 202924c: 80 a2 20 00 cmp %o0, 0 2029250: 12 80 00 0c bne 2029280 <== NEVER TAKEN 2029254: b0 10 00 08 mov %o0, %i0 fclose(fp); } else if ((fp = fopen("/etc/group", "w")) != NULL) { 2029258: 90 14 22 a8 or %l0, 0x2a8, %o0 202925c: 13 00 81 8d sethi %hi(0x2063400), %o1 2029260: 40 00 69 1a call 20436c8 2029264: 92 12 62 38 or %o1, 0x238, %o1 ! 2063638 2029268: b0 92 20 00 orcc %o0, 0, %i0 202926c: 02 80 00 07 be 2029288 <== NEVER TAKEN 2029270: 11 00 81 8d sethi %hi(0x2063400), %o0 fprintf( fp, "root:x:0:root\n" 2029274: 92 10 00 18 mov %i0, %o1 2029278: 40 00 69 7a call 2043860 202927c: 90 12 22 b8 or %o0, 0x2b8, %o0 "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); 2029280: 40 00 66 c2 call 2042d88 2029284: 81 e8 00 00 restore 2029288: 81 c7 e0 08 ret 202928c: 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 80 sethi %hi(0x2020000), %g1 2006368: c2 00 61 e4 ld [ %g1 + 0x1e4 ], %g1 ! 20201e4 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 83 sethi %hi(0x2020c00), %g1 200638c: d0 00 60 50 ld [ %g1 + 0x50 ], %o0 ! 2020c50 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 35 50 call 2013904 <__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 35 48 call 2013904 <__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 70 sethi %hi(0x201c000), %g2 <== NOT EXECUTED 2004694: c4 00 a2 e8 ld [ %g2 + 0x2e8 ], %g2 ! 201c2e8 <__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 70 sethi %hi(0x201c000), %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 70 sethi %hi(0x201c000), %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 70 sethi %hi(0x201c000), %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 62 70 ld [ %g1 + 0x270 ], %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 =============================================================================== 020225dc : #if !defined(RTEMS_POSIX_API) int kill( pid_t pid, int sig ) { return 0; } 20225dc: 81 c3 e0 08 retl <== NOT EXECUTED 20225e0: 90 10 20 00 clr %o0 ! 0 <== NOT EXECUTED =============================================================================== 0201a0fc : extern void _wrapup_reent(struct _reent *); extern void _reclaim_reent(struct _reent *); void libc_wrapup(void) { 201a0fc: 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())) 201a100: 03 00 80 73 sethi %hi(0x201cc00), %g1 201a104: c2 00 61 c0 ld [ %g1 + 0x1c0 ], %g1 ! 201cdc0 <_System_state_Current> 201a108: 80 a0 60 03 cmp %g1, 3 201a10c: 12 80 00 16 bne 201a164 <== NEVER TAKEN 201a110: 03 00 80 6e sethi %hi(0x201b800), %g1 /* * This was already done if the user called exit() directly . _wrapup_reent(0); */ if (_REENT != _global_impure_ptr) { 201a114: 23 00 80 70 sethi %hi(0x201c000), %l1 201a118: e0 00 63 d0 ld [ %g1 + 0x3d0 ], %l0 201a11c: c2 04 62 f0 ld [ %l1 + 0x2f0 ], %g1 201a120: 80 a0 40 10 cmp %g1, %l0 201a124: 22 80 00 06 be,a 201a13c 201a128: 21 00 80 70 sethi %hi(0x201c000), %l0 _wrapup_reent(_global_impure_ptr); 201a12c: 40 00 01 83 call 201a738 <_wrapup_reent> 201a130: 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; 201a134: e0 24 62 f0 st %l0, [ %l1 + 0x2f0 ] * * Should this be changed to do *all* file streams? * _fwalk (_REENT, fclose); */ fclose (stdin); 201a138: 21 00 80 70 sethi %hi(0x201c000), %l0 201a13c: c2 04 22 f0 ld [ %l0 + 0x2f0 ], %g1 ! 201c2f0 <_impure_ptr> 201a140: 7f ff d5 4f call 200f67c 201a144: d0 00 60 04 ld [ %g1 + 4 ], %o0 fclose (stdout); 201a148: c2 04 22 f0 ld [ %l0 + 0x2f0 ], %g1 201a14c: 7f ff d5 4c call 200f67c 201a150: d0 00 60 08 ld [ %g1 + 8 ], %o0 fclose (stderr); 201a154: c2 04 22 f0 ld [ %l0 + 0x2f0 ], %g1 201a158: f0 00 60 0c ld [ %g1 + 0xc ], %i0 201a15c: 7f ff d5 48 call 200f67c 201a160: 81 e8 00 00 restore 201a164: 81 c7 e0 08 ret <== NOT EXECUTED 201a168: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02029678 : int link( const char *existing, const char *new ) { 2029678: 9d e3 bf 70 save %sp, -144, %sp /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, strlen( existing ), 202967c: 40 00 81 13 call 2049ac8 2029680: 90 10 00 18 mov %i0, %o0 2029684: a0 07 bf e4 add %fp, -28, %l0 2029688: 92 10 00 08 mov %o0, %o1 202968c: 94 10 20 00 clr %o2 2029690: 90 10 00 18 mov %i0, %o0 2029694: 96 10 00 10 mov %l0, %o3 2029698: 98 10 20 01 mov 1, %o4 202969c: 7f ff 7a d4 call 20081ec 20296a0: b0 10 3f ff mov -1, %i0 0, &existing_loc, true ); if ( result != 0 ) 20296a4: 80 a2 20 00 cmp %o0, 0 20296a8: 12 80 00 28 bne 2029748 20296ac: 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 ); 20296b0: 90 10 00 19 mov %i1, %o0 20296b4: 92 07 bf fc add %fp, -4, %o1 20296b8: 7f ff 81 6e call 2009c70 20296bc: 94 10 00 11 mov %l1, %o2 if ( !parent_loc.ops->evalformake_h ) { 20296c0: c2 07 bf dc ld [ %fp + -36 ], %g1 20296c4: c2 00 60 04 ld [ %g1 + 4 ], %g1 20296c8: 80 a0 60 00 cmp %g1, 0 20296cc: 12 80 00 0b bne 20296f8 <== ALWAYS TAKEN 20296d0: d0 07 bf fc ld [ %fp + -4 ], %o0 rtems_filesystem_freenode( &existing_loc ); 20296d4: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 20296d8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20296dc: 02 80 00 51 be 2029820 <== NOT EXECUTED 20296e0: 01 00 00 00 nop <== NOT EXECUTED 20296e4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20296e8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20296ec: 12 80 00 4b bne 2029818 <== NOT EXECUTED 20296f0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20296f4: 30 80 00 4b b,a 2029820 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start ); 20296f8: 92 10 00 11 mov %l1, %o1 20296fc: 90 06 40 08 add %i1, %o0, %o0 2029700: 9f c0 40 00 call %g1 2029704: 94 07 bf f8 add %fp, -8, %o2 if ( result != 0 ) { 2029708: b2 92 20 00 orcc %o0, 0, %i1 202970c: 02 80 00 11 be 2029750 2029710: c2 07 bf f4 ld [ %fp + -12 ], %g1 rtems_filesystem_freenode( &existing_loc ); 2029714: c2 07 bf f0 ld [ %fp + -16 ], %g1 2029718: 80 a0 60 00 cmp %g1, 0 202971c: 02 80 00 08 be 202973c <== NEVER TAKEN 2029720: 01 00 00 00 nop 2029724: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2029728: 80 a0 60 00 cmp %g1, 0 202972c: 02 80 00 04 be 202973c <== NEVER TAKEN 2029730: 01 00 00 00 nop 2029734: 9f c0 40 00 call %g1 2029738: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( result ); 202973c: 40 00 65 3b call 2042c28 <__errno> 2029740: b0 10 3f ff mov -1, %i0 2029744: f2 22 00 00 st %i1, [ %o0 ] 2029748: 81 c7 e0 08 ret 202974c: 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 ) { 2029750: c4 07 bf e0 ld [ %fp + -32 ], %g2 2029754: 80 a0 80 01 cmp %g2, %g1 2029758: 02 80 00 1a be 20297c0 202975c: c2 07 bf dc ld [ %fp + -36 ], %g1 rtems_filesystem_freenode( &existing_loc ); 2029760: c2 07 bf f0 ld [ %fp + -16 ], %g1 2029764: 80 a0 60 00 cmp %g1, 0 2029768: 22 80 00 09 be,a 202978c <== NEVER TAKEN 202976c: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED 2029770: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2029774: 80 a0 60 00 cmp %g1, 0 2029778: 22 80 00 05 be,a 202978c <== NEVER TAKEN 202977c: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED 2029780: 9f c0 40 00 call %g1 2029784: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &parent_loc ); 2029788: c2 07 bf dc ld [ %fp + -36 ], %g1 202978c: 80 a0 60 00 cmp %g1, 0 2029790: 02 80 00 08 be 20297b0 <== NEVER TAKEN 2029794: 01 00 00 00 nop 2029798: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 202979c: 80 a0 60 00 cmp %g1, 0 20297a0: 02 80 00 04 be 20297b0 <== NEVER TAKEN 20297a4: 01 00 00 00 nop 20297a8: 9f c0 40 00 call %g1 20297ac: 90 07 bf d0 add %fp, -48, %o0 rtems_set_errno_and_return_minus_one( EXDEV ); 20297b0: 40 00 65 1e call 2042c28 <__errno> 20297b4: b0 10 3f ff mov -1, %i0 20297b8: 10 80 00 1d b 202982c 20297bc: 82 10 20 12 mov 0x12, %g1 } if ( !parent_loc.ops->link_h ) { 20297c0: c2 00 60 08 ld [ %g1 + 8 ], %g1 20297c4: 80 a0 60 00 cmp %g1, 0 20297c8: 12 80 00 1c bne 2029838 <== ALWAYS TAKEN 20297cc: d4 07 bf f8 ld [ %fp + -8 ], %o2 rtems_filesystem_freenode( &existing_loc ); 20297d0: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 20297d4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20297d8: 22 80 00 09 be,a 20297fc <== NOT EXECUTED 20297dc: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED 20297e0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20297e4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20297e8: 22 80 00 05 be,a 20297fc <== NOT EXECUTED 20297ec: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED 20297f0: 9f c0 40 00 call %g1 <== NOT EXECUTED 20297f4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 20297f8: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED 20297fc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029800: 02 80 00 08 be 2029820 <== NOT EXECUTED 2029804: 01 00 00 00 nop <== NOT EXECUTED 2029808: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 202980c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029810: 02 80 00 04 be 2029820 <== NOT EXECUTED 2029814: 90 07 bf d0 add %fp, -48, %o0 <== NOT EXECUTED 2029818: 9f c0 40 00 call %g1 <== NOT EXECUTED 202981c: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2029820: 40 00 65 02 call 2042c28 <__errno> <== NOT EXECUTED 2029824: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 2029828: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 202982c: c2 22 00 00 st %g1, [ %o0 ] 2029830: 81 c7 e0 08 ret 2029834: 81 e8 00 00 restore } result = (*parent_loc.ops->link_h)( &existing_loc, &parent_loc, name_start ); 2029838: 92 10 00 11 mov %l1, %o1 202983c: 9f c0 40 00 call %g1 2029840: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &existing_loc ); 2029844: c2 07 bf f0 ld [ %fp + -16 ], %g1 2029848: 80 a0 60 00 cmp %g1, 0 202984c: 02 80 00 08 be 202986c <== NEVER TAKEN 2029850: b0 10 00 08 mov %o0, %i0 2029854: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2029858: 80 a0 60 00 cmp %g1, 0 202985c: 22 80 00 05 be,a 2029870 <== NEVER TAKEN 2029860: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED 2029864: 9f c0 40 00 call %g1 2029868: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &parent_loc ); 202986c: c2 07 bf dc ld [ %fp + -36 ], %g1 2029870: 80 a0 60 00 cmp %g1, 0 2029874: 02 80 00 08 be 2029894 <== NEVER TAKEN 2029878: 01 00 00 00 nop 202987c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2029880: 80 a0 60 00 cmp %g1, 0 2029884: 02 80 00 04 be 2029894 <== NEVER TAKEN 2029888: 01 00 00 00 nop 202988c: 9f c0 40 00 call %g1 2029890: 90 07 bf d0 add %fp, -48, %o0 return result; } 2029894: 81 c7 e0 08 ret 2029898: 81 e8 00 00 restore =============================================================================== 02019fac : off_t lseek( int fd, off_t offset, int whence ) { 2019fac: 9d e3 bf a0 save %sp, -96, %sp rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 2019fb0: 03 00 80 70 sethi %hi(0x201c000), %g1 2019fb4: c2 00 60 b4 ld [ %g1 + 0xb4 ], %g1 ! 201c0b4 off_t lseek( int fd, off_t offset, int whence ) { 2019fb8: 96 10 00 1b mov %i3, %o3 rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 2019fbc: 80 a6 00 01 cmp %i0, %g1 off_t lseek( int fd, off_t offset, int whence ) { 2019fc0: 84 10 00 19 mov %i1, %g2 rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 2019fc4: 1a 80 00 0c bcc 2019ff4 <== NEVER TAKEN 2019fc8: 86 10 00 1a mov %i2, %g3 iop = rtems_libio_iop( fd ); 2019fcc: 03 00 80 72 sethi %hi(0x201c800), %g1 2019fd0: e0 00 62 48 ld [ %g1 + 0x248 ], %l0 ! 201ca48 2019fd4: 83 2e 20 06 sll %i0, 6, %g1 2019fd8: b1 2e 20 03 sll %i0, 3, %i0 2019fdc: b0 06 00 01 add %i0, %g1, %i0 2019fe0: a0 04 00 18 add %l0, %i0, %l0 rtems_libio_check_is_open(iop); 2019fe4: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 2019fe8: 80 88 61 00 btst 0x100, %g1 2019fec: 32 80 00 06 bne,a 201a004 <== ALWAYS TAKEN 2019ff0: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 2019ff4: 7f ff d5 4a call 200f51c <__errno> <== NOT EXECUTED 2019ff8: 01 00 00 00 nop <== NOT EXECUTED 2019ffc: 10 80 00 1e b 201a074 <== NOT EXECUTED 201a000: 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 ) 201a004: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 201a008: 80 a0 60 00 cmp %g1, 0 201a00c: 12 80 00 06 bne 201a024 <== ALWAYS TAKEN 201a010: 80 a6 e0 01 cmp %i3, 1 rtems_set_errno_and_return_minus_one( ENOTSUP ); 201a014: 7f ff d5 42 call 200f51c <__errno> <== NOT EXECUTED 201a018: 01 00 00 00 nop <== NOT EXECUTED 201a01c: 10 80 00 16 b 201a074 <== NOT EXECUTED 201a020: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED /* * Now process the lseek(). */ old_offset = iop->offset; switch ( whence ) { 201a024: 02 80 00 09 be 201a048 201a028: e4 1c 20 10 ldd [ %l0 + 0x10 ], %l2 201a02c: 80 a6 e0 02 cmp %i3, 2 201a030: 02 80 00 09 be 201a054 201a034: 80 a6 e0 00 cmp %i3, 0 201a038: 12 80 00 0c bne 201a068 201a03c: 01 00 00 00 nop case SEEK_SET: iop->offset = offset; break; 201a040: 10 80 00 12 b 201a088 201a044: c4 3c 20 10 std %g2, [ %l0 + 0x10 ] case SEEK_CUR: iop->offset += offset; 201a048: 9a 86 80 13 addcc %i2, %l3, %o5 201a04c: 10 80 00 05 b 201a060 201a050: 98 46 40 12 addx %i1, %l2, %o4 break; case SEEK_END: iop->offset = iop->size + offset; 201a054: d8 1c 20 08 ldd [ %l0 + 8 ], %o4 201a058: 9a 86 80 0d addcc %i2, %o5, %o5 201a05c: 98 46 40 0c addx %i1, %o4, %o4 break; 201a060: 10 80 00 0a b 201a088 201a064: d8 3c 20 10 std %o4, [ %l0 + 0x10 ] default: rtems_set_errno_and_return_minus_one( EINVAL ); 201a068: 7f ff d5 2d call 200f51c <__errno> 201a06c: 01 00 00 00 nop 201a070: 82 10 20 16 mov 0x16, %g1 ! 16 201a074: c2 22 00 00 st %g1, [ %o0 ] 201a078: 11 3f ff ff sethi %hi(0xfffffc00), %o0 201a07c: 90 12 23 ff or %o0, 0x3ff, %o0 ! ffffffff 201a080: 10 80 00 0e b 201a0b8 201a084: 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 ); 201a088: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 201a08c: 92 10 00 02 mov %g2, %o1 201a090: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 201a094: 94 10 00 03 mov %g3, %o2 201a098: 9f c0 40 00 call %g1 201a09c: 90 10 00 10 mov %l0, %o0 if ( status == (off_t) -1 ) 201a0a0: 80 a2 3f ff cmp %o0, -1 201a0a4: 12 80 00 06 bne 201a0bc 201a0a8: b2 10 00 09 mov %o1, %i1 201a0ac: 80 a2 7f ff cmp %o1, -1 201a0b0: 22 80 00 03 be,a 201a0bc <== ALWAYS TAKEN 201a0b4: e4 3c 20 10 std %l2, [ %l0 + 0x10 ] /* * So if the operation failed, we have to restore iop->offset. */ return status; } 201a0b8: b2 10 00 09 mov %o1, %i1 201a0bc: 81 c7 e0 08 ret 201a0c0: 91 e8 00 08 restore %g0, %o0, %o0 =============================================================================== 020299f0 : int _STAT_NAME( const char *path, struct stat *buf ) { 20299f0: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 20299f4: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 20299f8: 12 80 00 06 bne 2029a10 <== NOT EXECUTED 20299fc: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); 2029a00: 40 00 64 8a call 2042c28 <__errno> <== NOT EXECUTED 2029a04: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 2029a08: 10 80 00 20 b 2029a88 <== NOT EXECUTED 2029a0c: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED status = rtems_filesystem_evaluate_path( path, strlen( path ), 2029a10: 40 00 80 2e call 2049ac8 <== NOT EXECUTED 2029a14: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2029a18: a0 07 bf ec add %fp, -20, %l0 <== NOT EXECUTED 2029a1c: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 2029a20: 94 10 20 00 clr %o2 <== NOT EXECUTED 2029a24: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2029a28: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 2029a2c: 98 10 20 00 clr %o4 <== NOT EXECUTED 2029a30: 7f ff 79 ef call 20081ec <== NOT EXECUTED 2029a34: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 2029a38: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029a3c: 12 80 00 14 bne 2029a8c <== NOT EXECUTED 2029a40: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ 2029a44: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 2029a48: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029a4c: 12 80 00 12 bne 2029a94 <== NOT EXECUTED 2029a50: 92 10 20 00 clr %o1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 2029a54: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2029a58: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029a5c: 02 80 00 08 be 2029a7c <== NOT EXECUTED 2029a60: 01 00 00 00 nop <== NOT EXECUTED 2029a64: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2029a68: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029a6c: 02 80 00 04 be 2029a7c <== NOT EXECUTED 2029a70: 01 00 00 00 nop <== NOT EXECUTED 2029a74: 9f c0 40 00 call %g1 <== NOT EXECUTED 2029a78: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2029a7c: 40 00 64 6b call 2042c28 <__errno> <== NOT EXECUTED 2029a80: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2029a84: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2029a88: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2029a8c: 81 c7 e0 08 ret <== NOT EXECUTED 2029a90: 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) ); 2029a94: 94 10 20 48 mov 0x48, %o2 <== NOT EXECUTED 2029a98: 40 00 72 43 call 20463a4 <== NOT EXECUTED 2029a9c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); 2029aa0: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 2029aa4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2029aa8: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 2029aac: 9f c0 40 00 call %g1 <== NOT EXECUTED 2029ab0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 2029ab4: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2029ab8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029abc: 02 bf ff f4 be 2029a8c <== NOT EXECUTED 2029ac0: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 2029ac4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2029ac8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029acc: 02 80 00 04 be 2029adc <== NOT EXECUTED 2029ad0: 01 00 00 00 nop <== NOT EXECUTED 2029ad4: 9f c0 40 00 call %g1 <== NOT EXECUTED 2029ad8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return status; } 2029adc: 81 c7 e0 08 ret <== NOT EXECUTED 2029ae0: 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 72 sethi %hi(0x201c800), %g1 2002e80: 82 10 62 60 or %g1, 0x260, %g1 ! 201ca60 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 73 sethi %hi(0x201cc00), %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 61 c0 ld [ %g1 + 0x1c0 ], %g1 ! 201cdc0 <_System_state_Current> 2002ea8: 80 a0 60 03 cmp %g1, 3 2002eac: 12 80 00 07 bne 2002ec8 2002eb0: 03 00 80 70 sethi %hi(0x201c000), %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 70 sethi %hi(0x201c000), %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 60 c0 ld [ %g1 + 0xc0 ], %o0 ! 201c0c0 2002ecc: 92 10 00 10 mov %l0, %o1 2002ed0: 94 10 20 00 clr %o2 2002ed4: 40 00 13 ee call 2007e8c <_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 71 sethi %hi(0x201c400), %g1 2002eec: c2 00 63 ac ld [ %g1 + 0x3ac ], %g1 ! 201c7ac 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 71 sethi %hi(0x201c400), %g1 <== NOT EXECUTED errno = ENOMEM; 2002f14: 40 00 31 82 call 200f51c <__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 71 sethi %hi(0x201c400), %g1 2002f30: c2 00 63 b0 ld [ %g1 + 0x3b0 ], %g1 ! 201c7b0 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 71 sethi %hi(0x201c400), %g1 2002f4c: c2 00 63 a8 ld [ %g1 + 0x3a8 ], %g1 ! 201c7a8 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 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED 2002d40: 90 12 22 54 or %o0, 0x254, %o0 ! 201ca54 <== NOT EXECUTED 2002d44: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2002d48: 40 00 0f d8 call 2006ca8 <_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 72 sethi %hi(0x201c800), %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 22 54 or %l0, 0x254, %l0 ! 201ca54 free(to_be_freed); 2002d64: 7f ff ff 66 call 2002afc <== NOT EXECUTED 2002d68: 01 00 00 00 nop <== NOT EXECUTED 2002d6c: 40 00 0f e5 call 2006d00 <_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 73 sethi %hi(0x201cc00), %g1 2002cf4: c2 00 60 20 ld [ %g1 + 0x20 ], %g1 ! 201cc20 <_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 73 sethi %hi(0x201cc00), %g1 2002d08: c2 00 60 bc ld [ %g1 + 0xbc ], %g1 ! 201ccbc <_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 =============================================================================== 0200d558 : */ int memfile_blocks_allocated = 0; void *memfile_alloc_block(void) { 200d558: 9d e3 bf a0 save %sp, -96, %sp void *memory; memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK); 200d55c: 03 00 80 71 sethi %hi(0x201c400), %g1 200d560: d2 00 63 bc ld [ %g1 + 0x3bc ], %o1 ! 201c7bc 200d564: 7f ff d4 d4 call 20028b4 200d568: 90 10 20 01 mov 1, %o0 if ( memory ) 200d56c: 80 a2 20 00 cmp %o0, 0 200d570: 02 80 00 05 be 200d584 <== NEVER TAKEN 200d574: 03 00 80 72 sethi %hi(0x201c800), %g1 memfile_blocks_allocated++; 200d578: c4 00 60 d0 ld [ %g1 + 0xd0 ], %g2 ! 201c8d0 200d57c: 84 00 a0 01 inc %g2 200d580: c4 20 60 d0 st %g2, [ %g1 + 0xd0 ] return memory; } 200d584: 81 c7 e0 08 ret 200d588: 91 e8 00 08 restore %g0, %o0, %o0 =============================================================================== 0200da90 : return memfile_check_rmnod( the_jnode ); } int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){ 200da90: 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) ) { 200da94: 7f ff f8 c3 call 200bda0 200da98: 90 10 00 18 mov %i0, %o0 200da9c: 80 a2 20 00 cmp %o0, 0 200daa0: 12 80 00 13 bne 200daec 200daa4: 01 00 00 00 nop 200daa8: c2 16 20 34 lduh [ %i0 + 0x34 ], %g1 200daac: 80 a0 60 00 cmp %g1, 0 200dab0: 12 80 00 0f bne 200daec <== NEVER TAKEN 200dab4: 03 00 80 70 sethi %hi(0x201c000), %g1 /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == the_jnode ) 200dab8: c2 00 62 80 ld [ %g1 + 0x280 ], %g1 ! 201c280 200dabc: c4 00 60 04 ld [ %g1 + 4 ], %g2 200dac0: 80 a0 80 18 cmp %g2, %i0 200dac4: 22 80 00 02 be,a 200dacc <== NEVER TAKEN 200dac8: 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) 200dacc: c2 06 20 4c ld [ %i0 + 0x4c ], %g1 200dad0: 80 a0 60 06 cmp %g1, 6 200dad4: 02 80 00 04 be 200dae4 <== NEVER TAKEN 200dad8: 01 00 00 00 nop IMFS_memfile_remove( the_jnode ); 200dadc: 7f ff ff 8c call 200d90c 200dae0: 90 10 00 18 mov %i0, %o0 free( the_jnode ); 200dae4: 7f ff d4 06 call 2002afc 200dae8: 90 10 00 18 mov %i0, %o0 } return 0; } 200daec: 81 c7 e0 08 ret 200daf0: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 0200d844 : void memfile_free_blocks_in_table( block_p **block_table, int entries ) { 200d844: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( block_table ); 200d848: 80 a6 20 00 cmp %i0, 0 200d84c: 32 80 00 0a bne,a 200d874 <== ALWAYS TAKEN 200d850: e0 06 00 00 ld [ %i0 ], %l0 200d854: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED 200d858: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED 200d85c: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED 200d860: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED 200d864: 94 12 a3 90 or %o2, 0x390, %o2 <== NOT EXECUTED 200d868: 96 12 e2 78 or %o3, 0x278, %o3 <== NOT EXECUTED 200d86c: 7f ff f8 ba call 200bb54 <__assert_func> <== NOT EXECUTED 200d870: 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 200d878: a2 10 20 00 clr %l1 if ( b[i] ) { 200d87c: 80 a2 20 00 cmp %o0, 0 200d880: 02 80 00 05 be 200d894 200d884: a2 04 60 01 inc %l1 memfile_free_block( b[i] ); 200d888: 7f ff ff 2b call 200d534 200d88c: 01 00 00 00 nop b[i] = 0; 200d890: 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 200d8a0: 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 ); 200d8a4: 7f ff ff 24 call 200d534 200d8a8: d0 06 00 00 ld [ %i0 ], %o0 *block_table = 0; 200d8ac: c0 26 00 00 clr [ %i0 ] } 200d8b0: 81 c7 e0 08 ret 200d8b4: 81 e8 00 00 restore =============================================================================== 0200dda4 : int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { 200dda4: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 200dda8: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { 200ddac: 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 ) 200ddb0: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 200ddb4: 80 a0 40 19 cmp %g1, %i1 200ddb8: 06 80 00 09 bl 200dddc <== NEVER TAKEN 200ddbc: 94 10 00 1a mov %i2, %o2 200ddc0: 80 a0 40 19 cmp %g1, %i1 200ddc4: 32 80 00 0a bne,a 200ddec <== NEVER TAKEN 200ddc8: d2 24 20 50 st %o1, [ %l0 + 0x50 ] <== NOT EXECUTED 200ddcc: c2 04 20 54 ld [ %l0 + 0x54 ], %g1 200ddd0: 80 a0 40 1a cmp %g1, %i2 200ddd4: 3a 80 00 06 bcc,a 200ddec <== ALWAYS TAKEN 200ddd8: d2 24 20 50 st %o1, [ %l0 + 0x50 ] return IMFS_memfile_extend( the_jnode, length ); 200dddc: 7f ff ff 8f call 200dc18 <== NOT EXECUTED 200dde0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 200dde4: 81 c7 e0 08 ret <== NOT EXECUTED 200dde8: 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; 200ddec: d4 24 20 54 st %o2, [ %l0 + 0x54 ] iop->size = the_jnode->info.file.size; 200ddf0: d2 26 20 08 st %o1, [ %i0 + 8 ] 200ddf4: d4 26 20 0c st %o2, [ %i0 + 0xc ] IMFS_update_atime( the_jnode ); 200ddf8: 90 07 bf f8 add %fp, -8, %o0 200ddfc: 7f ff d3 6a call 2002ba4 200de00: 92 10 20 00 clr %o1 200de04: c2 07 bf f8 ld [ %fp + -8 ], %g1 200de08: 90 10 20 00 clr %o0 200de0c: c2 24 20 40 st %g1, [ %l0 + 0x40 ] return 0; } 200de10: b0 10 00 08 mov %o0, %i0 200de14: 81 c7 e0 08 ret 200de18: 81 e8 00 00 restore =============================================================================== 0200de1c : rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 200de1c: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 200de20: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 if (the_jnode->type == IMFS_LINEAR_FILE) { 200de24: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 200de28: 80 a0 60 06 cmp %g1, 6 200de2c: 32 80 00 11 bne,a 200de70 <== ALWAYS TAKEN 200de30: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 if (iop->offset > the_jnode->info.linearfile.size) 200de34: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 <== NOT EXECUTED 200de38: c6 06 20 10 ld [ %i0 + 0x10 ], %g3 <== NOT EXECUTED 200de3c: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 200de40: 14 80 00 09 bg 200de64 <== NOT EXECUTED 200de44: c4 04 20 54 ld [ %l0 + 0x54 ], %g2 <== NOT EXECUTED 200de48: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 200de4c: 32 80 00 1a bne,a 200deb4 <== NOT EXECUTED 200de50: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 <== NOT EXECUTED 200de54: c6 06 20 14 ld [ %i0 + 0x14 ], %g3 <== NOT EXECUTED 200de58: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED 200de5c: 28 80 00 16 bleu,a 200deb4 <== NOT EXECUTED 200de60: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 <== NOT EXECUTED iop->offset = the_jnode->info.linearfile.size; 200de64: c2 26 20 10 st %g1, [ %i0 + 0x10 ] <== NOT EXECUTED 200de68: 10 80 00 12 b 200deb0 <== NOT EXECUTED 200de6c: 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 )) 200de70: 90 10 00 10 mov %l0, %o0 200de74: 92 10 00 02 mov %g2, %o1 200de78: 7f ff ff 68 call 200dc18 200de7c: 94 10 00 03 mov %g3, %o2 200de80: 80 a2 20 00 cmp %o0, 0 200de84: 22 80 00 0a be,a 200deac <== ALWAYS TAKEN 200de88: c4 1c 20 50 ldd [ %l0 + 0x50 ], %g2 rtems_set_errno_and_return_minus_one( ENOSPC ); 200de8c: 40 00 05 a4 call 200f51c <__errno> <== NOT EXECUTED 200de90: 01 00 00 00 nop <== NOT EXECUTED 200de94: 82 10 20 1c mov 0x1c, %g1 ! 1c <== NOT EXECUTED 200de98: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED 200de9c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200dea0: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED 200dea4: 10 80 00 04 b 200deb4 <== NOT EXECUTED 200dea8: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED iop->size = the_jnode->info.file.size; 200deac: c4 3e 20 08 std %g2, [ %i0 + 8 ] } return iop->offset; 200deb0: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 } 200deb4: b2 10 00 03 mov %g3, %i1 200deb8: 81 c7 e0 08 ret 200debc: 91 e8 00 02 restore %g0, %g2, %o0 =============================================================================== 0200e188 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 200e188: 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)) 200e18c: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 200e190: 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)) 200e194: 80 88 62 04 btst 0x204, %g1 200e198: 02 80 00 19 be 200e1fc 200e19c: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 && (the_jnode->type == IMFS_LINEAR_FILE)) { 200e1a0: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 200e1a4: 80 a0 60 06 cmp %g1, 6 200e1a8: 32 80 00 16 bne,a 200e200 <== ALWAYS TAKEN 200e1ac: c2 04 60 18 ld [ %l1 + 0x18 ], %g1 uint32_t count = the_jnode->info.linearfile.size; 200e1b0: d8 04 20 54 ld [ %l0 + 0x54 ], %o4 <== NOT EXECUTED const unsigned char *buffer = the_jnode->info.linearfile.direct; 200e1b4: d6 04 20 58 ld [ %l0 + 0x58 ], %o3 <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; 200e1b8: 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; 200e1bc: 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; 200e1c0: c0 24 20 50 clr [ %l0 + 0x50 ] <== NOT EXECUTED 200e1c4: 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; 200e1c8: 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; 200e1cc: 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) 200e1d0: 80 a3 20 00 cmp %o4, 0 <== NOT EXECUTED 200e1d4: 02 80 00 0a be 200e1fc <== NOT EXECUTED 200e1d8: c2 24 20 4c st %g1, [ %l0 + 0x4c ] <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) 200e1dc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 200e1e0: 92 10 20 00 clr %o1 <== NOT EXECUTED 200e1e4: 94 10 20 00 clr %o2 <== NOT EXECUTED 200e1e8: 7f ff ff 36 call 200dec0 <== NOT EXECUTED 200e1ec: 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) 200e1f0: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 200e1f4: 02 80 00 0a be 200e21c <== NOT EXECUTED 200e1f8: 01 00 00 00 nop <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) return -1; } if (iop->flags & LIBIO_FLAGS_APPEND) 200e1fc: c2 04 60 18 ld [ %l1 + 0x18 ], %g1 200e200: 80 88 62 00 btst 0x200, %g1 200e204: 02 80 00 04 be 200e214 200e208: c4 1c 20 50 ldd [ %l0 + 0x50 ], %g2 iop->offset = the_jnode->info.file.size; 200e20c: c4 3c 60 10 std %g2, [ %l1 + 0x10 ] iop->size = the_jnode->info.file.size; 200e210: c4 1c 20 50 ldd [ %l0 + 0x50 ], %g2 200e214: b0 10 20 00 clr %i0 200e218: c4 3c 60 08 std %g2, [ %l1 + 8 ] return 0; } 200e21c: 81 c7 e0 08 ret 200e220: 81 e8 00 00 restore =============================================================================== 0200daf4 : int memfile_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 200daf4: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 200daf8: 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 ) { 200dafc: c2 04 20 08 ld [ %l0 + 8 ], %g1 200db00: 80 a0 60 00 cmp %g1, 0 200db04: 22 80 00 06 be,a 200db1c <== NEVER TAKEN 200db08: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 <== NOT EXECUTED 200db0c: 7f ff e4 73 call 2006cd8 <_Chain_Extract> 200db10: 90 10 00 10 mov %l0, %o0 rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 200db14: c0 24 20 08 clr [ %l0 + 8 ] /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 200db18: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 IMFS_update_ctime( the_jnode ); 200db1c: 92 10 20 00 clr %o1 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 200db20: 82 00 7f ff add %g1, -1, %g1 IMFS_update_ctime( the_jnode ); 200db24: 90 07 bf f8 add %fp, -8, %o0 200db28: 7f ff d4 1f call 2002ba4 200db2c: c2 34 20 34 sth %g1, [ %l0 + 0x34 ] 200db30: c2 07 bf f8 ld [ %fp + -8 ], %g1 return memfile_check_rmnod( the_jnode ); 200db34: 90 10 00 10 mov %l0, %o0 200db38: 7f ff ff d6 call 200da90 200db3c: c2 24 20 48 st %g1, [ %l0 + 0x48 ] } 200db40: 81 c7 e0 08 ret 200db44: 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 31 4b call 200f51c <__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 31 2b call 200f51c <__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 13 call 200c1b0 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 30 e9 call 200f51c <__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 6b sethi %hi(0x201ac00), %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 23 e0 or %l4, 0x3e0, %l4 200319c: a8 10 00 19 mov %i1, %l4 size_t filesystemtype_size = strlen( filesystemtype ) + 1; 20031a0: 40 00 34 ac call 2010450 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 34 a6 call 2010450 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 34 a3 call 2010450 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 34 5f call 2010370 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 34 58 call 2010370 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 34 53 call 2010370 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 6b sethi %hi(0x201ac00), %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 63 e8 or %o1, 0x3e8, %o1 2003240: 90 04 20 38 add %l0, 0x38, %o0 2003244: 40 00 32 f2 call 200fe0c 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 70 sethi %hi(0x201c000), %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 30 af call 200f51c <__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 30 98 call 200f51c <__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 30 8d call 200f51c <__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 30 7f call 200f51c <__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 62 60 ld [ %g1 + 0x260 ], %g2 } } else { /* * Do we already have a base file system ? */ if ( !rtems_chain_is_empty( &mount_chain ) ) { 200334c: 82 10 62 60 or %g1, 0x260, %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 30 6f call 200f51c <__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 72 sethi %hi(0x201c800), %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 a2 50 ld [ %l2 + 0x250 ], %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 70 sethi %hi(0x201c000), %o0 20033c0: 40 00 0e 3a call 2006ca8 <_Chain_Append> 20033c4: 90 12 22 60 or %o0, 0x260, %o0 ! 201c260 } static inline void rtems_libio_unlock( void ) { rtems_semaphore_release( rtems_libio_semaphore ); 20033c8: d0 04 a2 50 ld [ %l2 + 0x250 ], %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 70 sethi %hi(0x201c000), %g1 rtems_filesystem_root = mt_entry->mt_fs_root; 20033e0: d0 00 62 80 ld [ %g1 + 0x280 ], %o0 ! 201c280 20033e4: 92 04 20 1c add %l0, 0x1c, %o1 20033e8: 94 10 20 14 mov 0x14, %o2 20033ec: 40 00 32 88 call 200fe0c 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 =============================================================================== 02035b88 : msdos_node_type_t type, const char *name, int name_len, mode_t mode, const fat_file_fd_t *link_fd) { 2035b88: 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; 2035b8c: 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); 2035b90: 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; 2035b94: 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; 2035b98: 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); 2035b9c: 92 10 20 00 clr %o1 <== NOT EXECUTED dir_pos->lname.ofs = FAT_FILE_SHORT_NAME; 2035ba0: 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; 2035ba4: c2 27 bf f0 st %g1, [ %fp + -16 ] <== NOT EXECUTED 2035ba8: 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; 2035bac: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED time_t time_ret = 0; uint16_t time_val = 0; 2035bb0: c0 37 bf fe clrh [ %fp + -2 ] <== NOT EXECUTED uint16_t date = 0; 2035bb4: 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; 2035bb8: c0 27 bf e8 clr [ %fp + -24 ] <== NOT EXECUTED dir_pos->sname.ofs = 0; 2035bbc: 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; 2035bc0: 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); 2035bc4: 40 00 41 f8 call 20463a4 <== NOT EXECUTED 2035bc8: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED memset(dot_dotdot, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE * 2); 2035bcc: 92 10 20 00 clr %o1 <== NOT EXECUTED 2035bd0: 94 10 20 40 mov 0x40, %o2 <== NOT EXECUTED 2035bd4: 40 00 41 f4 call 20463a4 <== NOT EXECUTED 2035bd8: 90 07 bf 68 add %fp, -152, %o0 <== NOT EXECUTED name_type = msdos_long_to_short (name, name_len, 2035bdc: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED 2035be0: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED 2035be4: 96 10 20 0b mov 0xb, %o3 <== NOT EXECUTED 2035be8: 40 00 08 4a call 2037d10 <== NOT EXECUTED 2035bec: 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) { 2035bf0: 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, 2035bf4: 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; 2035bf8: c0 2c e0 0c clrb [ %l3 + 0xc ] <== NOT EXECUTED /* set up last write date and time */ time_ret = time(NULL); 2035bfc: 40 00 64 ad call 204eeb0