=============================================================================== 0200b5e4 : { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; switch( node->type ) { 200b5e4: c2 02 00 00 ld [ %o0 ], %g1 ) { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; 200b5e8: c4 02 20 10 ld [ %o0 + 0x10 ], %g2 switch( node->type ) { 200b5ec: c2 00 60 4c ld [ %g1 + 0x4c ], %g1 200b5f0: 80 a0 60 07 cmp %g1, 7 200b5f4: 18 80 00 0a bgu 200b61c <== NEVER TAKEN 200b5f8: c4 00 a0 34 ld [ %g2 + 0x34 ], %g2 200b5fc: 83 28 60 02 sll %g1, 2, %g1 200b600: 07 00 80 2d sethi %hi(0x200b400), %g3 200b604: 86 10 e1 c4 or %g3, 0x1c4, %g3 ! 200b5c4 200b608: c2 00 c0 01 ld [ %g3 + %g1 ], %g1 200b60c: 81 c0 40 00 jmp %g1 200b610: 01 00 00 00 nop case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; 200b614: c2 00 a0 0c ld [ %g2 + 0xc ], %g1 200b618: c2 22 20 08 st %g1, [ %o0 + 8 ] loc->handlers = &IMFS_fifo_handlers; break; } return 0; } 200b61c: 81 c3 e0 08 retl 200b620: 90 10 20 00 clr %o0 break; case IMFS_LINEAR_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; 200b624: c2 00 a0 08 ld [ %g2 + 8 ], %g1 200b628: c2 22 20 08 st %g1, [ %o0 + 8 ] loc->handlers = &IMFS_fifo_handlers; break; } return 0; } 200b62c: 81 c3 e0 08 retl 200b630: 90 10 20 00 clr %o0 case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; break; case IMFS_SYM_LINK: case IMFS_HARD_LINK: loc->handlers = &IMFS_link_handlers; 200b634: 03 00 80 71 sethi %hi(0x201c400), %g1 200b638: 82 10 60 48 or %g1, 0x48, %g1 ! 201c448 200b63c: c2 22 20 08 st %g1, [ %o0 + 8 ] loc->handlers = &IMFS_fifo_handlers; break; } return 0; } 200b640: 81 c3 e0 08 retl 200b644: 90 10 20 00 clr %o0 break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_FIFO: loc->handlers = &IMFS_fifo_handlers; 200b648: 03 00 80 70 sethi %hi(0x201c000), %g1 200b64c: 82 10 63 00 or %g1, 0x300, %g1 ! 201c300 200b650: c2 22 20 08 st %g1, [ %o0 + 8 ] break; } return 0; } 200b654: 81 c3 e0 08 retl 200b658: 90 10 20 00 clr %o0 switch( node->type ) { case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; break; case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; 200b65c: 03 00 80 70 sethi %hi(0x201c000), %g1 200b660: 82 10 63 d8 or %g1, 0x3d8, %g1 ! 201c3d8 200b664: c2 22 20 08 st %g1, [ %o0 + 8 ] loc->handlers = &IMFS_fifo_handlers; break; } return 0; } 200b668: 81 c3 e0 08 retl 200b66c: 90 10 20 00 clr %o0 =============================================================================== 0200b40c : IMFS_jnode_t *IMFS_allocate_node( IMFS_jnode_types_t type, const char *name, mode_t mode ) { 200b40c: 9d e3 bf 98 save %sp, -104, %sp struct timeval tv; /* * Allocate an IMFS jnode */ node = calloc( 1, sizeof( IMFS_jnode_t ) ); 200b410: 90 10 20 01 mov 1, %o0 200b414: 7f ff dd 93 call 2002a60 200b418: 92 10 20 68 mov 0x68, %o1 if ( !node ) 200b41c: a0 92 20 00 orcc %o0, 0, %l0 200b420: 02 80 00 12 be 200b468 <== NEVER TAKEN 200b424: 82 10 20 01 mov 1, %g1 /* * Fill in the basic information */ node->st_nlink = 1; node->type = type; strncpy( node->name, name, IMFS_NAME_MAX ); 200b428: 92 10 00 19 mov %i1, %o1 return NULL; /* * Fill in the basic information */ node->st_nlink = 1; 200b42c: c2 34 20 34 sth %g1, [ %l0 + 0x34 ] node->type = type; strncpy( node->name, name, IMFS_NAME_MAX ); 200b430: 94 10 20 20 mov 0x20, %o2 /* * Fill in the basic information */ node->st_nlink = 1; node->type = type; 200b434: f0 24 20 4c st %i0, [ %l0 + 0x4c ] strncpy( node->name, name, IMFS_NAME_MAX ); 200b438: 40 00 18 08 call 2011458 200b43c: 90 04 20 0c add %l0, 0xc, %o0 #endif /* * Now set all the times. */ gettimeofday( &tv, 0 ); 200b440: 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; 200b444: 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; 200b448: c0 34 20 3c clrh [ %l0 + 0x3c ] node->st_gid = 0; 200b44c: c0 34 20 3e clrh [ %l0 + 0x3e ] #endif /* * Now set all the times. */ gettimeofday( &tv, 0 ); 200b450: 7f ff de 52 call 2002d98 200b454: 92 10 20 00 clr %o1 node->stat_atime = (time_t) tv.tv_sec; 200b458: c2 07 bf f8 ld [ %fp + -8 ], %g1 node->stat_mtime = (time_t) tv.tv_sec; node->stat_ctime = (time_t) tv.tv_sec; 200b45c: c2 24 20 48 st %g1, [ %l0 + 0x48 ] /* * Now set all the times. */ gettimeofday( &tv, 0 ); node->stat_atime = (time_t) tv.tv_sec; 200b460: c2 24 20 40 st %g1, [ %l0 + 0x40 ] node->stat_mtime = (time_t) tv.tv_sec; 200b464: c2 24 20 44 st %g1, [ %l0 + 0x44 ] node->stat_ctime = (time_t) tv.tv_sec; return node; } 200b468: 81 c7 e0 08 ret 200b46c: 91 e8 00 10 restore %g0, %l0, %o0 =============================================================================== 0200b4b0 : IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 200b4b0: 9d e3 bf a0 save %sp, -96, %sp IMFS_fs_info_t *fs_info; /* * MUST have a parent node to call this routine. */ if ( parent_loc == NULL ) 200b4b4: 80 a6 20 00 cmp %i0, 0 200b4b8: 12 80 00 04 bne 200b4c8 <== ALWAYS TAKEN 200b4bc: a0 10 20 00 clr %l0 node->st_ino = ++fs_info->ino_count; rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; } 200b4c0: 81 c7 e0 08 ret <== NOT EXECUTED 200b4c4: 91 e8 00 10 restore %g0, %l0, %o0 <== NOT EXECUTED return NULL; /* * Allocate filesystem node and fill in basic information */ node = IMFS_allocate_node( type, name, mode & ~rtems_filesystem_umask ); 200b4c8: 03 00 80 74 sethi %hi(0x201d000), %g1 200b4cc: c2 00 62 10 ld [ %g1 + 0x210 ], %g1 ! 201d210 200b4d0: 92 10 00 1a mov %i2, %o1 200b4d4: d4 00 60 2c ld [ %g1 + 0x2c ], %o2 200b4d8: 90 10 00 19 mov %i1, %o0 200b4dc: 7f ff ff cc call 200b40c 200b4e0: 94 2e c0 0a andn %i3, %o2, %o2 if ( !node ) 200b4e4: a0 92 20 00 orcc %o0, 0, %l0 200b4e8: 02 bf ff f6 be 200b4c0 <== NEVER TAKEN 200b4ec: 80 a6 60 07 cmp %i1, 7 return NULL; /* * Set the type specific information */ switch (type) { 200b4f0: 28 80 00 0a bleu,a 200b518 <== ALWAYS TAKEN 200b4f4: b3 2e 60 02 sll %i1, 2, %i1 case IMFS_FIFO: node->info.fifo.pipe = NULL; break; default: assert(0); 200b4f8: 11 00 80 70 sethi %hi(0x201c000), %o0 <== NOT EXECUTED 200b4fc: 15 00 80 70 sethi %hi(0x201c000), %o2 <== NOT EXECUTED 200b500: 17 00 80 70 sethi %hi(0x201c000), %o3 <== NOT EXECUTED 200b504: 90 12 22 28 or %o0, 0x228, %o0 <== NOT EXECUTED 200b508: 94 12 a2 80 or %o2, 0x280, %o2 <== NOT EXECUTED 200b50c: 96 12 e2 78 or %o3, 0x278, %o3 <== NOT EXECUTED 200b510: 40 00 04 76 call 200c6e8 <__assert_func> <== NOT EXECUTED 200b514: 92 10 20 5c mov 0x5c, %o1 <== NOT EXECUTED return NULL; /* * Set the type specific information */ switch (type) { 200b518: 03 00 80 2c sethi %hi(0x200b000), %g1 200b51c: 82 10 63 ec or %g1, 0x3ec, %g1 ! 200b3ec 200b520: c2 00 40 19 ld [ %g1 + %i1 ], %g1 200b524: 81 c0 40 00 jmp %g1 200b528: 01 00 00 00 nop 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; 200b52c: c2 07 00 00 ld [ %i4 ], %g1 200b530: c2 24 20 50 st %g1, [ %l0 + 0x50 ] /* * 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; 200b534: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 } /* * This node MUST have a parent, so put it in that directory list. */ parent = parent_loc->node_access; 200b538: d0 06 00 00 ld [ %i0 ], %o0 fs_info = parent_loc->mt_entry->fs_info; 200b53c: c4 00 60 34 ld [ %g1 + 0x34 ], %g2 node->Parent = parent; 200b540: d0 24 20 08 st %o0, [ %l0 + 8 ] node->st_ino = ++fs_info->ino_count; 200b544: c2 00 a0 04 ld [ %g2 + 4 ], %g1 200b548: 90 02 20 50 add %o0, 0x50, %o0 200b54c: 82 00 60 01 inc %g1 200b550: c2 20 a0 04 st %g1, [ %g2 + 4 ] 200b554: c2 24 20 38 st %g1, [ %l0 + 0x38 ] 200b558: 92 10 00 10 mov %l0, %o1 200b55c: 7f ff ef 51 call 20072a0 <_Chain_Append> 200b560: b0 10 00 10 mov %l0, %i0 rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; } 200b564: 81 c7 e0 08 ret 200b568: 81 e8 00 00 restore node->info.device.major = info->device.major; node->info.device.minor = info->device.minor; break; case IMFS_LINEAR_FILE: node->info.linearfile.size = 0; 200b56c: c0 24 20 50 clr [ %l0 + 0x50 ] <== NOT EXECUTED 200b570: c0 24 20 54 clr [ %l0 + 0x54 ] <== NOT EXECUTED node->info.linearfile.direct = 0; 200b574: c0 24 20 58 clr [ %l0 + 0x58 ] <== NOT EXECUTED case IMFS_MEMORY_FILE: node->info.file.size = 0; 200b578: c0 24 20 50 clr [ %l0 + 0x50 ] 200b57c: c0 24 20 54 clr [ %l0 + 0x54 ] node->info.file.indirect = 0; 200b580: c0 24 20 58 clr [ %l0 + 0x58 ] node->info.file.doubly_indirect = 0; 200b584: c0 24 20 5c clr [ %l0 + 0x5c ] node->info.file.triply_indirect = 0; break; 200b588: 10 bf ff eb b 200b534 200b58c: c0 24 20 60 clr [ %l0 + 0x60 ] case IMFS_FIFO: node->info.fifo.pipe = NULL; break; 200b590: 10 bf ff e9 b 200b534 200b594: c0 24 20 50 clr [ %l0 + 0x50 ] node->info.sym_link.name = info->sym_link.name; break; case IMFS_DEVICE: node->info.device.major = info->device.major; node->info.device.minor = info->device.minor; 200b598: 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; 200b59c: c2 07 00 00 ld [ %i4 ], %g1 node->info.device.minor = info->device.minor; 200b5a0: c4 24 20 54 st %g2, [ %l0 + 0x54 ] break; 200b5a4: 10 bf ff e4 b 200b534 200b5a8: c2 24 20 50 st %g1, [ %l0 + 0x50 ] */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 200b5ac: 82 04 20 54 add %l0, 0x54, %g1 the_chain->permanent_null = NULL; 200b5b0: c0 24 20 54 clr [ %l0 + 0x54 ] */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 200b5b4: c2 24 20 50 st %g1, [ %l0 + 0x50 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 200b5b8: 82 04 20 50 add %l0, 0x50, %g1 200b5bc: 10 bf ff de b 200b534 200b5c0: c2 24 20 58 st %g1, [ %l0 + 0x58 ] =============================================================================== 0200b470 : IMFS_jnode_t *IMFS_create_root_node(void) { 200b470: 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) ); 200b474: 90 10 20 01 mov 1, %o0 200b478: 13 00 80 70 sethi %hi(0x201c000), %o1 200b47c: 15 00 00 10 sethi %hi(0x4000), %o2 200b480: 92 12 62 20 or %o1, 0x220, %o1 200b484: 7f ff ff e2 call 200b40c 200b488: 94 12 a1 ed or %o2, 0x1ed, %o2 if ( !node ) 200b48c: 80 a2 20 00 cmp %o0, 0 200b490: 02 80 00 06 be 200b4a8 <== NEVER TAKEN 200b494: 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; 200b498: 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); 200b49c: c2 22 20 50 st %g1, [ %o0 + 0x50 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 200b4a0: 82 02 20 50 add %o0, 0x50, %g1 200b4a4: 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; } 200b4a8: 81 c7 e0 08 ret 200b4ac: 91 e8 00 08 restore %g0, %o0, %o0 =============================================================================== 02004b38 : void IMFS_dump_directory( IMFS_jnode_t *the_directory, int level ) { 2004b38: 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 ); 2004b3c: 80 a6 20 00 cmp %i0, 0 2004b40: 02 80 00 2b be 2004bec <== NEVER TAKEN 2004b44: 80 a6 60 00 cmp %i1, 0 assert( level >= 0 ); 2004b48: 06 80 00 38 bl 2004c28 <== NEVER TAKEN 2004b4c: 11 00 80 93 sethi %hi(0x2024c00), %o0 assert( the_directory->type == IMFS_DIRECTORY ); 2004b50: c2 06 20 4c ld [ %i0 + 0x4c ], %g1 2004b54: 80 a0 60 01 cmp %g1, 1 2004b58: 12 80 00 2d bne 2004c0c <== NEVER TAKEN 2004b5c: a8 06 20 54 add %i0, 0x54, %l4 the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; 2004b60: e6 06 20 50 ld [ %i0 + 0x50 ], %l3 2004b64: 80 a4 c0 14 cmp %l3, %l4 2004b68: 02 80 00 1b be 2004bd4 2004b6c: 25 00 80 9b sethi %hi(0x2026c00), %l2 2004b70: 23 00 80 93 sethi %hi(0x2024c00), %l1 2004b74: a4 14 a0 e0 or %l2, 0xe0, %l2 the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); 2004b78: a2 14 63 80 or %l1, 0x380, %l1 IMFS_print_jnode( the_jnode ); if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); 2004b7c: aa 06 60 01 add %i1, 1, %l5 for ( the_node = the_chain->first; !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; 2004b80: a0 10 20 00 clr %l0 for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); 2004b84: c2 04 80 00 ld [ %l2 ], %g1 2004b88: 90 10 00 11 mov %l1, %o0 2004b8c: d6 00 60 08 ld [ %g1 + 8 ], %o3 2004b90: 92 10 20 01 mov 1, %o1 2004b94: 40 00 43 f1 call 2015b58 2004b98: 94 10 20 04 mov 4, %o2 !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++ ) 2004b9c: a0 04 20 01 inc %l0 2004ba0: 80 a6 40 10 cmp %i1, %l0 2004ba4: 36 bf ff f9 bge,a 2004b88 2004ba8: c2 04 80 00 ld [ %l2 ], %g1 fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); 2004bac: 7f ff ff 7d call 20049a0 2004bb0: 90 10 00 13 mov %l3, %o0 if ( the_jnode->type == IMFS_DIRECTORY ) 2004bb4: c2 04 e0 4c ld [ %l3 + 0x4c ], %g1 2004bb8: 80 a0 60 01 cmp %g1, 1 2004bbc: 22 80 00 08 be,a 2004bdc 2004bc0: 90 10 00 13 mov %l3, %o0 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 ) { 2004bc4: e6 04 c0 00 ld [ %l3 ], %l3 assert( the_directory->type == IMFS_DIRECTORY ); the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; 2004bc8: 80 a4 c0 14 cmp %l3, %l4 2004bcc: 12 bf ff ee bne 2004b84 2004bd0: a0 10 20 00 clr %l0 2004bd4: 81 c7 e0 08 ret 2004bd8: 81 e8 00 00 restore for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); 2004bdc: 7f ff ff d7 call 2004b38 2004be0: 92 10 00 15 mov %l5, %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 ) { 2004be4: 10 bf ff f9 b 2004bc8 2004be8: e6 04 c0 00 ld [ %l3 ], %l3 rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; int i; assert( the_directory ); 2004bec: 11 00 80 93 sethi %hi(0x2024c00), %o0 <== NOT EXECUTED 2004bf0: 15 00 80 94 sethi %hi(0x2025000), %o2 <== NOT EXECUTED 2004bf4: 17 00 80 93 sethi %hi(0x2024c00), %o3 <== NOT EXECUTED 2004bf8: 90 12 22 50 or %o0, 0x250, %o0 <== NOT EXECUTED 2004bfc: 94 12 a0 48 or %o2, 0x48, %o2 <== NOT EXECUTED 2004c00: 96 12 e3 38 or %o3, 0x338, %o3 <== NOT EXECUTED 2004c04: 40 00 02 3a call 20054ec <__assert_func> <== NOT EXECUTED 2004c08: 92 10 20 84 mov 0x84, %o1 <== NOT EXECUTED assert( level >= 0 ); assert( the_directory->type == IMFS_DIRECTORY ); 2004c0c: 15 00 80 94 sethi %hi(0x2025000), %o2 <== NOT EXECUTED 2004c10: 17 00 80 93 sethi %hi(0x2024c00), %o3 <== NOT EXECUTED 2004c14: 90 12 22 50 or %o0, 0x250, %o0 <== NOT EXECUTED 2004c18: 94 12 a0 48 or %o2, 0x48, %o2 <== NOT EXECUTED 2004c1c: 96 12 e3 58 or %o3, 0x358, %o3 <== NOT EXECUTED 2004c20: 40 00 02 33 call 20054ec <__assert_func> <== NOT EXECUTED 2004c24: 92 10 20 88 mov 0x88, %o1 <== NOT EXECUTED IMFS_jnode_t *the_jnode; int i; assert( the_directory ); assert( level >= 0 ); 2004c28: 15 00 80 94 sethi %hi(0x2025000), %o2 <== NOT EXECUTED 2004c2c: 17 00 80 93 sethi %hi(0x2024c00), %o3 <== NOT EXECUTED 2004c30: 90 12 22 50 or %o0, 0x250, %o0 <== NOT EXECUTED 2004c34: 94 12 a0 48 or %o2, 0x48, %o2 <== NOT EXECUTED 2004c38: 96 12 e3 48 or %o3, 0x348, %o3 <== NOT EXECUTED 2004c3c: 40 00 02 2c call 20054ec <__assert_func> <== NOT EXECUTED 2004c40: 92 10 20 86 mov 0x86, %o1 <== NOT EXECUTED =============================================================================== 0200b7d4 : const char *pathname, /* IN */ size_t pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 200b7d4: 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 ) ) { 200b7d8: 80 8e bf f8 btst -8, %i2 200b7dc: 12 80 00 ee bne 200bb94 <== NEVER TAKEN 200b7e0: a0 10 00 18 mov %i0, %l0 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 200b7e4: e4 06 c0 00 ld [ %i3 ], %l2 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 200b7e8: 2b 00 80 74 sethi %hi(0x201d000), %l5 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 200b7ec: a2 10 20 00 clr %l1 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 200b7f0: aa 15 62 10 or %l5, 0x210, %l5 200b7f4: a6 07 bf d8 add %fp, -40, %l3 200b7f8: a8 07 bf fc add %fp, -4, %l4 * 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 ); 200b7fc: 90 04 00 11 add %l0, %l1, %o0 200b800: 92 10 00 19 mov %i1, %o1 200b804: 94 10 00 13 mov %l3, %o2 200b808: 40 00 03 15 call 200c45c 200b80c: 96 10 00 14 mov %l4, %o3 pathnamelen -= len; i += len; if ( !pathloc->node_access ) 200b810: 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 ); 200b814: ac 10 00 08 mov %o0, %l6 pathnamelen -= len; i += len; if ( !pathloc->node_access ) 200b818: 80 a0 60 00 cmp %g1, 0 200b81c: 02 80 00 87 be 200ba38 <== NEVER TAKEN 200b820: c4 07 bf fc ld [ %fp + -4 ], %g2 while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); pathnamelen -= len; i += len; 200b824: a2 04 40 02 add %l1, %g2, %l1 rtems_set_errno_and_return_minus_one( ENOENT ); /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 200b828: 80 a2 20 00 cmp %o0, 0 200b82c: 12 80 00 11 bne 200b870 200b830: b2 26 40 02 sub %i1, %g2, %i1 * 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 ) { 200b834: c4 00 60 4c ld [ %g1 + 0x4c ], %g2 200b838: 80 a0 a0 01 cmp %g2, 1 200b83c: 22 80 00 85 be,a 200ba50 200b840: c4 00 60 5c ld [ %g1 + 0x5c ], %g2 flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 200b844: 7f ff ff 68 call 200b5e4 200b848: 90 10 00 1b mov %i3, %o0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) 200b84c: 92 10 00 1a mov %i2, %o1 flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 200b850: b0 10 00 08 mov %o0, %i0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) 200b854: 7f ff ff 87 call 200b670 200b858: 90 10 00 1b mov %i3, %o0 200b85c: 80 a2 20 00 cmp %o0, 0 200b860: 02 80 00 98 be 200bac0 200b864: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EACCES ); return result; } 200b868: 81 c7 e0 08 ret 200b86c: 81 e8 00 00 restore /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) 200b870: c4 04 a0 4c ld [ %l2 + 0x4c ], %g2 200b874: 80 a0 a0 01 cmp %g2, 1 200b878: 02 80 00 60 be 200b9f8 200b87c: 90 10 00 1b mov %i3, %o0 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { 200b880: 80 a5 a0 03 cmp %l6, 3 200b884: 02 80 00 0b be 200b8b0 200b888: a4 10 00 01 mov %g1, %l2 200b88c: 80 a5 a0 04 cmp %l6, 4 200b890: 02 80 00 2f be 200b94c 200b894: 80 a5 a0 02 cmp %l6, 2 200b898: 02 80 00 1a be 200b900 200b89c: 80 a5 a0 04 cmp %l6, 4 /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { 200b8a0: 12 bf ff d8 bne 200b800 <== ALWAYS TAKEN 200b8a4: 90 04 00 11 add %l0, %l1, %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 ) { 200b8a8: 10 bf ff e4 b 200b838 <== NOT EXECUTED 200b8ac: c4 00 60 4c ld [ %g1 + 0x4c ], %g2 <== NOT EXECUTED case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { 200b8b0: c2 00 60 4c ld [ %g1 + 0x4c ], %g1 200b8b4: 80 a0 60 03 cmp %g1, 3 200b8b8: 02 80 00 57 be 200ba14 200b8bc: 80 a0 60 04 cmp %g1, 4 node = pathloc->node_access; if ( !node ) rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { 200b8c0: 02 80 00 99 be 200bb24 200b8c4: 90 10 00 1b mov %i3, %o0 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 200b8c8: 80 a0 60 01 cmp %g1, 1 200b8cc: 12 80 00 77 bne 200baa8 200b8d0: 90 10 00 12 mov %l2, %o0 /* * Find the token name in the current node. */ node = IMFS_find_match_in_dir( node, token ); 200b8d4: 40 00 02 b1 call 200c398 200b8d8: 92 10 00 13 mov %l3, %o1 if ( !node ) 200b8dc: a4 92 20 00 orcc %o0, 0, %l2 200b8e0: 02 80 00 56 be 200ba38 200b8e4: 01 00 00 00 nop * 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 )) { 200b8e8: c2 04 a0 4c ld [ %l2 + 0x4c ], %g1 200b8ec: 80 a0 60 01 cmp %g1, 1 200b8f0: 22 80 00 1d be,a 200b964 200b8f4: c2 04 a0 5c ld [ %l2 + 0x5c ], %g1 /* * Set the node access to the point we have found. */ pathloc->node_access = node; break; 200b8f8: 10 bf ff c1 b 200b7fc 200b8fc: e4 26 c0 00 st %l2, [ %i3 ] case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 200b900: c4 05 40 00 ld [ %l5 ], %g2 200b904: c4 00 a0 18 ld [ %g2 + 0x18 ], %g2 200b908: 80 a0 80 01 cmp %g2, %g1 200b90c: 02 bf ff bd be 200b800 200b910: 90 04 00 11 add %l0, %l1, %o0 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access) { 200b914: d2 06 e0 10 ld [ %i3 + 0x10 ], %o1 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == 200b918: c4 02 60 1c ld [ %o1 + 0x1c ], %g2 200b91c: 80 a0 80 01 cmp %g2, %g1 200b920: 02 80 00 8f be 200bb5c 200b924: 92 02 60 08 add %o1, 8, %o1 return (*pathloc->ops->evalpath_h)(&(pathname[i-len]), pathnamelen+len, flags,pathloc); } } else { if ( !node->Parent ) 200b928: e4 00 60 08 ld [ %g1 + 8 ], %l2 200b92c: 80 a4 a0 00 cmp %l2, 0 200b930: 32 bf ff b4 bne,a 200b800 200b934: e4 26 c0 00 st %l2, [ %i3 ] rtems_set_errno_and_return_minus_one( ENOENT ); 200b938: 40 00 12 c6 call 2010450 <__errno> 200b93c: b0 10 3f ff mov -1, %i0 200b940: ec 22 00 00 st %l6, [ %o0 ] 200b944: 81 c7 e0 08 ret 200b948: 81 e8 00 00 restore case IMFS_NO_MORE_PATH: case IMFS_CURRENT_DIR: break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 200b94c: 40 00 12 c1 call 2010450 <__errno> 200b950: b0 10 3f ff mov -1, %i0 200b954: 82 10 20 5b mov 0x5b, %g1 200b958: c2 22 00 00 st %g1, [ %o0 ] 200b95c: 81 c7 e0 08 ret 200b960: 81 e8 00 00 restore * 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 )) { 200b964: 80 a0 60 00 cmp %g1, 0 200b968: 02 bf ff e4 be 200b8f8 200b96c: ac 04 00 11 add %l0, %l1, %l6 const char *path, /* IN */ size_t *len, /* IN/OUT */ int *index /* IN/OUT */ ) { while ( IMFS_is_separator( path[*index] ) && path[*index] && *len ) { 200b970: d0 4d 80 00 ldsb [ %l6 ], %o0 200b974: 7f ff e1 20 call 2003df4 200b978: b0 10 00 16 mov %l6, %i0 200b97c: 80 a2 20 00 cmp %o0, 0 200b980: 22 80 00 11 be,a 200b9c4 <== NEVER TAKEN 200b984: c2 0d 80 00 ldub [ %l6 ], %g1 <== NOT EXECUTED 200b988: c2 0d 80 00 ldub [ %l6 ], %g1 200b98c: 83 28 60 18 sll %g1, 0x18, %g1 200b990: 80 a0 60 00 cmp %g1, 0 200b994: 02 80 00 51 be 200bad8 200b998: 80 a6 60 00 cmp %i1, 0 200b99c: 02 80 00 0b be 200b9c8 <== NEVER TAKEN 200b9a0: ac 05 a0 01 inc %l6 200b9a4: d0 4d 80 00 ldsb [ %l6 ], %o0 200b9a8: 7f ff e1 13 call 2003df4 200b9ac: a2 04 60 01 inc %l1 ++(*index); --(*len); 200b9b0: 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 ) { 200b9b4: 80 a2 20 00 cmp %o0, 0 200b9b8: 12 bf ff f4 bne 200b988 200b9bc: b0 10 00 16 mov %l6, %i0 200b9c0: c2 0d 80 00 ldub [ %l6 ], %g1 200b9c4: 83 28 60 18 sll %g1, 0x18, %g1 * 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] != '.')) { 200b9c8: 83 38 60 18 sra %g1, 0x18, %g1 200b9cc: 80 a0 60 2e cmp %g1, 0x2e 200b9d0: 12 80 00 42 bne 200bad8 200b9d4: 82 04 00 11 add %l0, %l1, %g1 200b9d8: c2 48 60 01 ldsb [ %g1 + 1 ], %g1 200b9dc: 80 a0 60 2e cmp %g1, 0x2e 200b9e0: 12 80 00 3e bne 200bad8 200b9e4: a2 04 60 02 add %l1, 2, %l1 pathnamelen, flags, pathloc ); } i += 2; pathnamelen -= 2; node = node->Parent; 200b9e8: e4 04 a0 08 ld [ %l2 + 8 ], %l2 return (*pathloc->ops->evalpath_h)( &pathname[i], pathnamelen, flags, pathloc ); } i += 2; pathnamelen -= 2; 200b9ec: b2 06 7f fe add %i1, -2, %i1 /* * Set the node access to the point we have found. */ pathloc->node_access = node; 200b9f0: 10 bf ff 83 b 200b7fc 200b9f4: e4 26 c0 00 st %l2, [ %i3 ] /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) 200b9f8: 7f ff ff 1e call 200b670 200b9fc: 92 10 20 01 mov 1, %o1 200ba00: 80 a2 20 00 cmp %o0, 0 200ba04: 02 80 00 50 be 200bb44 200ba08: 01 00 00 00 nop 200ba0c: 10 bf ff 9d b 200b880 200ba10: c2 06 c0 00 ld [ %i3 ], %g1 * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { IMFS_evaluate_hard_link( pathloc, 0 ); 200ba14: 90 10 00 1b mov %i3, %o0 200ba18: 7f ff ff 27 call 200b6b4 200ba1c: 92 10 20 00 clr %o1 node = pathloc->node_access; 200ba20: e4 06 c0 00 ld [ %i3 ], %l2 if ( !node ) 200ba24: 80 a4 a0 00 cmp %l2, 0 200ba28: 02 80 00 20 be 200baa8 <== NEVER TAKEN 200ba2c: 01 00 00 00 nop } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); node = pathloc->node_access; 200ba30: 10 bf ff a6 b 200b8c8 200ba34: c2 04 a0 4c ld [ %l2 + 0x4c ], %g1 */ node = IMFS_find_match_in_dir( node, token ); if ( !node ) rtems_set_errno_and_return_minus_one( ENOENT ); 200ba38: 40 00 12 86 call 2010450 <__errno> 200ba3c: b0 10 3f ff mov -1, %i0 200ba40: 82 10 20 02 mov 2, %g1 200ba44: c2 22 00 00 st %g1, [ %o0 ] 200ba48: 81 c7 e0 08 ret 200ba4c: 81 e8 00 00 restore * * NOTE: The behavior of stat() on a mount point appears to be questionable. */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { 200ba50: 80 a0 a0 00 cmp %g2, 0 200ba54: 02 bf ff 7c be 200b844 <== ALWAYS TAKEN 200ba58: c2 07 bf fc ld [ %fp + -4 ], %g1 *pathloc = node->info.directory.mt_fs->mt_fs_root; 200ba5c: c6 00 a0 1c ld [ %g2 + 0x1c ], %g3 <== NOT EXECUTED 200ba60: c6 26 c0 00 st %g3, [ %i3 ] <== NOT EXECUTED 200ba64: c6 00 a0 20 ld [ %g2 + 0x20 ], %g3 <== NOT EXECUTED return (*pathloc->ops->evalpath_h)( &pathname[i-len], 200ba68: 92 06 40 01 add %i1, %g1, %o1 <== NOT EXECUTED * NOTE: The behavior of stat() on a mount point appears to be questionable. */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { *pathloc = node->info.directory.mt_fs->mt_fs_root; 200ba6c: c6 26 e0 04 st %g3, [ %i3 + 4 ] <== NOT EXECUTED 200ba70: c6 00 a0 24 ld [ %g2 + 0x24 ], %g3 <== NOT EXECUTED return (*pathloc->ops->evalpath_h)( &pathname[i-len], 200ba74: 90 24 40 01 sub %l1, %g1, %o0 <== NOT EXECUTED * NOTE: The behavior of stat() on a mount point appears to be questionable. */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { *pathloc = node->info.directory.mt_fs->mt_fs_root; 200ba78: c6 26 e0 08 st %g3, [ %i3 + 8 ] <== NOT EXECUTED 200ba7c: c2 00 a0 28 ld [ %g2 + 0x28 ], %g1 <== NOT EXECUTED return (*pathloc->ops->evalpath_h)( &pathname[i-len], 200ba80: 90 04 00 08 add %l0, %o0, %o0 <== NOT EXECUTED * NOTE: The behavior of stat() on a mount point appears to be questionable. */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { *pathloc = node->info.directory.mt_fs->mt_fs_root; 200ba84: c2 26 e0 0c st %g1, [ %i3 + 0xc ] <== NOT EXECUTED return (*pathloc->ops->evalpath_h)( &pathname[i-len], 200ba88: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED * NOTE: The behavior of stat() on a mount point appears to be questionable. */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { *pathloc = node->info.directory.mt_fs->mt_fs_root; 200ba8c: c4 00 a0 2c ld [ %g2 + 0x2c ], %g2 <== NOT EXECUTED return (*pathloc->ops->evalpath_h)( &pathname[i-len], 200ba90: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED * NOTE: The behavior of stat() on a mount point appears to be questionable. */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { *pathloc = node->info.directory.mt_fs->mt_fs_root; 200ba94: c4 26 e0 10 st %g2, [ %i3 + 0x10 ] <== NOT EXECUTED return (*pathloc->ops->evalpath_h)( &pathname[i-len], 200ba98: 9f c0 40 00 call %g1 <== NOT EXECUTED 200ba9c: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED 200baa0: 81 c7 e0 08 ret <== NOT EXECUTED 200baa4: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 200baa8: 40 00 12 6a call 2010450 <__errno> 200baac: b0 10 3f ff mov -1, %i0 200bab0: 82 10 20 14 mov 0x14, %g1 200bab4: c2 22 00 00 st %g1, [ %o0 ] 200bab8: 81 c7 e0 08 ret 200babc: 81 e8 00 00 restore /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 200bac0: 40 00 12 64 call 2010450 <__errno> 200bac4: b0 10 3f ff mov -1, %i0 200bac8: 82 10 20 0d mov 0xd, %g1 200bacc: c2 22 00 00 st %g1, [ %o0 ] return result; } 200bad0: 81 c7 e0 08 ret 200bad4: 81 e8 00 00 restore * path. */ if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) { IMFS_skip_separator( pathname, &pathnamelen, &i); if ((pathname[i] != '.') || (pathname[i + 1] != '.')) { *pathloc = node->info.directory.mt_fs->mt_fs_root; 200bad8: c4 04 a0 5c ld [ %l2 + 0x5c ], %g2 return (*pathloc->ops->evalpath_h)( &pathname[i], 200badc: 90 10 00 18 mov %i0, %o0 * path. */ if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) { IMFS_skip_separator( pathname, &pathnamelen, &i); if ((pathname[i] != '.') || (pathname[i + 1] != '.')) { *pathloc = node->info.directory.mt_fs->mt_fs_root; 200bae0: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 return (*pathloc->ops->evalpath_h)( &pathname[i], 200bae4: 92 10 00 19 mov %i1, %o1 * path. */ if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) { IMFS_skip_separator( pathname, &pathnamelen, &i); if ((pathname[i] != '.') || (pathname[i + 1] != '.')) { *pathloc = node->info.directory.mt_fs->mt_fs_root; 200bae8: c2 26 c0 00 st %g1, [ %i3 ] 200baec: c2 00 a0 20 ld [ %g2 + 0x20 ], %g1 return (*pathloc->ops->evalpath_h)( &pathname[i], 200baf0: 94 10 00 1a mov %i2, %o2 * path. */ if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) { IMFS_skip_separator( pathname, &pathnamelen, &i); if ((pathname[i] != '.') || (pathname[i + 1] != '.')) { *pathloc = node->info.directory.mt_fs->mt_fs_root; 200baf4: c2 26 e0 04 st %g1, [ %i3 + 4 ] 200baf8: c2 00 a0 24 ld [ %g2 + 0x24 ], %g1 return (*pathloc->ops->evalpath_h)( &pathname[i], 200bafc: 96 10 00 1b mov %i3, %o3 * path. */ if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) { IMFS_skip_separator( pathname, &pathnamelen, &i); if ((pathname[i] != '.') || (pathname[i + 1] != '.')) { *pathloc = node->info.directory.mt_fs->mt_fs_root; 200bb00: c2 26 e0 08 st %g1, [ %i3 + 8 ] 200bb04: c2 00 a0 28 ld [ %g2 + 0x28 ], %g1 200bb08: c2 26 e0 0c st %g1, [ %i3 + 0xc ] return (*pathloc->ops->evalpath_h)( &pathname[i], 200bb0c: c2 00 40 00 ld [ %g1 ], %g1 * path. */ if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) { IMFS_skip_separator( pathname, &pathnamelen, &i); if ((pathname[i] != '.') || (pathname[i + 1] != '.')) { *pathloc = node->info.directory.mt_fs->mt_fs_root; 200bb10: c4 00 a0 2c ld [ %g2 + 0x2c ], %g2 return (*pathloc->ops->evalpath_h)( &pathname[i], 200bb14: 9f c0 40 00 call %g1 200bb18: c4 26 e0 10 st %g2, [ %i3 + 0x10 ] 200bb1c: 81 c7 e0 08 ret 200bb20: 91 e8 00 08 restore %g0, %o0, %o0 if ( !node ) rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); 200bb24: 7f ff fe ff call 200b720 200bb28: 92 10 20 00 clr %o1 node = pathloc->node_access; 200bb2c: e4 06 c0 00 ld [ %i3 ], %l2 if ( result == -1 ) 200bb30: 80 a2 3f ff cmp %o0, -1 200bb34: 02 bf ff 4d be 200b868 <== NEVER TAKEN 200bb38: b0 10 00 08 mov %o0, %i0 } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); node = pathloc->node_access; 200bb3c: 10 bf ff 63 b 200b8c8 200bb40: c2 04 a0 4c ld [ %l2 + 0x4c ], %g1 * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); 200bb44: 40 00 12 43 call 2010450 <__errno> 200bb48: b0 10 3f ff mov -1, %i0 200bb4c: 82 10 20 0d mov 0xd, %g1 200bb50: c2 22 00 00 st %g1, [ %o0 ] 200bb54: 81 c7 e0 08 ret 200bb58: 81 e8 00 00 restore */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { *pathloc = pathloc->mt_entry->mt_point_node; 200bb5c: 94 10 20 14 mov 0x14, %o2 200bb60: 40 00 14 78 call 2010d40 200bb64: 90 10 00 1b mov %i3, %o0 return (*pathloc->ops->evalpath_h)(&(pathname[i-len]), 200bb68: c2 06 e0 0c ld [ %i3 + 0xc ], %g1 200bb6c: c4 07 bf fc ld [ %fp + -4 ], %g2 200bb70: c2 00 40 00 ld [ %g1 ], %g1 200bb74: 92 06 40 02 add %i1, %g2, %o1 200bb78: 84 24 40 02 sub %l1, %g2, %g2 200bb7c: 94 10 00 1a mov %i2, %o2 200bb80: 90 04 00 02 add %l0, %g2, %o0 200bb84: 9f c0 40 00 call %g1 200bb88: 96 10 00 1b mov %i3, %o3 200bb8c: 81 c7 e0 08 ret 200bb90: 91 e8 00 08 restore %g0, %o0, %o0 char token[ IMFS_NAME_MAX + 1 ]; IMFS_jnode_t *node; int result; if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); 200bb94: 11 00 80 70 sethi %hi(0x201c000), %o0 <== NOT EXECUTED 200bb98: 15 00 80 70 sethi %hi(0x201c000), %o2 <== NOT EXECUTED 200bb9c: 17 00 80 70 sethi %hi(0x201c000), %o3 <== NOT EXECUTED 200bba0: 90 12 22 a8 or %o0, 0x2a8, %o0 <== NOT EXECUTED 200bba4: 94 12 a2 98 or %o2, 0x298, %o2 <== NOT EXECUTED 200bba8: 96 12 e2 f8 or %o3, 0x2f8, %o3 <== NOT EXECUTED 200bbac: 40 00 02 cf call 200c6e8 <__assert_func> <== NOT EXECUTED 200bbb0: 92 10 22 08 mov 0x208, %o1 <== NOT EXECUTED =============================================================================== 0200bc90 : int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 200bc90: 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; 200bc94: e0 06 40 00 ld [ %i1 ], %l0 /* * Get the path length. */ pathlen = strlen( path ); 200bc98: 90 10 00 18 mov %i0, %o0 200bc9c: 40 00 15 ba call 2011384 200bca0: 2d 00 80 74 sethi %hi(0x201d000), %l6 int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 200bca4: a2 10 00 18 mov %i0, %l1 node = pathloc->node_access; /* * Get the path length. */ pathlen = strlen( path ); 200bca8: a6 10 20 00 clr %l3 200bcac: a8 07 bf d8 add %fp, -40, %l4 200bcb0: aa 07 bf fc add %fp, -4, %l5 200bcb4: a4 10 00 08 mov %o0, %l2 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 200bcb8: ac 15 a2 10 or %l6, 0x210, %l6 * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); 200bcbc: 90 04 40 13 add %l1, %l3, %o0 200bcc0: 92 10 00 12 mov %l2, %o1 200bcc4: 94 10 00 14 mov %l4, %o2 200bcc8: 40 00 01 e5 call 200c45c 200bccc: 96 10 00 15 mov %l5, %o3 pathlen -= len; i += len; if ( !pathloc->node_access ) 200bcd0: 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 ); 200bcd4: ae 10 00 08 mov %o0, %l7 pathlen -= len; i += len; if ( !pathloc->node_access ) 200bcd8: 80 a0 60 00 cmp %g1, 0 200bcdc: 02 80 00 85 be 200bef0 <== NEVER TAKEN 200bce0: fa 07 bf fc ld [ %fp + -4 ], %i5 /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 200bce4: 80 a2 20 00 cmp %o0, 0 200bce8: 32 80 00 08 bne,a 200bd08 200bcec: c4 04 20 4c ld [ %l0 + 0x4c ], %g2 pathloc->node_access = node; } break; case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); 200bcf0: 40 00 11 d8 call 2010450 <__errno> 200bcf4: b0 10 3f ff mov -1, %i0 200bcf8: 82 10 20 11 mov 0x11, %g1 200bcfc: c2 22 00 00 st %g1, [ %o0 ] 200bd00: 81 c7 e0 08 ret 200bd04: 81 e8 00 00 restore /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) 200bd08: 80 a0 a0 01 cmp %g2, 1 200bd0c: 02 80 00 69 be 200beb0 200bd10: 90 10 00 19 mov %i1, %o0 while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; i += len; 200bd14: a6 04 c0 1d add %l3, %i5, %l3 */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; 200bd18: a4 24 80 1d sub %l2, %i5, %l2 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { 200bd1c: 80 a5 e0 02 cmp %l7, 2 200bd20: 02 80 00 30 be 200bde0 200bd24: a0 10 00 01 mov %g1, %l0 200bd28: 80 a5 e0 02 cmp %l7, 2 200bd2c: 08 80 00 0d bleu 200bd60 200bd30: 80 a5 e0 00 cmp %l7, 0 200bd34: 80 a5 e0 03 cmp %l7, 3 200bd38: 02 80 00 12 be 200bd80 200bd3c: 80 a5 e0 04 cmp %l7, 4 200bd40: 12 bf ff e0 bne 200bcc0 <== NEVER TAKEN 200bd44: 90 04 40 13 add %l1, %l3, %o0 case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 200bd48: 40 00 11 c2 call 2010450 <__errno> 200bd4c: b0 10 3f ff mov -1, %i0 200bd50: 82 10 20 5b mov 0x5b, %g1 200bd54: c2 22 00 00 st %g1, [ %o0 ] 200bd58: 81 c7 e0 08 ret 200bd5c: 81 e8 00 00 restore if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { 200bd60: 12 bf ff d8 bne 200bcc0 <== ALWAYS TAKEN 200bd64: 90 04 40 13 add %l1, %l3, %o0 pathloc->node_access = node; } break; case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); 200bd68: 40 00 11 ba call 2010450 <__errno> <== NOT EXECUTED 200bd6c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200bd70: 82 10 20 11 mov 0x11, %g1 <== NOT EXECUTED 200bd74: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200bd78: 81 c7 e0 08 ret <== NOT EXECUTED 200bd7c: 81 e8 00 00 restore <== NOT EXECUTED case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { 200bd80: c2 00 60 4c ld [ %g1 + 0x4c ], %g1 200bd84: 80 a0 60 03 cmp %g1, 3 200bd88: 02 80 00 83 be 200bf94 200bd8c: 80 a0 60 04 cmp %g1, 4 result = IMFS_evaluate_link( pathloc, 0 ); if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { 200bd90: 02 80 00 82 be 200bf98 200bd94: 90 10 00 19 mov %i1, %o0 if ( result == -1 ) return -1; } node = pathloc->node_access; if ( !node ) 200bd98: 80 a4 20 00 cmp %l0, 0 200bd9c: 02 80 00 78 be 200bf7c <== NEVER TAKEN 200bda0: 01 00 00 00 nop /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 200bda4: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 200bda8: 80 a0 60 01 cmp %g1, 1 200bdac: 12 80 00 74 bne 200bf7c 200bdb0: 90 10 00 10 mov %l0, %o0 /* * Find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 200bdb4: 40 00 01 79 call 200c398 200bdb8: 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 ) 200bdbc: a0 92 20 00 orcc %o0, 0, %l0 200bdc0: 02 80 00 52 be 200bf08 200bdc4: c2 07 bf fc ld [ %fp + -4 ], %g1 done = true; else { if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) { 200bdc8: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 200bdcc: 80 a0 60 01 cmp %g1, 1 200bdd0: 22 80 00 17 be,a 200be2c 200bdd4: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 i += 2; pathlen -= 2; node = node->Parent; } pathloc->node_access = node; 200bdd8: 10 bf ff b9 b 200bcbc 200bddc: e0 26 40 00 st %l0, [ %i1 ] case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 200bde0: c4 05 80 00 ld [ %l6 ], %g2 200bde4: c4 00 a0 18 ld [ %g2 + 0x18 ], %g2 200bde8: 80 a0 80 01 cmp %g2, %g1 200bdec: 02 bf ff b5 be 200bcc0 200bdf0: 90 04 40 13 add %l1, %l3, %o0 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){ 200bdf4: d2 06 60 10 ld [ %i1 + 0x10 ], %o1 200bdf8: c4 02 60 1c ld [ %o1 + 0x1c ], %g2 200bdfc: 80 a0 80 01 cmp %g2, %g1 200be00: 02 80 00 85 be 200c014 200be04: 92 02 60 08 add %o1, 8, %o1 } else { *pathloc = pathloc->mt_entry->mt_point_node; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); } } else { if ( !node->Parent ) 200be08: e0 00 60 08 ld [ %g1 + 8 ], %l0 200be0c: 80 a4 20 00 cmp %l0, 0 200be10: 32 bf ff ac bne,a 200bcc0 200be14: e0 26 40 00 st %l0, [ %i1 ] rtems_set_errno_and_return_minus_one( ENOENT ); 200be18: 40 00 11 8e call 2010450 <__errno> 200be1c: b0 10 3f ff mov -1, %i0 200be20: ee 22 00 00 st %l7, [ %o0 ] 200be24: 81 c7 e0 08 ret 200be28: 81 e8 00 00 restore */ if ( ! node ) done = true; else { if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) { 200be2c: 80 a0 60 00 cmp %g1, 0 200be30: 12 80 00 0d bne 200be64 200be34: ae 04 40 13 add %l1, %l3, %l7 200be38: 10 bf ff a1 b 200bcbc 200be3c: e0 26 40 00 st %l0, [ %i1 ] const char *path, /* IN */ size_t *len, /* IN/OUT */ int *index /* IN/OUT */ ) { while ( IMFS_is_separator( path[*index] ) && path[*index] && *len ) { 200be40: 83 28 60 18 sll %g1, 0x18, %g1 200be44: 80 a0 60 00 cmp %g1, 0 200be48: 02 80 00 5b be 200bfb4 <== NEVER TAKEN 200be4c: ae 05 e0 01 inc %l7 200be50: 80 a4 a0 00 cmp %l2, 0 200be54: 02 80 00 0c be 200be84 <== NEVER TAKEN 200be58: 83 38 60 18 sra %g1, 0x18, %g1 ++(*index); 200be5c: a6 04 e0 01 inc %l3 --(*len); 200be60: a4 04 bf ff add %l2, -1, %l2 const char *path, /* IN */ size_t *len, /* IN/OUT */ int *index /* IN/OUT */ ) { while ( IMFS_is_separator( path[*index] ) && path[*index] && *len ) { 200be64: d0 4d c0 00 ldsb [ %l7 ], %o0 200be68: 7f ff df e3 call 2003df4 200be6c: ba 10 00 17 mov %l7, %i5 200be70: 80 a2 20 00 cmp %o0, 0 200be74: 12 bf ff f3 bne 200be40 200be78: c2 0d c0 00 ldub [ %l7 ], %g1 200be7c: 83 28 60 18 sll %g1, 0x18, %g1 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] != '.')) { 200be80: 83 38 60 18 sra %g1, 0x18, %g1 200be84: 80 a0 60 2e cmp %g1, 0x2e 200be88: 12 80 00 4b bne 200bfb4 200be8c: 82 04 40 13 add %l1, %l3, %g1 200be90: c2 48 60 01 ldsb [ %g1 + 1 ], %g1 200be94: 80 a0 60 2e cmp %g1, 0x2e 200be98: 12 80 00 47 bne 200bfb4 <== NEVER TAKEN 200be9c: a6 04 e0 02 add %l3, 2, %l3 pathloc, name ); } i += 2; pathlen -= 2; node = node->Parent; 200bea0: e0 04 20 08 ld [ %l0 + 8 ], %l0 return (*pathloc->ops->evalformake_h)( &path[i], pathloc, name ); } i += 2; pathlen -= 2; 200bea4: a4 04 bf fe add %l2, -2, %l2 node = node->Parent; } pathloc->node_access = node; 200bea8: 10 bf ff 85 b 200bcbc 200beac: e0 26 40 00 st %l0, [ %i1 ] * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) 200beb0: 7f ff fd f0 call 200b670 200beb4: 92 10 20 01 mov 1, %o1 200beb8: 80 a2 20 00 cmp %o0, 0 200bebc: 02 80 00 50 be 200bffc 200bec0: 01 00 00 00 nop 200bec4: 10 bf ff 94 b 200bd14 200bec8: c2 06 40 00 ld [ %i1 ], %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++) { 200becc: 91 2a 20 18 sll %o0, 0x18, %o0 200bed0: 80 a2 20 00 cmp %o0, 0 200bed4: 02 80 00 15 be 200bf28 200bed8: a2 04 60 01 inc %l1 if ( !IMFS_is_separator( path[ i ] ) ) 200bedc: 7f ff df c6 call 2003df4 200bee0: 91 3a 20 18 sra %o0, 0x18, %o0 200bee4: 80 a2 20 00 cmp %o0, 0 200bee8: 32 bf ff f9 bne,a 200becc 200beec: d0 0c 60 01 ldub [ %l1 + 1 ], %o0 rtems_set_errno_and_return_minus_one( ENOENT ); 200bef0: 40 00 11 58 call 2010450 <__errno> 200bef4: b0 10 3f ff mov -1, %i0 200bef8: 82 10 20 02 mov 2, %g1 200befc: c2 22 00 00 st %g1, [ %o0 ] 200bf00: 81 c7 e0 08 ret 200bf04: 81 e8 00 00 restore case IMFS_CURRENT_DIR: break; } } *name = &path[ i - len ]; 200bf08: 82 24 c0 01 sub %l3, %g1, %g1 200bf0c: 82 04 40 01 add %l1, %g1, %g1 200bf10: c2 26 80 00 st %g1, [ %i2 ] /* * 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++) { 200bf14: d0 0c 40 13 ldub [ %l1 + %l3 ], %o0 200bf18: 91 2a 20 18 sll %o0, 0x18, %o0 200bf1c: 80 a2 20 00 cmp %o0, 0 200bf20: 12 bf ff ef bne 200bedc 200bf24: a2 04 40 13 add %l1, %l3, %l1 /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); 200bf28: 7f ff fd af call 200b5e4 200bf2c: 90 10 00 19 mov %i1, %o0 /* * The returned node must be a directory */ node = pathloc->node_access; 200bf30: c2 06 40 00 ld [ %i1 ], %g1 200bf34: c2 00 60 4c ld [ %g1 + 0x4c ], %g1 200bf38: 80 a0 60 01 cmp %g1, 1 200bf3c: 12 80 00 10 bne 200bf7c <== NEVER TAKEN 200bf40: b0 10 00 08 mov %o0, %i0 /* * We must have Write and execute permission on the returned node. */ if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) 200bf44: 90 10 00 19 mov %i1, %o0 200bf48: 7f ff fd ca call 200b670 200bf4c: 92 10 20 03 mov 3, %o1 200bf50: 80 a2 20 00 cmp %o0, 0 200bf54: 02 80 00 04 be 200bf64 200bf58: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EACCES ); return result; } 200bf5c: 81 c7 e0 08 ret 200bf60: 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 ) ) rtems_set_errno_and_return_minus_one( EACCES ); 200bf64: 40 00 11 3b call 2010450 <__errno> 200bf68: b0 10 3f ff mov -1, %i0 200bf6c: 82 10 20 0d mov 0xd, %g1 200bf70: c2 22 00 00 st %g1, [ %o0 ] return result; } 200bf74: 81 c7 e0 08 ret 200bf78: 81 e8 00 00 restore /* * The returned node must be a directory */ node = pathloc->node_access; if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 200bf7c: 40 00 11 35 call 2010450 <__errno> 200bf80: b0 10 3f ff mov -1, %i0 200bf84: 82 10 20 14 mov 0x14, %g1 200bf88: c2 22 00 00 st %g1, [ %o0 ] 200bf8c: 81 c7 e0 08 ret 200bf90: 81 e8 00 00 restore if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_link( pathloc, 0 ); 200bf94: 90 10 00 19 mov %i1, %o0 200bf98: 7f ff ff 08 call 200bbb8 200bf9c: 92 10 20 00 clr %o1 if ( result == -1 ) 200bfa0: 80 a2 3f ff cmp %o0, -1 200bfa4: 02 bf ff 57 be 200bd00 <== NEVER TAKEN 200bfa8: b0 10 00 08 mov %o0, %i0 200bfac: 10 bf ff 7b b 200bd98 200bfb0: e0 06 40 00 ld [ %i1 ], %l0 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] != '.')) { *pathloc = node->info.directory.mt_fs->mt_fs_root; 200bfb4: c4 04 20 5c ld [ %l0 + 0x5c ], %g2 return (*pathloc->ops->evalformake_h)( &path[i], 200bfb8: 90 10 00 1d mov %i5, %o0 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] != '.')) { *pathloc = node->info.directory.mt_fs->mt_fs_root; 200bfbc: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 return (*pathloc->ops->evalformake_h)( &path[i], 200bfc0: 92 10 00 19 mov %i1, %o1 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] != '.')) { *pathloc = node->info.directory.mt_fs->mt_fs_root; 200bfc4: c2 26 40 00 st %g1, [ %i1 ] 200bfc8: c2 00 a0 20 ld [ %g2 + 0x20 ], %g1 return (*pathloc->ops->evalformake_h)( &path[i], 200bfcc: 94 10 00 1a mov %i2, %o2 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] != '.')) { *pathloc = node->info.directory.mt_fs->mt_fs_root; 200bfd0: c2 26 60 04 st %g1, [ %i1 + 4 ] 200bfd4: c2 00 a0 24 ld [ %g2 + 0x24 ], %g1 200bfd8: c2 26 60 08 st %g1, [ %i1 + 8 ] 200bfdc: c2 00 a0 28 ld [ %g2 + 0x28 ], %g1 200bfe0: c2 26 60 0c st %g1, [ %i1 + 0xc ] return (*pathloc->ops->evalformake_h)( &path[i], 200bfe4: c2 00 60 04 ld [ %g1 + 4 ], %g1 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] != '.')) { *pathloc = node->info.directory.mt_fs->mt_fs_root; 200bfe8: c4 00 a0 2c ld [ %g2 + 0x2c ], %g2 return (*pathloc->ops->evalformake_h)( &path[i], 200bfec: 9f c0 40 00 call %g1 200bff0: c4 26 60 10 st %g2, [ %i1 + 0x10 ] 200bff4: 81 c7 e0 08 ret 200bff8: 91 e8 00 08 restore %g0, %o0, %o0 */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); 200bffc: 40 00 11 15 call 2010450 <__errno> 200c000: b0 10 3f ff mov -1, %i0 200c004: 82 10 20 0d mov 0xd, %g1 200c008: c2 22 00 00 st %g1, [ %o0 ] 200c00c: 81 c7 e0 08 ret 200c010: 81 e8 00 00 restore if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { *pathloc = pathloc->mt_entry->mt_point_node; 200c014: 94 10 20 14 mov 0x14, %o2 200c018: 40 00 13 4a call 2010d40 200c01c: 90 10 00 19 mov %i1, %o0 return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 200c020: c2 06 60 0c ld [ %i1 + 0xc ], %g1 200c024: d0 07 bf fc ld [ %fp + -4 ], %o0 200c028: c2 00 60 04 ld [ %g1 + 4 ], %g1 200c02c: 90 24 c0 08 sub %l3, %o0, %o0 200c030: 92 10 00 19 mov %i1, %o1 200c034: 90 04 40 08 add %l1, %o0, %o0 200c038: 9f c0 40 00 call %g1 200c03c: 94 10 00 1a mov %i2, %o2 200c040: 81 c7 e0 08 ret 200c044: 91 e8 00 08 restore %g0, %o0, %o0 =============================================================================== 0200b6b4 : int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 200b6b4: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *jnode = node->node_access; 200b6b8: c2 06 00 00 ld [ %i0 ], %g1 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 200b6bc: c4 00 60 4c ld [ %g1 + 0x4c ], %g2 200b6c0: 80 a0 a0 03 cmp %g2, 3 200b6c4: 12 80 00 14 bne 200b714 <== NEVER TAKEN 200b6c8: 90 10 00 18 mov %i0, %o0 /* * Set the hard link value and the handlers. */ node->node_access = jnode->info.hard_link.link_node; 200b6cc: c2 00 60 50 ld [ %g1 + 0x50 ], %g1 IMFS_Set_handlers( node ); 200b6d0: 7f ff ff c5 call 200b5e4 200b6d4: c2 26 00 00 st %g1, [ %i0 ] /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) 200b6d8: 90 10 00 18 mov %i0, %o0 200b6dc: 92 10 00 19 mov %i1, %o1 200b6e0: 7f ff ff e4 call 200b670 200b6e4: b0 10 20 00 clr %i0 200b6e8: 80 a2 20 00 cmp %o0, 0 200b6ec: 02 80 00 04 be 200b6fc <== NEVER TAKEN 200b6f0: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EACCES ); return result; } 200b6f4: 81 c7 e0 08 ret 200b6f8: 81 e8 00 00 restore /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 200b6fc: 40 00 13 55 call 2010450 <__errno> <== NOT EXECUTED 200b700: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200b704: 82 10 20 0d mov 0xd, %g1 <== NOT EXECUTED 200b708: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return result; } 200b70c: 81 c7 e0 08 ret <== NOT EXECUTED 200b710: 81 e8 00 00 restore <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) rtems_fatal_error_occurred (0xABCD0000); 200b714: 7f ff ee 0f call 2006f50 <== NOT EXECUTED 200b718: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 <== NOT EXECUTED =============================================================================== 0200bbb8 : int IMFS_evaluate_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 200bbb8: 9d e3 bf a0 save %sp, -96, %sp 200bbbc: 21 00 80 74 sethi %hi(0x201d000), %l0 200bbc0: a2 10 00 18 mov %i0, %l1 200bbc4: c2 04 22 10 ld [ %l0 + 0x210 ], %g1 else if (jnode->type == IMFS_SYM_LINK ) result = IMFS_evaluate_sym_link( node, flags ); } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ( jnode->type == IMFS_HARD_LINK ) ) ); 200bbc8: 10 80 00 07 b 200bbe4 200bbcc: a6 14 22 10 or %l0, 0x210, %l3 */ if ( jnode->type == IMFS_HARD_LINK ) result = IMFS_evaluate_hard_link( node, flags ); else if (jnode->type == IMFS_SYM_LINK ) 200bbd0: 02 80 00 21 be 200bc54 200bbd4: 84 00 bf fd add %g2, -3, %g2 result = IMFS_evaluate_sym_link( node, flags ); } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ( jnode->type == IMFS_HARD_LINK ) ) ); 200bbd8: 80 a0 a0 01 cmp %g2, 1 200bbdc: 18 80 00 1b bgu 200bc48 <== ALWAYS TAKEN 200bbe0: 90 10 20 00 clr %o0 /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; 200bbe4: c4 10 60 30 lduh [ %g1 + 0x30 ], %g2 { IMFS_jnode_t *jnode; int result = 0; do { jnode = node->node_access; 200bbe8: e4 04 40 00 ld [ %l1 ], %l2 /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; 200bbec: 84 00 a0 01 inc %g2 200bbf0: c4 30 60 30 sth %g2, [ %g1 + 0x30 ] if ( rtems_filesystem_link_counts > MAXSYMLINK ) { 200bbf4: 85 28 a0 10 sll %g2, 0x10, %g2 200bbf8: 85 30 a0 10 srl %g2, 0x10, %g2 200bbfc: 80 a0 a0 05 cmp %g2, 5 200bc00: 18 80 00 1d bgu 200bc74 200bc04: 01 00 00 00 nop /* * Follow the Link node. */ if ( jnode->type == IMFS_HARD_LINK ) 200bc08: c4 04 a0 4c ld [ %l2 + 0x4c ], %g2 200bc0c: 80 a0 a0 03 cmp %g2, 3 200bc10: 12 bf ff f0 bne 200bbd0 200bc14: 80 a0 a0 04 cmp %g2, 4 result = IMFS_evaluate_hard_link( node, flags ); 200bc18: 90 10 00 11 mov %l1, %o0 200bc1c: 7f ff fe a6 call 200b6b4 200bc20: 92 10 00 19 mov %i1, %o1 else if (jnode->type == IMFS_SYM_LINK ) result = IMFS_evaluate_sym_link( node, flags ); } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ( jnode->type == IMFS_HARD_LINK ) ) ); 200bc24: 80 a2 20 00 cmp %o0, 0 200bc28: 12 80 00 08 bne 200bc48 <== NEVER TAKEN 200bc2c: c2 04 22 10 ld [ %l0 + 0x210 ], %g1 200bc30: c4 04 a0 4c ld [ %l2 + 0x4c ], %g2 200bc34: 84 00 bf fd add %g2, -3, %g2 200bc38: 80 a0 a0 01 cmp %g2, 1 200bc3c: 08 bf ff ea bleu 200bbe4 <== ALWAYS TAKEN 200bc40: c2 04 c0 00 ld [ %l3 ], %g1 200bc44: 90 10 20 00 clr %o0 <== NOT EXECUTED /* * Clear link counter. */ rtems_filesystem_link_counts = 0; 200bc48: c0 30 60 30 clrh [ %g1 + 0x30 ] return result; } 200bc4c: 81 c7 e0 08 ret 200bc50: 91 e8 00 08 restore %g0, %o0, %o0 if ( jnode->type == IMFS_HARD_LINK ) result = IMFS_evaluate_hard_link( node, flags ); else if (jnode->type == IMFS_SYM_LINK ) result = IMFS_evaluate_sym_link( node, flags ); 200bc54: 90 10 00 11 mov %l1, %o0 200bc58: 7f ff fe b2 call 200b720 200bc5c: 92 10 00 19 mov %i1, %o1 } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ( jnode->type == IMFS_HARD_LINK ) ) ); 200bc60: 80 a2 20 00 cmp %o0, 0 200bc64: 22 bf ff f4 be,a 200bc34 200bc68: c4 04 a0 4c ld [ %l2 + 0x4c ], %g2 200bc6c: 10 bf ff f7 b 200bc48 200bc70: c2 04 22 10 ld [ %l0 + 0x210 ], %g1 */ rtems_filesystem_link_counts ++; if ( rtems_filesystem_link_counts > MAXSYMLINK ) { rtems_filesystem_link_counts = 0; rtems_set_errno_and_return_minus_one( ELOOP ); 200bc74: 40 00 11 f7 call 2010450 <__errno> 200bc78: c0 30 60 30 clrh [ %g1 + 0x30 ] 200bc7c: 82 10 20 5c mov 0x5c, %g1 200bc80: c2 22 00 00 st %g1, [ %o0 ] 200bc84: 90 10 3f ff mov -1, %o0 */ rtems_filesystem_link_counts = 0; return result; } 200bc88: 81 c7 e0 08 ret 200bc8c: 91 e8 00 08 restore %g0, %o0, %o0 =============================================================================== 0200b670 : int IMFS_evaluate_permission( rtems_filesystem_location_info_t *node, int flags ) { 200b670: 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 ) ) 200b674: 80 8e 7f f8 btst -8, %i1 200b678: 12 80 00 09 bne 200b69c <== NEVER TAKEN 200b67c: b3 2e 60 06 sll %i1, 6, %i1 /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 200b680: c2 06 00 00 ld [ %i0 ], %g1 200b684: c2 00 60 30 ld [ %g1 + 0x30 ], %g1 200b688: b2 2e 40 01 andn %i1, %g1, %i1 200b68c: 80 a0 00 19 cmp %g0, %i1 200b690: b0 60 3f ff subx %g0, -1, %i0 return 1; return 0; } 200b694: 81 c7 e0 08 ret 200b698: 81 e8 00 00 restore gid_t st_gid; IMFS_jnode_t *jnode; int flags_to_test; if ( !rtems_libio_is_valid_perms( flags ) ) rtems_set_errno_and_return_minus_one( EPERM ); 200b69c: 40 00 13 6d call 2010450 <__errno> <== NOT EXECUTED 200b6a0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200b6a4: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 200b6a8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200b6ac: 81 c7 e0 08 ret <== NOT EXECUTED 200b6b0: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0200b720 : int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 200b720: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *jnode = node->node_access; 200b724: e0 06 00 00 ld [ %i0 ], %l0 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 200b728: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 200b72c: 80 a0 60 04 cmp %g1, 4 200b730: 12 80 00 26 bne 200b7c8 <== NEVER TAKEN 200b734: 01 00 00 00 nop rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) 200b738: c2 04 20 08 ld [ %l0 + 8 ], %g1 200b73c: 80 a0 60 00 cmp %g1, 0 200b740: 02 80 00 20 be 200b7c0 <== NEVER TAKEN 200b744: 92 07 bf fc add %fp, -4, %o1 /* * Move the node_access to either the symbolic links parent or * root depending on the symbolic links path. */ node->node_access = jnode->Parent; 200b748: c2 26 00 00 st %g1, [ %i0 ] rtems_filesystem_get_sym_start_loc( 200b74c: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 200b750: 40 00 05 dc call 200cec0 200b754: 94 10 00 18 mov %i0, %o2 /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 200b758: c2 07 bf fc ld [ %fp + -4 ], %g1 200b75c: e0 04 20 50 ld [ %l0 + 0x50 ], %l0 200b760: a0 04 00 01 add %l0, %g1, %l0 200b764: 40 00 17 08 call 2011384 200b768: 90 10 00 10 mov %l0, %o0 200b76c: 94 10 00 19 mov %i1, %o2 200b770: 92 10 00 08 mov %o0, %o1 200b774: 96 10 00 18 mov %i0, %o3 200b778: 40 00 00 17 call 200b7d4 200b77c: 90 10 00 10 mov %l0, %o0 200b780: a0 10 00 08 mov %o0, %l0 strlen( &jnode->info.sym_link.name[i] ), flags, node ); IMFS_Set_handlers( node ); 200b784: 7f ff ff 98 call 200b5e4 200b788: 90 10 00 18 mov %i0, %o0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) 200b78c: 90 10 00 18 mov %i0, %o0 200b790: 7f ff ff b8 call 200b670 200b794: 92 10 00 19 mov %i1, %o1 200b798: 80 a2 20 00 cmp %o0, 0 200b79c: 02 80 00 04 be 200b7ac <== NEVER TAKEN 200b7a0: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EACCES ); return result; } 200b7a4: 81 c7 e0 08 ret 200b7a8: 91 e8 00 10 restore %g0, %l0, %o0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 200b7ac: 40 00 13 29 call 2010450 <__errno> <== NOT EXECUTED 200b7b0: a0 10 3f ff mov -1, %l0 <== NOT EXECUTED 200b7b4: 82 10 20 0d mov 0xd, %g1 <== NOT EXECUTED 200b7b8: 10 bf ff fb b 200b7a4 <== NOT EXECUTED 200b7bc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED if ( jnode->type != IMFS_SYM_LINK ) rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) rtems_fatal_error_occurred( 0xBAD00000 ); 200b7c0: 7f ff ed e4 call 2006f50 <== NOT EXECUTED 200b7c4: 11 2e b4 00 sethi %hi(0xbad00000), %o0 <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) rtems_fatal_error_occurred (0xABCD0000); 200b7c8: 7f ff ed e2 call 2006f50 <== NOT EXECUTED 200b7cc: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 <== NOT EXECUTED =============================================================================== 0200c208 : } int IMFS_fifo_close( rtems_libio_t *iop ) { 200c208: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 200c20c: e2 06 20 3c ld [ %i0 + 0x3c ], %l1 <== NOT EXECUTED int err = pipe_release(&JNODE2PIPE(jnode), iop); 200c210: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED } int IMFS_fifo_close( rtems_libio_t *iop ) { 200c214: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); 200c218: 7f ff fb 14 call 200ae68 <== NOT EXECUTED 200c21c: 90 04 60 50 add %l1, 0x50, %o0 <== NOT EXECUTED if (! err) { 200c220: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 200c224: 02 80 00 06 be 200c23c <== NOT EXECUTED 200c228: 80 a6 20 00 cmp %i0, 0 <== 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) free(jnode); } IMFS_FIFO_RETURN(err); 200c22c: 06 80 00 14 bl 200c27c <== NOT EXECUTED 200c230: 01 00 00 00 nop <== NOT EXECUTED } 200c234: 81 c7 e0 08 ret <== NOT EXECUTED 200c238: 81 e8 00 00 restore <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); if (! err) { iop->flags &= ~LIBIO_FLAGS_OPEN; 200c23c: c2 04 20 18 ld [ %l0 + 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) 200c240: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); if (! err) { iop->flags &= ~LIBIO_FLAGS_OPEN; 200c244: 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) 200c248: 40 00 01 c9 call 200c96c <== NOT EXECUTED 200c24c: c2 24 20 18 st %g1, [ %l0 + 0x18 ] <== NOT EXECUTED 200c250: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200c254: 12 80 00 08 bne 200c274 <== NOT EXECUTED 200c258: 01 00 00 00 nop <== NOT EXECUTED 200c25c: c2 14 60 34 lduh [ %l1 + 0x34 ], %g1 <== NOT EXECUTED 200c260: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200c264: 12 80 00 04 bne 200c274 <== NOT EXECUTED 200c268: 01 00 00 00 nop <== NOT EXECUTED free(jnode); 200c26c: 7f ff da a0 call 2002cec <== NOT EXECUTED 200c270: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 200c274: 81 c7 e0 08 ret <== NOT EXECUTED 200c278: 81 e8 00 00 restore <== NOT EXECUTED } IMFS_FIFO_RETURN(err); 200c27c: 40 00 10 75 call 2010450 <__errno> <== NOT EXECUTED 200c280: b0 20 00 18 neg %i0 <== NOT EXECUTED 200c284: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED } 200c288: 81 c7 e0 08 ret <== NOT EXECUTED 200c28c: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED =============================================================================== 0200c0a4 : int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 200c0a4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED int err; if (command == FIONBIO) { 200c0a8: 03 20 01 19 sethi %hi(0x80046400), %g1 <== NOT EXECUTED 200c0ac: 82 10 62 7e or %g1, 0x27e, %g1 ! 8004667e <== NOT EXECUTED 200c0b0: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 200c0b4: 02 80 00 0c be 200c0e4 <== NOT EXECUTED 200c0b8: 96 10 00 18 mov %i0, %o3 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; return 0; } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); 200c0bc: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED 200c0c0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200c0c4: d0 00 60 50 ld [ %g1 + 0x50 ], %o0 <== NOT EXECUTED 200c0c8: 7f ff fa 62 call 200aa50 <== NOT EXECUTED 200c0cc: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 200c0d0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 200c0d4: 06 80 00 13 bl 200c120 <== NOT EXECUTED 200c0d8: b2 20 00 18 neg %i0, %i1 <== NOT EXECUTED } 200c0dc: 81 c7 e0 08 ret <== NOT EXECUTED 200c0e0: 81 e8 00 00 restore <== NOT EXECUTED ) { int err; if (command == FIONBIO) { if (buffer == NULL) 200c0e4: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 200c0e8: 02 80 00 0e be 200c120 <== NOT EXECUTED 200c0ec: b2 10 20 0e mov 0xe, %i1 <== NOT EXECUTED err = -EFAULT; else { if (*(int *)buffer) 200c0f0: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED 200c0f4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200c0f8: 02 80 00 06 be 200c110 <== NOT EXECUTED 200c0fc: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_NO_DELAY; 200c100: 82 10 60 01 or %g1, 1, %g1 <== NOT EXECUTED 200c104: c2 22 e0 18 st %g1, [ %o3 + 0x18 ] <== NOT EXECUTED 200c108: 81 c7 e0 08 ret <== NOT EXECUTED 200c10c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 200c110: 82 08 7f fe and %g1, -2, %g1 <== NOT EXECUTED 200c114: c2 22 e0 18 st %g1, [ %o3 + 0x18 ] <== NOT EXECUTED 200c118: 81 c7 e0 08 ret <== NOT EXECUTED 200c11c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); 200c120: 40 00 10 cc call 2010450 <__errno> <== NOT EXECUTED 200c124: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200c128: f2 22 00 00 st %i1, [ %o0 ] <== NOT EXECUTED } 200c12c: 81 c7 e0 08 ret <== NOT EXECUTED 200c130: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0200c048 : rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 200c048: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); 200c04c: 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 ) { 200c050: 98 10 00 18 mov %i0, %o4 <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); 200c054: d0 00 60 50 ld [ %g1 + 0x50 ], %o0 <== NOT EXECUTED 200c058: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED 200c05c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200c060: 7f ff fa 5e call 200a9d8 <== NOT EXECUTED 200c064: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED 200c068: 85 3a 20 1f sra %o0, 0x1f, %g2 <== NOT EXECUTED 200c06c: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 200c070: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 200c074: 06 80 00 05 bl 200c088 <== NOT EXECUTED 200c078: 86 10 00 08 mov %o0, %g3 <== NOT EXECUTED } 200c07c: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED 200c080: 81 c7 e0 08 ret <== NOT EXECUTED 200c084: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED rtems_off64_t offset, int whence ) { off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); IMFS_FIFO_RETURN(err); 200c088: 40 00 10 f2 call 2010450 <__errno> <== NOT EXECUTED 200c08c: a0 20 00 10 neg %l0 <== NOT EXECUTED 200c090: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED 200c094: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED 200c098: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED 200c09c: 10 bf ff f8 b 200c07c <== NOT EXECUTED 200c0a0: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED =============================================================================== 0200c290 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 200c290: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *jnode = iop->file_info; int err = fifo_open(&JNODE2PIPE(jnode), iop); 200c294: d0 06 20 3c ld [ %i0 + 0x3c ], %o0 rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 200c298: 92 10 00 18 mov %i0, %o1 IMFS_jnode_t *jnode = iop->file_info; int err = fifo_open(&JNODE2PIPE(jnode), iop); 200c29c: 7f ff fb 44 call 200afac 200c2a0: 90 02 20 50 add %o0, 0x50, %o0 IMFS_FIFO_RETURN(err); 200c2a4: b0 92 20 00 orcc %o0, 0, %i0 200c2a8: 06 80 00 04 bl 200c2b8 <== ALWAYS TAKEN 200c2ac: 01 00 00 00 nop } 200c2b0: 81 c7 e0 08 ret <== NOT EXECUTED 200c2b4: 81 e8 00 00 restore <== NOT EXECUTED ) { IMFS_jnode_t *jnode = iop->file_info; int err = fifo_open(&JNODE2PIPE(jnode), iop); IMFS_FIFO_RETURN(err); 200c2b8: 40 00 10 66 call 2010450 <__errno> 200c2bc: b0 20 00 18 neg %i0 200c2c0: f0 22 00 00 st %i0, [ %o0 ] } 200c2c4: 81 c7 e0 08 ret 200c2c8: 91 e8 3f ff restore %g0, -1, %o0 =============================================================================== 0200c1a0 : ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { 200c1a0: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 200c1a4: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 <== NOT EXECUTED ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { 200c1a8: 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); 200c1ac: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 <== NOT EXECUTED 200c1b0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200c1b4: 7f ff fa be call 200acac <== NOT EXECUTED 200c1b8: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED if (err > 0) 200c1bc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 200c1c0: 04 80 00 08 ble 200c1e0 <== NOT EXECUTED 200c1c4: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED IMFS_update_atime(jnode); 200c1c8: 7f ff da f4 call 2002d98 <== NOT EXECUTED 200c1cc: 92 10 20 00 clr %o1 <== NOT EXECUTED 200c1d0: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 200c1d4: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED 200c1d8: 81 c7 e0 08 ret <== NOT EXECUTED 200c1dc: 81 e8 00 00 restore <== NOT EXECUTED IMFS_FIFO_RETURN(err); 200c1e0: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200c1e4: 12 80 00 04 bne 200c1f4 <== NOT EXECUTED 200c1e8: 01 00 00 00 nop <== NOT EXECUTED } 200c1ec: 81 c7 e0 08 ret <== NOT EXECUTED 200c1f0: 81 e8 00 00 restore <== NOT EXECUTED int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop); if (err > 0) IMFS_update_atime(jnode); IMFS_FIFO_RETURN(err); 200c1f4: 40 00 10 97 call 2010450 <__errno> <== NOT EXECUTED 200c1f8: b0 20 00 18 neg %i0 <== NOT EXECUTED 200c1fc: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED } 200c200: 81 c7 e0 08 ret <== NOT EXECUTED 200c204: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED =============================================================================== 0200c134 : ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 200c134: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 200c138: 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 ) { 200c13c: 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); 200c140: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 <== NOT EXECUTED 200c144: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200c148: 7f ff fa 5b call 200aab4 <== NOT EXECUTED 200c14c: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED if (err > 0) { 200c150: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 200c154: 04 80 00 09 ble 200c178 <== NOT EXECUTED 200c158: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED IMFS_mtime_ctime_update(jnode); 200c15c: 7f ff db 0f call 2002d98 <== NOT EXECUTED 200c160: 92 10 20 00 clr %o1 <== NOT EXECUTED 200c164: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 200c168: c2 24 20 48 st %g1, [ %l0 + 0x48 ] <== NOT EXECUTED 200c16c: c2 24 20 44 st %g1, [ %l0 + 0x44 ] <== NOT EXECUTED 200c170: 81 c7 e0 08 ret <== NOT EXECUTED 200c174: 81 e8 00 00 restore <== NOT EXECUTED } IMFS_FIFO_RETURN(err); 200c178: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200c17c: 12 80 00 04 bne 200c18c <== NOT EXECUTED 200c180: 01 00 00 00 nop <== NOT EXECUTED } 200c184: 81 c7 e0 08 ret <== NOT EXECUTED 200c188: 81 e8 00 00 restore <== NOT EXECUTED int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop); if (err > 0) { IMFS_mtime_ctime_update(jnode); } IMFS_FIFO_RETURN(err); 200c18c: 40 00 10 b1 call 2010450 <__errno> <== NOT EXECUTED 200c190: b0 20 00 18 neg %i0 <== NOT EXECUTED 200c194: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED } 200c198: 81 c7 e0 08 ret <== NOT EXECUTED 200c19c: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED =============================================================================== 0200c398 : IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { 200c398: 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 ); 200c39c: 80 a6 20 00 cmp %i0, 0 200c3a0: 02 80 00 26 be 200c438 <== NEVER TAKEN 200c3a4: 80 a6 60 00 cmp %i1, 0 if ( !name ) 200c3a8: 02 80 00 11 be 200c3ec <== NEVER TAKEN 200c3ac: 90 10 00 19 mov %i1, %o0 /* * Check for "." and ".." */ if ( !strcmp( name, dotname ) ) 200c3b0: 13 00 80 70 sethi %hi(0x201c000), %o1 200c3b4: 40 00 13 8e call 20111ec 200c3b8: 92 12 63 a0 or %o1, 0x3a0, %o1 ! 201c3a0 200c3bc: 80 a2 20 00 cmp %o0, 0 200c3c0: 02 80 00 09 be 200c3e4 <== NEVER TAKEN 200c3c4: 90 10 00 19 mov %i1, %o0 return directory; if ( !strcmp( name, dotdotname ) ) 200c3c8: 13 00 80 70 sethi %hi(0x201c000), %o1 200c3cc: 40 00 13 88 call 20111ec 200c3d0: 92 12 63 a8 or %o1, 0x3a8, %o1 ! 201c3a8 200c3d4: 80 a2 20 00 cmp %o0, 0 200c3d8: 32 80 00 07 bne,a 200c3f4 <== ALWAYS TAKEN 200c3dc: e0 06 20 50 ld [ %i0 + 0x50 ], %l0 return directory->Parent; 200c3e0: f0 06 20 08 ld [ %i0 + 8 ], %i0 <== NOT EXECUTED 200c3e4: 81 c7 e0 08 ret <== NOT EXECUTED 200c3e8: 81 e8 00 00 restore <== NOT EXECUTED if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } 200c3ec: 81 c7 e0 08 ret 200c3f0: 91 e8 20 00 restore %g0, 0, %o0 200c3f4: b0 06 20 54 add %i0, 0x54, %i0 if ( !strcmp( name, dotdotname ) ) return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; 200c3f8: 80 a4 00 18 cmp %l0, %i0 200c3fc: 12 80 00 07 bne 200c418 200c400: 90 10 00 19 mov %i1, %o0 200c404: 81 c7 e0 08 ret 200c408: 91 e8 20 00 restore %g0, 0, %o0 200c40c: 80 a4 00 18 cmp %l0, %i0 200c410: 02 bf ff f7 be 200c3ec 200c414: 90 10 00 19 mov %i1, %o0 !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 ) ) 200c418: 40 00 13 75 call 20111ec 200c41c: 92 04 20 0c add %l0, 0xc, %o1 200c420: 80 a2 20 00 cmp %o0, 0 200c424: 32 bf ff fa bne,a 200c40c 200c428: e0 04 00 00 ld [ %l0 ], %l0 200c42c: b0 10 00 10 mov %l0, %i0 200c430: 81 c7 e0 08 ret 200c434: 81 e8 00 00 restore /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); 200c438: 11 00 80 70 sethi %hi(0x201c000), %o0 <== NOT EXECUTED 200c43c: 15 00 80 70 sethi %hi(0x201c000), %o2 <== NOT EXECUTED 200c440: 17 00 80 70 sethi %hi(0x201c000), %o3 <== NOT EXECUTED 200c444: 90 12 23 38 or %o0, 0x338, %o0 <== NOT EXECUTED 200c448: 94 12 a3 b0 or %o2, 0x3b0, %o2 <== NOT EXECUTED 200c44c: 96 12 e3 90 or %o3, 0x390, %o3 <== NOT EXECUTED 200c450: 40 00 00 a6 call 200c6e8 <__assert_func> <== NOT EXECUTED 200c454: 92 10 20 2a mov 0x2a, %o1 <== NOT EXECUTED =============================================================================== 0200c2d4 : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 200c2d4: 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; 200c2d8: c8 06 20 20 ld [ %i0 + 0x20 ], %g4 200c2dc: c6 06 20 24 ld [ %i0 + 0x24 ], %g3 200c2e0: c4 06 20 28 ld [ %i0 + 0x28 ], %g2 200c2e4: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 /* * 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; 200c2e8: e4 06 20 1c ld [ %i0 + 0x1c ], %l2 loc = temp_mt_entry->mt_fs_root; 200c2ec: c8 27 bf f0 st %g4, [ %fp + -16 ] 200c2f0: c6 27 bf f4 st %g3, [ %fp + -12 ] 200c2f4: c4 27 bf f8 st %g2, [ %fp + -8 ] 200c2f8: c2 27 bf fc st %g1, [ %fp + -4 ] /* * Set this to null to indicate that it is being unmounted. */ temp_mt_entry->mt_fs_root.node_access = NULL; 200c2fc: c0 26 20 1c clr [ %i0 + 0x1c ] 200c300: a0 07 bf ec add %fp, -20, %l0 do { next = jnode->Parent; loc.node_access = (void *)jnode; 200c304: e4 27 bf ec st %l2, [ %fp + -20 ] */ temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; 200c308: e2 04 a0 08 ld [ %l2 + 8 ], %l1 loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); 200c30c: 7f ff fc b6 call 200b5e4 200c310: 90 10 00 10 mov %l0, %o0 if ( jnode->type != IMFS_DIRECTORY ) { 200c314: c2 04 a0 4c ld [ %l2 + 0x4c ], %g1 200c318: 80 a0 60 01 cmp %g1, 1 200c31c: 12 80 00 17 bne 200c378 200c320: 84 04 a0 54 add %l2, 0x54, %g2 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 200c324: c2 04 a0 50 ld [ %l2 + 0x50 ], %g1 200c328: 80 a0 40 02 cmp %g1, %g2 200c32c: 22 80 00 14 be,a 200c37c 200c330: 90 10 20 00 clr %o0 result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } if ( jnode != NULL ) { 200c334: 80 a4 a0 00 cmp %l2, 0 200c338: 02 80 00 0e be 200c370 200c33c: 01 00 00 00 nop if ( jnode->type == IMFS_DIRECTORY ) { 200c340: c2 04 a0 4c ld [ %l2 + 0x4c ], %g1 200c344: 80 a0 60 01 cmp %g1, 1 200c348: 32 bf ff f0 bne,a 200c308 <== NEVER TAKEN 200c34c: e4 27 bf ec st %l2, [ %fp + -20 ] <== NOT EXECUTED 200c350: c2 04 a0 50 ld [ %l2 + 0x50 ], %g1 200c354: 84 04 a0 54 add %l2, 0x54, %g2 200c358: 80 a0 40 02 cmp %g1, %g2 200c35c: 22 bf ff eb be,a 200c308 200c360: e4 27 bf ec st %l2, [ %fp + -20 ] if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); 200c364: a4 90 60 00 orcc %g1, 0, %l2 200c368: 32 bf ff e8 bne,a 200c308 <== ALWAYS TAKEN 200c36c: e4 27 bf ec st %l2, [ %fp + -20 ] return 0; } 200c370: 81 c7 e0 08 ret 200c374: 91 e8 20 00 restore %g0, 0, %o0 result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { result = IMFS_unlink( NULL, &loc ); 200c378: 90 10 20 00 clr %o0 200c37c: 7f ff d8 c4 call 200268c 200c380: 92 10 00 10 mov %l0, %o1 if (result != 0) 200c384: 80 a2 20 00 cmp %o0, 0 200c388: 02 bf ff eb be 200c334 <== ALWAYS TAKEN 200c38c: a4 10 00 11 mov %l1, %l2 if ( jnode->type == IMFS_DIRECTORY ) { if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); 200c390: 81 c7 e0 08 ret <== NOT EXECUTED 200c394: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED =============================================================================== 0200c45c : const char *path, int pathlen, char *token, int *token_len ) { 200c45c: 9d e3 bf a0 save %sp, -96, %sp register char c; /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; 200c460: a0 10 20 00 clr %l0 while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) { 200c464: 10 80 00 08 b 200c484 200c468: e2 0e 00 00 ldub [ %i0 ], %l1 200c46c: 16 80 00 0c bge 200c49c 200c470: 80 a4 20 20 cmp %l0, 0x20 token[i] = c; 200c474: e2 2e 80 10 stb %l1, [ %i2 + %l0 ] if ( i == IMFS_NAME_MAX ) 200c478: 02 80 00 2c be 200c528 200c47c: a0 04 20 01 inc %l0 return IMFS_INVALID_TOKEN; if ( !IMFS_is_valid_name_char(c) ) type = IMFS_INVALID_TOKEN; c = path [++i]; 200c480: 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) ) { 200c484: a5 2c 60 18 sll %l1, 0x18, %l2 200c488: 7f ff de 5b call 2003df4 200c48c: 91 3c a0 18 sra %l2, 0x18, %o0 200c490: 80 a2 20 00 cmp %o0, 0 200c494: 02 bf ff f6 be 200c46c 200c498: 80 a4 00 19 cmp %l0, %i1 /* * Copy a seperator into token. */ if ( i == 0 ) { 200c49c: 80 a4 20 00 cmp %l0, 0 200c4a0: 12 80 00 0c bne 200c4d0 200c4a4: 82 06 80 10 add %i2, %l0, %g1 token[i] = c; if ( (token[i] != '\0') && pathlen ) { 200c4a8: 80 a4 a0 00 cmp %l2, 0 200c4ac: 02 80 00 21 be 200c530 200c4b0: e2 2e 80 00 stb %l1, [ %i2 ] 200c4b4: 80 a6 60 00 cmp %i1, 0 200c4b8: 22 80 00 1f be,a 200c534 200c4bc: e0 26 c0 00 st %l0, [ %i3 ] 200c4c0: a0 10 20 01 mov 1, %l0 /* * Set token_len to the number of characters copied. */ *token_len = i; 200c4c4: e0 26 c0 00 st %l0, [ %i3 ] */ if ( i == 0 ) { token[i] = c; if ( (token[i] != '\0') && pathlen ) { 200c4c8: 81 c7 e0 08 ret 200c4cc: 91 e8 20 01 restore %g0, 1, %o0 i++; type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { 200c4d0: c2 48 7f ff ldsb [ %g1 + -1 ], %g1 200c4d4: 80 a0 60 00 cmp %g1, 0 200c4d8: 32 80 00 02 bne,a 200c4e0 <== ALWAYS TAKEN 200c4dc: c0 2e 80 10 clrb [ %i2 + %l0 ] /* * Set token_len to the number of characters copied. */ *token_len = i; 200c4e0: e0 26 c0 00 st %l0, [ %i3 ] * If we copied something that was not a seperator see if * it was a special name. */ if ( type == IMFS_NAME ) { if ( strcmp( token, "..") == 0 ) 200c4e4: 90 10 00 1a mov %i2, %o0 200c4e8: 13 00 80 70 sethi %hi(0x201c000), %o1 200c4ec: b0 10 20 02 mov 2, %i0 200c4f0: 40 00 13 3f call 20111ec 200c4f4: 92 12 63 d0 or %o1, 0x3d0, %o1 200c4f8: 80 a2 20 00 cmp %o0, 0 200c4fc: 02 80 00 09 be 200c520 200c500: 90 10 00 1a mov %i2, %o0 type = IMFS_UP_DIR; else if ( strcmp( token, "." ) == 0 ) 200c504: 13 00 80 70 sethi %hi(0x201c000), %o1 200c508: 40 00 13 39 call 20111ec 200c50c: 92 12 63 c8 or %o1, 0x3c8, %o1 ! 201c3c8 <__FUNCTION__.5476+0x18> 200c510: 80 a0 00 08 cmp %g0, %o0 200c514: b0 60 20 00 subx %g0, 0, %i0 200c518: b0 0e 20 02 and %i0, 2, %i0 200c51c: b0 06 20 01 inc %i0 type = IMFS_CURRENT_DIR; } return type; } 200c520: 81 c7 e0 08 ret 200c524: 81 e8 00 00 restore c = path[i]; while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) { token[i] = c; if ( i == IMFS_NAME_MAX ) 200c528: 81 c7 e0 08 ret 200c52c: 91 e8 20 04 restore %g0, 4, %o0 /* * Set token_len to the number of characters copied. */ *token_len = i; 200c530: e0 26 c0 00 st %l0, [ %i3 ] type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { token[i] = '\0'; 200c534: 81 c7 e0 08 ret 200c538: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 02002220 : 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 ) { 2002220: 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, 2002224: 03 00 80 74 sethi %hi(0x201d000), %g1 2002228: c2 00 60 48 ld [ %g1 + 0x48 ], %g1 ! 201d048 int bit_mask; /* * check, whether requested bytes per block is valid */ for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) { 200222c: 80 a0 60 10 cmp %g1, 0x10 2002230: 02 80 00 0a be 2002258 <== NEVER TAKEN 2002234: 86 10 20 00 clr %g3 2002238: 84 10 20 20 mov 0x20, %g2 200223c: 80 a0 40 02 cmp %g1, %g2 2002240: 02 80 00 06 be 2002258 2002244: 86 00 e0 01 inc %g3 2002248: 80 a0 e0 05 cmp %g3, 5 200224c: 12 bf ff fc bne 200223c <== ALWAYS TAKEN 2002250: 85 28 a0 01 sll %g2, 1, %g2 2002254: 82 10 20 80 mov 0x80, %g1 <== NOT EXECUTED if (bit_mask == requested_bytes_per_block) { is_valid = true; } } *dest_bytes_per_block = ((is_valid) 2002258: 05 00 80 75 sethi %hi(0x201d400), %g2 /* * 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(); 200225c: 40 00 24 85 call 200b470 2002260: c2 20 a3 4c st %g1, [ %g2 + 0x34c ] ! 201d74c 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; 2002264: 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(); 2002268: 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; 200226c: 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; 2002270: 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; 2002274: 13 00 80 70 sethi %hi(0x201c000), %o1 2002278: 90 06 20 38 add %i0, 0x38, %o0 200227c: 40 00 3a b1 call 2010d40 2002280: 92 12 61 ec or %o1, 0x1ec, %o1 /* * Create custom file system data. */ fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); 2002284: 90 10 20 01 mov 1, %o0 2002288: 40 00 01 f6 call 2002a60 200228c: 92 10 20 10 mov 0x10, %o1 if ( !fs_info ) { 2002290: 80 a2 20 00 cmp %o0, 0 2002294: 02 80 00 11 be 20022d8 <== NEVER TAKEN 2002298: 05 00 80 75 sethi %hi(0x201d400), %g2 fs_info->ino_count = 1; 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; 200229c: c8 06 20 1c ld [ %i0 + 0x1c ], %g4 /* * Set st_ino for the root to 1. */ fs_info->instance = imfs_instance++; 20022a0: c2 00 a3 50 ld [ %g2 + 0x350 ], %g1 fs_info->ino_count = 1; 20022a4: 86 10 20 01 mov 1, %g3 20022a8: c6 22 20 04 st %g3, [ %o0 + 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; 20022ac: c6 21 20 38 st %g3, [ %g4 + 0x38 ] /* * Set st_ino for the root to 1. */ fs_info->instance = imfs_instance++; 20022b0: 86 00 60 01 add %g1, 1, %g3 20022b4: c6 20 a3 50 st %g3, [ %g2 + 0x350 ] 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; 20022b8: d0 26 20 34 st %o0, [ %i0 + 0x34 ] */ fs_info->instance = imfs_instance++; fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; 20022bc: f6 22 20 0c st %i3, [ %o0 + 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; 20022c0: f4 22 20 08 st %i2, [ %o0 + 8 ] /* * Set st_ino for the root to 1. */ fs_info->instance = imfs_instance++; 20022c4: c2 22 00 00 st %g1, [ %o0 ] jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; /* Initialize POSIX FIFO/pipe module */ rtems_pipe_initialize(); 20022c8: 40 00 21 c6 call 200a9e0 20022cc: b0 10 20 00 clr %i0 return 0; } 20022d0: 81 c7 e0 08 ret 20022d4: 81 e8 00 00 restore /* * Create custom file system data. */ fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); if ( !fs_info ) { free(temp_mt_entry->mt_fs_root.node_access); 20022d8: d0 06 20 1c ld [ %i0 + 0x1c ], %o0 <== NOT EXECUTED 20022dc: 40 00 02 84 call 2002cec <== NOT EXECUTED 20022e0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 20022e4: 40 00 38 5b call 2010450 <__errno> <== NOT EXECUTED 20022e8: 01 00 00 00 nop <== NOT EXECUTED 20022ec: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 20022f0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20022f4: 81 c7 e0 08 ret <== NOT EXECUTED 20022f8: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 020022fc : int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { 20022fc: 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; 2002300: c2 06 00 00 ld [ %i0 ], %g1 2002304: c2 27 bf d8 st %g1, [ %fp + -40 ] if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) 2002308: c2 10 60 34 lduh [ %g1 + 0x34 ], %g1 200230c: 80 a0 60 07 cmp %g1, 7 2002310: 18 80 00 1f bgu 200238c 2002314: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EMLINK ); /* * Remove any separators at the end of the string. */ IMFS_get_token( token, strlen( token ), new_name, &i ); 2002318: 40 00 3c 1b call 2011384 200231c: 90 10 00 1a mov %i2, %o0 2002320: a0 07 bf b0 add %fp, -80, %l0 2002324: 92 10 00 08 mov %o0, %o1 2002328: 96 07 bf fc add %fp, -4, %o3 200232c: 94 10 00 10 mov %l0, %o2 2002330: 40 00 28 4b call 200c45c 2002334: 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( 2002338: 90 10 00 19 mov %i1, %o0 200233c: 94 10 00 10 mov %l0, %o2 2002340: 92 10 20 03 mov 3, %o1 2002344: 17 00 00 28 sethi %hi(0xa000), %o3 2002348: 98 07 bf d8 add %fp, -40, %o4 200234c: 40 00 24 59 call 200b4b0 2002350: 96 12 e1 ff or %o3, 0x1ff, %o3 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) 2002354: 80 a2 20 00 cmp %o0, 0 2002358: 02 80 00 13 be 20023a4 <== NEVER TAKEN 200235c: c2 07 bf d8 ld [ %fp + -40 ], %g1 /* * 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 ); 2002360: 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++; 2002364: c4 10 60 34 lduh [ %g1 + 0x34 ], %g2 IMFS_update_ctime( info.hard_link.link_node ); 2002368: 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++; 200236c: 84 00 a0 01 inc %g2 IMFS_update_ctime( info.hard_link.link_node ); 2002370: 40 00 02 8a call 2002d98 2002374: c4 30 60 34 sth %g2, [ %g1 + 0x34 ] 2002378: c4 07 bf f4 ld [ %fp + -12 ], %g2 200237c: c2 07 bf d8 ld [ %fp + -40 ], %g1 2002380: c4 20 60 48 st %g2, [ %g1 + 0x48 ] return 0; } 2002384: 81 c7 e0 08 ret 2002388: 91 e8 20 00 restore %g0, 0, %o0 /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) rtems_set_errno_and_return_minus_one( EMLINK ); 200238c: 40 00 38 31 call 2010450 <__errno> 2002390: b0 10 3f ff mov -1, %i0 2002394: 82 10 20 1f mov 0x1f, %g1 2002398: c2 22 00 00 st %g1, [ %o0 ] 200239c: 81 c7 e0 08 ret 20023a0: 81 e8 00 00 restore ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); 20023a4: 40 00 38 2b call 2010450 <__errno> <== NOT EXECUTED 20023a8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20023ac: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 20023b0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20023b4: 81 c7 e0 08 ret <== NOT EXECUTED 20023b8: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0200e8ac : MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) { 200e8ac: 9d e3 bf a0 save %sp, -96, %sp block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 200e8b0: 80 a6 20 00 cmp %i0, 0 200e8b4: 02 80 00 18 be 200e914 <== NEVER TAKEN 200e8b8: 11 00 80 71 sethi %hi(0x201c400), %o0 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 200e8bc: c2 06 20 4c ld [ %i0 + 0x4c ], %g1 200e8c0: 80 a0 60 05 cmp %g1, 5 200e8c4: 12 80 00 1b bne 200e930 <== NEVER TAKEN 200e8c8: 90 10 00 18 mov %i0, %o0 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 ); 200e8cc: 92 10 00 19 mov %i1, %o1 200e8d0: 7f ff fe 61 call 200e254 200e8d4: 94 10 20 01 mov 1, %o2 if ( *block_entry_ptr ) 200e8d8: 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 ); 200e8dc: a0 10 00 08 mov %o0, %l0 if ( *block_entry_ptr ) 200e8e0: 80 a0 60 00 cmp %g1, 0 200e8e4: 02 80 00 04 be 200e8f4 200e8e8: b0 10 20 00 clr %i0 if ( !memory ) return 1; *block_entry_ptr = memory; return 0; } 200e8ec: 81 c7 e0 08 ret 200e8f0: 81 e8 00 00 restore #if 0 fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); 200e8f4: 7f ff fe 4b call 200e220 200e8f8: b0 10 20 01 mov 1, %i0 if ( !memory ) 200e8fc: 80 a2 20 00 cmp %o0, 0 200e900: 02 bf ff fb be 200e8ec <== NEVER TAKEN 200e904: 01 00 00 00 nop return 1; *block_entry_ptr = memory; 200e908: d0 24 00 00 st %o0, [ %l0 ] return 0; } 200e90c: 81 c7 e0 08 ret 200e910: 91 e8 20 00 restore %g0, 0, %o0 ) { block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 200e914: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED 200e918: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED 200e91c: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED 200e920: 94 12 a3 60 or %o2, 0x360, %o2 <== NOT EXECUTED 200e924: 96 12 e2 00 or %o3, 0x200, %o3 <== NOT EXECUTED 200e928: 7f ff f7 70 call 200c6e8 <__assert_func> <== NOT EXECUTED 200e92c: 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 ); 200e930: 11 00 80 71 sethi %hi(0x201c400), %o0 <== NOT EXECUTED 200e934: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED 200e938: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED 200e93c: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED 200e940: 94 12 a3 60 or %o2, 0x360, %o2 <== NOT EXECUTED 200e944: 96 12 e2 10 or %o3, 0x210, %o3 <== NOT EXECUTED 200e948: 7f ff f7 68 call 200c6e8 <__assert_func> <== NOT EXECUTED 200e94c: 92 10 21 6d mov 0x16d, %o1 <== NOT EXECUTED =============================================================================== 0200e954 : MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 200e954: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 200e958: 80 a6 20 00 cmp %i0, 0 200e95c: 02 80 00 5b be 200eac8 <== NEVER TAKEN 200e960: 11 00 80 71 sethi %hi(0x201c400), %o0 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 200e964: c2 06 20 4c ld [ %i0 + 0x4c ], %g1 200e968: 80 a0 60 05 cmp %g1, 5 200e96c: 12 80 00 50 bne 200eaac <== NEVER TAKEN 200e970: 03 00 80 75 sethi %hi(0x201d400), %g1 if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) 200e974: e2 00 63 4c ld [ %g1 + 0x34c ], %l1 ! 201d74c 200e978: a1 34 60 02 srl %l1, 2, %l0 200e97c: 92 10 00 10 mov %l0, %o1 200e980: 40 00 2b cd call 20198b4 <.umul> 200e984: 90 04 20 01 add %l0, 1, %o0 200e988: 92 10 00 10 mov %l0, %o1 200e98c: 40 00 2b ca call 20198b4 <.umul> 200e990: 90 02 20 01 inc %o0 200e994: 92 10 00 11 mov %l1, %o1 200e998: 40 00 2b c7 call 20198b4 <.umul> 200e99c: 90 02 3f ff add %o0, -1, %o0 200e9a0: 82 10 20 00 clr %g1 200e9a4: 80 a0 40 19 cmp %g1, %i1 200e9a8: 04 80 00 37 ble 200ea84 <== ALWAYS TAKEN 200e9ac: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EINVAL ); if ( new_length <= the_jnode->info.file.size ) 200e9b0: e4 1e 20 50 ldd [ %i0 + 0x50 ], %l2 <== NOT EXECUTED 200e9b4: 80 a6 40 12 cmp %i1, %l2 200e9b8: 04 80 00 29 ble 200ea5c <== ALWAYS TAKEN 200e9bc: a9 3c 60 1f sra %l1, 0x1f, %l4 /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; 200e9c0: 96 10 00 11 mov %l1, %o3 200e9c4: 94 10 00 14 mov %l4, %o2 200e9c8: 90 10 00 19 mov %i1, %o0 200e9cc: 40 00 2d 4c call 2019efc <__divdi3> 200e9d0: 92 10 00 1a mov %i2, %o1 old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 200e9d4: 90 10 00 12 mov %l2, %o0 /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; 200e9d8: a0 10 00 09 mov %o1, %l0 old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 200e9dc: 94 10 00 14 mov %l4, %o2 200e9e0: 92 10 00 13 mov %l3, %o1 200e9e4: 40 00 2d 46 call 2019efc <__divdi3> 200e9e8: 96 10 00 11 mov %l1, %o3 /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 200e9ec: 80 a4 00 09 cmp %l0, %o1 200e9f0: 0a 80 00 21 bcs 200ea74 <== NEVER TAKEN 200e9f4: a4 10 00 09 mov %o1, %l2 200e9f8: 10 80 00 05 b 200ea0c 200e9fc: a2 10 00 09 mov %o1, %l1 200ea00: 80 a4 00 11 cmp %l0, %l1 200ea04: 2a 80 00 1d bcs,a 200ea78 200ea08: f4 26 20 54 st %i2, [ %i0 + 0x54 ] if ( IMFS_memfile_addblock( the_jnode, block ) ) { 200ea0c: 90 10 00 18 mov %i0, %o0 200ea10: 7f ff ff a7 call 200e8ac 200ea14: 92 10 00 11 mov %l1, %o1 200ea18: 80 a2 20 00 cmp %o0, 0 200ea1c: 22 bf ff f9 be,a 200ea00 <== ALWAYS TAKEN 200ea20: a2 04 60 01 inc %l1 for ( ; block>=old_blocks ; block-- ) { 200ea24: 10 80 00 06 b 200ea3c <== NOT EXECUTED 200ea28: 80 a4 80 11 cmp %l2, %l1 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); 200ea2c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 200ea30: 7f ff fe dc call 200e5a0 <== NOT EXECUTED 200ea34: a2 04 7f ff add %l1, -1, %l1 <== 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-- ) { 200ea38: 80 a4 80 11 cmp %l2, %l1 <== NOT EXECUTED 200ea3c: 08 bf ff fc bleu 200ea2c <== NOT EXECUTED 200ea40: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); 200ea44: 40 00 06 83 call 2010450 <__errno> <== NOT EXECUTED 200ea48: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200ea4c: 82 10 20 1c mov 0x1c, %g1 <== NOT EXECUTED 200ea50: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200ea54: 81 c7 e0 08 ret <== NOT EXECUTED 200ea58: 81 e8 00 00 restore <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( new_length <= the_jnode->info.file.size ) 200ea5c: 12 80 00 04 bne 200ea6c <== NEVER TAKEN 200ea60: 80 a6 80 13 cmp %i2, %l3 200ea64: 18 bf ff d7 bgu 200e9c0 200ea68: a9 3c 60 1f sra %l1, 0x1f, %l4 200ea6c: 81 c7 e0 08 ret 200ea70: 91 e8 20 00 restore %g0, 0, %o0 /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; 200ea74: f4 26 20 54 st %i2, [ %i0 + 0x54 ] <== NOT EXECUTED 200ea78: f2 26 20 50 st %i1, [ %i0 + 0x50 ] return 0; } 200ea7c: 81 c7 e0 08 ret 200ea80: 91 e8 20 00 restore %g0, 0, %o0 assert( the_jnode->type == IMFS_MEMORY_FILE ); if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) 200ea84: 12 80 00 04 bne 200ea94 <== NEVER TAKEN 200ea88: 80 a2 00 1a cmp %o0, %i2 200ea8c: 38 bf ff ca bgu,a 200e9b4 <== ALWAYS TAKEN 200ea90: e4 1e 20 50 ldd [ %i0 + 0x50 ], %l2 rtems_set_errno_and_return_minus_one( EINVAL ); 200ea94: 40 00 06 6f call 2010450 <__errno> <== NOT EXECUTED 200ea98: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200ea9c: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 200eaa0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200eaa4: 81 c7 e0 08 ret <== NOT EXECUTED 200eaa8: 81 e8 00 00 restore <== NOT EXECUTED assert( the_jnode ); if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 200eaac: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED 200eab0: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED 200eab4: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED 200eab8: 94 12 a3 78 or %o2, 0x378, %o2 <== NOT EXECUTED 200eabc: 96 12 e2 10 or %o3, 0x210, %o3 <== NOT EXECUTED 200eac0: 7f ff f7 0a call 200c6e8 <__assert_func> <== NOT EXECUTED 200eac4: 92 10 21 35 mov 0x135, %o1 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 200eac8: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED 200eacc: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED 200ead0: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED 200ead4: 94 12 a3 78 or %o2, 0x378, %o2 <== NOT EXECUTED 200ead8: 96 12 e2 00 or %o3, 0x200, %o3 <== NOT EXECUTED 200eadc: 7f ff f7 03 call 200c6e8 <__assert_func> <== NOT EXECUTED 200eae0: 92 10 21 31 mov 0x131, %o1 <== NOT EXECUTED =============================================================================== 0200e254 : #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 200e254: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 200e258: 80 a6 20 00 cmp %i0, 0 200e25c: 02 80 00 94 be 200e4ac <== NEVER TAKEN 200e260: 11 00 80 71 sethi %hi(0x201c400), %o0 if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 200e264: c2 06 20 4c ld [ %i0 + 0x4c ], %g1 200e268: 80 a0 60 05 cmp %g1, 5 200e26c: 12 80 00 97 bne 200e4c8 <== NEVER TAKEN 200e270: 03 00 80 75 sethi %hi(0x201d400), %g1 /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { 200e274: e0 00 63 4c ld [ %g1 + 0x34c ], %l0 ! 201d74c 200e278: a1 34 20 02 srl %l0, 2, %l0 200e27c: 82 04 3f ff add %l0, -1, %g1 200e280: 80 a6 40 01 cmp %i1, %g1 200e284: 08 80 00 20 bleu 200e304 <== ALWAYS TAKEN 200e288: 80 a6 a0 00 cmp %i2, 0 /* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { 200e28c: 90 04 20 01 add %l0, 1, %o0 <== NOT EXECUTED 200e290: 40 00 2d 89 call 20198b4 <.umul> <== NOT EXECUTED 200e294: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 200e298: 82 02 3f ff add %o0, -1, %g1 <== NOT EXECUTED 200e29c: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 200e2a0: 18 80 00 21 bgu 200e324 <== NOT EXECUTED 200e2a4: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d) ", block ); fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; 200e2a8: b2 26 40 10 sub %i1, %l0, %i1 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 200e2ac: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 200e2b0: 40 00 2e 67 call 2019c4c <.urem> <== NOT EXECUTED 200e2b4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 200e2b8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 200e2bc: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 200e2c0: 40 00 2d b7 call 201999c <.udiv> <== NOT EXECUTED 200e2c4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { 200e2c8: 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; 200e2cc: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { 200e2d0: 02 80 00 42 be 200e3d8 <== NOT EXECUTED 200e2d4: c2 06 20 5c ld [ %i0 + 0x5c ], %g1 <== NOT EXECUTED if ( !p ) { 200e2d8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200e2dc: 02 80 00 5e be 200e454 <== NOT EXECUTED 200e2e0: 01 00 00 00 nop <== NOT EXECUTED if ( !p ) return 0; info->doubly_indirect = p; } p1 = (block_p *)p[ doubly ]; 200e2e4: a1 2c 20 02 sll %l0, 2, %l0 <== NOT EXECUTED 200e2e8: d0 00 40 10 ld [ %g1 + %l0 ], %o0 <== NOT EXECUTED if ( !p1 ) { 200e2ec: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200e2f0: 02 80 00 52 be 200e438 <== NOT EXECUTED 200e2f4: a0 00 40 10 add %g1, %l0, %l0 <== NOT EXECUTED if ( !p1 ) return 0; p[ doubly ] = (block_p) p1; } return (block_p *)&p1[ singly ]; 200e2f8: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED 200e2fc: 81 c7 e0 08 ret <== NOT EXECUTED 200e300: 91 ea 00 11 restore %o0, %l1, %o0 <== NOT EXECUTED fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; if ( malloc_it ) { 200e304: 02 80 00 40 be 200e404 200e308: d0 06 20 58 ld [ %i0 + 0x58 ], %o0 if ( !p ) { 200e30c: 80 a2 20 00 cmp %o0, 0 200e310: 02 80 00 43 be 200e41c 200e314: 01 00 00 00 nop p2 = memfile_alloc_block(); if ( !p2 ) return 0; p1[ doubly ] = (block_p) p2; } return (block_p *)&p2[ singly ]; 200e318: b3 2e 60 02 sll %i1, 2, %i1 200e31c: 81 c7 e0 08 ret 200e320: 91 ea 00 19 restore %o0, %i1, %o0 #endif /* * Is the block number in the triply indirect portion? */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { 200e324: 90 02 20 01 inc %o0 <== NOT EXECUTED 200e328: 40 00 2d 63 call 20198b4 <.umul> <== NOT EXECUTED 200e32c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 200e330: 90 02 3f ff add %o0, -1, %o0 <== NOT EXECUTED 200e334: 80 a6 40 08 cmp %i1, %o0 <== NOT EXECUTED 200e338: 18 80 00 31 bgu 200e3fc <== NOT EXECUTED 200e33c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; 200e340: a2 26 40 11 sub %i1, %l1, %l1 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 200e344: 40 00 2e 42 call 2019c4c <.urem> <== NOT EXECUTED 200e348: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 200e34c: 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; 200e350: b2 10 00 08 mov %o0, %i1 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 200e354: 40 00 2d 92 call 201999c <.udiv> <== NOT EXECUTED 200e358: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; 200e35c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 200e360: 40 00 2d 8f call 201999c <.udiv> <== NOT EXECUTED 200e364: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 200e368: 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; 200e36c: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 200e370: 40 00 2e 37 call 2019c4c <.urem> <== NOT EXECUTED 200e374: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { 200e378: 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; 200e37c: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { 200e380: 02 80 00 3c be 200e470 <== NOT EXECUTED 200e384: c2 06 20 60 ld [ %i0 + 0x60 ], %g1 <== NOT EXECUTED if ( !p ) { 200e388: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200e38c: 02 80 00 56 be 200e4e4 <== NOT EXECUTED 200e390: 01 00 00 00 nop <== NOT EXECUTED if ( !p ) return 0; info->triply_indirect = p; } p1 = (block_p *) p[ triply ]; 200e394: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED 200e398: c4 00 40 11 ld [ %g1 + %l1 ], %g2 <== NOT EXECUTED if ( !p1 ) { 200e39c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 200e3a0: 02 80 00 58 be 200e500 <== NOT EXECUTED 200e3a4: a2 00 40 11 add %g1, %l1, %l1 <== NOT EXECUTED if ( !p1 ) return 0; p[ triply ] = (block_p) p1; } p2 = (block_p *)p1[ doubly ]; 200e3a8: a1 2c 20 02 sll %l0, 2, %l0 <== NOT EXECUTED 200e3ac: d0 00 80 10 ld [ %g2 + %l0 ], %o0 <== NOT EXECUTED if ( !p2 ) { 200e3b0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200e3b4: 12 bf ff d9 bne 200e318 <== NOT EXECUTED 200e3b8: a0 00 80 10 add %g2, %l0, %l0 <== NOT EXECUTED p2 = memfile_alloc_block(); 200e3bc: 7f ff ff 99 call 200e220 <== NOT EXECUTED 200e3c0: 01 00 00 00 nop <== NOT EXECUTED if ( !p2 ) 200e3c4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200e3c8: 22 80 00 13 be,a 200e414 <== NOT EXECUTED 200e3cc: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; 200e3d0: 10 bf ff d2 b 200e318 <== NOT EXECUTED 200e3d4: d0 24 00 00 st %o0, [ %l0 ] <== NOT EXECUTED } return (block_p *)&p1[ singly ]; } if ( !p ) 200e3d8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200e3dc: 02 80 00 0e be 200e414 <== NOT EXECUTED 200e3e0: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p = (block_p *)p[ doubly ]; 200e3e4: a1 2a 20 02 sll %o0, 2, %l0 <== NOT EXECUTED 200e3e8: 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 ]; 200e3ec: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED if ( !p ) return 0; p = (block_p *)p[ doubly ]; if ( !p ) 200e3f0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200e3f4: 12 80 00 08 bne 200e414 <== NOT EXECUTED 200e3f8: b0 00 40 11 add %g1, %l1, %i0 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 200e3fc: 81 c7 e0 08 ret <== NOT EXECUTED 200e400: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED } if ( !p ) return 0; return &info->indirect[ my_block ]; 200e404: b3 2e 60 02 sll %i1, 2, %i1 info->indirect = p; } return &info->indirect[ my_block ]; } if ( !p ) 200e408: 80 a2 20 00 cmp %o0, 0 200e40c: 02 bf ff fc be 200e3fc <== NEVER TAKEN 200e410: b0 02 00 19 add %o0, %i1, %i0 /* * This means the requested block number is out of range. */ return 0; } 200e414: 81 c7 e0 08 ret 200e418: 81 e8 00 00 restore p = info->indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 200e41c: 7f ff ff 81 call 200e220 200e420: 01 00 00 00 nop if ( !p ) 200e424: 80 a2 20 00 cmp %o0, 0 200e428: 22 bf ff fb be,a 200e414 <== NEVER TAKEN 200e42c: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; info->indirect = p; 200e430: 10 bf ff ba b 200e318 200e434: d0 26 20 58 st %o0, [ %i0 + 0x58 ] info->doubly_indirect = p; } p1 = (block_p *)p[ doubly ]; if ( !p1 ) { p1 = memfile_alloc_block(); 200e438: 7f ff ff 7a call 200e220 <== NOT EXECUTED 200e43c: 01 00 00 00 nop <== NOT EXECUTED if ( !p1 ) 200e440: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200e444: 22 bf ff f4 be,a 200e414 <== NOT EXECUTED 200e448: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p[ doubly ] = (block_p) p1; 200e44c: 10 bf ff ab b 200e2f8 <== NOT EXECUTED 200e450: d0 24 00 00 st %o0, [ %l0 ] <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 200e454: 7f ff ff 73 call 200e220 <== NOT EXECUTED 200e458: 01 00 00 00 nop <== NOT EXECUTED if ( !p ) 200e45c: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 200e460: 22 bf ff ed be,a 200e414 <== NOT EXECUTED 200e464: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; info->doubly_indirect = p; 200e468: 10 bf ff 9f b 200e2e4 <== NOT EXECUTED 200e46c: c2 26 20 5c st %g1, [ %i0 + 0x5c ] <== NOT EXECUTED p1[ doubly ] = (block_p) p2; } return (block_p *)&p2[ singly ]; } if ( !p ) 200e470: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200e474: 02 bf ff e8 be 200e414 <== NOT EXECUTED 200e478: 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 ]; 200e47c: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED 200e480: c2 00 40 11 ld [ %g1 + %l1 ], %g1 <== NOT EXECUTED if ( !p1 ) 200e484: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200e488: 02 bf ff e3 be 200e414 <== NOT EXECUTED 200e48c: a1 2a 20 02 sll %o0, 2, %l0 <== NOT EXECUTED return 0; p2 = (block_p *)p1[ doubly ]; 200e490: c2 00 40 10 ld [ %g1 + %l0 ], %g1 <== NOT EXECUTED if ( !p2 ) return 0; return (block_p *)&p2[ singly ]; 200e494: b3 2e 60 02 sll %i1, 2, %i1 <== NOT EXECUTED p1 = (block_p *) p[ triply ]; if ( !p1 ) return 0; p2 = (block_p *)p1[ doubly ]; if ( !p2 ) 200e498: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200e49c: 02 bf ff d8 be 200e3fc <== NOT EXECUTED 200e4a0: b0 00 40 19 add %g1, %i1, %i0 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 200e4a4: 81 c7 e0 08 ret <== NOT EXECUTED 200e4a8: 81 e8 00 00 restore <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 200e4ac: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED 200e4b0: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED 200e4b4: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED 200e4b8: 94 12 a2 b8 or %o2, 0x2b8, %o2 <== NOT EXECUTED 200e4bc: 96 12 e2 00 or %o3, 0x200, %o3 <== NOT EXECUTED 200e4c0: 7f ff f8 8a call 200c6e8 <__assert_func> <== NOT EXECUTED 200e4c4: 92 10 23 88 mov 0x388, %o1 <== NOT EXECUTED if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 200e4c8: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED 200e4cc: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED 200e4d0: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED 200e4d4: 94 12 a2 b8 or %o2, 0x2b8, %o2 <== NOT EXECUTED 200e4d8: 96 12 e2 10 or %o3, 0x210, %o3 <== NOT EXECUTED 200e4dc: 7f ff f8 83 call 200c6e8 <__assert_func> <== NOT EXECUTED 200e4e0: 92 10 23 8c mov 0x38c, %o1 <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 200e4e4: 7f ff ff 4f call 200e220 <== NOT EXECUTED 200e4e8: 01 00 00 00 nop <== NOT EXECUTED if ( !p ) 200e4ec: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 200e4f0: 22 bf ff c9 be,a 200e414 <== NOT EXECUTED 200e4f4: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; info->triply_indirect = p; 200e4f8: 10 bf ff a7 b 200e394 <== NOT EXECUTED 200e4fc: c2 26 20 60 st %g1, [ %i0 + 0x60 ] <== NOT EXECUTED } p1 = (block_p *) p[ triply ]; if ( !p1 ) { p1 = memfile_alloc_block(); 200e500: 7f ff ff 48 call 200e220 <== NOT EXECUTED 200e504: 01 00 00 00 nop <== NOT EXECUTED if ( !p1 ) 200e508: 84 92 20 00 orcc %o0, 0, %g2 <== NOT EXECUTED 200e50c: 22 bf ff c2 be,a 200e414 <== NOT EXECUTED 200e510: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; 200e514: 10 bf ff a5 b 200e3a8 <== NOT EXECUTED 200e518: c4 24 40 00 st %g2, [ %l1 ] <== NOT EXECUTED =============================================================================== 0200efb4 : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 200efb4: 9d e3 bf 98 save %sp, -104, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 200efb8: a0 96 20 00 orcc %i0, 0, %l0 IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 200efbc: a4 10 00 19 mov %i1, %l2 /* * Perform internal consistency checks */ assert( the_jnode ); 200efc0: 02 80 00 b5 be 200f294 <== NEVER TAKEN 200efc4: a6 10 00 1a mov %i2, %l3 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE || 200efc8: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 200efcc: 84 00 7f fb add %g1, -5, %g2 200efd0: 80 a0 a0 01 cmp %g2, 1 200efd4: 18 80 00 a8 bgu 200f274 <== NEVER TAKEN 200efd8: 80 a6 e0 00 cmp %i3, 0 /* * Error checks on arguments */ assert( dest ); 200efdc: 02 80 00 96 be 200f234 <== NEVER TAKEN 200efe0: 80 a7 20 00 cmp %i4, 0 /* * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) 200efe4: 02 80 00 86 be 200f1fc <== NEVER TAKEN 200efe8: 80 a0 60 06 cmp %g1, 6 /* * Linear files (as created from a tar file are easier to handle * than block files). */ if (the_jnode->type == IMFS_LINEAR_FILE) { 200efec: 02 80 00 5f be 200f168 <== NEVER TAKEN 200eff0: 86 10 20 00 clr %g3 * 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 ) 200eff4: c4 04 20 50 ld [ %l0 + 0x50 ], %g2 /* * 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; 200eff8: 82 10 00 1a mov %i2, %g1 if ( last_byte > the_jnode->info.file.size ) 200effc: 80 a0 c0 02 cmp %g3, %g2 200f000: c8 04 20 54 ld [ %l0 + 0x54 ], %g4 200f004: 04 80 00 52 ble 200f14c <== ALWAYS TAKEN 200f008: 9a 07 00 1a add %i4, %i2, %o5 my_length = the_jnode->info.file.size - start; 200f00c: b8 21 00 01 sub %g4, %g1, %i4 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 200f010: 29 00 80 75 sethi %hi(0x201d400), %l4 <== NOT EXECUTED 200f014: e2 05 23 4c ld [ %l4 + 0x34c ], %l1 ! 201d74c <== NOT EXECUTED 200f018: 90 10 00 12 mov %l2, %o0 200f01c: ab 3c 60 1f sra %l1, 0x1f, %l5 200f020: 96 10 00 11 mov %l1, %o3 200f024: 94 10 00 15 mov %l5, %o2 200f028: 40 00 2c 9c call 201a298 <__moddi3> 200f02c: 92 10 00 13 mov %l3, %o1 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 200f030: 90 10 00 12 mov %l2, %o0 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 200f034: ac 10 00 09 mov %o1, %l6 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 200f038: 94 10 00 15 mov %l5, %o2 200f03c: 92 10 00 13 mov %l3, %o1 200f040: 40 00 2b af call 2019efc <__divdi3> 200f044: 96 10 00 11 mov %l1, %o3 if ( start_offset ) { 200f048: 80 a5 a0 00 cmp %l6, 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; 200f04c: a4 10 00 09 mov %o1, %l2 if ( start_offset ) { 200f050: aa 10 00 1b mov %i3, %l5 200f054: 02 80 00 14 be 200f0a4 200f058: 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 ); 200f05c: 90 10 00 10 mov %l0, %o0 200f060: 7f ff fc 7d call 200e254 200f064: 94 10 20 00 clr %o2 assert( block_ptr ); 200f068: 80 a2 20 00 cmp %o0, 0 200f06c: 02 80 00 92 be 200f2b4 <== NEVER TAKEN 200f070: a2 24 40 16 sub %l1, %l6, %l1 */ 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; 200f074: 80 a7 00 11 cmp %i4, %l1 200f078: 18 80 00 4f bgu 200f1b4 200f07c: b0 10 00 1c mov %i4, %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 ); 200f080: d2 02 00 00 ld [ %o0 ], %o1 200f084: 94 10 00 18 mov %i0, %o2 200f088: 90 10 00 1b mov %i3, %o0 200f08c: 40 00 07 2d call 2010d40 200f090: 92 02 40 16 add %o1, %l6, %o1 dest += to_copy; block++; my_length -= to_copy; 200f094: e2 05 23 4c ld [ %l4 + 0x34c ], %l1 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 ); dest += to_copy; 200f098: aa 06 c0 18 add %i3, %i0, %l5 block++; 200f09c: a4 04 a0 01 inc %l2 my_length -= to_copy; 200f0a0: b8 27 00 18 sub %i4, %i0, %i4 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 200f0a4: 80 a7 00 11 cmp %i4, %l1 200f0a8: 0a 80 00 15 bcs 200f0fc 200f0ac: 80 a7 20 00 cmp %i4, 0 200f0b0: a8 15 23 4c or %l4, 0x34c, %l4 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 200f0b4: 90 10 00 10 mov %l0, %o0 200f0b8: 92 10 00 12 mov %l2, %o1 200f0bc: 7f ff fc 66 call 200e254 200f0c0: 94 10 20 00 clr %o2 assert( block_ptr ); 200f0c4: 80 a2 20 00 cmp %o0, 0 200f0c8: 02 80 00 53 be 200f214 <== NEVER TAKEN 200f0cc: 94 10 00 11 mov %l1, %o2 if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); 200f0d0: d2 02 00 00 ld [ %o0 ], %o1 200f0d4: 40 00 07 1b call 2010d40 200f0d8: 90 10 00 15 mov %l5, %o0 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 200f0dc: c2 05 00 00 ld [ %l4 ], %g1 if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); dest += to_copy; block++; my_length -= to_copy; 200f0e0: b8 27 00 11 sub %i4, %l1, %i4 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; 200f0e4: aa 05 40 11 add %l5, %l1, %l5 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 200f0e8: 80 a0 40 1c cmp %g1, %i4 assert( block_ptr ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); dest += to_copy; block++; 200f0ec: a4 04 a0 01 inc %l2 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 200f0f0: 08 bf ff f1 bleu 200f0b4 200f0f4: b0 06 00 11 add %i0, %l1, %i0 * Phase 3: possibly the first part of one block */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { 200f0f8: 80 a7 20 00 cmp %i4, 0 200f0fc: 02 80 00 0e be 200f134 200f100: 90 07 bf f8 add %fp, -8, %o0 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 200f104: 92 10 00 12 mov %l2, %o1 200f108: 90 10 00 10 mov %l0, %o0 200f10c: 7f ff fc 52 call 200e254 200f110: 94 10 20 00 clr %o2 assert( block_ptr ); 200f114: 80 a2 20 00 cmp %o0, 0 200f118: 02 80 00 4f be 200f254 <== NEVER TAKEN 200f11c: b0 06 00 1c add %i0, %i4, %i0 if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); 200f120: d2 02 00 00 ld [ %o0 ], %o1 200f124: 90 10 00 15 mov %l5, %o0 200f128: 40 00 07 06 call 2010d40 200f12c: 94 10 00 1c mov %i4, %o2 copied += my_length; } IMFS_update_atime( the_jnode ); 200f130: 90 07 bf f8 add %fp, -8, %o0 200f134: 7f ff cf 19 call 2002d98 200f138: 92 10 20 00 clr %o1 200f13c: c2 07 bf f8 ld [ %fp + -8 ], %g1 200f140: c2 24 20 40 st %g1, [ %l0 + 0x40 ] return copied; } 200f144: 81 c7 e0 08 ret 200f148: 81 e8 00 00 restore * 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 ) 200f14c: 12 bf ff b2 bne 200f014 <== NEVER TAKEN 200f150: 29 00 80 75 sethi %hi(0x201d400), %l4 200f154: 80 a3 40 04 cmp %o5, %g4 200f158: 08 bf ff b0 bleu 200f018 200f15c: e2 05 23 4c ld [ %l4 + 0x34c ], %l1 my_length = the_jnode->info.file.size - start; 200f160: 10 bf ff ae b 200f018 200f164: b8 21 00 01 sub %g4, %g1, %i4 if (the_jnode->type == IMFS_LINEAR_FILE) { unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; if (my_length > (the_jnode->info.linearfile.size - start)) 200f168: d8 1c 20 50 ldd [ %l0 + 0x50 ], %o4 <== NOT EXECUTED 200f16c: 82 10 20 00 clr %g1 <== NOT EXECUTED 200f170: 86 a3 40 1a subcc %o5, %i2, %g3 <== NOT EXECUTED 200f174: 84 63 00 19 subx %o4, %i1, %g2 <== NOT EXECUTED 200f178: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 200f17c: 04 80 00 10 ble 200f1bc <== NOT EXECUTED 200f180: d2 04 20 58 ld [ %l0 + 0x58 ], %o1 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; 200f184: b0 23 40 13 sub %o5, %l3, %i0 <== NOT EXECUTED memcpy(dest, &file_ptr[start], my_length); 200f188: 92 02 40 13 add %o1, %l3, %o1 <== NOT EXECUTED 200f18c: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED 200f190: 40 00 06 ec call 2010d40 <== NOT EXECUTED 200f194: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED IMFS_update_atime( the_jnode ); 200f198: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED 200f19c: 7f ff ce ff call 2002d98 <== NOT EXECUTED 200f1a0: 92 10 20 00 clr %o1 <== NOT EXECUTED 200f1a4: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 200f1a8: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED return my_length; 200f1ac: 81 c7 e0 08 ret <== NOT EXECUTED 200f1b0: 81 e8 00 00 restore <== 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; 200f1b4: 10 bf ff b3 b 200f080 200f1b8: b0 10 00 11 mov %l1, %i0 if (the_jnode->type == IMFS_LINEAR_FILE) { unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; if (my_length > (the_jnode->info.linearfile.size - start)) 200f1bc: 12 80 00 04 bne 200f1cc <== NOT EXECUTED 200f1c0: 80 a7 00 03 cmp %i4, %g3 <== NOT EXECUTED 200f1c4: 38 bf ff f1 bgu,a 200f188 <== NOT EXECUTED 200f1c8: b0 23 40 13 sub %o5, %l3, %i0 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; memcpy(dest, &file_ptr[start], my_length); 200f1cc: 92 02 40 13 add %o1, %l3, %o1 <== NOT EXECUTED if (the_jnode->type == IMFS_LINEAR_FILE) { unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; if (my_length > (the_jnode->info.linearfile.size - start)) 200f1d0: b0 10 00 1c mov %i4, %i0 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; memcpy(dest, &file_ptr[start], my_length); 200f1d4: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED 200f1d8: 40 00 06 da call 2010d40 <== NOT EXECUTED 200f1dc: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED IMFS_update_atime( the_jnode ); 200f1e0: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED 200f1e4: 7f ff ce ed call 2002d98 <== NOT EXECUTED 200f1e8: 92 10 20 00 clr %o1 <== NOT EXECUTED 200f1ec: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 200f1f0: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED return my_length; 200f1f4: 81 c7 e0 08 ret <== NOT EXECUTED 200f1f8: 81 e8 00 00 restore <== NOT EXECUTED * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) rtems_set_errno_and_return_minus_one( EINVAL ); 200f1fc: 40 00 04 95 call 2010450 <__errno> <== NOT EXECUTED 200f200: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200f204: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 200f208: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200f20c: 81 c7 e0 08 ret <== NOT EXECUTED 200f210: 81 e8 00 00 restore <== NOT EXECUTED */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 200f214: 11 00 80 71 sethi %hi(0x201c400), %o0 <== NOT EXECUTED 200f218: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED 200f21c: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED 200f220: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED 200f224: 94 12 a2 f0 or %o2, 0x2f0, %o2 <== NOT EXECUTED 200f228: 96 12 e2 48 or %o3, 0x248, %o3 <== NOT EXECUTED 200f22c: 7f ff f5 2f call 200c6e8 <__assert_func> <== NOT EXECUTED 200f230: 92 10 22 a7 mov 0x2a7, %o1 <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); 200f234: 11 00 80 71 sethi %hi(0x201c400), %o0 <== NOT EXECUTED 200f238: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED 200f23c: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED 200f240: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED 200f244: 94 12 a2 f0 or %o2, 0x2f0, %o2 <== NOT EXECUTED 200f248: 96 12 e2 b0 or %o3, 0x2b0, %o3 <== NOT EXECUTED 200f24c: 7f ff f5 27 call 200c6e8 <__assert_func> <== NOT EXECUTED 200f250: 92 10 22 5a mov 0x25a, %o1 <== NOT EXECUTED assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 200f254: 11 00 80 71 sethi %hi(0x201c400), %o0 <== NOT EXECUTED 200f258: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED 200f25c: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED 200f260: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED 200f264: 94 12 a2 f0 or %o2, 0x2f0, %o2 <== NOT EXECUTED 200f268: 96 12 e2 48 or %o3, 0x248, %o3 <== NOT EXECUTED 200f26c: 7f ff f5 1f call 200c6e8 <__assert_func> <== NOT EXECUTED 200f270: 92 10 22 b9 mov 0x2b9, %o1 <== NOT EXECUTED assert( the_jnode ); if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE || 200f274: 11 00 80 71 sethi %hi(0x201c400), %o0 <== NOT EXECUTED 200f278: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED 200f27c: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED 200f280: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED 200f284: 94 12 a2 f0 or %o2, 0x2f0, %o2 <== NOT EXECUTED 200f288: 96 12 e2 60 or %o3, 0x260, %o3 <== NOT EXECUTED 200f28c: 7f ff f5 17 call 200c6e8 <__assert_func> <== NOT EXECUTED 200f290: 92 10 22 51 mov 0x251, %o1 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 200f294: 11 00 80 71 sethi %hi(0x201c400), %o0 <== NOT EXECUTED 200f298: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED 200f29c: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED 200f2a0: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED 200f2a4: 94 12 a2 f0 or %o2, 0x2f0, %o2 <== NOT EXECUTED 200f2a8: 96 12 e2 00 or %o3, 0x200, %o3 <== NOT EXECUTED 200f2ac: 7f ff f5 0f call 200c6e8 <__assert_func> <== NOT EXECUTED 200f2b0: 92 10 22 4c mov 0x24c, %o1 <== NOT EXECUTED if ( start_offset ) { 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 ); assert( block_ptr ); 200f2b4: 11 00 80 71 sethi %hi(0x201c400), %o0 <== NOT EXECUTED 200f2b8: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED 200f2bc: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED 200f2c0: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED 200f2c4: 94 12 a2 f0 or %o2, 0x2f0, %o2 <== NOT EXECUTED 200f2c8: 96 12 e2 48 or %o3, 0x248, %o3 <== NOT EXECUTED 200f2cc: 7f ff f5 07 call 200c6e8 <__assert_func> <== NOT EXECUTED 200f2d0: 92 10 22 96 mov 0x296, %o1 <== NOT EXECUTED =============================================================================== 0200e5fc : */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { 200e5fc: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 200e600: 80 a6 20 00 cmp %i0, 0 200e604: 02 80 00 62 be 200e78c <== NEVER TAKEN 200e608: 11 00 80 71 sethi %hi(0x201c400), %o0 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 200e60c: c2 06 20 4c ld [ %i0 + 0x4c ], %g1 200e610: 80 a0 60 05 cmp %g1, 5 200e614: 12 80 00 65 bne 200e7a8 <== NEVER TAKEN 200e618: 23 00 80 75 sethi %hi(0x201d400), %l1 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 200e61c: c2 06 20 58 ld [ %i0 + 0x58 ], %g1 /* * 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; 200e620: e6 04 63 4c ld [ %l1 + 0x34c ], %l3 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 200e624: 80 a0 60 00 cmp %g1, 0 200e628: 02 80 00 05 be 200e63c 200e62c: a7 34 e0 02 srl %l3, 2, %l3 if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free ); 200e630: 90 06 20 58 add %i0, 0x58, %o0 200e634: 7f ff ff ba call 200e51c 200e638: 92 10 00 13 mov %l3, %o1 } if ( info->doubly_indirect ) { 200e63c: c2 06 20 5c ld [ %i0 + 0x5c ], %g1 200e640: 80 a0 60 00 cmp %g1, 0 200e644: 02 80 00 1b be 200e6b0 <== ALWAYS TAKEN 200e648: c4 04 63 4c ld [ %l1 + 0x34c ], %g2 for ( i=0 ; i <== NOT EXECUTED 200e658: 90 10 20 00 clr %o0 <== NOT EXECUTED 200e65c: 25 00 80 75 sethi %hi(0x201d400), %l2 <== NOT EXECUTED 200e660: a4 14 a3 4c or %l2, 0x34c, %l2 ! 201d74c <== NOT EXECUTED 200e664: 10 80 00 03 b 200e670 <== NOT EXECUTED 200e668: a0 10 20 00 clr %l0 <== NOT EXECUTED 200e66c: c2 06 20 5c ld [ %i0 + 0x5c ], %g1 <== NOT EXECUTED if ( info->doubly_indirect[i] ) { 200e670: 91 2a 20 02 sll %o0, 2, %o0 <== NOT EXECUTED 200e674: c4 00 40 08 ld [ %g1 + %o0 ], %g2 <== NOT EXECUTED 200e678: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 200e67c: 02 80 00 04 be 200e68c <== NOT EXECUTED 200e680: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED memfile_free_blocks_in_table( 200e684: 7f ff ff a6 call 200e51c <== NOT EXECUTED 200e688: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED memfile_free_blocks_in_table( &info->indirect, to_free ); } if ( info->doubly_indirect ) { for ( i=0 ; i <== NOT EXECUTED 200e6a0: 90 10 00 10 mov %l0, %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 ); 200e6a4: 90 06 20 5c add %i0, 0x5c, %o0 <== NOT EXECUTED 200e6a8: 7f ff ff 9d call 200e51c <== NOT EXECUTED 200e6ac: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED } if ( info->triply_indirect ) { 200e6b0: d0 06 20 60 ld [ %i0 + 0x60 ], %o0 200e6b4: 80 a2 20 00 cmp %o0, 0 200e6b8: 02 80 00 33 be 200e784 <== ALWAYS TAKEN 200e6bc: c2 04 63 4c ld [ %l1 + 0x34c ], %g1 for ( i=0 ; i <== NOT EXECUTED 200e6cc: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED p = (block_p *) info->triply_indirect[i]; 200e6d0: e2 02 00 00 ld [ %o0 ], %l1 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 200e6d4: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 200e6d8: 22 80 00 29 be,a 200e77c <== NOT EXECUTED 200e6dc: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED 200e6e0: 25 00 80 75 sethi %hi(0x201d400), %l2 <== NOT EXECUTED 200e6e4: aa 10 20 00 clr %l5 <== NOT EXECUTED 200e6e8: a4 14 a3 4c or %l2, 0x34c, %l2 <== NOT EXECUTED 200e6ec: a8 10 20 00 clr %l4 <== NOT EXECUTED break; for ( j=0 ; j <== NOT EXECUTED 200e6f8: 90 02 00 15 add %o0, %l5, %o0 <== NOT EXECUTED 200e6fc: 90 10 20 00 clr %o0 <== NOT EXECUTED 200e700: a0 10 20 00 clr %l0 <== NOT EXECUTED if ( p[j] ) { 200e704: 91 2a 20 02 sll %o0, 2, %o0 <== NOT EXECUTED 200e708: c2 04 40 08 ld [ %l1 + %o0 ], %g1 <== NOT EXECUTED 200e70c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200e710: 02 80 00 04 be 200e720 <== NOT EXECUTED 200e714: 90 04 40 08 add %l1, %o0, %o0 <== NOT EXECUTED memfile_free_blocks_in_table( (block_p **)&p[j], to_free); 200e718: 7f ff ff 81 call 200e51c <== NOT EXECUTED 200e71c: 92 10 00 13 mov %l3, %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 200e734: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 200e738: d0 06 20 60 ld [ %i0 + 0x60 ], %o0 <== NOT EXECUTED if ( p[j] ) { memfile_free_blocks_in_table( (block_p **)&p[j], to_free); } } memfile_free_blocks_in_table( 200e73c: 90 02 00 15 add %o0, %l5, %o0 <== NOT EXECUTED 200e740: 7f ff ff 77 call 200e51c <== NOT EXECUTED 200e744: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED memfile_free_blocks_in_table( &info->doubly_indirect, to_free ); } if ( info->triply_indirect ) { for ( i=0 ; i <== NOT EXECUTED 200e75c: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED p = (block_p *) info->triply_indirect[i]; 200e760: d0 06 20 60 ld [ %i0 + 0x60 ], %o0 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 200e764: ab 2d 20 02 sll %l4, 2, %l5 <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; 200e768: e2 02 00 15 ld [ %o0 + %l5 ], %l1 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 200e76c: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 200e770: 12 bf ff e1 bne 200e6f4 <== NOT EXECUTED 200e774: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED } } memfile_free_blocks_in_table( (block_p **)&info->triply_indirect[i], to_free ); } memfile_free_blocks_in_table( 200e778: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED 200e77c: 7f ff ff 68 call 200e51c <== NOT EXECUTED 200e780: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } 200e784: 81 c7 e0 08 ret 200e788: 91 e8 20 00 restore %g0, 0, %o0 /* * Perform internal consistency checks */ assert( the_jnode ); 200e78c: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED 200e790: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED 200e794: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED 200e798: 94 12 a3 08 or %o2, 0x308, %o2 <== NOT EXECUTED 200e79c: 96 12 e2 00 or %o3, 0x200, %o3 <== NOT EXECUTED 200e7a0: 7f ff f7 d2 call 200c6e8 <__assert_func> <== NOT EXECUTED 200e7a4: 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 ); 200e7a8: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED 200e7ac: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED 200e7b0: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED 200e7b4: 94 12 a3 08 or %o2, 0x308, %o2 <== NOT EXECUTED 200e7b8: 96 12 e2 10 or %o3, 0x210, %o3 <== NOT EXECUTED 200e7bc: 7f ff f7 cb call 200c6e8 <__assert_func> <== NOT EXECUTED 200e7c0: 92 10 21 f2 mov 0x1f2, %o1 <== NOT EXECUTED =============================================================================== 0200e5a0 : MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { 200e5a0: 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 ); 200e5a4: 94 10 20 00 clr %o2 <== NOT EXECUTED 200e5a8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 200e5ac: 7f ff ff 2a call 200e254 <== NOT EXECUTED 200e5b0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED assert( block_ptr ); 200e5b4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200e5b8: 02 80 00 08 be 200e5d8 <== NOT EXECUTED 200e5bc: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED if ( block_ptr ) { ptr = *block_ptr; 200e5c0: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED *block_ptr = 0; 200e5c4: c0 22 00 00 clr [ %o0 ] <== NOT EXECUTED memfile_free_block( ptr ); 200e5c8: 7f ff ff 0d call 200e1fc <== NOT EXECUTED 200e5cc: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED } return 1; } 200e5d0: 81 c7 e0 08 ret <== NOT EXECUTED 200e5d4: 81 e8 00 00 restore <== NOT EXECUTED { block_p *block_ptr; block_p ptr; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 200e5d8: 11 00 80 71 sethi %hi(0x201c400), %o0 <== NOT EXECUTED 200e5dc: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED 200e5e0: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED 200e5e4: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED 200e5e8: 94 12 a3 40 or %o2, 0x340, %o2 <== NOT EXECUTED 200e5ec: 96 12 e2 48 or %o3, 0x248, %o3 <== NOT EXECUTED 200e5f0: 7f ff f8 3e call 200c6e8 <__assert_func> <== NOT EXECUTED 200e5f4: 92 10 21 96 mov 0x196, %o1 <== NOT EXECUTED =============================================================================== 0200ec10 : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 200ec10: 9d e3 bf 98 save %sp, -104, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 200ec14: a0 96 20 00 orcc %i0, 0, %l0 200ec18: 02 80 00 8e be 200ee50 <== NEVER TAKEN 200ec1c: 11 00 80 71 sethi %hi(0x201c400), %o0 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 200ec20: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 200ec24: 80 a0 60 05 cmp %g1, 5 200ec28: 12 80 00 83 bne 200ee34 <== NEVER TAKEN 200ec2c: 80 a6 e0 00 cmp %i3, 0 /* * Error check arguments */ assert( source ); 200ec30: 02 80 00 9f be 200eeac <== NEVER TAKEN 200ec34: 80 a7 20 00 cmp %i4, 0 /* * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) 200ec38: 02 80 00 71 be 200edfc <== NEVER TAKEN 200ec3c: 01 00 00 00 nop * 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 ) { 200ec40: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 200ec44: 80 a0 60 00 cmp %g1, 0 200ec48: 06 80 00 57 bl 200eda4 <== NEVER TAKEN 200ec4c: 94 07 00 1a add %i4, %i2, %o2 200ec50: 80 a0 60 00 cmp %g1, 0 200ec54: 22 80 00 51 be,a 200ed98 <== ALWAYS TAKEN 200ec58: c2 04 20 54 ld [ %l0 + 0x54 ], %g1 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 200ec5c: 25 00 80 75 sethi %hi(0x201d400), %l2 <== NOT EXECUTED 200ec60: e2 04 a3 4c ld [ %l2 + 0x34c ], %l1 ! 201d74c 200ec64: 90 10 00 19 mov %i1, %o0 200ec68: a7 3c 60 1f sra %l1, 0x1f, %l3 200ec6c: 96 10 00 11 mov %l1, %o3 200ec70: 94 10 00 13 mov %l3, %o2 200ec74: 40 00 2d 89 call 201a298 <__moddi3> 200ec78: 92 10 00 1a mov %i2, %o1 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 200ec7c: 94 10 00 13 mov %l3, %o2 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 200ec80: a8 10 00 09 mov %o1, %l4 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 200ec84: 90 10 00 19 mov %i1, %o0 200ec88: 92 10 00 1a mov %i2, %o1 200ec8c: 40 00 2c 9c call 2019efc <__divdi3> 200ec90: 96 10 00 11 mov %l1, %o3 if ( start_offset ) { 200ec94: b0 10 20 00 clr %i0 200ec98: 80 a5 20 00 cmp %l4, 0 200ec9c: 12 80 00 2d bne 200ed50 200eca0: a6 10 00 09 mov %o1, %l3 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 200eca4: 80 a7 00 11 cmp %i4, %l1 200eca8: 0a 80 00 15 bcs 200ecfc 200ecac: 80 a7 20 00 cmp %i4, 0 200ecb0: a4 14 a3 4c or %l2, 0x34c, %l2 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 200ecb4: 90 10 00 10 mov %l0, %o0 200ecb8: 92 10 00 13 mov %l3, %o1 200ecbc: 7f ff fd 66 call 200e254 200ecc0: 94 10 20 00 clr %o2 assert( block_ptr ); 200ecc4: 80 a2 20 00 cmp %o0, 0 200ecc8: 02 80 00 53 be 200ee14 <== NEVER TAKEN 200eccc: 92 10 00 1b mov %i3, %o1 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 ); 200ecd0: d0 02 00 00 ld [ %o0 ], %o0 200ecd4: 40 00 08 1b call 2010d40 200ecd8: 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 ) { 200ecdc: c2 04 80 00 ld [ %l2 ], %g1 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; block++; my_length -= to_copy; 200ece0: b8 27 00 11 sub %i4, %l1, %i4 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; 200ece4: b6 06 c0 11 add %i3, %l1, %i3 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 200ece8: 80 a0 40 1c cmp %g1, %i4 #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; block++; 200ecec: a6 04 e0 01 inc %l3 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 200ecf0: 08 bf ff f1 bleu 200ecb4 200ecf4: b0 06 00 11 add %i0, %l1, %i0 */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { 200ecf8: 80 a7 20 00 cmp %i4, 0 200ecfc: 02 80 00 0e be 200ed34 200ed00: 90 07 bf f8 add %fp, -8, %o0 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 200ed04: 92 10 00 13 mov %l3, %o1 200ed08: 90 10 00 10 mov %l0, %o0 200ed0c: 7f ff fd 52 call 200e254 200ed10: 94 10 20 00 clr %o2 assert( block_ptr ); 200ed14: 80 a2 20 00 cmp %o0, 0 200ed18: 02 80 00 5d be 200ee8c <== NEVER TAKEN 200ed1c: 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 ); 200ed20: d0 02 00 00 ld [ %o0 ], %o0 200ed24: 92 10 00 1b mov %i3, %o1 200ed28: 40 00 08 06 call 2010d40 200ed2c: 94 10 00 1c mov %i4, %o2 my_length = 0; copied += to_copy; } IMFS_mtime_ctime_update( the_jnode ); 200ed30: 90 07 bf f8 add %fp, -8, %o0 200ed34: 7f ff d0 19 call 2002d98 200ed38: 92 10 20 00 clr %o1 200ed3c: c2 07 bf f8 ld [ %fp + -8 ], %g1 200ed40: c2 24 20 48 st %g1, [ %l0 + 0x48 ] 200ed44: c2 24 20 44 st %g1, [ %l0 + 0x44 ] return copied; } 200ed48: 81 c7 e0 08 ret 200ed4c: 81 e8 00 00 restore block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; if ( start_offset ) { 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 ); 200ed50: 90 10 00 10 mov %l0, %o0 200ed54: 7f ff fd 40 call 200e254 200ed58: 94 10 20 00 clr %o2 assert( block_ptr ); 200ed5c: 80 a2 20 00 cmp %o0, 0 200ed60: 02 80 00 43 be 200ee6c <== NEVER TAKEN 200ed64: b0 24 40 14 sub %l1, %l4, %i0 */ 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; 200ed68: 80 a6 00 1c cmp %i0, %i4 200ed6c: 18 80 00 1a bgu 200edd4 200ed70: d0 02 00 00 ld [ %o0 ], %o0 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 ); 200ed74: 92 10 00 1b mov %i3, %o1 200ed78: 90 02 00 14 add %o0, %l4, %o0 200ed7c: 94 10 00 18 mov %i0, %o2 200ed80: 40 00 07 f0 call 2010d40 200ed84: b6 06 c0 18 add %i3, %i0, %i3 src += to_copy; block++; 200ed88: a6 04 e0 01 inc %l3 my_length -= to_copy; copied += to_copy; 200ed8c: e2 04 a3 4c ld [ %l2 + 0x34c ], %l1 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 ); src += to_copy; block++; my_length -= to_copy; 200ed90: 10 bf ff c5 b 200eca4 200ed94: b8 27 00 18 sub %i4, %i0, %i4 * 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 ) { 200ed98: 80 a0 40 0a cmp %g1, %o2 200ed9c: 1a bf ff b1 bcc 200ec60 <== NEVER TAKEN 200eda0: 25 00 80 75 sethi %hi(0x201d400), %l2 status = IMFS_memfile_extend( the_jnode, last_byte ); 200eda4: 90 10 00 10 mov %l0, %o0 200eda8: 7f ff fe eb call 200e954 200edac: 92 10 20 00 clr %o1 if ( status ) 200edb0: 80 a2 20 00 cmp %o0, 0 200edb4: 02 bf ff ab be 200ec60 <== ALWAYS TAKEN 200edb8: 25 00 80 75 sethi %hi(0x201d400), %l2 rtems_set_errno_and_return_minus_one( ENOSPC ); 200edbc: 40 00 05 a5 call 2010450 <__errno> <== NOT EXECUTED 200edc0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200edc4: 82 10 20 1c mov 0x1c, %g1 <== NOT EXECUTED 200edc8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200edcc: 81 c7 e0 08 ret <== NOT EXECUTED 200edd0: 81 e8 00 00 restore <== 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; 200edd4: b0 10 00 1c mov %i4, %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 ); 200edd8: 92 10 00 1b mov %i3, %o1 200eddc: 90 02 00 14 add %o0, %l4, %o0 200ede0: 94 10 00 18 mov %i0, %o2 200ede4: 40 00 07 d7 call 2010d40 200ede8: b6 06 c0 18 add %i3, %i0, %i3 src += to_copy; block++; 200edec: a6 04 e0 01 inc %l3 my_length -= to_copy; copied += to_copy; 200edf0: e2 04 a3 4c ld [ %l2 + 0x34c ], %l1 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 ); src += to_copy; block++; my_length -= to_copy; 200edf4: 10 bf ff ac b 200eca4 200edf8: b8 27 00 18 sub %i4, %i0, %i4 * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) rtems_set_errno_and_return_minus_one( EINVAL ); 200edfc: 40 00 05 95 call 2010450 <__errno> <== NOT EXECUTED 200ee00: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200ee04: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 200ee08: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200ee0c: 81 c7 e0 08 ret <== NOT EXECUTED 200ee10: 81 e8 00 00 restore <== NOT EXECUTED */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 200ee14: 11 00 80 71 sethi %hi(0x201c400), %o0 <== NOT EXECUTED 200ee18: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED 200ee1c: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED 200ee20: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED 200ee24: 94 12 a2 d8 or %o2, 0x2d8, %o2 <== NOT EXECUTED 200ee28: 96 12 e2 48 or %o3, 0x248, %o3 <== NOT EXECUTED 200ee2c: 7f ff f6 2f call 200c6e8 <__assert_func> <== NOT EXECUTED 200ee30: 92 10 23 30 mov 0x330, %o1 <== NOT EXECUTED assert( the_jnode ); if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 200ee34: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED 200ee38: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED 200ee3c: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED 200ee40: 94 12 a2 d8 or %o2, 0x2d8, %o2 <== NOT EXECUTED 200ee44: 96 12 e2 10 or %o3, 0x210, %o3 <== NOT EXECUTED 200ee48: 7f ff f6 28 call 200c6e8 <__assert_func> <== NOT EXECUTED 200ee4c: 92 10 22 e7 mov 0x2e7, %o1 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 200ee50: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED 200ee54: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED 200ee58: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED 200ee5c: 94 12 a2 d8 or %o2, 0x2d8, %o2 <== NOT EXECUTED 200ee60: 96 12 e2 00 or %o3, 0x200, %o3 <== NOT EXECUTED 200ee64: 7f ff f6 21 call 200c6e8 <__assert_func> <== NOT EXECUTED 200ee68: 92 10 22 e3 mov 0x2e3, %o1 <== NOT EXECUTED if ( start_offset ) { 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 ); assert( block_ptr ); 200ee6c: 11 00 80 71 sethi %hi(0x201c400), %o0 <== NOT EXECUTED 200ee70: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED 200ee74: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED 200ee78: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED 200ee7c: 94 12 a2 d8 or %o2, 0x2d8, %o2 <== NOT EXECUTED 200ee80: 96 12 e2 48 or %o3, 0x248, %o3 <== NOT EXECUTED 200ee84: 7f ff f6 19 call 200c6e8 <__assert_func> <== NOT EXECUTED 200ee88: 92 10 23 1c mov 0x31c, %o1 <== NOT EXECUTED assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 200ee8c: 11 00 80 71 sethi %hi(0x201c400), %o0 <== NOT EXECUTED 200ee90: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED 200ee94: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED 200ee98: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED 200ee9c: 94 12 a2 d8 or %o2, 0x2d8, %o2 <== NOT EXECUTED 200eea0: 96 12 e2 48 or %o3, 0x248, %o3 <== NOT EXECUTED 200eea4: 7f ff f6 11 call 200c6e8 <__assert_func> <== NOT EXECUTED 200eea8: 92 10 23 46 mov 0x346, %o1 <== NOT EXECUTED /* * Error check arguments */ assert( source ); 200eeac: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED 200eeb0: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED 200eeb4: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED 200eeb8: 94 12 a2 d8 or %o2, 0x2d8, %o2 <== NOT EXECUTED 200eebc: 96 12 e2 58 or %o3, 0x258, %o3 <== NOT EXECUTED 200eec0: 7f ff f6 0a call 200c6e8 <__assert_func> <== NOT EXECUTED 200eec4: 92 10 22 ef mov 0x2ef, %o1 <== NOT EXECUTED =============================================================================== 020023bc : const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 20023bc: 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 ); 20023c0: 40 00 3b f1 call 2011384 20023c4: 90 10 00 18 mov %i0, %o0 20023c8: a0 07 bf b8 add %fp, -72, %l0 20023cc: 92 10 00 08 mov %o0, %o1 20023d0: 96 07 bf fc add %fp, -4, %o3 20023d4: 90 10 00 18 mov %i0, %o0 20023d8: 40 00 28 21 call 200c45c 20023dc: 94 10 00 10 mov %l0, %o2 /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) 20023e0: 03 00 00 3c sethi %hi(0xf000), %g1 20023e4: 05 00 00 10 sethi %hi(0x4000), %g2 20023e8: 82 0e 40 01 and %i1, %g1, %g1 20023ec: 80 a0 40 02 cmp %g1, %g2 20023f0: 02 80 00 23 be 200247c 20023f4: 05 00 00 20 sethi %hi(0x8000), %g2 type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) 20023f8: 80 a0 40 02 cmp %g1, %g2 20023fc: 02 80 00 08 be 200241c 2002400: 92 10 20 05 mov 5, %o1 type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { 2002404: 05 00 00 08 sethi %hi(0x2000), %g2 2002408: 80 a0 40 02 cmp %g1, %g2 200240c: 12 80 00 0f bne 2002448 2002410: 05 00 00 18 sethi %hi(0x6000), %g2 type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); 2002414: f4 3f bf e0 std %i2, [ %fp + -32 ] 2002418: 92 10 20 02 mov 2, %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( 200241c: 90 10 00 1c mov %i4, %o0 2002420: 94 10 00 10 mov %l0, %o2 2002424: 96 10 00 19 mov %i1, %o3 2002428: 98 07 bf e0 add %fp, -32, %o4 200242c: 40 00 24 21 call 200b4b0 2002430: b0 10 20 00 clr %i0 new_name, mode, &info ); if ( !new_node ) 2002434: 80 a2 20 00 cmp %o0, 0 2002438: 02 80 00 1b be 20024a4 <== NEVER TAKEN 200243c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOMEM ); return 0; } 2002440: 81 c7 e0 08 ret 2002444: 81 e8 00 00 restore */ if ( S_ISDIR(mode) ) type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { 2002448: 80 a0 40 02 cmp %g1, %g2 200244c: 22 bf ff f3 be,a 2002418 2002450: f4 3f bf e0 std %i2, [ %fp + -32 ] type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); } else if (S_ISFIFO(mode)) 2002454: 05 00 00 04 sethi %hi(0x1000), %g2 2002458: 80 a0 40 02 cmp %g1, %g2 200245c: 02 bf ff f0 be 200241c <== ALWAYS TAKEN 2002460: 92 10 20 07 mov 7, %o1 type = IMFS_FIFO; else { rtems_set_errno_and_return_minus_one( EINVAL ); 2002464: 40 00 37 fb call 2010450 <__errno> <== NOT EXECUTED 2002468: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200246c: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2002470: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2002474: 81 c7 e0 08 ret <== NOT EXECUTED 2002478: 81 e8 00 00 restore <== NOT EXECUTED 200247c: 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( 2002480: 90 10 00 1c mov %i4, %o0 2002484: 94 10 00 10 mov %l0, %o2 2002488: 96 10 00 19 mov %i1, %o3 200248c: 98 07 bf e0 add %fp, -32, %o4 2002490: 40 00 24 08 call 200b4b0 2002494: b0 10 20 00 clr %i0 new_name, mode, &info ); if ( !new_node ) 2002498: 80 a2 20 00 cmp %o0, 0 200249c: 12 80 00 06 bne 20024b4 <== ALWAYS TAKEN 20024a0: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOMEM ); 20024a4: 40 00 37 eb call 2010450 <__errno> <== NOT EXECUTED 20024a8: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 20024ac: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 20024b0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return 0; } 20024b4: 81 c7 e0 08 ret 20024b8: 81 e8 00 00 restore =============================================================================== 020024bc : #include int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 20024bc: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 20024c0: c2 06 20 08 ld [ %i0 + 8 ], %g1 /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 20024c4: c4 00 60 4c ld [ %g1 + 0x4c ], %g2 20024c8: 80 a0 a0 01 cmp %g2, 1 20024cc: 12 80 00 05 bne 20024e0 <== NEVER TAKEN 20024d0: 01 00 00 00 nop /* * Set mt_fs pointer to point to the mount table entry for * the mounted file system. */ node->info.directory.mt_fs = mt_entry; 20024d4: f0 20 60 5c st %i0, [ %g1 + 0x5c ] return 0; } 20024d8: 81 c7 e0 08 ret 20024dc: 91 e8 20 00 restore %g0, 0, %o0 /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 20024e0: 40 00 37 dc call 2010450 <__errno> <== NOT EXECUTED 20024e4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20024e8: 82 10 20 14 mov 0x14, %g1 <== NOT EXECUTED 20024ec: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20024f0: 81 c7 e0 08 ret <== NOT EXECUTED 20024f4: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 020049a0 : */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { 20049a0: 9d e3 bf a0 save %sp, -96, %sp assert( the_jnode ); 20049a4: 80 a6 20 00 cmp %i0, 0 20049a8: 02 80 00 5b be 2004b14 <== NEVER TAKEN 20049ac: 21 00 80 9b sethi %hi(0x2026c00), %l0 fprintf(stdout, "%s", the_jnode->name ); 20049b0: c2 04 20 e0 ld [ %l0 + 0xe0 ], %g1 ! 2026ce0 <_impure_ptr> 20049b4: 90 06 20 0c add %i0, 0xc, %o0 20049b8: 40 00 41 49 call 2014edc 20049bc: d2 00 60 08 ld [ %g1 + 8 ], %o1 switch( the_jnode->type ) { 20049c0: d4 06 20 4c ld [ %i0 + 0x4c ], %o2 20049c4: 80 a2 a0 07 cmp %o2, 7 20049c8: 08 80 00 0f bleu 2004a04 <== ALWAYS TAKEN 20049cc: 83 2a a0 02 sll %o2, 2, %g1 fprintf(stdout, " FIFO not printed\n" ); assert(0); break; default: fprintf(stdout, " bad type %d\n", the_jnode->type ); 20049d0: c2 04 20 e0 ld [ %l0 + 0xe0 ], %g1 <== NOT EXECUTED 20049d4: 13 00 80 93 sethi %hi(0x2024c00), %o1 <== NOT EXECUTED 20049d8: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED 20049dc: 40 00 40 e2 call 2014d64 <== NOT EXECUTED 20049e0: 92 12 63 20 or %o1, 0x320, %o1 <== NOT EXECUTED assert(0); 20049e4: 92 10 20 6c mov 0x6c, %o1 <== NOT EXECUTED assert(0); break; case IMFS_SYM_LINK: fprintf(stdout, " links not printed\n" ); assert(0); 20049e8: 11 00 80 93 sethi %hi(0x2024c00), %o0 <== NOT EXECUTED 20049ec: 15 00 80 94 sethi %hi(0x2025000), %o2 <== NOT EXECUTED 20049f0: 17 00 80 93 sethi %hi(0x2024c00), %o3 <== NOT EXECUTED 20049f4: 90 12 22 50 or %o0, 0x250, %o0 <== NOT EXECUTED 20049f8: 94 12 a0 60 or %o2, 0x60, %o2 <== NOT EXECUTED 20049fc: 40 00 02 bc call 20054ec <__assert_func> <== NOT EXECUTED 2004a00: 96 12 e3 00 or %o3, 0x300, %o3 <== NOT EXECUTED ) { assert( the_jnode ); fprintf(stdout, "%s", the_jnode->name ); switch( the_jnode->type ) { 2004a04: 05 00 80 12 sethi %hi(0x2004800), %g2 2004a08: 84 10 a1 44 or %g2, 0x144, %g2 ! 2004944 2004a0c: c2 00 80 01 ld [ %g2 + %g1 ], %g1 2004a10: 81 c0 40 00 jmp %g1 2004a14: 01 00 00 00 nop fprintf(stdout, " links not printed\n" ); assert(0); break; case IMFS_FIFO: fprintf(stdout, " FIFO not printed\n" ); 2004a18: c2 04 20 e0 ld [ %l0 + 0xe0 ], %g1 <== NOT EXECUTED 2004a1c: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 2004a20: d6 00 60 08 ld [ %g1 + 8 ], %o3 <== NOT EXECUTED 2004a24: 94 10 20 12 mov 0x12, %o2 <== NOT EXECUTED 2004a28: 11 00 80 93 sethi %hi(0x2024c00), %o0 <== NOT EXECUTED 2004a2c: 40 00 44 4b call 2015b58 <== NOT EXECUTED 2004a30: 90 12 23 08 or %o0, 0x308, %o0 ! 2024f08 <== NOT EXECUTED assert(0); 2004a34: 10 bf ff ed b 20049e8 <== NOT EXECUTED 2004a38: 92 10 20 67 mov 0x67, %o1 <== NOT EXECUTED fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")", the_jnode->info.device.major, the_jnode->info.device.minor ); break; case IMFS_LINEAR_FILE: fprintf(stdout, " (file %" PRId32 " %p)", 2004a3c: c2 04 20 e0 ld [ %l0 + 0xe0 ], %g1 <== NOT EXECUTED 2004a40: d6 06 20 58 ld [ %i0 + 0x58 ], %o3 <== NOT EXECUTED 2004a44: d4 06 20 54 ld [ %i0 + 0x54 ], %o2 <== NOT EXECUTED 2004a48: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED 2004a4c: 13 00 80 93 sethi %hi(0x2024c00), %o1 <== NOT EXECUTED 2004a50: 40 00 40 c5 call 2014d64 <== NOT EXECUTED 2004a54: 92 12 62 c8 or %o1, 0x2c8, %o1 ! 2024ec8 <== NOT EXECUTED default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 2004a58: 31 00 80 93 sethi %hi(0x2024c00), %i0 <== NOT EXECUTED 2004a5c: 40 00 48 49 call 2016b80 <== NOT EXECUTED 2004a60: 91 ee 23 30 restore %i0, 0x330, %o0 <== NOT EXECUTED the_jnode->info.file.indirect, the_jnode->info.file.doubly_indirect, the_jnode->info.file.triply_indirect ); #else fprintf(stdout, " (file %" PRId32 ")", 2004a64: c2 04 20 e0 ld [ %l0 + 0xe0 ], %g1 2004a68: d4 06 20 54 ld [ %i0 + 0x54 ], %o2 2004a6c: d0 00 60 08 ld [ %g1 + 8 ], %o0 2004a70: 13 00 80 93 sethi %hi(0x2024c00), %o1 2004a74: 40 00 40 bc call 2014d64 2004a78: 92 12 62 d8 or %o1, 0x2d8, %o1 ! 2024ed8 default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 2004a7c: 31 00 80 93 sethi %hi(0x2024c00), %i0 2004a80: 40 00 48 40 call 2016b80 2004a84: 91 ee 23 30 restore %i0, 0x330, %o0 fprintf(stdout, " links not printed\n" ); assert(0); break; case IMFS_SYM_LINK: fprintf(stdout, " links not printed\n" ); 2004a88: c2 04 20 e0 ld [ %l0 + 0xe0 ], %g1 <== NOT EXECUTED 2004a8c: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 2004a90: d6 00 60 08 ld [ %g1 + 8 ], %o3 <== NOT EXECUTED 2004a94: 94 10 20 13 mov 0x13, %o2 <== NOT EXECUTED 2004a98: 11 00 80 93 sethi %hi(0x2024c00), %o0 <== NOT EXECUTED 2004a9c: 40 00 44 2f call 2015b58 <== NOT EXECUTED 2004aa0: 90 12 22 e8 or %o0, 0x2e8, %o0 ! 2024ee8 <== NOT EXECUTED assert(0); 2004aa4: 10 bf ff d1 b 20049e8 <== NOT EXECUTED 2004aa8: 92 10 20 62 mov 0x62, %o1 <== NOT EXECUTED (uint32_t)the_jnode->info.file.size ); #endif break; case IMFS_HARD_LINK: fprintf(stdout, " links not printed\n" ); 2004aac: c2 04 20 e0 ld [ %l0 + 0xe0 ], %g1 <== NOT EXECUTED 2004ab0: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 2004ab4: d6 00 60 08 ld [ %g1 + 8 ], %o3 <== NOT EXECUTED 2004ab8: 94 10 20 13 mov 0x13, %o2 <== NOT EXECUTED 2004abc: 11 00 80 93 sethi %hi(0x2024c00), %o0 <== NOT EXECUTED 2004ac0: 40 00 44 26 call 2015b58 <== NOT EXECUTED 2004ac4: 90 12 22 e8 or %o0, 0x2e8, %o0 ! 2024ee8 <== NOT EXECUTED assert(0); 2004ac8: 10 bf ff c8 b 20049e8 <== NOT EXECUTED 2004acc: 92 10 20 5d mov 0x5d, %o1 <== NOT EXECUTED case IMFS_DIRECTORY: fprintf(stdout, "/" ); break; case IMFS_DEVICE: fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")", 2004ad0: c2 04 20 e0 ld [ %l0 + 0xe0 ], %g1 2004ad4: d6 06 20 54 ld [ %i0 + 0x54 ], %o3 2004ad8: d4 06 20 50 ld [ %i0 + 0x50 ], %o2 2004adc: d0 00 60 08 ld [ %g1 + 8 ], %o0 2004ae0: 13 00 80 93 sethi %hi(0x2024c00), %o1 2004ae4: 40 00 40 a0 call 2014d64 2004ae8: 92 12 62 b0 or %o1, 0x2b0, %o1 ! 2024eb0 default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 2004aec: 31 00 80 93 sethi %hi(0x2024c00), %i0 2004af0: 40 00 48 24 call 2016b80 2004af4: 91 ee 23 30 restore %i0, 0x330, %o0 assert( the_jnode ); fprintf(stdout, "%s", the_jnode->name ); switch( the_jnode->type ) { case IMFS_DIRECTORY: fprintf(stdout, "/" ); 2004af8: c2 04 20 e0 ld [ %l0 + 0xe0 ], %g1 2004afc: 90 10 20 2f mov 0x2f, %o0 2004b00: d2 00 60 08 ld [ %g1 + 8 ], %o1 2004b04: 40 00 40 b2 call 2014dcc 2004b08: 31 00 80 93 sethi %hi(0x2024c00), %i0 default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 2004b0c: 40 00 48 1d call 2016b80 2004b10: 91 ee 23 30 restore %i0, 0x330, %o0 void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { assert( the_jnode ); 2004b14: 11 00 80 93 sethi %hi(0x2024c00), %o0 <== NOT EXECUTED 2004b18: 15 00 80 94 sethi %hi(0x2025000), %o2 <== NOT EXECUTED 2004b1c: 17 00 80 93 sethi %hi(0x2024c00), %o3 <== NOT EXECUTED 2004b20: 90 12 22 50 or %o0, 0x250, %o0 <== NOT EXECUTED 2004b24: 94 12 a0 60 or %o2, 0x60, %o2 <== NOT EXECUTED 2004b28: 96 12 e2 a0 or %o3, 0x2a0, %o3 <== NOT EXECUTED 2004b2c: 40 00 02 70 call 20054ec <__assert_func> <== NOT EXECUTED 2004b30: 92 10 20 38 mov 0x38, %o1 <== NOT EXECUTED =============================================================================== 02002504 : int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { 2002504: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *node; int i; node = loc->node_access; 2002508: c2 06 00 00 ld [ %i0 ], %g1 if ( node->type != IMFS_SYM_LINK ) 200250c: c4 00 60 4c ld [ %g1 + 0x4c ], %g2 2002510: 80 a0 a0 04 cmp %g2, 4 2002514: 12 80 00 19 bne 2002578 <== NEVER TAKEN 2002518: 80 a6 a0 00 cmp %i2, 0 rtems_set_errno_and_return_minus_one( EINVAL ); for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) 200251c: 02 80 00 15 be 2002570 <== NEVER TAKEN 2002520: 86 10 20 00 clr %g3 2002524: c4 00 60 50 ld [ %g1 + 0x50 ], %g2 2002528: c8 48 80 00 ldsb [ %g2 ], %g4 int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) rtems_set_errno_and_return_minus_one( EINVAL ); 200252c: b0 10 20 00 clr %i0 for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) 2002530: 80 a1 20 00 cmp %g4, 0 2002534: 12 80 00 08 bne 2002554 <== ALWAYS TAKEN 2002538: c4 08 80 00 ldub [ %g2 ], %g2 200253c: 30 80 00 13 b,a 2002588 <== NOT EXECUTED 2002540: c4 00 60 50 ld [ %g1 + 0x50 ], %g2 2002544: c8 48 80 18 ldsb [ %g2 + %i0 ], %g4 2002548: 80 a1 20 00 cmp %g4, 0 200254c: 02 80 00 07 be 2002568 2002550: c4 08 80 18 ldub [ %g2 + %i0 ], %g2 buf[i] = node->info.sym_link.name[i]; 2002554: c4 2e 40 03 stb %g2, [ %i1 + %g3 ] 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++ ) 2002558: b0 06 20 01 inc %i0 200255c: 80 a6 80 18 cmp %i2, %i0 2002560: 18 bf ff f8 bgu 2002540 2002564: 86 10 00 18 mov %i0, %g3 buf[i] = node->info.sym_link.name[i]; return i; } 2002568: 81 c7 e0 08 ret 200256c: 81 e8 00 00 restore 2002570: 81 c7 e0 08 ret <== NOT EXECUTED 2002574: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) rtems_set_errno_and_return_minus_one( EINVAL ); 2002578: 40 00 37 b6 call 2010450 <__errno> <== NOT EXECUTED 200257c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2002580: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2002584: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2002588: 81 c7 e0 08 ret <== NOT EXECUTED 200258c: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02002590 : 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 */ ) { 2002590: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; IMFS_jnode_t *new_parent; the_jnode = old_loc->node_access; 2002594: e0 06 40 00 ld [ %i1 ], %l0 strncpy( the_jnode->name, new_name, IMFS_NAME_MAX ); 2002598: 92 10 00 1b mov %i3, %o1 200259c: 90 04 20 0c add %l0, 0xc, %o0 20025a0: 40 00 3b ae call 2011458 20025a4: 94 10 20 20 mov 0x20, %o2 if ( the_jnode->Parent != NULL ) 20025a8: c2 04 20 08 ld [ %l0 + 8 ], %g1 20025ac: 80 a0 60 00 cmp %g1, 0 20025b0: 22 80 00 05 be,a 20025c4 <== NEVER TAKEN 20025b4: 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 ); 20025b8: 40 00 13 46 call 20072d0 <_Chain_Extract> 20025bc: 90 10 00 10 mov %l0, %o0 rtems_chain_extract( (rtems_chain_node *) the_jnode ); new_parent = new_parent_loc->node_access; 20025c0: 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 ); 20025c4: 92 10 00 10 mov %l0, %o1 20025c8: 90 00 60 50 add %g1, 0x50, %o0 20025cc: 40 00 13 35 call 20072a0 <_Chain_Append> 20025d0: 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 ); 20025d4: 90 07 bf f8 add %fp, -8, %o0 20025d8: 40 00 01 f0 call 2002d98 20025dc: 92 10 20 00 clr %o1 20025e0: c2 07 bf f8 ld [ %fp + -8 ], %g1 20025e4: c2 24 20 48 st %g1, [ %l0 + 0x48 ] return 0; } 20025e8: 81 c7 e0 08 ret 20025ec: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 0200c53c : int IMFS_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 200c53c: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 200c540: 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 ) { 200c544: c2 04 20 08 ld [ %l0 + 8 ], %g1 200c548: 80 a0 60 00 cmp %g1, 0 200c54c: 22 80 00 06 be,a 200c564 <== NEVER TAKEN 200c550: 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 ); 200c554: 7f ff eb 5f call 20072d0 <_Chain_Extract> 200c558: 90 10 00 10 mov %l0, %o0 rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 200c55c: c0 24 20 08 clr [ %l0 + 8 ] /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 200c560: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 IMFS_update_ctime( the_jnode ); 200c564: 92 10 20 00 clr %o1 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 200c568: 82 00 7f ff add %g1, -1, %g1 IMFS_update_ctime( the_jnode ); 200c56c: 90 07 bf f8 add %fp, -8, %o0 200c570: 7f ff da 0a call 2002d98 200c574: c2 34 20 34 sth %g1, [ %l0 + 0x34 ] 200c578: 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) ) { 200c57c: 90 10 00 10 mov %l0, %o0 200c580: 40 00 00 fb call 200c96c 200c584: c2 24 20 48 st %g1, [ %l0 + 0x48 ] 200c588: 80 a2 20 00 cmp %o0, 0 200c58c: 12 80 00 12 bne 200c5d4 <== NEVER TAKEN 200c590: 01 00 00 00 nop 200c594: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 200c598: 80 a0 60 00 cmp %g1, 0 200c59c: 12 80 00 0e bne 200c5d4 <== NEVER TAKEN 200c5a0: 03 00 80 74 sethi %hi(0x201d000), %g1 /* * Is rtems_filesystem_current this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 200c5a4: c2 00 62 10 ld [ %g1 + 0x210 ], %g1 ! 201d210 200c5a8: c4 06 40 00 ld [ %i1 ], %g2 200c5ac: c6 00 60 04 ld [ %g1 + 4 ], %g3 200c5b0: 80 a0 c0 02 cmp %g3, %g2 200c5b4: 22 80 00 02 be,a 200c5bc <== NEVER TAKEN 200c5b8: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { 200c5bc: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 200c5c0: 80 a0 60 04 cmp %g1, 4 200c5c4: 22 80 00 06 be,a 200c5dc 200c5c8: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 if ( the_jnode->info.sym_link.name ) free( (void*) the_jnode->info.sym_link.name ); } free( the_jnode ); 200c5cc: 7f ff d9 c8 call 2002cec 200c5d0: 90 10 00 10 mov %l0, %o0 } return 0; } 200c5d4: 81 c7 e0 08 ret 200c5d8: 91 e8 20 00 restore %g0, 0, %o0 /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { if ( the_jnode->info.sym_link.name ) 200c5dc: 80 a2 20 00 cmp %o0, 0 200c5e0: 02 bf ff fb be 200c5cc <== NEVER TAKEN 200c5e4: 01 00 00 00 nop free( (void*) the_jnode->info.sym_link.name ); 200c5e8: 7f ff d9 c1 call 2002cec 200c5ec: 01 00 00 00 nop 200c5f0: 30 bf ff f7 b,a 200c5cc =============================================================================== 0200c614 : int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 200c614: 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; 200c618: c2 06 00 00 ld [ %i0 ], %g1 switch ( the_jnode->type ) { 200c61c: c4 00 60 4c ld [ %g1 + 0x4c ], %g2 200c620: 80 a0 a0 07 cmp %g2, 7 200c624: 08 80 00 08 bleu 200c644 <== ALWAYS TAKEN 200c628: 85 28 a0 02 sll %g2, 2, %g2 case IMFS_FIFO: buf->st_size = 0; break; default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 200c62c: 40 00 0f 89 call 2010450 <__errno> <== NOT EXECUTED 200c630: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200c634: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 200c638: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200c63c: 81 c7 e0 08 ret <== NOT EXECUTED 200c640: 81 e8 00 00 restore <== NOT EXECUTED IMFS_device_t *io; the_jnode = loc->node_access; switch ( the_jnode->type ) { 200c644: 07 00 80 31 sethi %hi(0x200c400), %g3 200c648: 86 10 e1 f4 or %g3, 0x1f4, %g3 ! 200c5f4 200c64c: c4 00 c0 02 ld [ %g3 + %g2 ], %g2 200c650: 81 c0 80 00 jmp %g2 200c654: 01 00 00 00 nop case IMFS_SYM_LINK: buf->st_size = 0; break; case IMFS_FIFO: buf->st_size = 0; 200c658: c0 26 60 20 clr [ %i1 + 0x20 ] <== NOT EXECUTED 200c65c: c0 26 60 24 clr [ %i1 + 0x24 ] <== 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; 200c660: c6 00 60 30 ld [ %g1 + 0x30 ], %g3 buf->st_nlink = the_jnode->st_nlink; 200c664: 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; 200c668: c6 26 60 0c st %g3, [ %i1 + 0xc ] buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; 200c66c: 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 ); 200c670: 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; 200c674: 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; 200c678: 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; 200c67c: 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; 200c680: 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 ); 200c684: 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; 200c688: 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; 200c68c: 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; 200c690: 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; 200c694: 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 ); 200c698: 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; 200c69c: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 buf->st_blksize = imfs_rq_memfile_bytes_per_block; 200c6a0: 07 00 80 74 sethi %hi(0x201d000), %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; 200c6a4: 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; 200c6a8: c6 00 e0 48 ld [ %g3 + 0x48 ], %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; 200c6ac: 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 = 200c6b0: 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; 200c6b4: 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; 200c6b8: c4 26 60 38 st %g2, [ %i1 + 0x38 ] rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; 200c6bc: 03 00 00 3f sethi %hi(0xfc00), %g1 200c6c0: 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 = 200c6c4: 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; } 200c6c8: 81 c7 e0 08 ret 200c6cc: 91 e8 20 00 restore %g0, 0, %o0 200c6d0: c4 18 60 50 ldd [ %g1 + 0x50 ], %g2 switch ( the_jnode->type ) { case IMFS_DEVICE: io = &the_jnode->info.device; buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor ); break; 200c6d4: 10 bf ff e3 b 200c660 200c6d8: c4 3e 60 18 std %g2, [ %i1 + 0x18 ] case IMFS_LINEAR_FILE: case IMFS_MEMORY_FILE: buf->st_size = the_jnode->info.file.size; 200c6dc: c4 18 60 50 ldd [ %g1 + 0x50 ], %g2 break; 200c6e0: 10 bf ff e0 b 200c660 200c6e4: c4 3e 60 20 std %g2, [ %i1 + 0x20 ] =============================================================================== 020025f0 : int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { 20025f0: 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 ); 20025f4: 40 00 3b 64 call 2011384 20025f8: 90 10 00 1a mov %i2, %o0 20025fc: 96 07 bf fc add %fp, -4, %o3 2002600: 92 10 00 08 mov %o0, %o1 2002604: a0 07 bf b8 add %fp, -72, %l0 2002608: 90 10 00 1a mov %i2, %o0 200260c: 40 00 27 94 call 200c45c 2002610: 94 10 00 10 mov %l0, %o2 /* * Duplicate link name */ info.sym_link.name = strdup(link_name); 2002614: 40 00 3b 47 call 2011330 2002618: 90 10 00 19 mov %i1, %o0 if (info.sym_link.name == NULL) { 200261c: 80 a2 20 00 cmp %o0, 0 2002620: 02 80 00 15 be 2002674 <== NEVER TAKEN 2002624: d0 27 bf e0 st %o0, [ %fp + -32 ] * 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( 2002628: 90 10 00 18 mov %i0, %o0 200262c: 94 10 00 10 mov %l0, %o2 2002630: 92 10 20 04 mov 4, %o1 2002634: 17 00 00 28 sethi %hi(0xa000), %o3 2002638: 98 07 bf e0 add %fp, -32, %o4 200263c: 96 12 e1 ff or %o3, 0x1ff, %o3 2002640: 40 00 23 9c call 200b4b0 2002644: b0 10 20 00 clr %i0 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { 2002648: 80 a2 20 00 cmp %o0, 0 200264c: 12 80 00 08 bne 200266c <== ALWAYS TAKEN 2002650: d0 07 bf e0 ld [ %fp + -32 ], %o0 free(info.sym_link.name); 2002654: 40 00 01 a6 call 2002cec <== NOT EXECUTED 2002658: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 200265c: 40 00 37 7d call 2010450 <__errno> <== NOT EXECUTED 2002660: 01 00 00 00 nop <== NOT EXECUTED 2002664: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 2002668: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED } return 0; } 200266c: 81 c7 e0 08 ret 2002670: 81 e8 00 00 restore /* * Duplicate link name */ info.sym_link.name = strdup(link_name); if (info.sym_link.name == NULL) { rtems_set_errno_and_return_minus_one(ENOMEM); 2002674: 40 00 37 77 call 2010450 <__errno> <== NOT EXECUTED 2002678: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200267c: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 2002680: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2002684: 81 c7 e0 08 ret <== NOT EXECUTED 2002688: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0200268c : int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { 200268c: 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; 2002690: 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 ) { 2002694: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 2002698: 80 a0 60 03 cmp %g1, 3 200269c: 02 80 00 09 be 20026c0 20026a0: a2 10 00 18 mov %i0, %l1 /* * Now actually free the node we were asked to free. */ result = (*loc->handlers->rmnod_h)( parentloc, loc ); 20026a4: c2 06 60 08 ld [ %i1 + 8 ], %g1 20026a8: 90 10 00 11 mov %l1, %o0 20026ac: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 20026b0: 9f c0 40 00 call %g1 20026b4: 92 10 00 19 mov %i1, %o1 return result; } 20026b8: 81 c7 e0 08 ret 20026bc: 91 e8 00 08 restore %g0, %o0, %o0 * free the node. */ if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) 20026c0: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 20026c4: 80 a0 60 00 cmp %g1, 0 20026c8: 02 80 00 25 be 200275c <== NEVER TAKEN 20026cc: a4 07 bf e4 add %fp, -28, %l2 rtems_set_errno_and_return_minus_one( EINVAL ); the_link = *loc; 20026d0: c4 06 60 10 ld [ %i1 + 0x10 ], %g2 20026d4: da 06 60 04 ld [ %i1 + 4 ], %o5 20026d8: c8 06 60 08 ld [ %i1 + 8 ], %g4 20026dc: c6 06 60 0c ld [ %i1 + 0xc ], %g3 20026e0: c4 27 bf f4 st %g2, [ %fp + -12 ] the_link.node_access = node->info.hard_link.link_node; 20026e4: c2 27 bf e4 st %g1, [ %fp + -28 ] if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) rtems_set_errno_and_return_minus_one( EINVAL ); the_link = *loc; 20026e8: da 27 bf e8 st %o5, [ %fp + -24 ] 20026ec: c8 27 bf ec st %g4, [ %fp + -20 ] 20026f0: c6 27 bf f0 st %g3, [ %fp + -16 ] the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); 20026f4: 40 00 23 bc call 200b5e4 20026f8: 90 10 00 12 mov %l2, %o0 /* * 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) 20026fc: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 2002700: c4 10 60 34 lduh [ %g1 + 0x34 ], %g2 2002704: 80 a0 a0 01 cmp %g2, 1 2002708: 02 80 00 0a be 2002730 200270c: 86 00 bf ff add %g2, -1, %g3 return -1; } else { node->info.hard_link.link_node->st_nlink --; IMFS_update_ctime( node->info.hard_link.link_node ); 2002710: 90 07 bf f8 add %fp, -8, %o0 if ( result != 0 ) return -1; } else { node->info.hard_link.link_node->st_nlink --; 2002714: c6 30 60 34 sth %g3, [ %g1 + 0x34 ] IMFS_update_ctime( node->info.hard_link.link_node ); 2002718: 40 00 01 a0 call 2002d98 200271c: 92 10 20 00 clr %o1 2002720: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 2002724: c4 07 bf f8 ld [ %fp + -8 ], %g2 2002728: 10 bf ff df b 20026a4 200272c: c4 20 60 48 st %g2, [ %g1 + 0x48 ] * to remove the node that is a link and the node itself. */ if ( node->info.hard_link.link_node->st_nlink == 1) { result = (*the_link.handlers->rmnod_h)( parentloc, &the_link ); 2002730: c2 07 bf ec ld [ %fp + -20 ], %g1 2002734: 90 10 00 18 mov %i0, %o0 2002738: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 200273c: 92 10 00 12 mov %l2, %o1 2002740: 9f c0 40 00 call %g1 2002744: b0 10 3f ff mov -1, %i0 if ( result != 0 ) 2002748: 80 a2 20 00 cmp %o0, 0 200274c: 22 bf ff d7 be,a 20026a8 2002750: c2 06 60 08 ld [ %i1 + 8 ], %g1 */ result = (*loc->handlers->rmnod_h)( parentloc, loc ); return result; } 2002754: 81 c7 e0 08 ret 2002758: 81 e8 00 00 restore */ if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) rtems_set_errno_and_return_minus_one( EINVAL ); 200275c: 40 00 37 3d call 2010450 <__errno> <== NOT EXECUTED 2002760: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2002764: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2002768: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200276c: 81 c7 e0 08 ret <== NOT EXECUTED 2002770: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02002774 : #include int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 2002774: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 2002778: c2 06 20 08 ld [ %i0 + 8 ], %g1 /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 200277c: c4 00 60 4c ld [ %g1 + 0x4c ], %g2 2002780: 80 a0 a0 01 cmp %g2, 1 2002784: 12 80 00 09 bne 20027a8 <== NEVER TAKEN 2002788: 01 00 00 00 nop /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) 200278c: c4 00 60 5c ld [ %g1 + 0x5c ], %g2 2002790: 80 a0 a0 00 cmp %g2, 0 2002794: 02 80 00 0b be 20027c0 <== NEVER TAKEN 2002798: 01 00 00 00 nop /* * Set the mt_fs pointer to indicate that there is no longer * a file system mounted to this point. */ node->info.directory.mt_fs = NULL; 200279c: c0 20 60 5c clr [ %g1 + 0x5c ] return 0; } 20027a0: 81 c7 e0 08 ret 20027a4: 91 e8 20 00 restore %g0, 0, %o0 /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 20027a8: 40 00 37 2a call 2010450 <__errno> <== NOT EXECUTED 20027ac: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20027b0: 82 10 20 14 mov 0x14, %g1 <== NOT EXECUTED 20027b4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20027b8: 81 c7 e0 08 ret <== NOT EXECUTED 20027bc: 81 e8 00 00 restore <== NOT EXECUTED /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) rtems_set_errno_and_return_minus_one( EINVAL ); /* XXX */ 20027c0: 40 00 37 24 call 2010450 <__errno> <== NOT EXECUTED 20027c4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20027c8: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 20027cc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20027d0: 81 c7 e0 08 ret <== NOT EXECUTED 20027d4: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02002f98 : void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) { 2002f98: 9d e3 bf a0 save %sp, -96, %sp #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { 2002f9c: 03 00 80 75 sethi %hi(0x201d400), %g1 2002fa0: c2 00 63 38 ld [ %g1 + 0x338 ], %g1 ! 201d738 2002fa4: 80 a0 60 00 cmp %g1, 0 2002fa8: 02 80 00 05 be 2002fbc 2002fac: 01 00 00 00 nop (*rtems_malloc_statistics_helpers->initialize)(); 2002fb0: c2 00 40 00 ld [ %g1 ], %g1 2002fb4: 9f c0 40 00 call %g1 2002fb8: 01 00 00 00 nop } /* * Initialize the garbage collection list to start with nothing on it. */ malloc_deferred_frees_initialize(); 2002fbc: 7f ff ff dc call 2002f2c 2002fc0: 01 00 00 00 nop /* * Initialize the optional sbrk support for extending the heap */ if ( rtems_malloc_sbrk_helpers != NULL ) { 2002fc4: 03 00 80 75 sethi %hi(0x201d400), %g1 2002fc8: c2 00 63 3c ld [ %g1 + 0x33c ], %g1 ! 201d73c 2002fcc: 80 a0 60 00 cmp %g1, 0 2002fd0: 02 80 00 08 be 2002ff0 <== ALWAYS TAKEN 2002fd4: 90 10 00 18 mov %i0, %o0 void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)( 2002fd8: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED heap_begin, sbrk_amount ); heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin; 2002fdc: 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)( 2002fe0: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002fe4: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED heap_begin, sbrk_amount ); heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin; 2002fe8: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 2002fec: 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 ( 2002ff0: 23 00 80 75 sethi %hi(0x201d400), %l1 2002ff4: c2 0c 63 35 ldub [ %l1 + 0x335 ], %g1 ! 201d735 2002ff8: 80 a0 60 00 cmp %g1, 0 2002ffc: 12 80 00 10 bne 200303c 2003000: 21 00 80 74 sethi %hi(0x201d000), %l0 !rtems_unified_work_area && rtems_configuration_get_do_zero_of_workspace() 2003004: 03 00 80 74 sethi %hi(0x201d000), %g1 2003008: c2 08 61 20 ldub [ %g1 + 0x120 ], %g1 ! 201d120 200300c: 80 a0 60 00 cmp %g1, 0 2003010: 12 80 00 13 bne 200305c 2003014: 90 10 00 18 mov %i0, %o0 void *area_begin, uintptr_t area_size, uintptr_t page_size ) { return _Heap_Initialize( heap, area_begin, area_size, page_size ); 2003018: 21 00 80 74 sethi %hi(0x201d000), %l0 200301c: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 ! 201d050 2003020: 92 10 00 18 mov %i0, %o1 2003024: 94 10 00 19 mov %i1, %o2 2003028: 40 00 12 23 call 20078b4 <_Heap_Initialize> 200302c: 96 10 20 08 mov 8, %o3 RTEMS_Malloc_Heap, heap_begin, heap_size, CPU_HEAP_ALIGNMENT ); if ( status == 0 ) { 2003030: 80 a2 20 00 cmp %o0, 0 2003034: 02 80 00 13 be 2003080 <== NEVER TAKEN 2003038: 01 00 00 00 nop rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } } MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) ); 200303c: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 2003040: 21 00 80 76 sethi %hi(0x201d800), %l0 2003044: 40 00 15 76 call 200861c <_Protected_heap_Get_size> 2003048: e2 04 21 f0 ld [ %l0 + 0x1f0 ], %l1 ! 201d9f0 200304c: 90 02 00 11 add %o0, %l1, %o0 2003050: d0 24 21 f0 st %o0, [ %l0 + 0x1f0 ] printk( "\n" ); rtems_print_buffer( (heap_begin + heap_size) - 48, 48 ); rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } #endif } 2003054: 81 c7 e0 08 ret 2003058: 81 e8 00 00 restore if ( !rtems_unified_work_area && rtems_configuration_get_do_zero_of_workspace() ) { memset( heap_begin, 0, heap_size ); 200305c: 92 10 20 00 clr %o1 2003060: 40 00 37 77 call 2010e3c 2003064: 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 ) { 2003068: c2 0c 63 35 ldub [ %l1 + 0x335 ], %g1 200306c: 80 a0 60 00 cmp %g1, 0 2003070: 22 bf ff eb be,a 200301c <== ALWAYS TAKEN 2003074: 21 00 80 74 sethi %hi(0x201d000), %l0 if ( status == 0 ) { rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } } MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) ); 2003078: 10 bf ff f2 b 2003040 <== NOT EXECUTED 200307c: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 ! 201d050 <== NOT EXECUTED heap_begin, heap_size, CPU_HEAP_ALIGNMENT ); if ( status == 0 ) { rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); 2003080: 40 00 0f b4 call 2006f50 <== NOT EXECUTED 2003084: 90 10 20 1a mov 0x1a, %o0 <== NOT EXECUTED =============================================================================== 02006a08 : static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) { 2006a08: 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 ) 2006a0c: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 2006a10: 02 80 00 3b be 2006afc <== NOT EXECUTED 2006a14: 27 00 81 c1 sethi %hi(0x2070400), %l3 <== NOT EXECUTED return; if ( !print_handler ) 2006a18: e8 04 e1 60 ld [ %l3 + 0x160 ], %l4 ! 2070560 <== NOT EXECUTED 2006a1c: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED 2006a20: 02 80 00 37 be 2006afc <== NOT EXECUTED 2006a24: 80 a6 3f ff cmp %i0, -1 <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { 2006a28: 02 80 00 3e be 2006b20 <== NOT EXECUTED 2006a2c: a4 06 20 c0 add %i0, 0xc0, %l2 <== 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); 2006a30: ea 04 a0 04 ld [ %l2 + 4 ], %l5 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); 2006a34: e2 04 80 00 ld [ %l2 ], %l1 <== 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); 2006a38: aa 05 60 10 add %l5, 0x10, %l5 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); 2006a3c: a2 04 7f f0 add %l1, -16, %l1 <== NOT EXECUTED } else return; } else { stack = &the_thread->Start.Initial_stack; current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); 2006a40: ec 06 21 48 ld [ %i0 + 0x148 ], %l6 <== 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); 2006a44: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED 2006a48: 7f ff ff d8 call 20069a8 <== NOT EXECUTED 2006a4c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED if ( high_water_mark ) 2006a50: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); 2006a54: a0 05 40 11 add %l5, %l1, %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 ) 2006a58: 82 60 20 00 subx %g0, 0, %g1 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); 2006a5c: a0 24 00 08 sub %l0, %o0, %l0 <== NOT EXECUTED else used = 0; if ( the_thread ) { 2006a60: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 2006a64: 02 80 00 44 be 2006b74 <== NOT EXECUTED 2006a68: a0 0c 00 01 and %l0, %g1, %l0 <== NOT EXECUTED (*print_handler)( 2006a6c: ee 06 20 08 ld [ %i0 + 8 ], %l7 <== NOT EXECUTED 2006a70: 2b 00 81 c1 sethi %hi(0x2070400), %l5 <== NOT EXECUTED 2006a74: fa 05 61 5c ld [ %l5 + 0x15c ], %i5 ! 207055c <== NOT EXECUTED 2006a78: 94 07 bf f8 add %fp, -8, %o2 <== NOT EXECUTED 2006a7c: 92 10 20 05 mov 5, %o1 <== NOT EXECUTED 2006a80: 40 00 1a 30 call 200d340 <== NOT EXECUTED 2006a84: 90 10 00 17 mov %l7, %o0 <== NOT EXECUTED 2006a88: 13 00 81 90 sethi %hi(0x2064000), %o1 <== NOT EXECUTED 2006a8c: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED 2006a90: 94 10 00 17 mov %l7, %o2 <== NOT EXECUTED 2006a94: 90 10 00 1d mov %i5, %o0 <== NOT EXECUTED 2006a98: 9f c5 00 00 call %l4 <== NOT EXECUTED 2006a9c: 92 12 62 58 or %o1, 0x258, %o1 <== NOT EXECUTED ); } else { (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); } (*print_handler)( 2006aa0: d6 04 80 00 ld [ %l2 ], %o3 <== NOT EXECUTED 2006aa4: c2 04 e1 60 ld [ %l3 + 0x160 ], %g1 <== NOT EXECUTED 2006aa8: d4 04 a0 04 ld [ %l2 + 4 ], %o2 <== NOT EXECUTED 2006aac: d0 05 61 5c ld [ %l5 + 0x15c ], %o0 <== NOT EXECUTED 2006ab0: 96 02 ff ff add %o3, -1, %o3 <== NOT EXECUTED 2006ab4: 98 10 00 16 mov %l6, %o4 <== NOT EXECUTED 2006ab8: 96 02 80 0b add %o2, %o3, %o3 <== NOT EXECUTED 2006abc: 9a 10 00 11 mov %l1, %o5 <== NOT EXECUTED 2006ac0: 13 00 81 90 sethi %hi(0x2064000), %o1 <== NOT EXECUTED 2006ac4: 9f c0 40 00 call %g1 <== NOT EXECUTED 2006ac8: 92 12 62 78 or %o1, 0x278, %o1 ! 2064278 <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { 2006acc: 03 00 81 c1 sethi %hi(0x2070400), %g1 <== NOT EXECUTED 2006ad0: c4 00 61 58 ld [ %g1 + 0x158 ], %g2 ! 2070558 <== NOT EXECUTED ); } else { (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); } (*print_handler)( 2006ad4: 03 00 81 c1 sethi %hi(0x2070400), %g1 <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { 2006ad8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2006adc: 02 80 00 0a be 2006b04 <== NOT EXECUTED 2006ae0: 05 00 81 c1 sethi %hi(0x2070400), %g2 <== NOT EXECUTED (*print_handler)( print_context, "Unavailable\n" ); } else { (*print_handler)( print_context, "%8" PRId32 "\n", used ); 2006ae4: c2 00 61 60 ld [ %g1 + 0x160 ], %g1 <== NOT EXECUTED 2006ae8: d0 00 a1 5c ld [ %g2 + 0x15c ], %o0 <== NOT EXECUTED 2006aec: 13 00 81 90 sethi %hi(0x2064000), %o1 <== NOT EXECUTED 2006af0: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 2006af4: 9f c0 40 00 call %g1 <== NOT EXECUTED 2006af8: 92 12 62 a8 or %o1, 0x2a8, %o1 <== NOT EXECUTED 2006afc: 81 c7 e0 08 ret <== NOT EXECUTED 2006b00: 81 e8 00 00 restore <== NOT EXECUTED current, size ); if (Stack_check_Initialized == 0) { (*print_handler)( print_context, "Unavailable\n" ); 2006b04: c2 00 61 60 ld [ %g1 + 0x160 ], %g1 <== NOT EXECUTED 2006b08: d0 00 a1 5c ld [ %g2 + 0x15c ], %o0 <== NOT EXECUTED 2006b0c: 13 00 81 90 sethi %hi(0x2064000), %o1 <== NOT EXECUTED 2006b10: 9f c0 40 00 call %g1 <== NOT EXECUTED 2006b14: 92 12 62 98 or %o1, 0x298, %o1 ! 2064298 <== NOT EXECUTED 2006b18: 81 c7 e0 08 ret <== NOT EXECUTED 2006b1c: 81 e8 00 00 restore <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { if (Stack_check_Interrupt_stack.area) { 2006b20: 25 00 81 cc sethi %hi(0x2073000), %l2 <== NOT EXECUTED 2006b24: a4 14 a0 c8 or %l2, 0xc8, %l2 ! 20730c8 <== NOT EXECUTED 2006b28: c2 04 a0 04 ld [ %l2 + 4 ], %g1 <== NOT EXECUTED 2006b2c: ac 10 20 00 clr %l6 <== NOT EXECUTED 2006b30: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2006b34: 02 bf ff f2 be 2006afc <== NOT EXECUTED 2006b38: b0 10 20 00 clr %i0 <== 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); 2006b3c: ea 04 a0 04 ld [ %l2 + 4 ], %l5 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); 2006b40: e2 04 80 00 ld [ %l2 ], %l1 <== 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); 2006b44: aa 05 60 10 add %l5, 0x10, %l5 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); 2006b48: a2 04 7f f0 add %l1, -16, %l1 <== NOT EXECUTED high_water_mark = Stack_check_find_high_water_mark(low, size); 2006b4c: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED 2006b50: 7f ff ff 96 call 20069a8 <== NOT EXECUTED 2006b54: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED if ( high_water_mark ) 2006b58: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); 2006b5c: a0 05 40 11 add %l5, %l1, %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 ) 2006b60: 82 60 20 00 subx %g0, 0, %g1 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); 2006b64: a0 24 00 08 sub %l0, %o0, %l0 <== NOT EXECUTED else used = 0; if ( the_thread ) { 2006b68: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 2006b6c: 12 bf ff c0 bne 2006a6c <== NOT EXECUTED 2006b70: a0 0c 00 01 and %l0, %g1, %l0 <== 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 ); 2006b74: 2b 00 81 c1 sethi %hi(0x2070400), %l5 <== NOT EXECUTED 2006b78: d0 05 61 5c ld [ %l5 + 0x15c ], %o0 ! 207055c <== NOT EXECUTED 2006b7c: 13 00 81 90 sethi %hi(0x2064000), %o1 <== NOT EXECUTED 2006b80: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED 2006b84: 9f c5 00 00 call %l4 <== NOT EXECUTED 2006b88: 92 12 62 68 or %o1, 0x268, %o1 <== NOT EXECUTED } (*print_handler)( 2006b8c: 10 bf ff c6 b 2006aa4 <== NOT EXECUTED 2006b90: d6 04 80 00 ld [ %l2 ], %o3 <== NOT EXECUTED =============================================================================== 02006da8 : /* * Stack_check_Initialize */ void Stack_check_Initialize( void ) { 2006da8: 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) 2006dac: 21 00 81 c1 sethi %hi(0x2070400), %l0 2006db0: c2 04 21 58 ld [ %l0 + 0x158 ], %g1 ! 2070558 2006db4: 80 a0 60 00 cmp %g1, 0 2006db8: 12 80 00 20 bne 2006e38 2006dbc: 1b 00 81 cc sethi %hi(0x2073000), %o5 2006dc0: 09 00 81 91 sethi %hi(0x2064400), %g4 2006dc4: 9a 13 60 b8 or %o5, 0xb8, %o5 2006dc8: 88 11 20 00 mov %g4, %g4 /* * Dope the pattern and fill areas */ p = Stack_check_Pattern.pattern; for ( i = 0; i < PATTERN_SIZE_WORDS; i++ ) { p[i] = pattern[ i%4 ]; 2006dcc: 84 08 60 03 and %g1, 3, %g2 2006dd0: 85 28 a0 02 sll %g2, 2, %g2 2006dd4: c6 01 00 02 ld [ %g4 + %g2 ], %g3 2006dd8: 85 28 60 02 sll %g1, 2, %g2 /* * Dope the pattern and fill areas */ p = Stack_check_Pattern.pattern; for ( i = 0; i < PATTERN_SIZE_WORDS; i++ ) { 2006ddc: 82 00 60 01 inc %g1 2006de0: 80 a0 60 04 cmp %g1, 4 2006de4: 12 bf ff fa bne 2006dcc 2006de8: c6 23 40 02 st %g3, [ %o5 + %g2 ] /* * 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) { 2006dec: 03 00 81 cc sethi %hi(0x2073000), %g1 2006df0: c2 00 62 c0 ld [ %g1 + 0x2c0 ], %g1 ! 20732c0 <_CPU_Interrupt_stack_low> 2006df4: 80 a0 60 00 cmp %g1, 0 2006df8: 02 80 00 0e be 2006e30 <== NEVER TAKEN 2006dfc: 05 00 81 cc sethi %hi(0x2073000), %g2 2006e00: c6 00 a2 0c ld [ %g2 + 0x20c ], %g3 ! 207320c <_CPU_Interrupt_stack_high> 2006e04: 80 a0 e0 00 cmp %g3, 0 2006e08: 02 80 00 0a be 2006e30 <== NEVER TAKEN 2006e0c: 86 20 c0 01 sub %g3, %g1, %g3 Stack_check_Interrupt_stack.area = _CPU_Interrupt_stack_low; 2006e10: 05 00 81 cc sethi %hi(0x2073000), %g2 Stack_check_Interrupt_stack.size = (char *) _CPU_Interrupt_stack_high - 2006e14: c6 20 a0 c8 st %g3, [ %g2 + 0xc8 ] ! 20730c8 * 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; 2006e18: 84 10 a0 c8 or %g2, 0xc8, %g2 Stack_check_Interrupt_stack.size = (char *) _CPU_Interrupt_stack_high - (char *) _CPU_Interrupt_stack_low; Stack_check_Dope_stack(&Stack_check_Interrupt_stack); 2006e1c: 90 10 00 01 mov %g1, %o0 2006e20: 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; 2006e24: 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); 2006e28: 40 01 15 66 call 204c3c0 2006e2c: 92 10 20 a5 mov 0xa5, %o1 } #endif Stack_check_Initialized = 1; 2006e30: 82 10 20 01 mov 1, %g1 2006e34: c2 24 21 58 st %g1, [ %l0 + 0x158 ] 2006e38: 81 c7 e0 08 ret 2006e3c: 81 e8 00 00 restore =============================================================================== 020069a8 : /* * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; 20069a8: 82 02 20 10 add %o0, 0x10, %g1 <== NOT EXECUTED for (ebase = base + length; base < ebase; base++) 20069ac: 86 0a 7f fc and %o1, -4, %g3 <== NOT EXECUTED 20069b0: 86 00 40 03 add %g1, %g3, %g3 <== NOT EXECUTED 20069b4: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 20069b8: 1a 80 00 10 bcc 20069f8 <== NOT EXECUTED 20069bc: 05 29 69 69 sethi %hi(0xa5a5a400), %g2 <== NOT EXECUTED if (*base != U32_PATTERN) 20069c0: c8 02 20 10 ld [ %o0 + 0x10 ], %g4 <== NOT EXECUTED 20069c4: 84 10 a1 a5 or %g2, 0x1a5, %g2 <== NOT EXECUTED 20069c8: 80 a1 00 02 cmp %g4, %g2 <== NOT EXECUTED 20069cc: 22 80 00 08 be,a 20069ec <== NOT EXECUTED 20069d0: 82 00 60 04 add %g1, 4, %g1 <== NOT EXECUTED return (void *) base; 20069d4: 81 c3 e0 08 retl <== NOT EXECUTED 20069d8: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED * match pattern */ base += PATTERN_SIZE_WORDS; for (ebase = base + length; base < ebase; base++) if (*base != U32_PATTERN) 20069dc: 80 a0 80 04 cmp %g2, %g4 <== NOT EXECUTED 20069e0: 12 80 00 08 bne 2006a00 <== NOT EXECUTED 20069e4: 90 10 00 01 mov %g1, %o0 <== 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++) 20069e8: 82 00 60 04 add %g1, 4, %g1 <== NOT EXECUTED 20069ec: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 20069f0: 38 bf ff fb bgu,a 20069dc <== NOT EXECUTED 20069f4: c4 00 40 00 ld [ %g1 ], %g2 <== NOT EXECUTED if (*base != U32_PATTERN) return (void *) base; #endif return (void *)0; } 20069f8: 81 c3 e0 08 retl <== NOT EXECUTED 20069fc: 90 10 20 00 clr %o0 <== NOT EXECUTED */ base += PATTERN_SIZE_WORDS; for (ebase = base + length; base < ebase; base++) if (*base != U32_PATTERN) return (void *) base; 2006a00: 81 c3 e0 08 retl <== NOT EXECUTED =============================================================================== 02006c08 : * * 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) { 2006c08: 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"); 2006c0c: 11 00 81 90 sethi %hi(0x2064000), %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); 2006c10: e0 06 20 c4 ld [ %i0 + 0xc4 ], %l0 char name [32]; printk("BLOWN STACK!!!\n"); 2006c14: 40 00 0c 99 call 2009e78 2006c18: 90 12 23 18 or %o0, 0x318, %o0 printk("task control block: 0x%08" PRIxPTR "\n", running); 2006c1c: 92 10 00 18 mov %i0, %o1 2006c20: 11 00 81 90 sethi %hi(0x2064000), %o0 2006c24: 40 00 0c 95 call 2009e78 2006c28: 90 12 23 28 or %o0, 0x328, %o0 ! 2064328 printk("task ID: 0x%08lx\n", (unsigned long) running->Object.id); 2006c2c: d2 06 20 08 ld [ %i0 + 8 ], %o1 2006c30: 11 00 81 90 sethi %hi(0x2064000), %o0 2006c34: 40 00 0c 91 call 2009e78 2006c38: 90 12 23 48 or %o0, 0x348, %o0 ! 2064348 printk( 2006c3c: d2 06 20 0c ld [ %i0 + 0xc ], %o1 2006c40: 11 00 81 90 sethi %hi(0x2064000), %o0 2006c44: 40 00 0c 8d call 2009e78 2006c48: 90 12 23 60 or %o0, 0x360, %o0 ! 2064360 "task name: 0x%08" PRIx32 "\n", running->Object.name.name_u32 ); printk( 2006c4c: d0 06 20 08 ld [ %i0 + 8 ], %o0 2006c50: 94 07 bf e0 add %fp, -32, %o2 2006c54: 40 00 19 bb call 200d340 2006c58: 92 10 20 20 mov 0x20, %o1 2006c5c: 92 10 00 08 mov %o0, %o1 2006c60: 11 00 81 90 sethi %hi(0x2064000), %o0 2006c64: 40 00 0c 85 call 2009e78 2006c68: 90 12 23 78 or %o0, 0x378, %o0 ! 2064378 "task name string: %s\n", rtems_object_get_name(running->Object.id, sizeof(name), name) ); printk( 2006c6c: d2 06 20 c0 ld [ %i0 + 0xc0 ], %o1 2006c70: d4 06 20 c4 ld [ %i0 + 0xc4 ], %o2 2006c74: 11 00 81 90 sethi %hi(0x2064000), %o0 2006c78: 96 02 80 09 add %o2, %o1, %o3 2006c7c: 40 00 0c 7f call 2009e78 2006c80: 90 12 23 90 or %o0, 0x390, %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) { 2006c84: 80 8e 60 ff btst 0xff, %i1 2006c88: 02 80 00 04 be 2006c98 <== ALWAYS TAKEN 2006c8c: 96 04 20 18 add %l0, 0x18, %o3 rtems_configuration_get_user_multiprocessing_table()->node ); } #endif rtems_fatal_error_occurred(0x81); 2006c90: 40 00 1c 6b call 200de3c 2006c94: 90 10 20 81 mov 0x81, %o0 (unsigned long) stack->size, stack->area, ((char *) stack->area + stack->size) ); if (!pattern_ok) { printk( 2006c98: 11 00 81 90 sethi %hi(0x2064000), %o0 2006c9c: 92 10 20 10 mov 0x10, %o1 2006ca0: 90 12 23 c8 or %o0, 0x3c8, %o0 2006ca4: 40 00 0c 75 call 2009e78 2006ca8: 94 04 20 08 add %l0, 8, %o2 2006cac: 30 bf ff f9 b,a 2006c90 =============================================================================== 02048168 : return 0; } static int rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control, 2048168: 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; 204816c: c0 2e 80 00 clrb [ %i2 ] <== NOT EXECUTED /* * Load the bitmap. */ rc = rtems_rfs_bitmap_load_map (control, &map); 2048170: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2048174: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED 2048178: 7f ff fe dd call 2047cec <== NOT EXECUTED 204817c: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED if (rc > 0) 2048180: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2048184: 24 80 00 04 ble,a 2048194 <== NOT EXECUTED 2048188: e2 06 40 00 ld [ %i1 ], %l1 <== NOT EXECUTED } while (((direction < 0) && (test_bit >= end_bit)) || ((direction > 0) && (test_bit <= end_bit))); return 0; } 204818c: 81 c7 e0 08 ret <== NOT EXECUTED 2048190: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED /* * Calculate the bit we are testing plus the end point we search over. */ test_bit = *bit; end_bit = test_bit + (window * direction); 2048194: a5 2e e0 0b sll %i3, 0xb, %l2 <== NOT EXECUTED if (end_bit < 0) 2048198: a4 84 80 11 addcc %l2, %l1, %l2 <== NOT EXECUTED 204819c: 2c 80 00 06 bneg,a 20481b4 <== NOT EXECUTED 20481a0: a4 10 20 00 clr %l2 <== NOT EXECUTED end_bit = 0; else if (end_bit >= control->size) 20481a4: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED 20481a8: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED 20481ac: 3a 80 00 02 bcc,a 20481b4 <== NOT EXECUTED 20481b0: 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]; 20481b4: ee 04 20 14 ld [ %l0 + 0x14 ], %l7 <== NOT EXECUTED 20481b8: 83 3c 60 0a sra %l1, 0xa, %g1 <== NOT EXECUTED map_bits = &map[map_index]; 20481bc: ea 07 bf fc ld [ %fp + -4 ], %l5 <== 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]; 20481c0: 83 28 60 02 sll %g1, 2, %g1 <== 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); 20481c4: a9 3c 60 05 sra %l1, 5, %l4 <== 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]; 20481c8: ae 05 c0 01 add %l7, %g1, %l7 <== NOT EXECUTED map_bits = &map[map_index]; 20481cc: 83 2d 20 02 sll %l4, 2, %g1 <== NOT EXECUTED test_bit = (map_index * rtems_rfs_bitmap_element_bits ()) + map_offset; search_offset += direction; if (((direction < 0) && (test_bit <= end_bit)) 20481d0: b9 36 e0 1f srl %i3, 0x1f, %i4 <== 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]; 20481d4: aa 05 40 01 add %l5, %g1, %l5 <== 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); 20481d8: ac 0c 60 1f and %l1, 0x1f, %l6 <== NOT EXECUTED search_index = rtems_rfs_bitmap_map_index (map_index); search_offset = rtems_rfs_bitmap_map_offset (map_index); 20481dc: 90 0d 20 1f and %l4, 0x1f, %o0 <== NOT EXECUTED map_offset += direction; test_bit += direction; } } map_bits += direction; 20481e0: bb 2e e0 02 sll %i3, 2, %i5 <== NOT EXECUTED return 0; } static int rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control, 20481e4: 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); 20481e8: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED test_bit = (map_index * rtems_rfs_bitmap_element_bits ()) + map_offset; search_offset += direction; if (((direction < 0) && (test_bit <= end_bit)) 20481ec: b0 0f 20 ff and %i4, 0xff, %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)) 20481f0: d6 05 c0 00 ld [ %l7 ], %o3 <== NOT EXECUTED return 0; } static int rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control, 20481f4: 98 05 00 1b add %l4, %i3, %o4 <== 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)) 20481f8: 80 a2 e0 00 cmp %o3, 0 <== NOT EXECUTED 20481fc: 12 80 00 30 bne 20482bc <== NOT EXECUTED 2048200: 99 2b 20 05 sll %o4, 5, %o4 <== 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) 2048204: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 2048208: 04 80 00 80 ble 2048408 <== NOT EXECUTED 204820c: a2 0c 7f e0 and %l1, -32, %l1 <== NOT EXECUTED { bits_skipped = rtems_rfs_bitmap_element_bits () - search_offset; 2048210: 84 10 20 20 mov 0x20, %g2 <== NOT EXECUTED test_bit += bits_skipped * rtems_rfs_bitmap_element_bits (); 2048214: ac 10 20 00 clr %l6 <== 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; 2048218: 90 20 80 08 sub %g2, %o0, %o0 <== NOT EXECUTED test_bit += bits_skipped * rtems_rfs_bitmap_element_bits (); 204821c: 85 2a 20 05 sll %o0, 5, %g2 <== NOT EXECUTED 2048220: a2 00 80 11 add %g2, %l1, %l1 <== 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; 2048224: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED 2048228: 7f fe ea 59 call 2002b8c <.umul> <== NOT EXECUTED 204822c: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED 2048230: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED map_index += direction * bits_skipped; 2048234: a8 05 00 08 add %l4, %o0, %l4 <== 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; 2048238: 91 2a 20 02 sll %o0, 2, %o0 <== NOT EXECUTED 204823c: aa 05 40 08 add %l5, %o0, %l5 <== NOT EXECUTED map_index += direction * bits_skipped; } search_bits += direction; search_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1; 2048240: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 2048244: 04 80 00 6a ble 20483ec <== NOT EXECUTED 2048248: ae 05 c0 1d add %l7, %i5, %l7 <== NOT EXECUTED 204824c: 80 a4 80 11 cmp %l2, %l1 <== NOT EXECUTED 2048250: 14 80 00 4d bg 2048384 <== NOT EXECUTED 2048254: 86 10 20 01 mov 1, %g3 <== NOT EXECUTED 2048258: 84 10 20 00 clr %g2 <== NOT EXECUTED 204825c: 90 10 20 00 clr %o0 <== NOT EXECUTED } while (((direction < 0) && (test_bit >= end_bit)) || ((direction > 0) && (test_bit <= end_bit))); 2048260: 80 88 e0 ff btst 0xff, %g3 <== NOT EXECUTED 2048264: 12 80 00 3f bne 2048360 <== NOT EXECUTED 2048268: 80 a4 80 11 cmp %l2, %l1 <== NOT EXECUTED 204826c: 16 80 00 42 bge 2048374 <== NOT EXECUTED 2048270: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 2048274: 10 bf ff c6 b 204818c <== NOT EXECUTED 2048278: 90 10 20 00 clr %o0 <== NOT EXECUTED return 0; } static int rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control, 204827c: a8 06 c0 14 add %i3, %l4, %l4 <== NOT EXECUTED } } map_bits += direction; map_index += direction; map_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1; 2048280: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 2048284: a2 10 20 00 clr %l1 <== NOT EXECUTED 2048288: 04 80 00 42 ble 2048390 <== NOT EXECUTED 204828c: ac 10 20 00 clr %l6 <== NOT EXECUTED test_bit = (map_index * rtems_rfs_bitmap_element_bits ()) + map_offset; 2048290: a2 03 00 11 add %o4, %l1, %l1 <== NOT EXECUTED search_offset += direction; if (((direction < 0) && (test_bit <= end_bit)) 2048294: 80 a4 80 11 cmp %l2, %l1 <== NOT EXECUTED 2048298: 16 80 00 28 bge 2048338 <== NOT EXECUTED 204829c: 84 10 00 1c mov %i4, %g2 <== NOT EXECUTED 20482a0: 80 a4 80 11 cmp %l2, %l1 <== NOT EXECUTED 20482a4: 14 80 00 05 bg 20482b8 <== NOT EXECUTED 20482a8: 98 03 00 01 add %o4, %g1, %o4 <== NOT EXECUTED 20482ac: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 20482b0: 34 80 00 4d bg,a 20483e4 <== NOT EXECUTED 20482b4: ae 05 c0 1d add %l7, %i5, %l7 <== NOT EXECUTED 20482b8: 90 06 c0 08 add %i3, %o0, %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) 20482bc: 80 a2 20 1f cmp %o0, 0x1f <== NOT EXECUTED 20482c0: 18 bf ff e1 bgu 2048244 <== NOT EXECUTED 20482c4: 80 a6 e0 00 cmp %i3, 0 <== 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); 20482c8: 95 2c c0 08 sll %l3, %o0, %o2 <== 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)) 20482cc: 80 8a 80 0b btst %o2, %o3 <== NOT EXECUTED 20482d0: 22 bf ff eb be,a 204827c <== NOT EXECUTED 20482d4: aa 05 40 1d add %l5, %i5, %l5 <== 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)) 20482d8: da 05 40 00 ld [ %l5 ], %o5 <== 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); 20482dc: 87 2c c0 16 sll %l3, %l6, %g3 <== 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)) 20482e0: 80 88 c0 0d btst %g3, %o5 <== NOT EXECUTED 20482e4: 12 80 00 2e bne 204839c <== NOT EXECUTED 20482e8: 80 a4 80 11 cmp %l2, %l1 <== NOT EXECUTED *found = true; rtems_rfs_buffer_mark_dirty (control->buffer); return 0; } if (test_bit == end_bit) 20482ec: ac 05 80 1b add %l6, %i3, %l6 <== NOT EXECUTED 20482f0: 12 80 00 0d bne 2048324 <== NOT EXECUTED 20482f4: 84 04 40 1b add %l1, %i3, %g2 <== NOT EXECUTED map_offset += direction; test_bit += direction; } } map_bits += direction; 20482f8: 10 bf ff e1 b 204827c <== NOT EXECUTED 20482fc: aa 05 40 1d add %l5, %i5, %l5 <== NOT EXECUTED *found = true; rtems_rfs_buffer_mark_dirty (control->buffer); return 0; } if (test_bit == end_bit) 2048300: a2 10 00 02 mov %g2, %l1 <== 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)) 2048304: 80 88 c0 0d btst %g3, %o5 <== NOT EXECUTED 2048308: 12 80 00 25 bne 204839c <== NOT EXECUTED 204830c: ac 05 80 1b add %l6, %i3, %l6 <== NOT EXECUTED *search_bits = rtems_rfs_bitmap_set (*search_bits, 1 << search_offset); control->free--; *bit = test_bit; *found = true; rtems_rfs_buffer_mark_dirty (control->buffer); 2048310: 84 00 80 1b add %g2, %i3, %g2 <== NOT EXECUTED return 0; } if (test_bit == end_bit) 2048314: 88 20 80 1b sub %g2, %i3, %g4 <== NOT EXECUTED 2048318: 80 a4 80 04 cmp %l2, %g4 <== NOT EXECUTED 204831c: 22 bf ff d8 be,a 204827c <== NOT EXECUTED 2048320: aa 05 40 1d add %l5, %i5, %l5 <== 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) 2048324: 80 a5 a0 1f cmp %l6, 0x1f <== NOT EXECUTED 2048328: 28 bf ff f6 bleu,a 2048300 <== NOT EXECUTED 204832c: 87 2c c0 16 sll %l3, %l6, %g3 <== NOT EXECUTED map_offset += direction; test_bit += direction; } } map_bits += direction; 2048330: 10 bf ff d3 b 204827c <== NOT EXECUTED 2048334: aa 05 40 1d add %l5, %i5, %l5 <== NOT EXECUTED test_bit = (map_index * rtems_rfs_bitmap_element_bits ()) + map_offset; search_offset += direction; if (((direction < 0) && (test_bit <= end_bit)) 2048338: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 204833c: 02 bf ff da be 20482a4 <== NOT EXECUTED 2048340: 80 a4 80 11 cmp %l2, %l1 <== NOT EXECUTED } map_bits += direction * bits_skipped; map_index += direction * bits_skipped; } search_bits += direction; 2048344: ae 05 c0 1d add %l7, %i5, %l7 <== NOT EXECUTED 2048348: 04 80 00 03 ble 2048354 <== NOT EXECUTED 204834c: 86 10 20 01 mov 1, %g3 <== NOT EXECUTED 2048350: 86 10 20 00 clr %g3 <== NOT EXECUTED 2048354: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED 2048358: 10 bf ff c2 b 2048260 <== NOT EXECUTED 204835c: 90 10 20 1f mov 0x1f, %o0 <== 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))); 2048360: 80 88 a0 ff btst 0xff, %g2 <== NOT EXECUTED 2048364: 32 bf ff a4 bne,a 20481f4 <== NOT EXECUTED 2048368: d6 05 c0 00 ld [ %l7 ], %o3 <== NOT EXECUTED 204836c: 10 bf ff c0 b 204826c <== NOT EXECUTED 2048370: 80 a4 80 11 cmp %l2, %l1 <== NOT EXECUTED 2048374: 34 bf ff a0 bg,a 20481f4 <== NOT EXECUTED 2048378: d6 05 c0 00 ld [ %l7 ], %o3 <== NOT EXECUTED 204837c: 10 bf ff 84 b 204818c <== NOT EXECUTED 2048380: 90 10 20 00 clr %o0 <== NOT EXECUTED map_bits += direction * bits_skipped; map_index += direction * bits_skipped; } search_bits += direction; search_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1; 2048384: 86 10 20 00 clr %g3 <== NOT EXECUTED 2048388: 10 bf ff b5 b 204825c <== NOT EXECUTED 204838c: 84 10 20 00 clr %g2 <== NOT EXECUTED } } map_bits += direction; map_index += direction; map_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1; 2048390: a2 10 20 1f mov 0x1f, %l1 <== NOT EXECUTED 2048394: 10 bf ff bf b 2048290 <== NOT EXECUTED 2048398: ac 10 20 1f mov 0x1f, %l6 <== 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); 204839c: 86 2b 40 03 andn %o5, %g3, %g3 <== 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, 20483a0: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED 20483a4: 12 80 00 05 bne 20483b8 <== NOT EXECUTED 20483a8: c6 25 40 00 st %g3, [ %l5 ] <== NOT EXECUTED RTEMS_RFS_BITMAP_ELEMENT_SET)) *search_bits = rtems_rfs_bitmap_set (*search_bits, 20483ac: c2 05 c0 00 ld [ %l7 ], %g1 <== NOT EXECUTED 20483b0: 94 28 40 0a andn %g1, %o2, %o2 <== NOT EXECUTED 20483b4: d4 25 c0 00 st %o2, [ %l7 ] <== NOT EXECUTED 1 << search_offset); control->free--; 20483b8: c4 04 20 10 ld [ %l0 + 0x10 ], %g2 <== NOT EXECUTED *bit = test_bit; *found = true; rtems_rfs_buffer_mark_dirty (control->buffer); 20483bc: 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; 20483c0: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 20483c4: c2 2e 80 00 stb %g1, [ %i2 ] <== NOT EXECUTED rtems_rfs_buffer_mark_dirty (control->buffer); 20483c8: c2 28 c0 00 stb %g1, [ %g3 ] <== NOT EXECUTED 20483cc: 90 10 20 00 clr %o0 <== 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--; 20483d0: 82 00 bf ff add %g2, -1, %g1 <== NOT EXECUTED *bit = test_bit; 20483d4: 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--; 20483d8: c2 24 20 10 st %g1, [ %l0 + 0x10 ] <== NOT EXECUTED } while (((direction < 0) && (test_bit >= end_bit)) || ((direction > 0) && (test_bit <= end_bit))); return 0; } 20483dc: 81 c7 e0 08 ret <== NOT EXECUTED 20483e0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED } map_bits += direction * bits_skipped; map_index += direction * bits_skipped; } search_bits += direction; 20483e4: 10 bf ff 9e b 204825c <== NOT EXECUTED 20483e8: 86 10 20 01 mov 1, %g3 <== NOT EXECUTED search_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1; 20483ec: 80 a4 80 11 cmp %l2, %l1 <== NOT EXECUTED 20483f0: 84 10 00 1c mov %i4, %g2 <== NOT EXECUTED 20483f4: 04 bf ff d9 ble 2048358 <== NOT EXECUTED 20483f8: 86 10 20 01 mov 1, %g3 <== NOT EXECUTED 20483fc: 86 10 20 00 clr %g3 <== NOT EXECUTED } map_bits += direction * bits_skipped; map_index += direction * bits_skipped; } search_bits += direction; 2048400: 10 bf ff 98 b 2048260 <== NOT EXECUTED 2048404: 90 10 20 1f mov 0x1f, %o0 <== 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; 2048408: 85 2a 20 05 sll %o0, 5, %g2 <== NOT EXECUTED 204840c: ac 10 20 1f mov 0x1f, %l6 <== NOT EXECUTED 2048410: 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; 2048414: 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; 2048418: 10 bf ff 83 b 2048224 <== NOT EXECUTED 204841c: a2 00 80 11 add %g2, %l1, %l1 <== NOT EXECUTED =============================================================================== 02007110 <_API_extensions_Run_postdriver>: * * _API_extensions_Run_postdriver */ void _API_extensions_Run_postdriver( void ) { 2007110: 9d e3 bf a0 save %sp, -96, %sp Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; 2007114: 23 00 80 77 sethi %hi(0x201dc00), %l1 2007118: e0 04 61 f4 ld [ %l1 + 0x1f4 ], %l0 ! 201ddf4 <_API_extensions_List> 200711c: a2 14 61 f4 or %l1, 0x1f4, %l1 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 2007120: a2 04 60 04 add %l1, 4, %l1 2007124: 80 a4 00 11 cmp %l0, %l1 2007128: 02 80 00 09 be 200714c <_API_extensions_Run_postdriver+0x3c><== NEVER TAKEN 200712c: 01 00 00 00 nop * Currently all APIs configure this hook so it is always non-NULL. */ #if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API) if ( the_extension->postdriver_hook ) #endif (*the_extension->postdriver_hook)(); 2007130: c2 04 20 08 ld [ %l0 + 8 ], %g1 2007134: 9f c0 40 00 call %g1 2007138: 01 00 00 00 nop Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; !_Chain_Is_tail( &_API_extensions_List, the_node ) ; the_node = the_node->next ) { 200713c: e0 04 00 00 ld [ %l0 ], %l0 void _API_extensions_Run_postdriver( void ) { Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; 2007140: 80 a4 00 11 cmp %l0, %l1 2007144: 32 bf ff fc bne,a 2007134 <_API_extensions_Run_postdriver+0x24><== NEVER TAKEN 2007148: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED 200714c: 81 c7 e0 08 ret 2007150: 81 e8 00 00 restore =============================================================================== 02007154 <_API_extensions_Run_postswitch>: * * _API_extensions_Run_postswitch */ void _API_extensions_Run_postswitch( void ) { 2007154: 9d e3 bf a0 save %sp, -96, %sp Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; 2007158: 23 00 80 77 sethi %hi(0x201dc00), %l1 200715c: e0 04 61 f4 ld [ %l1 + 0x1f4 ], %l0 ! 201ddf4 <_API_extensions_List> 2007160: a2 14 61 f4 or %l1, 0x1f4, %l1 2007164: a2 04 60 04 add %l1, 4, %l1 2007168: 80 a4 00 11 cmp %l0, %l1 200716c: 02 80 00 0a be 2007194 <_API_extensions_Run_postswitch+0x40><== NEVER TAKEN 2007170: 25 00 80 77 sethi %hi(0x201dc00), %l2 2007174: a4 14 a0 70 or %l2, 0x70, %l2 ! 201dc70 <_Thread_Executing> * provide this hook. */ #if defined(RTEMS_ITRON_API) if ( the_extension->postswitch_hook ) #endif (*the_extension->postswitch_hook)( _Thread_Executing ); 2007178: c2 04 20 0c ld [ %l0 + 0xc ], %g1 200717c: 9f c0 40 00 call %g1 2007180: d0 04 80 00 ld [ %l2 ], %o0 Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; !_Chain_Is_tail( &_API_extensions_List, the_node ) ; the_node = the_node->next ) { 2007184: e0 04 00 00 ld [ %l0 ], %l0 void _API_extensions_Run_postswitch( void ) { Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; 2007188: 80 a4 00 11 cmp %l0, %l1 200718c: 32 bf ff fc bne,a 200717c <_API_extensions_Run_postswitch+0x28><== NEVER TAKEN 2007190: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED 2007194: 81 c7 e0 08 ret 2007198: 81 e8 00 00 restore =============================================================================== 020012a8 <_Barrier_Manager_initialization>: #include #include void _Barrier_Manager_initialization(void) { } 20012a8: 81 c3 e0 08 retl =============================================================================== 02017af0 <_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 ) { 2017af0: 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 ) { 2017af4: 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 ) { 2017af8: 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 ) { 2017afc: 80 a0 40 1a cmp %g1, %i2 2017b00: 0a 80 00 17 bcs 2017b5c <_CORE_message_queue_Broadcast+0x6c><== NEVER TAKEN 2017b04: 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 ) { 2017b08: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 2017b0c: 80 a0 60 00 cmp %g1, 0 2017b10: 02 80 00 0a be 2017b38 <_CORE_message_queue_Broadcast+0x48> 2017b14: a4 10 20 00 clr %l2 *count = 0; 2017b18: c0 27 40 00 clr [ %i5 ] return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; 2017b1c: 81 c7 e0 08 ret 2017b20: 91 e8 20 00 restore %g0, 0, %o0 const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 2017b24: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 2017b28: 40 00 29 fb call 2022314 2017b2c: a4 04 a0 01 inc %l2 buffer, waitp->return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; 2017b30: c2 04 60 28 ld [ %l1 + 0x28 ], %g1 2017b34: 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))) { 2017b38: 40 00 0a 9e call 201a5b0 <_Thread_queue_Dequeue> 2017b3c: 90 10 00 10 mov %l0, %o0 2017b40: 92 10 00 19 mov %i1, %o1 2017b44: a2 10 00 08 mov %o0, %l1 /* * There must be no pending messages if there is a thread waiting to * receive a message. */ number_broadcasted = 0; while ((the_thread = 2017b48: 80 a2 20 00 cmp %o0, 0 2017b4c: 12 bf ff f6 bne 2017b24 <_CORE_message_queue_Broadcast+0x34> 2017b50: 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; 2017b54: e4 27 40 00 st %l2, [ %i5 ] 2017b58: b0 10 20 00 clr %i0 return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 2017b5c: 81 c7 e0 08 ret 2017b60: 81 e8 00 00 restore =============================================================================== 020111b0 <_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 ) { 20111b0: 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; 20111b4: 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; 20111b8: 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; 20111bc: 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)) { 20111c0: 80 8e e0 03 btst 3, %i3 20111c4: 02 80 00 09 be 20111e8 <_CORE_message_queue_Initialize+0x38> 20111c8: a2 10 00 1b mov %i3, %l1 allocated_message_size += sizeof(uint32_t); 20111cc: a2 06 e0 04 add %i3, 4, %l1 allocated_message_size &= ~(sizeof(uint32_t) - 1); 20111d0: a2 0c 7f fc and %l1, -4, %l1 } if (allocated_message_size < maximum_message_size) 20111d4: 80 a6 c0 11 cmp %i3, %l1 20111d8: 08 80 00 05 bleu 20111ec <_CORE_message_queue_Initialize+0x3c><== ALWAYS TAKEN 20111dc: a0 04 60 10 add %l1, 0x10, %l0 STATES_WAITING_FOR_MESSAGE, CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); return true; } 20111e0: 81 c7 e0 08 ret 20111e4: 91 e8 20 00 restore %g0, 0, %o0 /* * 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)); 20111e8: 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 * 20111ec: 92 10 00 1a mov %i2, %o1 20111f0: 40 00 53 06 call 2025e08 <.umul> 20111f4: 90 10 00 10 mov %l0, %o0 (allocated_message_size + sizeof(CORE_message_queue_Buffer_control)); if (message_buffering_required < allocated_message_size) 20111f8: 80 a2 00 11 cmp %o0, %l1 20111fc: 0a bf ff f9 bcs 20111e0 <_CORE_message_queue_Initialize+0x30><== NEVER TAKEN 2011200: 01 00 00 00 nop return false; /* * Attempt to allocate the message memory */ the_message_queue->message_buffers = (CORE_message_queue_Buffer *) 2011204: 40 00 0c 7a call 20143ec <_Workspace_Allocate> 2011208: 01 00 00 00 nop _Workspace_Allocate( message_buffering_required ); if (the_message_queue->message_buffers == 0) 201120c: 80 a2 20 00 cmp %o0, 0 2011210: 02 bf ff f4 be 20111e0 <_CORE_message_queue_Initialize+0x30> 2011214: d0 26 20 5c st %o0, [ %i0 + 0x5c ] /* * Initialize the pool of inactive messages, pending messages, * and set of waiting threads. */ _Chain_Initialize ( 2011218: 92 10 00 08 mov %o0, %o1 201121c: 94 10 00 1a mov %i2, %o2 2011220: 90 06 20 60 add %i0, 0x60, %o0 2011224: 40 00 19 cf call 2017960 <_Chain_Initialize> 2011228: 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( 201122c: 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; 2011230: c0 26 20 54 clr [ %i0 + 0x54 ] 2011234: 82 18 60 01 xor %g1, 1, %g1 2011238: 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); 201123c: 82 06 20 54 add %i0, 0x54, %g1 2011240: c2 26 20 50 st %g1, [ %i0 + 0x50 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 2011244: 82 06 20 50 add %i0, 0x50, %g1 2011248: 90 10 00 18 mov %i0, %o0 201124c: c2 26 20 58 st %g1, [ %i0 + 0x58 ] 2011250: 92 60 3f ff subx %g0, -1, %o1 2011254: 94 10 20 80 mov 0x80, %o2 2011258: 96 10 20 06 mov 6, %o3 201125c: 40 00 09 22 call 20136e4 <_Thread_queue_Initialize> 2011260: 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; 2011264: 81 c7 e0 08 ret 2011268: 81 e8 00 00 restore =============================================================================== 020074bc <_CORE_mutex_Seize>: Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { 20074bc: 9d e3 bf a0 save %sp, -96, %sp _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 20074c0: 21 00 80 76 sethi %hi(0x201d800), %l0 20074c4: c2 04 23 b0 ld [ %l0 + 0x3b0 ], %g1 ! 201dbb0 <_Thread_Dispatch_disable_level> 20074c8: 80 a0 60 00 cmp %g1, 0 20074cc: 02 80 00 05 be 20074e0 <_CORE_mutex_Seize+0x24> 20074d0: f8 27 a0 54 st %i4, [ %fp + 0x54 ] 20074d4: 80 8e a0 ff btst 0xff, %i2 20074d8: 12 80 00 1a bne 2007540 <_CORE_mutex_Seize+0x84> <== ALWAYS TAKEN 20074dc: 03 00 80 77 sethi %hi(0x201dc00), %g1 20074e0: 90 10 00 18 mov %i0, %o0 20074e4: 40 00 18 a1 call 200d768 <_CORE_mutex_Seize_interrupt_trylock> 20074e8: 92 07 a0 54 add %fp, 0x54, %o1 20074ec: 80 a2 20 00 cmp %o0, 0 20074f0: 02 80 00 12 be 2007538 <_CORE_mutex_Seize+0x7c> 20074f4: 80 8e a0 ff btst 0xff, %i2 20074f8: 02 80 00 1a be 2007560 <_CORE_mutex_Seize+0xa4> 20074fc: 01 00 00 00 nop 2007500: c4 04 23 b0 ld [ %l0 + 0x3b0 ], %g2 2007504: 03 00 80 77 sethi %hi(0x201dc00), %g1 2007508: c2 00 60 70 ld [ %g1 + 0x70 ], %g1 ! 201dc70 <_Thread_Executing> 200750c: f2 20 60 20 st %i1, [ %g1 + 0x20 ] 2007510: f0 20 60 44 st %i0, [ %g1 + 0x44 ] 2007514: 82 00 a0 01 add %g2, 1, %g1 2007518: c2 24 23 b0 st %g1, [ %l0 + 0x3b0 ] 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; 200751c: 82 10 20 01 mov 1, %g1 2007520: c2 26 20 30 st %g1, [ %i0 + 0x30 ] 2007524: 7f ff ea e4 call 20020b4 2007528: d0 07 a0 54 ld [ %fp + 0x54 ], %o0 200752c: 90 10 00 18 mov %i0, %o0 2007530: 7f ff ff c0 call 2007430 <_CORE_mutex_Seize_interrupt_blocking> 2007534: 92 10 00 1b mov %i3, %o1 2007538: 81 c7 e0 08 ret 200753c: 81 e8 00 00 restore 2007540: c2 00 61 50 ld [ %g1 + 0x150 ], %g1 2007544: 80 a0 60 01 cmp %g1, 1 2007548: 28 bf ff e7 bleu,a 20074e4 <_CORE_mutex_Seize+0x28> 200754c: 90 10 00 18 mov %i0, %o0 2007550: 90 10 20 00 clr %o0 2007554: 92 10 20 00 clr %o1 2007558: 40 00 01 c5 call 2007c6c <_Internal_error_Occurred> 200755c: 94 10 20 13 mov 0x13, %o2 2007560: 7f ff ea d5 call 20020b4 2007564: d0 07 a0 54 ld [ %fp + 0x54 ], %o0 2007568: 03 00 80 77 sethi %hi(0x201dc00), %g1 200756c: c2 00 60 70 ld [ %g1 + 0x70 ], %g1 ! 201dc70 <_Thread_Executing> 2007570: 84 10 20 01 mov 1, %g2 2007574: c4 20 60 34 st %g2, [ %g1 + 0x34 ] 2007578: 81 c7 e0 08 ret 200757c: 81 e8 00 00 restore =============================================================================== 0200d768 <_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 ) { 200d768: 9d e3 bf a0 save %sp, -96, %sp { Thread_Control *executing; /* disabled when you get here */ executing = _Thread_Executing; 200d76c: 03 00 80 77 sethi %hi(0x201dc00), %g1 200d770: c2 00 60 70 ld [ %g1 + 0x70 ], %g1 ! 201dc70 <_Thread_Executing> executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; 200d774: c0 20 60 34 clr [ %g1 + 0x34 ] if ( !_CORE_mutex_Is_locked( the_mutex ) ) { 200d778: c4 06 20 50 ld [ %i0 + 0x50 ], %g2 200d77c: 80 a0 a0 00 cmp %g2, 0 200d780: 22 80 00 13 be,a 200d7cc <_CORE_mutex_Seize_interrupt_trylock+0x64> 200d784: c4 06 20 5c ld [ %i0 + 0x5c ], %g2 the_mutex->lock = CORE_MUTEX_LOCKED; 200d788: c0 26 20 50 clr [ %i0 + 0x50 ] the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 200d78c: 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; 200d790: 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; 200d794: 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; 200d798: c2 26 20 5c st %g1, [ %i0 + 0x5c ] the_mutex->holder_id = executing->Object.id; the_mutex->nest_count = 1; 200d79c: 86 10 20 01 mov 1, %g3 if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 200d7a0: 80 a0 a0 02 cmp %g2, 2 200d7a4: 02 80 00 0f be 200d7e0 <_CORE_mutex_Seize_interrupt_trylock+0x78> 200d7a8: c6 26 20 54 st %g3, [ %i0 + 0x54 ] 200d7ac: 80 a0 a0 03 cmp %g2, 3 200d7b0: 22 80 00 1f be,a 200d82c <_CORE_mutex_Seize_interrupt_trylock+0xc4> 200d7b4: da 00 60 1c ld [ %g1 + 0x1c ], %o5 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; _ISR_Enable( *level_p ); 200d7b8: d0 06 40 00 ld [ %i1 ], %o0 200d7bc: 7f ff d2 3e call 20020b4 200d7c0: b0 10 20 00 clr %i0 200d7c4: 81 c7 e0 08 ret 200d7c8: 81 e8 00 00 restore /* * 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 ) ) { 200d7cc: 80 a0 40 02 cmp %g1, %g2 200d7d0: 22 80 00 0c be,a 200d800 <_CORE_mutex_Seize_interrupt_trylock+0x98> 200d7d4: c4 06 20 40 ld [ %i0 + 0x40 ], %g2 return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p ); } 200d7d8: 81 c7 e0 08 ret 200d7dc: 91 e8 20 01 restore %g0, 1, %o0 _Chain_Prepend_unprotected( &executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = executing->current_priority; #endif executing->resource_count++; 200d7e0: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 200d7e4: 84 00 a0 01 inc %g2 200d7e8: c4 20 60 1c st %g2, [ %g1 + 0x1c ] 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; _ISR_Enable( *level_p ); 200d7ec: d0 06 40 00 ld [ %i1 ], %o0 200d7f0: 7f ff d2 31 call 20020b4 200d7f4: b0 10 20 00 clr %i0 200d7f8: 81 c7 e0 08 ret 200d7fc: 81 e8 00 00 restore * 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 ) ) { switch ( the_mutex->Attributes.lock_nesting_behavior ) { 200d800: 80 a0 a0 00 cmp %g2, 0 200d804: 12 80 00 2b bne 200d8b0 <_CORE_mutex_Seize_interrupt_trylock+0x148> 200d808: 80 a0 a0 01 cmp %g2, 1 case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; 200d80c: c2 06 20 54 ld [ %i0 + 0x54 ], %g1 200d810: 82 00 60 01 inc %g1 200d814: c2 26 20 54 st %g1, [ %i0 + 0x54 ] _ISR_Enable( *level_p ); 200d818: d0 06 40 00 ld [ %i1 ], %o0 200d81c: 7f ff d2 26 call 20020b4 200d820: b0 10 20 00 clr %i0 200d824: 81 c7 e0 08 ret 200d828: 81 e8 00 00 restore { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; current = executing->current_priority; 200d82c: c4 00 60 14 ld [ %g1 + 0x14 ], %g2 _Chain_Prepend_unprotected( &executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = executing->current_priority; #endif executing->resource_count++; 200d830: 88 03 60 01 add %o5, 1, %g4 200d834: c8 20 60 1c st %g4, [ %g1 + 0x1c ] */ { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; 200d838: c8 06 20 4c ld [ %i0 + 0x4c ], %g4 current = executing->current_priority; if ( current == ceiling ) { 200d83c: 80 a1 00 02 cmp %g4, %g2 200d840: 02 bf ff de be 200d7b8 <_CORE_mutex_Seize_interrupt_trylock+0x50> 200d844: 01 00 00 00 nop _ISR_Enable( *level_p ); return 0; } if ( current > ceiling ) { 200d848: 1a 80 00 11 bcc 200d88c <_CORE_mutex_Seize_interrupt_trylock+0x124> 200d84c: 84 10 20 06 mov 6, %g2 ! 6 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 200d850: 03 00 80 76 sethi %hi(0x201d800), %g1 200d854: c4 00 63 b0 ld [ %g1 + 0x3b0 ], %g2 ! 201dbb0 <_Thread_Dispatch_disable_level> 200d858: 84 00 a0 01 inc %g2 200d85c: c4 20 63 b0 st %g2, [ %g1 + 0x3b0 ] _Thread_Disable_dispatch(); _ISR_Enable( *level_p ); 200d860: 7f ff d2 15 call 20020b4 200d864: d0 06 40 00 ld [ %i1 ], %o0 _Thread_Change_priority( 200d868: d2 06 20 4c ld [ %i0 + 0x4c ], %o1 200d86c: d0 06 20 5c ld [ %i0 + 0x5c ], %o0 200d870: 94 10 20 00 clr %o2 200d874: 7f ff eb 83 call 2008680 <_Thread_Change_priority> 200d878: b0 10 20 00 clr %i0 the_mutex->holder, the_mutex->Attributes.priority_ceiling, false ); _Thread_Enable_dispatch(); 200d87c: 7f ff ed 1f call 2008cf8 <_Thread_Enable_dispatch> 200d880: 01 00 00 00 nop 200d884: 81 c7 e0 08 ret 200d888: 81 e8 00 00 restore return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; 200d88c: c4 20 60 34 st %g2, [ %g1 + 0x34 ] the_mutex->lock = CORE_MUTEX_UNLOCKED; 200d890: c6 26 20 50 st %g3, [ %i0 + 0x50 ] the_mutex->nest_count = 0; /* undo locking above */ 200d894: c0 26 20 54 clr [ %i0 + 0x54 ] executing->resource_count--; /* undo locking above */ 200d898: da 20 60 1c st %o5, [ %g1 + 0x1c ] _ISR_Enable( *level_p ); 200d89c: d0 06 40 00 ld [ %i1 ], %o0 200d8a0: 7f ff d2 05 call 20020b4 200d8a4: b0 10 20 00 clr %i0 200d8a8: 81 c7 e0 08 ret 200d8ac: 81 e8 00 00 restore * 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 ) ) { switch ( the_mutex->Attributes.lock_nesting_behavior ) { 200d8b0: 12 bf ff ca bne 200d7d8 <_CORE_mutex_Seize_interrupt_trylock+0x70><== ALWAYS TAKEN 200d8b4: 84 10 20 02 mov 2, %g2 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; 200d8b8: 10 bf ff c0 b 200d7b8 <_CORE_mutex_Seize_interrupt_trylock+0x50><== NOT EXECUTED 200d8bc: c4 20 60 34 st %g2, [ %g1 + 0x34 ] <== NOT EXECUTED =============================================================================== 0200771c <_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 ) { 200771c: 9d e3 bf a0 save %sp, -96, %sp 2007720: 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)) ) { 2007724: b0 10 20 00 clr %i0 2007728: 40 00 06 79 call 200910c <_Thread_queue_Dequeue> 200772c: 90 10 00 10 mov %l0, %o0 2007730: 80 a2 20 00 cmp %o0, 0 2007734: 02 80 00 04 be 2007744 <_CORE_semaphore_Surrender+0x28> 2007738: 01 00 00 00 nop status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; _ISR_Enable( level ); } return status; } 200773c: 81 c7 e0 08 ret 2007740: 81 e8 00 00 restore if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_semaphore_mp_support) ( the_thread, id ); #endif } else { _ISR_Disable( level ); 2007744: 7f ff ea 58 call 20020a4 2007748: 01 00 00 00 nop if ( the_semaphore->count < the_semaphore->Attributes.maximum_count ) 200774c: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 2007750: c4 04 20 40 ld [ %l0 + 0x40 ], %g2 2007754: 80 a0 40 02 cmp %g1, %g2 2007758: 1a 80 00 05 bcc 200776c <_CORE_semaphore_Surrender+0x50> <== NEVER TAKEN 200775c: b0 10 20 04 mov 4, %i0 the_semaphore->count += 1; 2007760: 82 00 60 01 inc %g1 2007764: b0 10 20 00 clr %i0 2007768: c2 24 20 48 st %g1, [ %l0 + 0x48 ] else status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; _ISR_Enable( level ); 200776c: 7f ff ea 52 call 20020b4 2007770: 01 00 00 00 nop } return status; } 2007774: 81 c7 e0 08 ret 2007778: 81 e8 00 00 restore =============================================================================== 0200d64c <_Chain_Initialize>: Chain_Node *current; Chain_Node *next; count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; 200d64c: c0 22 20 04 clr [ %o0 + 4 ] next = starting_address; while ( count-- ) { 200d650: 80 a2 a0 00 cmp %o2, 0 200d654: 02 80 00 08 be 200d674 <_Chain_Initialize+0x28> <== NEVER TAKEN 200d658: 82 10 00 08 mov %o0, %g1 current->next = next; next->previous = current; 200d65c: c2 22 60 04 st %g1, [ %o1 + 4 ] count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; next = starting_address; while ( count-- ) { current->next = next; 200d660: d2 20 40 00 st %o1, [ %g1 ] count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; next = starting_address; while ( count-- ) { 200d664: 94 82 bf ff addcc %o2, -1, %o2 current->next = next; next->previous = current; current = next; next = (Chain_Node *) 200d668: 82 10 00 09 mov %o1, %g1 count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; next = starting_address; while ( count-- ) { 200d66c: 12 bf ff fc bne 200d65c <_Chain_Initialize+0x10> 200d670: 92 02 40 0b add %o1, %o3, %o1 next->previous = current; current = next; next = (Chain_Node *) _Addresses_Add_offset( (void *) next, node_size ); } current->next = _Chain_Tail( the_chain ); 200d674: 84 02 20 04 add %o0, 4, %g2 200d678: c4 20 40 00 st %g2, [ %g1 ] the_chain->last = current; } 200d67c: 81 c3 e0 08 retl 200d680: c2 22 20 08 st %g1, [ %o0 + 8 ] =============================================================================== 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 =============================================================================== 020062cc <_Event_Seize>: rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) { 20062cc: 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; 20062d0: 03 00 80 77 sethi %hi(0x201dc00), %g1 20062d4: e0 00 60 70 ld [ %g1 + 0x70 ], %l0 ! 201dc70 <_Thread_Executing> executing->Wait.return_code = RTEMS_SUCCESSFUL; 20062d8: c0 24 20 34 clr [ %l0 + 0x34 ] api = executing->API_Extensions[ THREAD_API_RTEMS ]; _ISR_Disable( level ); 20062dc: 7f ff ef 72 call 20020a4 20062e0: e4 04 21 60 ld [ %l0 + 0x160 ], %l2 pending_events = api->pending_events; 20062e4: c2 04 80 00 ld [ %l2 ], %g1 seized_events = _Event_sets_Get( pending_events, event_in ); if ( !_Event_sets_Is_empty( seized_events ) && 20062e8: a2 8e 00 01 andcc %i0, %g1, %l1 20062ec: 02 80 00 07 be 2006308 <_Event_Seize+0x3c> 20062f0: 80 8e 60 01 btst 1, %i1 20062f4: 80 a6 00 11 cmp %i0, %l1 20062f8: 02 80 00 23 be 2006384 <_Event_Seize+0xb8> 20062fc: 80 8e 60 02 btst 2, %i1 2006300: 12 80 00 21 bne 2006384 <_Event_Seize+0xb8> <== ALWAYS TAKEN 2006304: 80 8e 60 01 btst 1, %i1 _ISR_Enable( level ); *event_out = seized_events; return; } if ( _Options_Is_no_wait( option_set ) ) { 2006308: 12 80 00 18 bne 2006368 <_Event_Seize+0x9c> 200630c: 82 10 20 01 mov 1, %g1 * set properly when we are marked as in the event critical section. * * 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; 2006310: f2 24 20 30 st %i1, [ %l0 + 0x30 ] executing->Wait.count = (uint32_t) event_in; 2006314: f0 24 20 24 st %i0, [ %l0 + 0x24 ] executing->Wait.return_argument = event_out; 2006318: f6 24 20 28 st %i3, [ %l0 + 0x28 ] _Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 200631c: 33 00 80 77 sethi %hi(0x201dc00), %i1 2006320: c2 26 62 6c st %g1, [ %i1 + 0x26c ] ! 201de6c <_Event_Sync_state> _ISR_Enable( level ); 2006324: 7f ff ef 64 call 20020b4 2006328: 01 00 00 00 nop if ( ticks ) { 200632c: 80 a6 a0 00 cmp %i2, 0 2006330: 32 80 00 1c bne,a 20063a0 <_Event_Seize+0xd4> 2006334: c2 04 20 08 ld [ %l0 + 8 ], %g1 NULL ); _Watchdog_Insert_ticks( &executing->Timer, ticks ); } _Thread_Set_state( executing, STATES_WAITING_FOR_EVENT ); 2006338: 90 10 00 10 mov %l0, %o0 200633c: 40 00 0c f5 call 2009710 <_Thread_Set_state> 2006340: 92 10 21 00 mov 0x100, %o1 _ISR_Disable( level ); 2006344: 7f ff ef 58 call 20020a4 2006348: 01 00 00 00 nop sync_state = _Event_Sync_state; 200634c: f0 06 62 6c ld [ %i1 + 0x26c ], %i0 _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 2006350: c0 26 62 6c clr [ %i1 + 0x26c ] if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) { 2006354: 80 a6 20 01 cmp %i0, 1 2006358: 02 80 00 1f be 20063d4 <_Event_Seize+0x108> 200635c: b2 10 00 10 mov %l0, %i1 * 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 ); 2006360: 40 00 08 b1 call 2008624 <_Thread_blocking_operation_Cancel> 2006364: 95 e8 00 08 restore %g0, %o0, %o2 *event_out = seized_events; return; } if ( _Options_Is_no_wait( option_set ) ) { _ISR_Enable( level ); 2006368: 7f ff ef 53 call 20020b4 200636c: 01 00 00 00 nop executing->Wait.return_code = RTEMS_UNSATISFIED; 2006370: 82 10 20 0d mov 0xd, %g1 ! d 2006374: c2 24 20 34 st %g1, [ %l0 + 0x34 ] *event_out = seized_events; 2006378: e2 26 c0 00 st %l1, [ %i3 ] 200637c: 81 c7 e0 08 ret 2006380: 81 e8 00 00 restore pending_events = api->pending_events; seized_events = _Event_sets_Get( pending_events, event_in ); if ( !_Event_sets_Is_empty( seized_events ) && (seized_events == event_in || _Options_Is_any( option_set )) ) { api->pending_events = 2006384: 82 28 40 11 andn %g1, %l1, %g1 2006388: c2 24 80 00 st %g1, [ %l2 ] _Event_sets_Clear( pending_events, seized_events ); _ISR_Enable( level ); 200638c: 7f ff ef 4a call 20020b4 2006390: 01 00 00 00 nop *event_out = seized_events; 2006394: e2 26 c0 00 st %l1, [ %i3 ] return; 2006398: 81 c7 e0 08 ret 200639c: 81 e8 00 00 restore Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 20063a0: f4 24 20 54 st %i2, [ %l0 + 0x54 ] void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; 20063a4: c2 24 20 68 st %g1, [ %l0 + 0x68 ] Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 20063a8: 03 00 80 19 sethi %hi(0x2006400), %g1 20063ac: 82 10 61 70 or %g1, 0x170, %g1 ! 2006570 <_Event_Timeout> Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 20063b0: c0 24 20 50 clr [ %l0 + 0x50 ] the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 20063b4: c0 24 20 6c clr [ %l0 + 0x6c ] Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 20063b8: c2 24 20 64 st %g1, [ %l0 + 0x64 ] ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 20063bc: 11 00 80 77 sethi %hi(0x201dc00), %o0 20063c0: 92 04 20 48 add %l0, 0x48, %o1 20063c4: 40 00 0e dd call 2009f38 <_Watchdog_Insert> 20063c8: 90 12 20 90 or %o0, 0x90, %o0 NULL ); _Watchdog_Insert_ticks( &executing->Timer, ticks ); } _Thread_Set_state( executing, STATES_WAITING_FOR_EVENT ); 20063cc: 10 bf ff dc b 200633c <_Event_Seize+0x70> 20063d0: 90 10 00 10 mov %l0, %o0 _ISR_Disable( level ); sync_state = _Event_Sync_state; _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) { _ISR_Enable( level ); 20063d4: 7f ff ef 38 call 20020b4 20063d8: 91 e8 00 08 restore %g0, %o0, %o0 =============================================================================== 02006438 <_Event_Surrender>: */ void _Event_Surrender( Thread_Control *the_thread ) { 2006438: 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 ]; 200643c: e0 06 21 60 ld [ %i0 + 0x160 ], %l0 option_set = (rtems_option) the_thread->Wait.option; _ISR_Disable( level ); 2006440: 7f ff ef 19 call 20020a4 2006444: e4 06 20 30 ld [ %i0 + 0x30 ], %l2 2006448: a2 10 00 08 mov %o0, %l1 pending_events = api->pending_events; 200644c: c4 04 00 00 ld [ %l0 ], %g2 event_condition = (rtems_event_set) the_thread->Wait.count; 2006450: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 seized_events = _Event_sets_Get( pending_events, event_condition ); /* * No events were seized in this operation */ if ( _Event_sets_Is_empty( seized_events ) ) { 2006454: 86 88 40 02 andcc %g1, %g2, %g3 2006458: 02 80 00 3a be 2006540 <_Event_Surrender+0x108> 200645c: 09 00 80 77 sethi %hi(0x201dc00), %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() && 2006460: c8 01 20 4c ld [ %g4 + 0x4c ], %g4 ! 201dc4c <_ISR_Nest_level> 2006464: 80 a1 20 00 cmp %g4, 0 2006468: 12 80 00 1d bne 20064dc <_Event_Surrender+0xa4> 200646c: 09 00 80 77 sethi %hi(0x201dc00), %g4 } /* * Otherwise, this is a normal send to another thread */ if ( _States_Is_waiting_for_event( the_thread->current_state ) ) { 2006470: c8 06 20 10 ld [ %i0 + 0x10 ], %g4 2006474: 80 89 21 00 btst 0x100, %g4 2006478: 02 80 00 32 be 2006540 <_Event_Surrender+0x108> 200647c: 80 a0 40 03 cmp %g1, %g3 if ( seized_events == event_condition || _Options_Is_any( option_set ) ) { 2006480: 02 80 00 04 be 2006490 <_Event_Surrender+0x58> 2006484: 80 8c a0 02 btst 2, %l2 2006488: 02 80 00 2e be 2006540 <_Event_Surrender+0x108> <== NEVER TAKEN 200648c: 01 00 00 00 nop api->pending_events = _Event_sets_Clear( pending_events, seized_events ); the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 2006490: c2 06 20 28 ld [ %i0 + 0x28 ], %g1 /* * 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 ); 2006494: 84 28 80 03 andn %g2, %g3, %g2 2006498: c4 24 00 00 st %g2, [ %l0 ] the_thread->Wait.count = 0; 200649c: c0 26 20 24 clr [ %i0 + 0x24 ] *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 20064a0: c6 20 40 00 st %g3, [ %g1 ] _ISR_Flash( level ); 20064a4: 7f ff ef 04 call 20020b4 20064a8: 90 10 00 11 mov %l1, %o0 20064ac: 7f ff ee fe call 20020a4 20064b0: 01 00 00 00 nop if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 20064b4: c2 06 20 50 ld [ %i0 + 0x50 ], %g1 20064b8: 80 a0 60 02 cmp %g1, 2 20064bc: 02 80 00 23 be 2006548 <_Event_Surrender+0x110> 20064c0: 82 10 20 03 mov 3, %g1 _ISR_Enable( level ); 20064c4: 90 10 00 11 mov %l1, %o0 20064c8: 7f ff ee fb call 20020b4 20064cc: 33 04 00 ff sethi %hi(0x1003fc00), %i1 RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 20064d0: b2 16 63 f8 or %i1, 0x3f8, %i1 ! 1003fff8 20064d4: 40 00 08 ef call 2008890 <_Thread_Clear_state> 20064d8: 81 e8 00 00 restore /* * 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() && 20064dc: c8 01 20 70 ld [ %g4 + 0x70 ], %g4 20064e0: 80 a6 00 04 cmp %i0, %g4 20064e4: 32 bf ff e4 bne,a 2006474 <_Event_Surrender+0x3c> 20064e8: c8 06 20 10 ld [ %i0 + 0x10 ], %g4 _Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || 20064ec: 09 00 80 77 sethi %hi(0x201dc00), %g4 20064f0: da 01 22 6c ld [ %g4 + 0x26c ], %o5 ! 201de6c <_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() && 20064f4: 80 a3 60 02 cmp %o5, 2 20064f8: 02 80 00 07 be 2006514 <_Event_Surrender+0xdc> <== NEVER TAKEN 20064fc: 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)) ) { 2006500: da 01 22 6c ld [ %g4 + 0x26c ], %o5 /* * 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() && 2006504: 80 a3 60 01 cmp %o5, 1 2006508: 32 bf ff db bne,a 2006474 <_Event_Surrender+0x3c> 200650c: c8 06 20 10 ld [ %i0 + 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) ) { 2006510: 80 a0 40 03 cmp %g1, %g3 2006514: 02 80 00 04 be 2006524 <_Event_Surrender+0xec> 2006518: 80 8c a0 02 btst 2, %l2 200651c: 02 80 00 09 be 2006540 <_Event_Surrender+0x108> <== NEVER TAKEN 2006520: 01 00 00 00 nop api->pending_events = _Event_sets_Clear( pending_events,seized_events ); the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 2006524: c2 06 20 28 ld [ %i0 + 0x28 ], %g1 if ( _ISR_Is_in_progress() && _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 ); 2006528: 84 28 80 03 andn %g2, %g3, %g2 200652c: c4 24 00 00 st %g2, [ %l0 ] the_thread->Wait.count = 0; 2006530: c0 26 20 24 clr [ %i0 + 0x24 ] *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 2006534: c6 20 40 00 st %g3, [ %g1 ] _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; 2006538: 82 10 20 03 mov 3, %g1 200653c: c2 21 22 6c st %g1, [ %g4 + 0x26c ] _Thread_Unblock( the_thread ); } return; } } _ISR_Enable( level ); 2006540: 7f ff ee dd call 20020b4 2006544: 91 e8 00 11 restore %g0, %l1, %o0 RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; 2006548: c2 26 20 50 st %g1, [ %i0 + 0x50 ] if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { _ISR_Enable( level ); _Thread_Unblock( the_thread ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 200654c: 7f ff ee da call 20020b4 2006550: 90 10 00 11 mov %l1, %o0 (void) _Watchdog_Remove( &the_thread->Timer ); 2006554: 40 00 0e e2 call 200a0dc <_Watchdog_Remove> 2006558: 90 06 20 48 add %i0, 0x48, %o0 200655c: 33 04 00 ff sethi %hi(0x1003fc00), %i1 2006560: b2 16 63 f8 or %i1, 0x3f8, %i1 ! 1003fff8 2006564: 40 00 08 cb call 2008890 <_Thread_Clear_state> 2006568: 81 e8 00 00 restore =============================================================================== 02006570 <_Event_Timeout>: void _Event_Timeout( Objects_Id id, void *ignored ) { 2006570: 9d e3 bf 98 save %sp, -104, %sp Thread_Control *the_thread; Objects_Locations location; ISR_Level level; the_thread = _Thread_Get( id, &location ); 2006574: 90 10 00 18 mov %i0, %o0 2006578: 40 00 09 ee call 2008d30 <_Thread_Get> 200657c: 92 07 bf fc add %fp, -4, %o1 switch ( location ) { 2006580: c2 07 bf fc ld [ %fp + -4 ], %g1 2006584: 80 a0 60 00 cmp %g1, 0 2006588: 12 80 00 15 bne 20065dc <_Event_Timeout+0x6c> <== NEVER TAKEN 200658c: 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 ); 2006590: 7f ff ee c5 call 20020a4 2006594: 01 00 00 00 nop return; } #endif the_thread->Wait.count = 0; if ( _Thread_Is_executing( the_thread ) ) { 2006598: 03 00 80 77 sethi %hi(0x201dc00), %g1 200659c: c2 00 60 70 ld [ %g1 + 0x70 ], %g1 ! 201dc70 <_Thread_Executing> 20065a0: 80 a4 00 01 cmp %l0, %g1 20065a4: 02 80 00 10 be 20065e4 <_Event_Timeout+0x74> 20065a8: c0 24 20 24 clr [ %l0 + 0x24 ] if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; } the_thread->Wait.return_code = RTEMS_TIMEOUT; 20065ac: 82 10 20 06 mov 6, %g1 20065b0: c2 24 20 34 st %g1, [ %l0 + 0x34 ] _ISR_Enable( level ); 20065b4: 7f ff ee c0 call 20020b4 20065b8: 01 00 00 00 nop 20065bc: 90 10 00 10 mov %l0, %o0 20065c0: 13 04 00 ff sethi %hi(0x1003fc00), %o1 20065c4: 40 00 08 b3 call 2008890 <_Thread_Clear_state> 20065c8: 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; 20065cc: 03 00 80 76 sethi %hi(0x201d800), %g1 20065d0: c4 00 63 b0 ld [ %g1 + 0x3b0 ], %g2 ! 201dbb0 <_Thread_Dispatch_disable_level> 20065d4: 84 00 bf ff add %g2, -1, %g2 20065d8: c4 20 63 b0 st %g2, [ %g1 + 0x3b0 ] 20065dc: 81 c7 e0 08 ret 20065e0: 81 e8 00 00 restore } #endif the_thread->Wait.count = 0; if ( _Thread_Is_executing( the_thread ) ) { if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) 20065e4: 03 00 80 77 sethi %hi(0x201dc00), %g1 20065e8: c4 00 62 6c ld [ %g1 + 0x26c ], %g2 ! 201de6c <_Event_Sync_state> 20065ec: 80 a0 a0 01 cmp %g2, 1 20065f0: 32 bf ff f0 bne,a 20065b0 <_Event_Timeout+0x40> 20065f4: 82 10 20 06 mov 6, %g1 _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; 20065f8: 84 10 20 02 mov 2, %g2 20065fc: c4 20 62 6c st %g2, [ %g1 + 0x26c ] } the_thread->Wait.return_code = RTEMS_TIMEOUT; 2006600: 10 bf ff ec b 20065b0 <_Event_Timeout+0x40> 2006604: 82 10 20 06 mov 6, %g1 =============================================================================== 020012f0 <_Extension_Manager_initialization>: #include #include void _Extension_Manager_initialization(void) { } 20012f0: 81 c3 e0 08 retl =============================================================================== 0200d93c <_Heap_Allocate_aligned_with_boundary>: Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { 200d93c: 9d e3 bf 98 save %sp, -104, %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; 200d940: a8 06 60 04 add %i1, 4, %l4 Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { 200d944: a0 10 00 18 mov %i0, %l0 - HEAP_BLOCK_SIZE_OFFSET; uintptr_t const page_size = heap->page_size; uintptr_t alloc_begin = 0; uint32_t search_count = 0; if ( block_size_floor < alloc_size ) { 200d948: 80 a6 40 14 cmp %i1, %l4 return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; 200d94c: e4 06 20 08 ld [ %i0 + 8 ], %l2 200d950: 18 80 00 72 bgu 200db18 <_Heap_Allocate_aligned_with_boundary+0x1dc> 200d954: fa 06 20 10 ld [ %i0 + 0x10 ], %i5 /* Integer overflow occured */ return NULL; } if ( boundary != 0 ) { 200d958: 80 a6 e0 00 cmp %i3, 0 200d95c: 12 80 00 6d bne 200db10 <_Heap_Allocate_aligned_with_boundary+0x1d4> 200d960: 80 a6 40 1b cmp %i1, %i3 if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { 200d964: 80 a4 00 12 cmp %l0, %l2 200d968: 02 80 00 6f be 200db24 <_Heap_Allocate_aligned_with_boundary+0x1e8> 200d96c: 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; 200d970: 82 10 20 04 mov 4, %g1 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; 200d974: b8 07 60 07 add %i5, 7, %i4 uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET; uintptr_t alloc_begin = alloc_end - alloc_size; 200d978: 82 20 40 19 sub %g1, %i1, %g1 200d97c: 10 80 00 09 b 200d9a0 <_Heap_Allocate_aligned_with_boundary+0x64> 200d980: c2 27 bf fc st %g1, [ %fp + -4 ] boundary ); } } if ( alloc_begin != 0 ) { 200d984: 80 a6 20 00 cmp %i0, 0 200d988: 32 80 00 54 bne,a 200dad8 <_Heap_Allocate_aligned_with_boundary+0x19c><== ALWAYS TAKEN 200d98c: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 break; } block = block->next; 200d990: e4 04 a0 08 ld [ %l2 + 8 ], %l2 if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { 200d994: 80 a4 00 12 cmp %l0, %l2 200d998: 22 80 00 57 be,a 200daf4 <_Heap_Allocate_aligned_with_boundary+0x1b8> 200d99c: b0 10 20 00 clr %i0 /* * 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 ) { 200d9a0: e6 04 a0 04 ld [ %l2 + 4 ], %l3 200d9a4: 80 a5 00 13 cmp %l4, %l3 200d9a8: 1a bf ff fa bcc 200d990 <_Heap_Allocate_aligned_with_boundary+0x54> 200d9ac: a2 04 60 01 inc %l1 if ( alignment == 0 ) { 200d9b0: 80 a6 a0 00 cmp %i2, 0 200d9b4: 02 bf ff f4 be 200d984 <_Heap_Allocate_aligned_with_boundary+0x48> 200d9b8: b0 04 a0 08 add %l2, 8, %i0 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; 200d9bc: c2 07 bf fc ld [ %fp + -4 ], %g1 uintptr_t alignment, uintptr_t boundary ) { uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; 200d9c0: ee 04 20 14 ld [ %l0 + 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; 200d9c4: a6 0c ff fe and %l3, -2, %l3 200d9c8: 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; 200d9cc: b0 00 40 13 add %g1, %l3, %i0 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; 200d9d0: 82 27 00 17 sub %i4, %l7, %g1 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); 200d9d4: 90 10 00 18 mov %i0, %o0 200d9d8: a6 00 40 13 add %g1, %l3, %l3 200d9dc: 40 00 30 9c call 2019c4c <.urem> 200d9e0: 92 10 00 1a mov %i2, %o1 200d9e4: b0 26 00 08 sub %i0, %o0, %i0 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 ) { 200d9e8: 80 a4 c0 18 cmp %l3, %i0 200d9ec: 1a 80 00 06 bcc 200da04 <_Heap_Allocate_aligned_with_boundary+0xc8> 200d9f0: ac 04 a0 08 add %l2, 8, %l6 200d9f4: 90 10 00 13 mov %l3, %o0 200d9f8: 40 00 30 95 call 2019c4c <.urem> 200d9fc: 92 10 00 1a mov %i2, %o1 200da00: b0 24 c0 08 sub %l3, %o0, %i0 } alloc_end = alloc_begin + alloc_size; /* Ensure boundary constaint */ if ( boundary != 0 ) { 200da04: 80 a6 e0 00 cmp %i3, 0 200da08: 02 80 00 24 be 200da98 <_Heap_Allocate_aligned_with_boundary+0x15c> 200da0c: 80 a5 80 18 cmp %l6, %i0 /* 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; 200da10: a6 06 00 19 add %i0, %i1, %l3 200da14: 92 10 00 1b mov %i3, %o1 200da18: 40 00 30 8d call 2019c4c <.urem> 200da1c: 90 10 00 13 mov %l3, %o0 200da20: 90 24 c0 08 sub %l3, %o0, %o0 /* 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 ) { 200da24: 80 a4 c0 08 cmp %l3, %o0 200da28: 08 80 00 1b bleu 200da94 <_Heap_Allocate_aligned_with_boundary+0x158> 200da2c: 80 a6 00 08 cmp %i0, %o0 200da30: 1a 80 00 1a bcc 200da98 <_Heap_Allocate_aligned_with_boundary+0x15c> 200da34: 80 a5 80 18 cmp %l6, %i0 alloc_end = alloc_begin + alloc_size; /* Ensure boundary constaint */ if ( boundary != 0 ) { uintptr_t const boundary_floor = alloc_begin_floor + alloc_size; 200da38: aa 05 80 19 add %l6, %i1, %l5 uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary ); while ( alloc_begin < boundary_line && boundary_line < alloc_end ) { if ( boundary_line < boundary_floor ) { 200da3c: 80 a5 40 08 cmp %l5, %o0 200da40: 28 80 00 09 bleu,a 200da64 <_Heap_Allocate_aligned_with_boundary+0x128> 200da44: b0 22 00 19 sub %o0, %i1, %i0 if ( alloc_begin != 0 ) { break; } block = block->next; 200da48: 10 bf ff d3 b 200d994 <_Heap_Allocate_aligned_with_boundary+0x58> 200da4c: e4 04 a0 08 ld [ %l2 + 8 ], %l2 /* 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 ) { 200da50: 1a 80 00 11 bcc 200da94 <_Heap_Allocate_aligned_with_boundary+0x158> 200da54: 80 a5 40 08 cmp %l5, %o0 if ( boundary_line < boundary_floor ) { 200da58: 38 bf ff cf bgu,a 200d994 <_Heap_Allocate_aligned_with_boundary+0x58><== NEVER TAKEN 200da5c: e4 04 a0 08 ld [ %l2 + 8 ], %l2 <== NOT EXECUTED return 0; } alloc_begin = boundary_line - alloc_size; 200da60: b0 22 00 19 sub %o0, %i1, %i0 200da64: 92 10 00 1a mov %i2, %o1 200da68: 40 00 30 79 call 2019c4c <.urem> 200da6c: 90 10 00 18 mov %i0, %o0 200da70: 92 10 00 1b mov %i3, %o1 200da74: b0 26 00 08 sub %i0, %o0, %i0 alloc_begin = _Heap_Align_down( alloc_begin, alignment ); alloc_end = alloc_begin + alloc_size; 200da78: a6 06 00 19 add %i0, %i1, %l3 200da7c: 40 00 30 74 call 2019c4c <.urem> 200da80: 90 10 00 13 mov %l3, %o0 200da84: 90 24 c0 08 sub %l3, %o0, %o0 /* 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 ) { 200da88: 80 a4 c0 08 cmp %l3, %o0 200da8c: 18 bf ff f1 bgu 200da50 <_Heap_Allocate_aligned_with_boundary+0x114> 200da90: 80 a6 00 08 cmp %i0, %o0 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 ) { 200da94: 80 a5 80 18 cmp %l6, %i0 200da98: 18 bf ff be bgu 200d990 <_Heap_Allocate_aligned_with_boundary+0x54> 200da9c: 82 10 3f f8 mov -8, %g1 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; 200daa0: 90 10 00 18 mov %i0, %o0 200daa4: a6 20 40 12 sub %g1, %l2, %l3 200daa8: 92 10 00 1d mov %i5, %o1 200daac: 40 00 30 68 call 2019c4c <.urem> 200dab0: a6 04 c0 18 add %l3, %i0, %l3 if ( free_size >= min_block_size || free_size == 0 ) { 200dab4: 90 a4 c0 08 subcc %l3, %o0, %o0 200dab8: 02 bf ff b4 be 200d988 <_Heap_Allocate_aligned_with_boundary+0x4c> 200dabc: 80 a6 20 00 cmp %i0, 0 200dac0: 80 a5 c0 08 cmp %l7, %o0 200dac4: 18 bf ff b3 bgu 200d990 <_Heap_Allocate_aligned_with_boundary+0x54> 200dac8: 80 a6 20 00 cmp %i0, 0 boundary ); } } if ( alloc_begin != 0 ) { 200dacc: 22 bf ff b2 be,a 200d994 <_Heap_Allocate_aligned_with_boundary+0x58><== NEVER TAKEN 200dad0: e4 04 a0 08 ld [ %l2 + 8 ], %l2 <== NOT EXECUTED block = block->next; } if ( alloc_begin != 0 ) { /* Statistics */ stats->searches += search_count; 200dad4: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); 200dad8: 92 10 00 12 mov %l2, %o1 block = block->next; } if ( alloc_begin != 0 ) { /* Statistics */ stats->searches += search_count; 200dadc: 82 00 40 11 add %g1, %l1, %g1 block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); 200dae0: 96 10 00 19 mov %i1, %o3 block = block->next; } if ( alloc_begin != 0 ) { /* Statistics */ stats->searches += search_count; 200dae4: c2 24 20 4c st %g1, [ %l0 + 0x4c ] block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); 200dae8: 90 10 00 10 mov %l0, %o0 200daec: 7f ff e8 0f call 2007b28 <_Heap_Block_allocate> 200daf0: 94 10 00 18 mov %i0, %o2 uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { Heap_Statistics *const stats = &heap->stats; 200daf4: c2 04 20 44 ld [ %l0 + 0x44 ], %g1 200daf8: 80 a0 40 11 cmp %g1, %l1 200dafc: 1a 80 00 08 bcc 200db1c <_Heap_Allocate_aligned_with_boundary+0x1e0> 200db00: 01 00 00 00 nop ); } /* Statistics */ if ( stats->max_search < search_count ) { stats->max_search = search_count; 200db04: e2 24 20 44 st %l1, [ %l0 + 0x44 ] 200db08: 81 c7 e0 08 ret 200db0c: 81 e8 00 00 restore /* Integer overflow occured */ return NULL; } if ( boundary != 0 ) { if ( boundary < alloc_size ) { 200db10: 08 80 00 07 bleu 200db2c <_Heap_Allocate_aligned_with_boundary+0x1f0> 200db14: 80 a6 a0 00 cmp %i2, 0 ); } /* Statistics */ if ( stats->max_search < search_count ) { stats->max_search = search_count; 200db18: b0 10 20 00 clr %i0 } return (void *) alloc_begin; } 200db1c: 81 c7 e0 08 ret 200db20: 81 e8 00 00 restore if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { 200db24: 10 bf ff f4 b 200daf4 <_Heap_Allocate_aligned_with_boundary+0x1b8> 200db28: b0 10 20 00 clr %i0 if ( boundary != 0 ) { if ( boundary < alloc_size ) { return NULL; } if ( alignment == 0 ) { 200db2c: 22 bf ff 8e be,a 200d964 <_Heap_Allocate_aligned_with_boundary+0x28> 200db30: b4 10 00 1d mov %i5, %i2 alignment = page_size; } } while ( block != free_list_tail ) { 200db34: 10 bf ff 8d b 200d968 <_Heap_Allocate_aligned_with_boundary+0x2c> 200db38: 80 a4 00 12 cmp %l0, %l2 =============================================================================== 02012590 <_Heap_Extend>: Heap_Control *heap, void *area_begin_ptr, uintptr_t area_size, uintptr_t *amount_extended ) { 2012590: 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; 2012594: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 Heap_Control *heap, void *area_begin_ptr, uintptr_t area_size, uintptr_t *amount_extended ) { 2012598: 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 ) { 201259c: 80 a6 40 01 cmp %i1, %g1 20125a0: 0a 80 00 2a bcs 2012648 <_Heap_Extend+0xb8> 20125a4: e2 06 20 24 ld [ %i0 + 0x24 ], %l1 return HEAP_EXTEND_ERROR; /* case 3 */ } else if ( area_begin != heap_area_end ) { 20125a8: 80 a6 40 01 cmp %i1, %g1 20125ac: 12 80 00 25 bne 2012640 <_Heap_Extend+0xb0> 20125b0: 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); 20125b4: 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; 20125b8: 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 20125bc: 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; 20125c0: f4 24 20 1c st %i2, [ %l0 + 0x1c ] extend_size = new_heap_area_end 20125c4: b2 06 7f f8 add %i1, -8, %i1 20125c8: 7f ff c7 71 call 200438c <.urem> 20125cc: 90 10 00 19 mov %i1, %o0 20125d0: 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; 20125d4: d0 26 c0 00 st %o0, [ %i3 ] if( extend_size >= heap->min_block_size ) { 20125d8: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 20125dc: 80 a0 40 08 cmp %g1, %o0 20125e0: 18 80 00 18 bgu 2012640 <_Heap_Extend+0xb0> <== NEVER TAKEN 20125e4: 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; 20125e8: 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 = 20125ec: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 20125f0: 82 08 60 01 and %g1, 1, %g1 20125f4: 82 12 00 01 or %o0, %g1, %g1 20125f8: 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); 20125fc: 82 02 00 11 add %o0, %l1, %g1 2012600: 84 20 80 01 sub %g2, %g1, %g2 2012604: 84 10 a0 01 or %g2, 1, %g2 2012608: c4 20 60 04 st %g2, [ %g1 + 4 ] heap->last_block = new_last_block; /* Statistics */ stats->size += extend_size; ++stats->used_blocks; 201260c: c6 04 20 40 ld [ %l0 + 0x40 ], %g3 | HEAP_PREV_BLOCK_USED; heap->last_block = new_last_block; /* Statistics */ stats->size += extend_size; 2012610: f2 04 20 2c ld [ %l0 + 0x2c ], %i1 ++stats->used_blocks; --stats->frees; /* Do not count subsequent call as actual free() */ 2012614: 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; 2012618: c2 24 20 24 st %g1, [ %l0 + 0x24 ] /* Statistics */ stats->size += extend_size; ++stats->used_blocks; 201261c: 82 00 e0 01 add %g3, 1, %g1 | HEAP_PREV_BLOCK_USED; heap->last_block = new_last_block; /* Statistics */ stats->size += extend_size; 2012620: 90 06 40 08 add %i1, %o0, %o0 ++stats->used_blocks; 2012624: c2 24 20 40 st %g1, [ %l0 + 0x40 ] --stats->frees; /* Do not count subsequent call as actual free() */ 2012628: 82 00 bf ff add %g2, -1, %g1 | HEAP_PREV_BLOCK_USED; heap->last_block = new_last_block; /* Statistics */ stats->size += extend_size; 201262c: d0 24 20 2c st %o0, [ %l0 + 0x2c ] ++stats->used_blocks; --stats->frees; /* Do not count subsequent call as actual free() */ 2012630: c2 24 20 50 st %g1, [ %l0 + 0x50 ] _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block )); 2012634: 90 10 00 10 mov %l0, %o0 2012638: 7f ff e4 93 call 200b884 <_Heap_Free> 201263c: 92 04 60 08 add %l1, 8, %o1 } return HEAP_EXTEND_SUCCESSFUL; } 2012640: 81 c7 e0 08 ret 2012644: 81 e8 00 00 restore 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; 2012648: c4 06 20 18 ld [ %i0 + 0x18 ], %g2 201264c: 80 a6 40 02 cmp %i1, %g2 2012650: 0a bf ff d6 bcs 20125a8 <_Heap_Extend+0x18> 2012654: b0 10 20 01 mov 1, %i0 _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block )); } return HEAP_EXTEND_SUCCESSFUL; } 2012658: 81 c7 e0 08 ret 201265c: 81 e8 00 00 restore =============================================================================== 0200db3c <_Heap_Free>: #include #include #include bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) { 200db3c: 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 ) 200db40: d2 06 20 10 ld [ %i0 + 0x10 ], %o1 200db44: 40 00 30 42 call 2019c4c <.urem> 200db48: 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; 200db4c: 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 ) 200db50: b2 06 7f f8 add %i1, -8, %i1 200db54: 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 200db58: 80 a2 00 01 cmp %o0, %g1 200db5c: 0a 80 00 36 bcs 200dc34 <_Heap_Free+0xf8> 200db60: 01 00 00 00 nop && (uintptr_t) block <= (uintptr_t) heap->last_block; 200db64: c6 06 20 24 ld [ %i0 + 0x24 ], %g3 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 200db68: 80 a2 00 03 cmp %o0, %g3 200db6c: 18 80 00 32 bgu 200dc34 <_Heap_Free+0xf8> 200db70: 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; 200db74: da 02 20 04 ld [ %o0 + 4 ], %o5 200db78: 88 0b 7f fe and %o5, -2, %g4 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); 200db7c: 84 02 00 04 add %o0, %g4, %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 200db80: 80 a0 40 02 cmp %g1, %g2 200db84: 18 80 00 2c bgu 200dc34 <_Heap_Free+0xf8> <== NEVER TAKEN 200db88: 80 a0 c0 02 cmp %g3, %g2 200db8c: 0a 80 00 2a bcs 200dc34 <_Heap_Free+0xf8> <== NEVER TAKEN 200db90: 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; 200db94: d8 00 a0 04 ld [ %g2 + 4 ], %o4 if ( !_Heap_Is_block_in_heap( heap, next_block ) ) { _HAssert( false ); return false; } if ( !_Heap_Is_prev_used( next_block ) ) { 200db98: 80 8b 20 01 btst 1, %o4 200db9c: 02 80 00 26 be 200dc34 <_Heap_Free+0xf8> <== NEVER TAKEN 200dba0: 96 0b 3f fe and %o4, -2, %o3 _HAssert( false ); return false; } next_block_size = _Heap_Block_size( next_block ); next_is_free = next_block != heap->last_block 200dba4: 80 a0 c0 02 cmp %g3, %g2 200dba8: 02 80 00 06 be 200dbc0 <_Heap_Free+0x84> 200dbac: 98 10 20 00 clr %o4 #include #include #include bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) 200dbb0: 98 00 80 0b add %g2, %o3, %o4 200dbb4: d8 03 20 04 ld [ %o4 + 4 ], %o4 200dbb8: 98 0b 20 01 and %o4, 1, %o4 200dbbc: 98 1b 20 01 xor %o4, 1, %o4 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 )); if ( !_Heap_Is_prev_used( block ) ) { 200dbc0: 80 8b 60 01 btst 1, %o5 200dbc4: 12 80 00 1e bne 200dc3c <_Heap_Free+0x100> 200dbc8: 80 8b 20 ff btst 0xff, %o4 uintptr_t const prev_size = block->prev_size; 200dbcc: d4 02 00 00 ld [ %o0 ], %o2 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); 200dbd0: 9a 22 00 0a sub %o0, %o2, %o5 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 200dbd4: 80 a0 40 0d cmp %g1, %o5 200dbd8: 18 80 00 17 bgu 200dc34 <_Heap_Free+0xf8> <== NEVER TAKEN 200dbdc: 80 a0 c0 0d cmp %g3, %o5 200dbe0: 0a 80 00 15 bcs 200dc34 <_Heap_Free+0xf8> <== NEVER TAKEN 200dbe4: 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) ) { 200dbe8: c2 03 60 04 ld [ %o5 + 4 ], %g1 200dbec: 80 88 60 01 btst 1, %g1 200dbf0: 02 80 00 11 be 200dc34 <_Heap_Free+0xf8> <== NEVER TAKEN 200dbf4: 80 8b 20 ff btst 0xff, %o4 _HAssert( false ); return( false ); } if ( next_is_free ) { /* coalesce both */ 200dbf8: 22 80 00 3a be,a 200dce0 <_Heap_Free+0x1a4> 200dbfc: 94 01 00 0a add %g4, %o2, %o2 uintptr_t const size = block_size + prev_size + next_block_size; _Heap_Free_list_remove( next_block ); stats->free_blocks -= 1; 200dc00: c6 06 20 38 ld [ %i0 + 0x38 ], %g3 } RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) { Heap_Block *next = block->next; Heap_Block *prev = block->prev; 200dc04: c2 00 a0 0c ld [ %g2 + 0xc ], %g1 return _Heap_Free_list_tail(heap)->prev; } RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) { Heap_Block *next = block->next; 200dc08: c4 00 a0 08 ld [ %g2 + 8 ], %g2 200dc0c: 86 00 ff ff add %g3, -1, %g3 200dc10: c6 26 20 38 st %g3, [ %i0 + 0x38 ] _HAssert( false ); return( false ); } if ( next_is_free ) { /* coalesce both */ uintptr_t const size = block_size + prev_size + next_block_size; 200dc14: 96 01 00 0b add %g4, %o3, %o3 Heap_Block *prev = block->prev; prev->next = next; next->prev = prev; 200dc18: c2 20 a0 0c st %g1, [ %g2 + 0xc ] 200dc1c: 94 02 c0 0a add %o3, %o2, %o2 RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) { Heap_Block *next = block->next; Heap_Block *prev = block->prev; prev->next = next; 200dc20: c4 20 60 08 st %g2, [ %g1 + 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; 200dc24: d4 23 40 0a st %o2, [ %o5 + %o2 ] 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; 200dc28: 94 12 a0 01 or %o2, 1, %o2 200dc2c: 10 80 00 10 b 200dc6c <_Heap_Free+0x130> 200dc30: d4 23 60 04 st %o2, [ %o5 + 4 ] --stats->used_blocks; ++stats->frees; stats->free_size += block_size; return( true ); } 200dc34: 81 c7 e0 08 ret 200dc38: 91 e8 20 00 restore %g0, 0, %o0 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; next_block->prev_size = size; } } else if ( next_is_free ) { /* coalesce next */ 200dc3c: 02 80 00 17 be 200dc98 <_Heap_Free+0x15c> 200dc40: 82 11 20 01 or %g4, 1, %g1 Heap_Block *old_block, Heap_Block *new_block ) { Heap_Block *next = old_block->next; Heap_Block *prev = old_block->prev; 200dc44: 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; 200dc48: c4 00 a0 08 ld [ %g2 + 8 ], %g2 Heap_Block *prev = old_block->prev; new_block->next = next; new_block->prev = prev; 200dc4c: c2 22 20 0c st %g1, [ %o0 + 0xc ] ) { Heap_Block *next = old_block->next; Heap_Block *prev = old_block->prev; new_block->next = next; 200dc50: c4 22 20 08 st %g2, [ %o0 + 8 ] uintptr_t const size = block_size + next_block_size; 200dc54: 96 02 c0 04 add %o3, %g4, %o3 new_block->prev = prev; next->prev = new_block; 200dc58: d0 20 a0 0c st %o0, [ %g2 + 0xc ] _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; 200dc5c: d6 22 00 0b st %o3, [ %o0 + %o3 ] prev->next = new_block; 200dc60: d0 20 60 08 st %o0, [ %g1 + 8 ] 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; 200dc64: 96 12 e0 01 or %o3, 1, %o3 200dc68: d6 22 20 04 st %o3, [ %o0 + 4 ] stats->max_free_blocks = stats->free_blocks; } } /* Statistics */ --stats->used_blocks; 200dc6c: c4 06 20 40 ld [ %i0 + 0x40 ], %g2 ++stats->frees; 200dc70: c2 06 20 50 ld [ %i0 + 0x50 ], %g1 stats->free_size += block_size; 200dc74: c6 06 20 30 ld [ %i0 + 0x30 ], %g3 stats->max_free_blocks = stats->free_blocks; } } /* Statistics */ --stats->used_blocks; 200dc78: 84 00 bf ff add %g2, -1, %g2 ++stats->frees; stats->free_size += block_size; 200dc7c: 88 00 c0 04 add %g3, %g4, %g4 stats->max_free_blocks = stats->free_blocks; } } /* Statistics */ --stats->used_blocks; 200dc80: c4 26 20 40 st %g2, [ %i0 + 0x40 ] ++stats->frees; stats->free_size += block_size; 200dc84: c8 26 20 30 st %g4, [ %i0 + 0x30 ] } } /* Statistics */ --stats->used_blocks; ++stats->frees; 200dc88: 82 00 60 01 inc %g1 200dc8c: c2 26 20 50 st %g1, [ %i0 + 0x50 ] stats->free_size += block_size; return( true ); 200dc90: 81 c7 e0 08 ret 200dc94: 91 e8 20 01 restore %g0, 1, %o0 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; 200dc98: c2 22 20 04 st %g1, [ %o0 + 4 ] next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; 200dc9c: 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; 200dca0: c6 06 20 08 ld [ %i0 + 8 ], %g3 200dca4: 82 08 7f fe and %g1, -2, %g1 next_block->prev_size = block_size; 200dca8: c8 22 00 04 st %g4, [ %o0 + %g4 ] } 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; 200dcac: c2 20 a0 04 st %g1, [ %g2 + 4 ] next_block->prev_size = block_size; /* Statistics */ ++stats->free_blocks; 200dcb0: c2 06 20 38 ld [ %i0 + 0x38 ], %g1 new_block->next = next; 200dcb4: c6 22 20 08 st %g3, [ %o0 + 8 ] new_block->prev = block_before; 200dcb8: 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; 200dcbc: 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; 200dcc0: 82 00 60 01 inc %g1 block_before->next = new_block; next->prev = new_block; 200dcc4: d0 20 e0 0c st %o0, [ %g3 + 0xc ] { Heap_Block *next = block_before->next; new_block->next = next; new_block->prev = block_before; block_before->next = new_block; 200dcc8: 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; 200dccc: 80 a0 40 02 cmp %g1, %g2 200dcd0: 08 bf ff e7 bleu 200dc6c <_Heap_Free+0x130> 200dcd4: 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; 200dcd8: 10 bf ff e5 b 200dc6c <_Heap_Free+0x130> 200dcdc: c2 26 20 3c st %g1, [ %i0 + 0x3c ] 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; 200dce0: 82 12 a0 01 or %o2, 1, %g1 200dce4: c2 23 60 04 st %g1, [ %o5 + 4 ] next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; 200dce8: c2 00 a0 04 ld [ %g2 + 4 ], %g1 next_block->prev_size = size; 200dcec: d4 22 00 04 st %o2, [ %o0 + %g4 ] _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; 200dcf0: 82 08 7f fe and %g1, -2, %g1 200dcf4: 10 bf ff de b 200dc6c <_Heap_Free+0x130> 200dcf8: c2 20 a0 04 st %g1, [ %g2 + 4 ] =============================================================================== 020300ec <_Heap_Get_free_information>: void _Heap_Get_free_information( Heap_Control *the_heap, Heap_Information *info ) { 20300ec: 9d e3 bf a0 save %sp, -96, %sp return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; 20300f0: c2 06 20 08 ld [ %i0 + 8 ], %g1 Heap_Block *the_block; Heap_Block *const tail = _Heap_Free_list_tail(the_heap); info->number = 0; 20300f4: c0 26 40 00 clr [ %i1 ] info->largest = 0; 20300f8: c0 26 60 04 clr [ %i1 + 4 ] info->total = 0; for(the_block = _Heap_Free_list_first(the_heap); 20300fc: 80 a6 00 01 cmp %i0, %g1 2030100: 02 80 00 13 be 203014c <_Heap_Get_free_information+0x60> <== NEVER TAKEN 2030104: c0 26 60 08 clr [ %i1 + 8 ] 2030108: 88 10 20 01 mov 1, %g4 203010c: 10 80 00 03 b 2030118 <_Heap_Get_free_information+0x2c> 2030110: 86 10 20 00 clr %g3 2030114: 88 10 00 02 mov %g2, %g4 - 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; 2030118: c4 00 60 04 ld [ %g1 + 4 ], %g2 /* As we always coalesce free blocks, prev block must have been used. */ _HAssert(_Heap_Is_prev_used(the_block)); info->number++; info->total += the_size; if ( info->largest < the_size ) 203011c: da 06 60 04 ld [ %i1 + 4 ], %o5 2030120: 84 08 bf fe and %g2, -2, %g2 2030124: 80 a3 40 02 cmp %o5, %g2 2030128: 1a 80 00 03 bcc 2030134 <_Heap_Get_free_information+0x48> 203012c: 86 00 c0 02 add %g3, %g2, %g3 info->largest = the_size; 2030130: c4 26 60 04 st %g2, [ %i1 + 4 ] info->largest = 0; info->total = 0; for(the_block = _Heap_Free_list_first(the_heap); the_block != tail; the_block = the_block->next) 2030134: c2 00 60 08 ld [ %g1 + 8 ], %g1 info->number = 0; info->largest = 0; info->total = 0; for(the_block = _Heap_Free_list_first(the_heap); 2030138: 80 a6 00 01 cmp %i0, %g1 203013c: 12 bf ff f6 bne 2030114 <_Heap_Get_free_information+0x28> 2030140: 84 01 20 01 add %g4, 1, %g2 2030144: c6 26 60 08 st %g3, [ %i1 + 8 ] 2030148: c8 26 40 00 st %g4, [ %i1 ] 203014c: 81 c7 e0 08 ret 2030150: 81 e8 00 00 restore =============================================================================== 02045efc <_Heap_Get_information>: void _Heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { 2045efc: 9d e3 bf a0 save %sp, -96, %sp Heap_Block *the_block = the_heap->first_block; Heap_Block *const end = the_heap->last_block; 2045f00: c4 06 20 24 ld [ %i0 + 0x24 ], %g2 void _Heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { Heap_Block *the_block = the_heap->first_block; 2045f04: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 Heap_Block *const end = the_heap->last_block; _HAssert(the_block->prev_size == the_heap->page_size); _HAssert(_Heap_Is_prev_used(the_block)); the_info->Free.number = 0; 2045f08: c0 26 40 00 clr [ %i1 ] the_info->Free.total = 0; 2045f0c: c0 26 60 08 clr [ %i1 + 8 ] the_info->Free.largest = 0; 2045f10: c0 26 60 04 clr [ %i1 + 4 ] the_info->Used.number = 0; 2045f14: c0 26 60 0c clr [ %i1 + 0xc ] the_info->Used.total = 0; 2045f18: c0 26 60 14 clr [ %i1 + 0x14 ] the_info->Used.largest = 0; 2045f1c: c0 26 60 10 clr [ %i1 + 0x10 ] while ( the_block != end ) { 2045f20: 80 a0 40 02 cmp %g1, %g2 2045f24: 02 80 00 1a be 2045f8c <_Heap_Get_information+0x90> <== NEVER TAKEN 2045f28: 86 10 20 08 mov 8, %g3 2045f2c: da 00 60 04 ld [ %g1 + 4 ], %o5 uintptr_t const the_size = _Heap_Block_size(the_block); Heap_Block *const next_block = _Heap_Block_at(the_block, the_size); Heap_Information *info; if ( _Heap_Is_prev_used(next_block) ) info = &the_info->Used; 2045f30: 92 06 60 0c add %i1, 0xc, %o1 - 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; 2045f34: 88 0b 7f fe and %o5, -2, %g4 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); 2045f38: 82 00 40 04 add %g1, %g4, %g1 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; 2045f3c: da 00 60 04 ld [ %g1 + 4 ], %o5 while ( the_block != end ) { uintptr_t const the_size = _Heap_Block_size(the_block); Heap_Block *const next_block = _Heap_Block_at(the_block, the_size); Heap_Information *info; if ( _Heap_Is_prev_used(next_block) ) 2045f40: 80 8b 60 01 btst 1, %o5 2045f44: 12 80 00 03 bne 2045f50 <_Heap_Get_information+0x54> 2045f48: 86 10 00 09 mov %o1, %g3 2045f4c: 86 10 00 19 mov %i1, %g3 info = &the_info->Used; else info = &the_info->Free; info->number++; 2045f50: d4 00 c0 00 ld [ %g3 ], %o2 info->total += the_size; 2045f54: d6 00 e0 08 ld [ %g3 + 8 ], %o3 if ( info->largest < the_size ) 2045f58: d8 00 e0 04 ld [ %g3 + 4 ], %o4 if ( _Heap_Is_prev_used(next_block) ) info = &the_info->Used; else info = &the_info->Free; info->number++; 2045f5c: 94 02 a0 01 inc %o2 info->total += the_size; 2045f60: 96 02 c0 04 add %o3, %g4, %o3 if ( _Heap_Is_prev_used(next_block) ) info = &the_info->Used; else info = &the_info->Free; info->number++; 2045f64: d4 20 c0 00 st %o2, [ %g3 ] info->total += the_size; if ( info->largest < the_size ) 2045f68: 80 a3 00 04 cmp %o4, %g4 2045f6c: 1a 80 00 03 bcc 2045f78 <_Heap_Get_information+0x7c> 2045f70: d6 20 e0 08 st %o3, [ %g3 + 8 ] info->largest = the_size; 2045f74: c8 20 e0 04 st %g4, [ %g3 + 4 ] the_info->Free.largest = 0; the_info->Used.number = 0; the_info->Used.total = 0; the_info->Used.largest = 0; while ( the_block != end ) { 2045f78: 80 a0 80 01 cmp %g2, %g1 2045f7c: 12 bf ff ef bne 2045f38 <_Heap_Get_information+0x3c> 2045f80: 88 0b 7f fe and %o5, -2, %g4 2045f84: c6 06 60 14 ld [ %i1 + 0x14 ], %g3 2045f88: 86 00 e0 08 add %g3, 8, %g3 /* * Handle the last dummy block. Don't consider this block to be * "used" as client never allocated it. Make 'Used.total' contain this * blocks' overhead though. */ the_info->Used.total += HEAP_BLOCK_HEADER_SIZE; 2045f8c: c6 26 60 14 st %g3, [ %i1 + 0x14 ] } 2045f90: 81 c7 e0 08 ret 2045f94: 81 e8 00 00 restore =============================================================================== 0201b678 <_Heap_Size_of_alloc_area>: bool _Heap_Size_of_alloc_area( Heap_Control *heap, void *alloc_begin_ptr, uintptr_t *alloc_size ) { 201b678: 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 ) 201b67c: d2 06 20 10 ld [ %i0 + 0x10 ], %o1 201b680: 7f ff f9 73 call 2019c4c <.urem> 201b684: 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; 201b688: 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 ) 201b68c: 84 06 7f f8 add %i1, -8, %g2 201b690: 84 20 80 08 sub %g2, %o0, %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 201b694: 80 a0 80 01 cmp %g2, %g1 201b698: 0a 80 00 16 bcs 201b6f0 <_Heap_Size_of_alloc_area+0x78> 201b69c: 01 00 00 00 nop && (uintptr_t) block <= (uintptr_t) heap->last_block; 201b6a0: c6 06 20 24 ld [ %i0 + 0x24 ], %g3 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 201b6a4: 80 a0 80 03 cmp %g2, %g3 201b6a8: 18 80 00 12 bgu 201b6f0 <_Heap_Size_of_alloc_area+0x78> <== NEVER TAKEN 201b6ac: 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); 201b6b0: c8 00 a0 04 ld [ %g2 + 4 ], %g4 201b6b4: 88 09 3f fe and %g4, -2, %g4 201b6b8: 84 00 80 04 add %g2, %g4, %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 201b6bc: 80 a0 40 02 cmp %g1, %g2 201b6c0: 18 80 00 0c bgu 201b6f0 <_Heap_Size_of_alloc_area+0x78> <== NEVER TAKEN 201b6c4: 80 a0 c0 02 cmp %g3, %g2 201b6c8: 0a 80 00 0a bcs 201b6f0 <_Heap_Size_of_alloc_area+0x78> <== NEVER TAKEN 201b6cc: 01 00 00 00 nop } block_size = _Heap_Block_size( block ); next_block = _Heap_Block_at( block, block_size ); if ( 201b6d0: c2 00 a0 04 ld [ %g2 + 4 ], %g1 201b6d4: 80 88 60 01 btst 1, %g1 201b6d8: 02 80 00 06 be 201b6f0 <_Heap_Size_of_alloc_area+0x78> <== NEVER TAKEN 201b6dc: 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; 201b6e0: 84 00 a0 04 add %g2, 4, %g2 201b6e4: c4 26 80 00 st %g2, [ %i2 ] return true; 201b6e8: 81 c7 e0 08 ret 201b6ec: 91 e8 20 01 restore %g0, 1, %o0 } 201b6f0: 81 c7 e0 08 ret 201b6f4: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 02008a88 <_Heap_Walk>: bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) { 2008a88: 9d e3 bf 80 save %sp, -128, %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; 2008a8c: 25 00 80 24 sethi %hi(0x2009000), %l2 2008a90: 80 8e a0 ff btst 0xff, %i2 2008a94: a4 14 a0 b8 or %l2, 0xb8, %l2 Heap_Control *heap, int source, bool dump ) { uintptr_t const page_size = heap->page_size; 2008a98: ea 06 20 10 ld [ %i0 + 0x10 ], %l5 uintptr_t const min_block_size = heap->min_block_size; 2008a9c: e6 06 20 14 ld [ %i0 + 0x14 ], %l3 Heap_Block *const last_block = heap->last_block; 2008aa0: 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; 2008aa4: 12 80 00 04 bne 2008ab4 <_Heap_Walk+0x2c> 2008aa8: e0 06 20 20 ld [ %i0 + 0x20 ], %l0 2008aac: 25 00 80 22 sethi %hi(0x2008800), %l2 2008ab0: a4 14 a2 80 or %l2, 0x280, %l2 ! 2008a80 <_Heap_Walk_print_nothing> if ( !_System_state_Is_up( _System_state_Get() ) ) { 2008ab4: 03 00 80 81 sethi %hi(0x2020400), %g1 2008ab8: c2 00 62 f0 ld [ %g1 + 0x2f0 ], %g1 ! 20206f0 <_System_state_Current> 2008abc: 80 a0 60 03 cmp %g1, 3 2008ac0: 22 80 00 04 be,a 2008ad0 <_Heap_Walk+0x48> 2008ac4: da 06 20 18 ld [ %i0 + 0x18 ], %o5 block = next_block; } return true; } 2008ac8: 81 c7 e0 08 ret 2008acc: 91 e8 20 01 restore %g0, 1, %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)( 2008ad0: c6 06 20 1c ld [ %i0 + 0x1c ], %g3 2008ad4: c4 06 20 08 ld [ %i0 + 8 ], %g2 2008ad8: c2 06 20 0c ld [ %i0 + 0xc ], %g1 2008adc: 90 10 00 19 mov %i1, %o0 2008ae0: c6 23 a0 5c st %g3, [ %sp + 0x5c ] 2008ae4: c4 23 a0 68 st %g2, [ %sp + 0x68 ] 2008ae8: c2 23 a0 6c st %g1, [ %sp + 0x6c ] 2008aec: e0 23 a0 60 st %l0, [ %sp + 0x60 ] 2008af0: e8 23 a0 64 st %l4, [ %sp + 0x64 ] 2008af4: 92 10 20 00 clr %o1 2008af8: 15 00 80 75 sethi %hi(0x201d400), %o2 2008afc: 96 10 00 15 mov %l5, %o3 2008b00: 94 12 a2 80 or %o2, 0x280, %o2 2008b04: 9f c4 80 00 call %l2 2008b08: 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 ) { 2008b0c: 80 a5 60 00 cmp %l5, 0 2008b10: 02 80 00 36 be 2008be8 <_Heap_Walk+0x160> 2008b14: 80 8d 60 07 btst 7, %l5 (*printer)( source, true, "page size is zero\n" ); return false; } if ( !_Addresses_Is_aligned( (void *) page_size ) ) { 2008b18: 12 80 00 3c bne 2008c08 <_Heap_Walk+0x180> 2008b1c: 90 10 00 13 mov %l3, %o0 ); return false; } if ( !_Heap_Is_aligned( min_block_size, page_size ) ) { 2008b20: 7f ff e3 e9 call 2001ac4 <.urem> 2008b24: 92 10 00 15 mov %l5, %o1 2008b28: 80 a2 20 00 cmp %o0, 0 2008b2c: 12 80 00 40 bne 2008c2c <_Heap_Walk+0x1a4> 2008b30: 90 04 20 08 add %l0, 8, %o0 ); return false; } if ( 2008b34: 7f ff e3 e4 call 2001ac4 <.urem> 2008b38: 92 10 00 15 mov %l5, %o1 2008b3c: 80 a2 20 00 cmp %o0, 0 2008b40: 32 80 00 44 bne,a 2008c50 <_Heap_Walk+0x1c8> 2008b44: 90 10 00 19 mov %i1, %o0 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; 2008b48: ec 04 20 04 ld [ %l0 + 4 ], %l6 ); return false; } if ( !_Heap_Is_prev_used( first_block ) ) { 2008b4c: ba 8d a0 01 andcc %l6, 1, %i5 2008b50: 22 80 00 48 be,a 2008c70 <_Heap_Walk+0x1e8> 2008b54: 90 10 00 19 mov %i1, %o0 ); return false; } if ( first_block->prev_size != page_size ) { 2008b58: d6 04 00 00 ld [ %l0 ], %o3 2008b5c: 80 a5 40 0b cmp %l5, %o3 2008b60: 32 80 00 1a bne,a 2008bc8 <_Heap_Walk+0x140> 2008b64: 90 10 00 19 mov %i1, %o0 ); return false; } if ( _Heap_Is_free( last_block ) ) { 2008b68: c2 05 20 04 ld [ %l4 + 4 ], %g1 2008b6c: 82 08 7f fe and %g1, -2, %g1 2008b70: 82 05 00 01 add %l4, %g1, %g1 2008b74: c2 00 60 04 ld [ %g1 + 4 ], %g1 2008b78: 80 88 60 01 btst 1, %g1 2008b7c: 22 80 01 2e be,a 2009034 <_Heap_Walk+0x5ac> 2008b80: 90 10 00 19 mov %i1, %o0 return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; 2008b84: ee 06 20 08 ld [ %i0 + 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 ) { 2008b88: 80 a6 00 17 cmp %i0, %l7 2008b8c: 02 80 00 79 be 2008d70 <_Heap_Walk+0x2e8> 2008b90: f8 06 20 10 ld [ %i0 + 0x10 ], %i4 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; 2008b94: f6 06 20 20 ld [ %i0 + 0x20 ], %i3 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 2008b98: 80 a6 c0 17 cmp %i3, %l7 2008b9c: 28 80 00 3c bleu,a 2008c8c <_Heap_Walk+0x204> <== ALWAYS TAKEN 2008ba0: f4 06 20 24 ld [ %i0 + 0x24 ], %i2 if ( !_Heap_Is_block_in_heap( heap, free_block ) ) { (*printer)( 2008ba4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 2008ba8: 96 10 00 17 mov %l7, %o3 2008bac: 92 10 20 01 mov 1, %o1 2008bb0: 15 00 80 76 sethi %hi(0x201d800), %o2 2008bb4: b0 10 20 00 clr %i0 2008bb8: 9f c4 80 00 call %l2 2008bbc: 94 12 a0 28 or %o2, 0x28, %o2 2008bc0: 81 c7 e0 08 ret 2008bc4: 81 e8 00 00 restore return false; } if ( first_block->prev_size != page_size ) { (*printer)( 2008bc8: 98 10 00 15 mov %l5, %o4 2008bcc: 92 10 20 01 mov 1, %o1 2008bd0: 15 00 80 75 sethi %hi(0x201d400), %o2 2008bd4: b0 10 20 00 clr %i0 2008bd8: 9f c4 80 00 call %l2 2008bdc: 94 12 a3 e0 or %o2, 0x3e0, %o2 2008be0: 81 c7 e0 08 ret 2008be4: 81 e8 00 00 restore first_block, last_block, first_free_block, last_free_block ); if ( page_size == 0 ) { (*printer)( source, true, "page size is zero\n" ); 2008be8: 90 10 00 19 mov %i1, %o0 2008bec: 92 10 20 01 mov 1, %o1 2008bf0: 15 00 80 75 sethi %hi(0x201d400), %o2 2008bf4: b0 10 20 00 clr %i0 2008bf8: 9f c4 80 00 call %l2 2008bfc: 94 12 a3 18 or %o2, 0x318, %o2 2008c00: 81 c7 e0 08 ret 2008c04: 81 e8 00 00 restore return false; } if ( !_Addresses_Is_aligned( (void *) page_size ) ) { (*printer)( 2008c08: 90 10 00 19 mov %i1, %o0 2008c0c: 96 10 00 15 mov %l5, %o3 2008c10: 92 10 20 01 mov 1, %o1 2008c14: 15 00 80 75 sethi %hi(0x201d400), %o2 2008c18: b0 10 20 00 clr %i0 2008c1c: 9f c4 80 00 call %l2 2008c20: 94 12 a3 30 or %o2, 0x330, %o2 2008c24: 81 c7 e0 08 ret 2008c28: 81 e8 00 00 restore return false; } if ( !_Heap_Is_aligned( min_block_size, page_size ) ) { (*printer)( 2008c2c: 90 10 00 19 mov %i1, %o0 2008c30: 96 10 00 13 mov %l3, %o3 2008c34: 92 10 20 01 mov 1, %o1 2008c38: 15 00 80 75 sethi %hi(0x201d400), %o2 2008c3c: b0 10 20 00 clr %i0 2008c40: 9f c4 80 00 call %l2 2008c44: 94 12 a3 50 or %o2, 0x350, %o2 2008c48: 81 c7 e0 08 ret 2008c4c: 81 e8 00 00 restore } if ( !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size ) ) { (*printer)( 2008c50: 96 10 00 10 mov %l0, %o3 2008c54: 92 10 20 01 mov 1, %o1 2008c58: 15 00 80 75 sethi %hi(0x201d400), %o2 2008c5c: b0 10 20 00 clr %i0 2008c60: 9f c4 80 00 call %l2 2008c64: 94 12 a3 78 or %o2, 0x378, %o2 2008c68: 81 c7 e0 08 ret 2008c6c: 81 e8 00 00 restore return false; } if ( !_Heap_Is_prev_used( first_block ) ) { (*printer)( 2008c70: 92 10 20 01 mov 1, %o1 2008c74: 15 00 80 75 sethi %hi(0x201d400), %o2 2008c78: b0 10 20 00 clr %i0 2008c7c: 9f c4 80 00 call %l2 2008c80: 94 12 a3 b0 or %o2, 0x3b0, %o2 2008c84: 81 c7 e0 08 ret 2008c88: 81 e8 00 00 restore 2008c8c: 80 a5 c0 1a cmp %l7, %i2 2008c90: 18 bf ff c6 bgu 2008ba8 <_Heap_Walk+0x120> <== NEVER TAKEN 2008c94: 90 10 00 19 mov %i1, %o0 ); return false; } if ( 2008c98: 90 05 e0 08 add %l7, 8, %o0 2008c9c: 7f ff e3 8a call 2001ac4 <.urem> 2008ca0: 92 10 00 1c mov %i4, %o1 2008ca4: 80 a2 20 00 cmp %o0, 0 2008ca8: 12 80 00 ea bne 2009050 <_Heap_Walk+0x5c8> <== NEVER TAKEN 2008cac: 90 10 00 19 mov %i1, %o0 ); return false; } if ( _Heap_Is_used( free_block ) ) { 2008cb0: c2 05 e0 04 ld [ %l7 + 4 ], %g1 2008cb4: 82 08 7f fe and %g1, -2, %g1 2008cb8: 82 05 c0 01 add %l7, %g1, %g1 2008cbc: c2 00 60 04 ld [ %g1 + 4 ], %g1 2008cc0: 80 88 60 01 btst 1, %g1 2008cc4: 12 80 00 f5 bne 2009098 <_Heap_Walk+0x610> <== NEVER TAKEN 2008cc8: 01 00 00 00 nop ); return false; } if ( free_block->prev != prev_block ) { 2008ccc: e2 05 e0 0c ld [ %l7 + 0xc ], %l1 2008cd0: 80 a4 40 18 cmp %l1, %i0 2008cd4: 12 80 00 e9 bne 2009078 <_Heap_Walk+0x5f0> <== NEVER TAKEN 2008cd8: 96 10 00 17 mov %l7, %o3 2008cdc: fa 27 bf fc st %i5, [ %fp + -4 ] 2008ce0: ba 10 00 15 mov %l5, %i5 2008ce4: aa 10 00 13 mov %l3, %l5 2008ce8: a6 10 00 10 mov %l0, %l3 2008cec: 10 80 00 18 b 2008d4c <_Heap_Walk+0x2c4> 2008cf0: a0 10 00 1c mov %i4, %l0 2008cf4: 18 bf ff ad bgu 2008ba8 <_Heap_Walk+0x120> 2008cf8: 90 10 00 19 mov %i1, %o0 2008cfc: 80 a5 c0 1a cmp %l7, %i2 2008d00: 18 bf ff ab bgu 2008bac <_Heap_Walk+0x124> <== NEVER TAKEN 2008d04: 96 10 00 17 mov %l7, %o3 ); return false; } if ( 2008d08: 90 05 e0 08 add %l7, 8, %o0 2008d0c: 7f ff e3 6e call 2001ac4 <.urem> 2008d10: 92 10 00 10 mov %l0, %o1 2008d14: 80 a2 20 00 cmp %o0, 0 2008d18: 32 80 00 ce bne,a 2009050 <_Heap_Walk+0x5c8> 2008d1c: 90 10 00 19 mov %i1, %o0 ); return false; } if ( _Heap_Is_used( free_block ) ) { 2008d20: c2 05 e0 04 ld [ %l7 + 4 ], %g1 2008d24: 82 08 7f fe and %g1, -2, %g1 2008d28: 82 00 40 17 add %g1, %l7, %g1 2008d2c: c2 00 60 04 ld [ %g1 + 4 ], %g1 2008d30: 80 88 60 01 btst 1, %g1 2008d34: 32 80 00 d9 bne,a 2009098 <_Heap_Walk+0x610> 2008d38: 90 10 00 19 mov %i1, %o0 ); return false; } if ( free_block->prev != prev_block ) { 2008d3c: c2 05 e0 0c ld [ %l7 + 0xc ], %g1 2008d40: 80 a7 00 01 cmp %i4, %g1 2008d44: 32 80 00 cb bne,a 2009070 <_Heap_Walk+0x5e8> 2008d48: a2 10 00 01 mov %g1, %l1 (*printer)( 2008d4c: b8 10 00 17 mov %l7, %i4 return false; } prev_block = free_block; free_block = free_block->next; 2008d50: 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 ) { 2008d54: 80 a4 40 17 cmp %l1, %l7 2008d58: 12 bf ff e7 bne 2008cf4 <_Heap_Walk+0x26c> 2008d5c: 80 a6 c0 17 cmp %i3, %l7 2008d60: a0 10 00 13 mov %l3, %l0 2008d64: a6 10 00 15 mov %l5, %l3 2008d68: aa 10 00 1d mov %i5, %l5 2008d6c: fa 07 bf fc ld [ %fp + -4 ], %i5 if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { 2008d70: 80 a5 00 10 cmp %l4, %l0 2008d74: 02 bf ff 55 be 2008ac8 <_Heap_Walk+0x40> <== NEVER TAKEN 2008d78: 37 00 80 76 sethi %hi(0x201d800), %i3 "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( 2008d7c: 35 00 80 76 sethi %hi(0x201d800), %i2 " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") 2008d80: 39 00 80 76 sethi %hi(0x201d800), %i4 return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; 2008d84: 82 10 00 1d mov %i5, %g1 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)( 2008d88: b6 16 e0 d0 or %i3, 0xd0, %i3 2008d8c: ba 10 00 15 mov %l5, %i5 "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( 2008d90: b4 16 a0 e8 or %i2, 0xe8, %i2 " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") 2008d94: b8 17 21 e8 or %i4, 0x1e8, %i4 2008d98: aa 10 00 14 mov %l4, %l5 - 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; 2008d9c: ac 0d bf fe and %l6, -2, %l6 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 ) { 2008da0: 80 a0 60 00 cmp %g1, 0 2008da4: 02 80 00 16 be 2008dfc <_Heap_Walk+0x374> 2008da8: a2 05 80 10 add %l6, %l0, %l1 (*printer)( 2008dac: 90 10 00 19 mov %i1, %o0 2008db0: 92 10 20 00 clr %o1 2008db4: 94 10 00 1b mov %i3, %o2 2008db8: 96 10 00 10 mov %l0, %o3 2008dbc: 9f c4 80 00 call %l2 2008dc0: 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 2008dc4: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 2008dc8: 80 a0 40 11 cmp %g1, %l1 2008dcc: 28 80 00 18 bleu,a 2008e2c <_Heap_Walk+0x3a4> <== ALWAYS TAKEN 2008dd0: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 block->prev_size ); } if ( !_Heap_Is_block_in_heap( heap, next_block ) ) { (*printer)( 2008dd4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 2008dd8: 96 10 00 10 mov %l0, %o3 2008ddc: 98 10 00 11 mov %l1, %o4 2008de0: 92 10 20 01 mov 1, %o1 2008de4: 15 00 80 76 sethi %hi(0x201d800), %o2 2008de8: b0 10 20 00 clr %i0 2008dec: 9f c4 80 00 call %l2 2008df0: 94 12 a1 10 or %o2, 0x110, %o2 "block 0x%08x: next block 0x%08x not in heap\n", block, next_block ); return false; 2008df4: 81 c7 e0 08 ret 2008df8: 81 e8 00 00 restore "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( 2008dfc: da 04 00 00 ld [ %l0 ], %o5 2008e00: 90 10 00 19 mov %i1, %o0 2008e04: 92 10 20 00 clr %o1 2008e08: 94 10 00 1a mov %i2, %o2 2008e0c: 96 10 00 10 mov %l0, %o3 2008e10: 9f c4 80 00 call %l2 2008e14: 98 10 00 16 mov %l6, %o4 2008e18: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 2008e1c: 80 a0 40 11 cmp %g1, %l1 2008e20: 18 bf ff ee bgu 2008dd8 <_Heap_Walk+0x350> <== NEVER TAKEN 2008e24: 90 10 00 19 mov %i1, %o0 2008e28: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 2008e2c: 80 a0 40 11 cmp %g1, %l1 2008e30: 0a bf ff ea bcs 2008dd8 <_Heap_Walk+0x350> 2008e34: 90 10 00 19 mov %i1, %o0 ); return false; } if ( !_Heap_Is_aligned( block_size, page_size ) ) { 2008e38: 90 10 00 16 mov %l6, %o0 2008e3c: 7f ff e3 22 call 2001ac4 <.urem> 2008e40: 92 10 00 1d mov %i5, %o1 2008e44: 80 a2 20 00 cmp %o0, 0 2008e48: 12 80 00 5d bne 2008fbc <_Heap_Walk+0x534> 2008e4c: 80 a4 c0 16 cmp %l3, %l6 ); return false; } if ( block_size < min_block_size ) { 2008e50: 18 80 00 65 bgu 2008fe4 <_Heap_Walk+0x55c> 2008e54: 80 a4 00 11 cmp %l0, %l1 ); return false; } if ( next_block_begin <= block_begin ) { 2008e58: 3a 80 00 6e bcc,a 2009010 <_Heap_Walk+0x588> 2008e5c: 90 10 00 19 mov %i1, %o0 ); return false; } if ( !_Heap_Is_prev_used( next_block ) ) { 2008e60: c2 04 60 04 ld [ %l1 + 4 ], %g1 2008e64: 80 88 60 01 btst 1, %g1 2008e68: 12 80 00 40 bne 2008f68 <_Heap_Walk+0x4e0> 2008e6c: 80 a5 40 11 cmp %l5, %l1 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; 2008e70: e8 04 20 04 ld [ %l0 + 4 ], %l4 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)( 2008e74: 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; 2008e78: 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; 2008e7c: ac 0d 3f fe and %l4, -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; 2008e80: 1b 00 80 76 sethi %hi(0x201d800), %o5 2008e84: 80 a0 40 0c cmp %g1, %o4 } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_last( Heap_Control *heap ) { return _Heap_Free_list_tail(heap)->prev; 2008e88: 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); 2008e8c: 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; 2008e90: 02 80 00 07 be 2008eac <_Heap_Walk+0x424> 2008e94: 9a 13 61 d8 or %o5, 0x1d8, %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)" : ""), 2008e98: 1b 00 80 76 sethi %hi(0x201d800), %o5 2008e9c: 80 a3 00 18 cmp %o4, %i0 2008ea0: 02 80 00 03 be 2008eac <_Heap_Walk+0x424> 2008ea4: 9a 13 61 f0 or %o5, 0x1f0, %o5 2008ea8: 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)( 2008eac: c2 04 20 08 ld [ %l0 + 8 ], %g1 2008eb0: 05 00 80 76 sethi %hi(0x201d800), %g2 2008eb4: 80 a0 c0 01 cmp %g3, %g1 2008eb8: 02 80 00 07 be 2008ed4 <_Heap_Walk+0x44c> 2008ebc: 84 10 a2 00 or %g2, 0x200, %g2 " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") 2008ec0: 05 00 80 76 sethi %hi(0x201d800), %g2 2008ec4: 80 a0 40 18 cmp %g1, %i0 2008ec8: 02 80 00 03 be 2008ed4 <_Heap_Walk+0x44c> 2008ecc: 84 10 a2 10 or %g2, 0x210, %g2 2008ed0: 84 10 00 1c mov %i4, %g2 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)( 2008ed4: c2 23 a0 5c st %g1, [ %sp + 0x5c ] 2008ed8: c4 23 a0 60 st %g2, [ %sp + 0x60 ] 2008edc: 90 10 00 19 mov %i1, %o0 2008ee0: 92 10 20 00 clr %o1 2008ee4: 15 00 80 76 sethi %hi(0x201d800), %o2 2008ee8: 96 10 00 10 mov %l0, %o3 2008eec: 9f c4 80 00 call %l2 2008ef0: 94 12 a2 20 or %o2, 0x220, %o2 block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") ); if ( block_size != next_block->prev_size ) { 2008ef4: da 05 c0 00 ld [ %l7 ], %o5 2008ef8: 80 a5 80 0d cmp %l6, %o5 2008efc: 02 80 00 0c be 2008f2c <_Heap_Walk+0x4a4> 2008f00: 90 10 00 19 mov %i1, %o0 (*printer)( 2008f04: ee 23 a0 5c st %l7, [ %sp + 0x5c ] 2008f08: 96 10 00 10 mov %l0, %o3 2008f0c: 98 10 00 16 mov %l6, %o4 2008f10: 92 10 20 01 mov 1, %o1 2008f14: 15 00 80 76 sethi %hi(0x201d800), %o2 2008f18: b0 10 20 00 clr %i0 2008f1c: 9f c4 80 00 call %l2 2008f20: 94 12 a2 50 or %o2, 0x250, %o2 2008f24: 81 c7 e0 08 ret 2008f28: 81 e8 00 00 restore ); return false; } if ( !prev_used ) { 2008f2c: 80 8d 20 01 btst 1, %l4 2008f30: 02 80 00 1c be 2008fa0 <_Heap_Walk+0x518> 2008f34: 96 10 00 10 mov %l0, %o3 2008f38: c2 06 20 08 ld [ %i0 + 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 ) { 2008f3c: 80 a0 40 18 cmp %g1, %i0 2008f40: 12 80 00 07 bne 2008f5c <_Heap_Walk+0x4d4> <== ALWAYS TAKEN 2008f44: 80 a0 40 10 cmp %g1, %l0 return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( 2008f48: 10 80 00 0f b 2008f84 <_Heap_Walk+0x4fc> <== NOT EXECUTED 2008f4c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED ) { 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 ) { 2008f50: 80 a0 40 18 cmp %g1, %i0 2008f54: 02 80 00 0a be 2008f7c <_Heap_Walk+0x4f4> 2008f58: 80 a0 40 10 cmp %g1, %l0 if ( free_block == block ) { 2008f5c: 32 bf ff fd bne,a 2008f50 <_Heap_Walk+0x4c8> 2008f60: c2 00 60 08 ld [ %g1 + 8 ], %g1 if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { 2008f64: 80 a5 40 11 cmp %l5, %l1 2008f68: 02 bf fe d8 be 2008ac8 <_Heap_Walk+0x40> 2008f6c: a0 10 00 11 mov %l1, %l0 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 ) { 2008f70: ec 04 60 04 ld [ %l1 + 4 ], %l6 2008f74: 10 bf ff 8a b 2008d9c <_Heap_Walk+0x314> 2008f78: 82 0d a0 01 and %l6, 1, %g1 return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( 2008f7c: 90 10 00 19 mov %i1, %o0 2008f80: 96 10 00 10 mov %l0, %o3 2008f84: 92 10 20 01 mov 1, %o1 2008f88: 15 00 80 76 sethi %hi(0x201d800), %o2 2008f8c: b0 10 20 00 clr %i0 2008f90: 9f c4 80 00 call %l2 2008f94: 94 12 a2 c0 or %o2, 0x2c0, %o2 2008f98: 81 c7 e0 08 ret 2008f9c: 81 e8 00 00 restore return false; } if ( !prev_used ) { (*printer)( 2008fa0: 92 10 20 01 mov 1, %o1 2008fa4: 15 00 80 76 sethi %hi(0x201d800), %o2 2008fa8: b0 10 20 00 clr %i0 2008fac: 9f c4 80 00 call %l2 2008fb0: 94 12 a2 90 or %o2, 0x290, %o2 2008fb4: 81 c7 e0 08 ret 2008fb8: 81 e8 00 00 restore return false; } if ( !_Heap_Is_aligned( block_size, page_size ) ) { (*printer)( 2008fbc: 90 10 00 19 mov %i1, %o0 2008fc0: 96 10 00 10 mov %l0, %o3 2008fc4: 98 10 00 16 mov %l6, %o4 2008fc8: 92 10 20 01 mov 1, %o1 2008fcc: 15 00 80 76 sethi %hi(0x201d800), %o2 2008fd0: b0 10 20 00 clr %i0 2008fd4: 9f c4 80 00 call %l2 2008fd8: 94 12 a1 40 or %o2, 0x140, %o2 "block 0x%08x: block size %u not page aligned\n", block, block_size ); return false; 2008fdc: 81 c7 e0 08 ret 2008fe0: 81 e8 00 00 restore } if ( block_size < min_block_size ) { (*printer)( 2008fe4: 90 10 00 19 mov %i1, %o0 2008fe8: 96 10 00 10 mov %l0, %o3 2008fec: 98 10 00 16 mov %l6, %o4 2008ff0: 9a 10 00 13 mov %l3, %o5 2008ff4: 92 10 20 01 mov 1, %o1 2008ff8: 15 00 80 76 sethi %hi(0x201d800), %o2 2008ffc: b0 10 20 00 clr %i0 2009000: 9f c4 80 00 call %l2 2009004: 94 12 a1 70 or %o2, 0x170, %o2 block, block_size, min_block_size ); return false; 2009008: 81 c7 e0 08 ret 200900c: 81 e8 00 00 restore } if ( next_block_begin <= block_begin ) { (*printer)( 2009010: 96 10 00 10 mov %l0, %o3 2009014: 98 10 00 11 mov %l1, %o4 2009018: 92 10 20 01 mov 1, %o1 200901c: 15 00 80 76 sethi %hi(0x201d800), %o2 2009020: b0 10 20 00 clr %i0 2009024: 9f c4 80 00 call %l2 2009028: 94 12 a1 a0 or %o2, 0x1a0, %o2 "block 0x%08x: next block 0x%08x is not a successor\n", block, next_block ); return false; 200902c: 81 c7 e0 08 ret 2009030: 81 e8 00 00 restore return false; } if ( _Heap_Is_free( last_block ) ) { (*printer)( 2009034: 92 10 20 01 mov 1, %o1 2009038: 15 00 80 76 sethi %hi(0x201d800), %o2 200903c: b0 10 20 00 clr %i0 2009040: 9f c4 80 00 call %l2 2009044: 94 12 a0 10 or %o2, 0x10, %o2 2009048: 81 c7 e0 08 ret 200904c: 81 e8 00 00 restore } if ( !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size ) ) { (*printer)( 2009050: 96 10 00 17 mov %l7, %o3 2009054: 92 10 20 01 mov 1, %o1 2009058: 15 00 80 76 sethi %hi(0x201d800), %o2 200905c: b0 10 20 00 clr %i0 2009060: 9f c4 80 00 call %l2 2009064: 94 12 a0 48 or %o2, 0x48, %o2 2009068: 81 c7 e0 08 ret 200906c: 81 e8 00 00 restore return false; } if ( free_block->prev != prev_block ) { (*printer)( 2009070: 90 10 00 19 mov %i1, %o0 2009074: 96 10 00 17 mov %l7, %o3 2009078: 98 10 00 11 mov %l1, %o4 200907c: 92 10 20 01 mov 1, %o1 2009080: 15 00 80 76 sethi %hi(0x201d800), %o2 2009084: b0 10 20 00 clr %i0 2009088: 9f c4 80 00 call %l2 200908c: 94 12 a0 98 or %o2, 0x98, %o2 2009090: 81 c7 e0 08 ret 2009094: 81 e8 00 00 restore return false; } if ( _Heap_Is_used( free_block ) ) { (*printer)( 2009098: 96 10 00 17 mov %l7, %o3 200909c: 92 10 20 01 mov 1, %o1 20090a0: 15 00 80 76 sethi %hi(0x201d800), %o2 20090a4: b0 10 20 00 clr %i0 20090a8: 9f c4 80 00 call %l2 20090ac: 94 12 a0 78 or %o2, 0x78, %o2 20090b0: 81 c7 e0 08 ret 20090b4: 81 e8 00 00 restore =============================================================================== 02006f74 <_IO_Initialize_all_drivers>: * * Output Parameters: NONE */ void _IO_Initialize_all_drivers( void ) { 2006f74: 9d e3 bf a0 save %sp, -96, %sp rtems_device_major_number major; for ( major=0 ; major < _IO_Number_of_drivers ; major ++ ) 2006f78: 23 00 80 77 sethi %hi(0x201dc00), %l1 2006f7c: c2 04 62 70 ld [ %l1 + 0x270 ], %g1 ! 201de70 <_IO_Number_of_drivers> 2006f80: 80 a0 60 00 cmp %g1, 0 2006f84: 02 80 00 0c be 2006fb4 <_IO_Initialize_all_drivers+0x40> <== NEVER TAKEN 2006f88: a2 14 62 70 or %l1, 0x270, %l1 2006f8c: a0 10 20 00 clr %l0 (void) rtems_io_initialize( major, 0, NULL ); 2006f90: 90 10 00 10 mov %l0, %o0 2006f94: 92 10 20 00 clr %o1 2006f98: 40 00 19 96 call 200d5f0 2006f9c: 94 10 20 00 clr %o2 void _IO_Initialize_all_drivers( void ) { rtems_device_major_number major; for ( major=0 ; major < _IO_Number_of_drivers ; major ++ ) 2006fa0: c2 04 40 00 ld [ %l1 ], %g1 2006fa4: a0 04 20 01 inc %l0 2006fa8: 80 a0 40 10 cmp %g1, %l0 2006fac: 18 bf ff fa bgu 2006f94 <_IO_Initialize_all_drivers+0x20> 2006fb0: 90 10 00 10 mov %l0, %o0 2006fb4: 81 c7 e0 08 ret 2006fb8: 81 e8 00 00 restore =============================================================================== 02006fbc <_IO_Manager_initialization>: * workspace. * */ void _IO_Manager_initialization(void) { 2006fbc: 9d e3 bf a0 save %sp, -96, %sp uint32_t index; rtems_driver_address_table *driver_table; uint32_t drivers_in_table; uint32_t number_of_drivers; driver_table = Configuration.Device_driver_table; 2006fc0: 03 00 80 74 sethi %hi(0x201d000), %g1 2006fc4: 82 10 60 f8 or %g1, 0xf8, %g1 ! 201d0f8 drivers_in_table = Configuration.number_of_device_drivers; number_of_drivers = Configuration.maximum_drivers; 2006fc8: e6 00 60 2c ld [ %g1 + 0x2c ], %l3 rtems_driver_address_table *driver_table; uint32_t drivers_in_table; uint32_t number_of_drivers; driver_table = Configuration.Device_driver_table; drivers_in_table = Configuration.number_of_device_drivers; 2006fcc: e2 00 60 30 ld [ %g1 + 0x30 ], %l1 /* * If the user claims there are less drivers than are actually in * the table, then let's just go with the table's count. */ if ( number_of_drivers <= drivers_in_table ) 2006fd0: 80 a4 40 13 cmp %l1, %l3 2006fd4: 0a 80 00 08 bcs 2006ff4 <_IO_Manager_initialization+0x38> 2006fd8: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 * If the maximum number of driver is the same as the number in the * table, then we do not have to copy the driver table. They can't * register any dynamically. */ if ( number_of_drivers == drivers_in_table ) { _IO_Driver_address_table = driver_table; 2006fdc: 03 00 80 77 sethi %hi(0x201dc00), %g1 2006fe0: e0 20 62 74 st %l0, [ %g1 + 0x274 ] ! 201de74 <_IO_Driver_address_table> _IO_Number_of_drivers = number_of_drivers; 2006fe4: 03 00 80 77 sethi %hi(0x201dc00), %g1 2006fe8: e2 20 62 70 st %l1, [ %g1 + 0x270 ] ! 201de70 <_IO_Number_of_drivers> return; 2006fec: 81 c7 e0 08 ret 2006ff0: 81 e8 00 00 restore * have to allocate a new driver table and copy theirs to it. */ _IO_Driver_address_table = (rtems_driver_address_table *) _Workspace_Allocate_or_fatal_error( sizeof( rtems_driver_address_table ) * ( number_of_drivers ) 2006ff4: 83 2c e0 03 sll %l3, 3, %g1 2006ff8: a5 2c e0 05 sll %l3, 5, %l2 2006ffc: a4 24 80 01 sub %l2, %g1, %l2 /* * The application requested extra slots in the driver table, so we * have to allocate a new driver table and copy theirs to it. */ _IO_Driver_address_table = (rtems_driver_address_table *) 2007000: 40 00 0c 97 call 200a25c <_Workspace_Allocate_or_fatal_error> 2007004: 90 10 00 12 mov %l2, %o0 _Workspace_Allocate_or_fatal_error( sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); _IO_Number_of_drivers = number_of_drivers; 2007008: 03 00 80 77 sethi %hi(0x201dc00), %g1 memset( 200700c: 94 10 00 12 mov %l2, %o2 _IO_Driver_address_table = (rtems_driver_address_table *) _Workspace_Allocate_or_fatal_error( sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); _IO_Number_of_drivers = number_of_drivers; 2007010: e6 20 62 70 st %l3, [ %g1 + 0x270 ] /* * The application requested extra slots in the driver table, so we * have to allocate a new driver table and copy theirs to it. */ _IO_Driver_address_table = (rtems_driver_address_table *) 2007014: 25 00 80 77 sethi %hi(0x201dc00), %l2 _Workspace_Allocate_or_fatal_error( sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); _IO_Number_of_drivers = number_of_drivers; memset( 2007018: 92 10 20 00 clr %o1 200701c: 40 00 27 88 call 2010e3c 2007020: d0 24 a2 74 st %o0, [ %l2 + 0x274 ] _IO_Driver_address_table, 0, sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); for ( index = 0 ; index < drivers_in_table ; index++ ) 2007024: 80 a4 60 00 cmp %l1, 0 2007028: 02 bf ff f1 be 2006fec <_IO_Manager_initialization+0x30> <== NEVER TAKEN 200702c: da 04 a2 74 ld [ %l2 + 0x274 ], %o5 2007030: 82 10 20 00 clr %g1 2007034: 88 10 20 00 clr %g4 _IO_Driver_address_table[index] = driver_table[index]; 2007038: c4 04 00 01 ld [ %l0 + %g1 ], %g2 200703c: 86 04 00 01 add %l0, %g1, %g3 2007040: c4 23 40 01 st %g2, [ %o5 + %g1 ] 2007044: d8 00 e0 04 ld [ %g3 + 4 ], %o4 2007048: 84 03 40 01 add %o5, %g1, %g2 200704c: d8 20 a0 04 st %o4, [ %g2 + 4 ] 2007050: d8 00 e0 08 ld [ %g3 + 8 ], %o4 memset( _IO_Driver_address_table, 0, sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); for ( index = 0 ; index < drivers_in_table ; index++ ) 2007054: 88 01 20 01 inc %g4 _IO_Driver_address_table[index] = driver_table[index]; 2007058: d8 20 a0 08 st %o4, [ %g2 + 8 ] 200705c: d8 00 e0 0c ld [ %g3 + 0xc ], %o4 memset( _IO_Driver_address_table, 0, sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); for ( index = 0 ; index < drivers_in_table ; index++ ) 2007060: 82 00 60 18 add %g1, 0x18, %g1 _IO_Driver_address_table[index] = driver_table[index]; 2007064: d8 20 a0 0c st %o4, [ %g2 + 0xc ] 2007068: d8 00 e0 10 ld [ %g3 + 0x10 ], %o4 memset( _IO_Driver_address_table, 0, sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); for ( index = 0 ; index < drivers_in_table ; index++ ) 200706c: 80 a4 40 04 cmp %l1, %g4 _IO_Driver_address_table[index] = driver_table[index]; 2007070: d8 20 a0 10 st %o4, [ %g2 + 0x10 ] 2007074: c6 00 e0 14 ld [ %g3 + 0x14 ], %g3 memset( _IO_Driver_address_table, 0, sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); for ( index = 0 ; index < drivers_in_table ; index++ ) 2007078: 18 bf ff f0 bgu 2007038 <_IO_Manager_initialization+0x7c> 200707c: c6 20 a0 14 st %g3, [ %g2 + 0x14 ] 2007080: 81 c7 e0 08 ret 2007084: 81 e8 00 00 restore =============================================================================== 020012c0 <_Message_queue_Manager_initialization>: #include #include void _Message_queue_Manager_initialization(void) { } 20012c0: 81 c3 e0 08 retl =============================================================================== 02007d28 <_Objects_Allocate>: */ Objects_Control *_Objects_Allocate( Objects_Information *information ) { 2007d28: 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 ) 2007d2c: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 */ Objects_Control *_Objects_Allocate( Objects_Information *information ) { 2007d30: 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 ) 2007d34: 80 a0 60 00 cmp %g1, 0 2007d38: 02 80 00 19 be 2007d9c <_Objects_Allocate+0x74> <== NEVER TAKEN 2007d3c: 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 ); 2007d40: a2 04 20 20 add %l0, 0x20, %l1 2007d44: 7f ff fd 6d call 20072f8 <_Chain_Get> 2007d48: 90 10 00 11 mov %l1, %o0 if ( information->auto_extend ) { 2007d4c: c2 0c 20 12 ldub [ %l0 + 0x12 ], %g1 2007d50: 80 a0 60 00 cmp %g1, 0 2007d54: 02 80 00 12 be 2007d9c <_Objects_Allocate+0x74> 2007d58: 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 ) { 2007d5c: 80 a2 20 00 cmp %o0, 0 2007d60: 02 80 00 11 be 2007da4 <_Objects_Allocate+0x7c> 2007d64: 01 00 00 00 nop } if ( the_object ) { uint32_t block; block = (uint32_t) _Objects_Get_index( the_object->id ) - 2007d68: c2 14 20 0a lduh [ %l0 + 0xa ], %g1 2007d6c: d0 16 20 0a lduh [ %i0 + 0xa ], %o0 _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; 2007d70: d2 14 20 14 lduh [ %l0 + 0x14 ], %o1 2007d74: 40 00 47 0a call 201999c <.udiv> 2007d78: 90 22 00 01 sub %o0, %g1, %o0 2007d7c: c2 04 20 30 ld [ %l0 + 0x30 ], %g1 2007d80: 91 2a 20 02 sll %o0, 2, %o0 information->inactive--; 2007d84: 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 ]--; 2007d88: c4 00 40 08 ld [ %g1 + %o0 ], %g2 information->inactive--; 2007d8c: 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 ]--; 2007d90: 84 00 bf ff add %g2, -1, %g2 information->inactive--; 2007d94: 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 ]--; 2007d98: c4 20 40 08 st %g2, [ %g1 + %o0 ] information->inactive--; } } return the_object; } 2007d9c: 81 c7 e0 08 ret 2007da0: 81 e8 00 00 restore * If the list is empty then we are out of objects and need to * extend information base. */ if ( !the_object ) { _Objects_Extend_information( information ); 2007da4: 40 00 00 11 call 2007de8 <_Objects_Extend_information> 2007da8: 90 10 00 10 mov %l0, %o0 the_object = (Objects_Control *) _Chain_Get( &information->Inactive ); 2007dac: 7f ff fd 53 call 20072f8 <_Chain_Get> 2007db0: 90 10 00 11 mov %l1, %o0 } if ( the_object ) { 2007db4: b0 92 20 00 orcc %o0, 0, %i0 2007db8: 32 bf ff ed bne,a 2007d6c <_Objects_Allocate+0x44> 2007dbc: c2 14 20 0a lduh [ %l0 + 0xa ], %g1 information->inactive--; } } return the_object; } 2007dc0: 81 c7 e0 08 ret 2007dc4: 81 e8 00 00 restore =============================================================================== 02007de8 <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) { 2007de8: 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 ) 2007dec: e8 06 20 34 ld [ %i0 + 0x34 ], %l4 2007df0: 80 a5 20 00 cmp %l4, 0 2007df4: 02 80 00 ab be 20080a0 <_Objects_Extend_information+0x2b8> 2007df8: e6 16 20 0a lduh [ %i0 + 0xa ], %l3 block_count = 0; else { block_count = information->maximum / information->allocation_size; 2007dfc: ea 16 20 10 lduh [ %i0 + 0x10 ], %l5 2007e00: e4 16 20 14 lduh [ %i0 + 0x14 ], %l2 2007e04: ab 2d 60 10 sll %l5, 0x10, %l5 2007e08: 92 10 00 12 mov %l2, %o1 2007e0c: 40 00 46 e4 call 201999c <.udiv> 2007e10: 91 35 60 10 srl %l5, 0x10, %o0 2007e14: 91 2a 20 10 sll %o0, 0x10, %o0 2007e18: b9 32 20 10 srl %o0, 0x10, %i4 for ( ; block < block_count; block++ ) { 2007e1c: 80 a7 20 00 cmp %i4, 0 2007e20: 02 80 00 a7 be 20080bc <_Objects_Extend_information+0x2d4><== NEVER TAKEN 2007e24: 90 10 00 12 mov %l2, %o0 if ( information->object_blocks[ block ] == NULL ) 2007e28: c2 05 00 00 ld [ %l4 ], %g1 2007e2c: 80 a0 60 00 cmp %g1, 0 2007e30: 02 80 00 a4 be 20080c0 <_Objects_Extend_information+0x2d8><== NEVER TAKEN 2007e34: a2 10 00 13 mov %l3, %l1 2007e38: 10 80 00 06 b 2007e50 <_Objects_Extend_information+0x68> 2007e3c: a0 10 20 00 clr %l0 2007e40: c2 05 00 01 ld [ %l4 + %g1 ], %g1 2007e44: 80 a0 60 00 cmp %g1, 0 2007e48: 22 80 00 08 be,a 2007e68 <_Objects_Extend_information+0x80> 2007e4c: ab 35 60 10 srl %l5, 0x10, %l5 if ( information->object_blocks == NULL ) block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { 2007e50: a0 04 20 01 inc %l0 if ( information->object_blocks[ block ] == NULL ) break; else index_base += information->allocation_size; 2007e54: a2 04 40 12 add %l1, %l2, %l1 if ( information->object_blocks == NULL ) block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { 2007e58: 80 a7 00 10 cmp %i4, %l0 2007e5c: 18 bf ff f9 bgu 2007e40 <_Objects_Extend_information+0x58> 2007e60: 83 2c 20 02 sll %l0, 2, %g1 else index_base += information->allocation_size; } } maximum = (uint32_t) information->maximum + information->allocation_size; 2007e64: ab 35 60 10 srl %l5, 0x10, %l5 /* * 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 ) { 2007e68: 03 00 00 3f sethi %hi(0xfc00), %g1 else index_base += information->allocation_size; } } maximum = (uint32_t) information->maximum + information->allocation_size; 2007e6c: aa 05 40 08 add %l5, %o0, %l5 /* * 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 ) { 2007e70: 82 10 63 ff or %g1, 0x3ff, %g1 2007e74: 80 a5 40 01 cmp %l5, %g1 2007e78: 18 80 00 96 bgu 20080d0 <_Objects_Extend_information+0x2e8><== NEVER TAKEN 2007e7c: 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; 2007e80: 40 00 46 8d call 20198b4 <.umul> 2007e84: d2 06 20 18 ld [ %i0 + 0x18 ], %o1 if ( information->auto_extend ) { 2007e88: c2 0e 20 12 ldub [ %i0 + 0x12 ], %g1 2007e8c: 80 a0 60 00 cmp %g1, 0 2007e90: 12 80 00 6d bne 2008044 <_Objects_Extend_information+0x25c> 2007e94: 01 00 00 00 nop new_object_block = _Workspace_Allocate( block_size ); if ( !new_object_block ) return; } else { new_object_block = _Workspace_Allocate_or_fatal_error( block_size ); 2007e98: 40 00 08 f1 call 200a25c <_Workspace_Allocate_or_fatal_error> 2007e9c: 01 00 00 00 nop 2007ea0: 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 ) { 2007ea4: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1 2007ea8: 80 a4 40 01 cmp %l1, %g1 2007eac: 2a 80 00 43 bcs,a 2007fb8 <_Objects_Extend_information+0x1d0> 2007eb0: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 */ /* * Up the block count and maximum */ block_count++; 2007eb4: a8 07 20 01 add %i4, 1, %l4 * 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 ); 2007eb8: 91 2d 20 01 sll %l4, 1, %o0 2007ebc: 90 02 00 14 add %o0, %l4, %o0 2007ec0: 90 05 40 08 add %l5, %o0, %o0 2007ec4: 90 02 00 13 add %o0, %l3, %o0 2007ec8: 40 00 08 f4 call 200a298 <_Workspace_Allocate> 2007ecc: 91 2a 20 02 sll %o0, 2, %o0 if ( !object_blocks ) { 2007ed0: ac 92 20 00 orcc %o0, 0, %l6 2007ed4: 02 80 00 7d be 20080c8 <_Objects_Extend_information+0x2e0> 2007ed8: a9 2d 20 02 sll %l4, 2, %l4 * Take the block count down. Saves all the (block_count - 1) * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { 2007edc: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1 2007ee0: 80 a4 c0 01 cmp %l3, %g1 RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset ( const void *base, uintptr_t offset ) { return (void *)((uintptr_t)base + offset); 2007ee4: ae 05 80 14 add %l6, %l4, %l7 2007ee8: 0a 80 00 5e bcs 2008060 <_Objects_Extend_information+0x278> 2007eec: a8 05 c0 14 add %l7, %l4, %l4 } else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 2007ef0: 80 a4 e0 00 cmp %l3, 0 information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, 2007ef4: 82 10 20 00 clr %g1 } else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 2007ef8: 02 80 00 08 be 2007f18 <_Objects_Extend_information+0x130><== NEVER TAKEN 2007efc: bb 2f 20 02 sll %i4, 2, %i5 local_table[ index ] = NULL; 2007f00: 85 28 60 02 sll %g1, 2, %g2 } else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 2007f04: 82 00 60 01 inc %g1 2007f08: 80 a4 c0 01 cmp %l3, %g1 2007f0c: 18 bf ff fd bgu 2007f00 <_Objects_Extend_information+0x118><== NEVER TAKEN 2007f10: c0 20 80 14 clr [ %g2 + %l4 ] 2007f14: bb 2f 20 02 sll %i4, 2, %i5 */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); 2007f18: c6 16 20 14 lduh [ %i0 + 0x14 ], %g3 /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; 2007f1c: c0 25 c0 1d clr [ %l7 + %i5 ] for ( index=index_base ; index < ( information->allocation_size + index_base ); 2007f20: 86 04 40 03 add %l1, %g3, %g3 * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; 2007f24: 80 a4 40 03 cmp %l1, %g3 2007f28: 1a 80 00 0a bcc 2007f50 <_Objects_Extend_information+0x168><== NEVER TAKEN 2007f2c: c0 25 80 1d clr [ %l6 + %i5 ] 2007f30: 85 2c 60 02 sll %l1, 2, %g2 2007f34: 82 10 00 11 mov %l1, %g1 2007f38: 84 05 00 02 add %l4, %g2, %g2 index < ( information->allocation_size + index_base ); index++ ) { local_table[ index ] = NULL; 2007f3c: c0 20 80 00 clr [ %g2 ] object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); index++ ) { 2007f40: 82 00 60 01 inc %g1 * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; 2007f44: 80 a0 c0 01 cmp %g3, %g1 2007f48: 18 bf ff fd bgu 2007f3c <_Objects_Extend_information+0x154> 2007f4c: 84 00 a0 04 add %g2, 4, %g2 index < ( information->allocation_size + index_base ); index++ ) { local_table[ index ] = NULL; } _ISR_Disable( level ); 2007f50: 7f ff e8 55 call 20020a4 2007f54: 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( 2007f58: c6 06 00 00 ld [ %i0 ], %g3 2007f5c: 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; 2007f60: ea 36 20 10 sth %l5, [ %i0 + 0x10 ] local_table[ index ] = NULL; } _ISR_Disable( level ); old_tables = information->object_blocks; 2007f64: e6 06 20 34 ld [ %i0 + 0x34 ], %l3 information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; 2007f68: ee 26 20 30 st %l7, [ %i0 + 0x30 ] information->local_table = local_table; 2007f6c: e8 26 20 1c st %l4, [ %i0 + 0x1c ] information->maximum = (Objects_Maximum) maximum; information->maximum_id = _Objects_Build_id( 2007f70: 87 28 e0 18 sll %g3, 0x18, %g3 2007f74: 85 28 a0 1b sll %g2, 0x1b, %g2 _ISR_Disable( level ); old_tables = information->object_blocks; information->object_blocks = object_blocks; 2007f78: ec 26 20 34 st %l6, [ %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( 2007f7c: ab 2d 60 10 sll %l5, 0x10, %l5 2007f80: 03 00 00 40 sethi %hi(0x10000), %g1 2007f84: ab 35 60 10 srl %l5, 0x10, %l5 2007f88: 82 10 c0 01 or %g3, %g1, %g1 2007f8c: 82 10 40 02 or %g1, %g2, %g1 2007f90: 82 10 40 15 or %g1, %l5, %g1 2007f94: c2 26 20 0c st %g1, [ %i0 + 0xc ] information->the_class, _Objects_Local_node, information->maximum ); _ISR_Enable( level ); 2007f98: 7f ff e8 47 call 20020b4 2007f9c: 01 00 00 00 nop if ( old_tables ) 2007fa0: 80 a4 e0 00 cmp %l3, 0 2007fa4: 22 80 00 05 be,a 2007fb8 <_Objects_Extend_information+0x1d0> 2007fa8: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 _Workspace_Free( old_tables ); 2007fac: 40 00 08 c4 call 200a2bc <_Workspace_Free> 2007fb0: 90 10 00 13 mov %l3, %o0 } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; 2007fb4: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 2007fb8: d4 16 20 14 lduh [ %i0 + 0x14 ], %o2 2007fbc: d6 06 20 18 ld [ %i0 + 0x18 ], %o3 2007fc0: 92 10 00 12 mov %l2, %o1 } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; 2007fc4: a1 2c 20 02 sll %l0, 2, %l0 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 2007fc8: a6 06 20 20 add %i0, 0x20, %l3 } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; 2007fcc: e4 20 40 10 st %l2, [ %g1 + %l0 ] */ index = index_base; while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) { the_object->id = _Objects_Build_id( 2007fd0: 29 00 00 40 sethi %hi(0x10000), %l4 information->object_blocks[ block ] = new_object_block; /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 2007fd4: a4 07 bf f4 add %fp, -12, %l2 2007fd8: 40 00 15 9d call 200d64c <_Chain_Initialize> 2007fdc: 90 10 00 12 mov %l2, %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 ) { 2007fe0: 30 80 00 0c b,a 2008010 <_Objects_Extend_information+0x228> the_object->id = _Objects_Build_id( 2007fe4: c4 16 20 04 lduh [ %i0 + 4 ], %g2 2007fe8: 83 28 60 18 sll %g1, 0x18, %g1 2007fec: 85 28 a0 1b sll %g2, 0x1b, %g2 2007ff0: 82 10 40 14 or %g1, %l4, %g1 2007ff4: 82 10 40 02 or %g1, %g2, %g1 2007ff8: 82 10 40 11 or %g1, %l1, %g1 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 2007ffc: 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( 2008000: c2 22 20 08 st %g1, [ %o0 + 8 ] index ); _Chain_Append( &information->Inactive, &the_object->Node ); index++; 2008004: a2 04 60 01 inc %l1 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 2008008: 7f ff fc a6 call 20072a0 <_Chain_Append> 200800c: 90 10 00 13 mov %l3, %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 ) { 2008010: 7f ff fc ba call 20072f8 <_Chain_Get> 2008014: 90 10 00 12 mov %l2, %o0 2008018: 80 a2 20 00 cmp %o0, 0 200801c: 32 bf ff f2 bne,a 2007fe4 <_Objects_Extend_information+0x1fc> 2008020: c2 06 00 00 ld [ %i0 ], %g1 index++; } information->inactive_per_block[ block ] = information->allocation_size; information->inactive = 2008024: c2 16 20 2c lduh [ %i0 + 0x2c ], %g1 _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 2008028: c8 16 20 14 lduh [ %i0 + 0x14 ], %g4 200802c: c4 06 20 30 ld [ %i0 + 0x30 ], %g2 information->inactive = 2008030: 82 01 00 01 add %g4, %g1, %g1 _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 2008034: c8 20 80 10 st %g4, [ %g2 + %l0 ] information->inactive = 2008038: c2 36 20 2c sth %g1, [ %i0 + 0x2c ] 200803c: 81 c7 e0 08 ret 2008040: 81 e8 00 00 restore * 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; if ( information->auto_extend ) { new_object_block = _Workspace_Allocate( block_size ); 2008044: 40 00 08 95 call 200a298 <_Workspace_Allocate> 2008048: 01 00 00 00 nop if ( !new_object_block ) 200804c: a4 92 20 00 orcc %o0, 0, %l2 2008050: 32 bf ff 96 bne,a 2007ea8 <_Objects_Extend_information+0xc0> 2008054: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1 2008058: 81 c7 e0 08 ret 200805c: 81 e8 00 00 restore /* * 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, 2008060: d2 06 20 34 ld [ %i0 + 0x34 ], %o1 information->object_blocks, block_count * sizeof(void*) ); 2008064: bb 2f 20 02 sll %i4, 2, %i5 /* * 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, 2008068: 40 00 23 36 call 2010d40 200806c: 94 10 00 1d mov %i5, %o2 information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, 2008070: d2 06 20 30 ld [ %i0 + 0x30 ], %o1 2008074: 94 10 00 1d mov %i5, %o2 2008078: 40 00 23 32 call 2010d40 200807c: 90 10 00 17 mov %l7, %o0 information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, 2008080: d4 16 20 10 lduh [ %i0 + 0x10 ], %o2 2008084: d2 06 20 1c ld [ %i0 + 0x1c ], %o1 2008088: 94 04 c0 0a add %l3, %o2, %o2 200808c: 90 10 00 14 mov %l4, %o0 2008090: 40 00 23 2c call 2010d40 2008094: 95 2a a0 02 sll %o2, 2, %o2 */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); 2008098: 10 bf ff a1 b 2007f1c <_Objects_Extend_information+0x134> 200809c: c6 16 20 14 lduh [ %i0 + 0x14 ], %g3 minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) 20080a0: ea 16 20 10 lduh [ %i0 + 0x10 ], %l5 20080a4: d0 16 20 14 lduh [ %i0 + 0x14 ], %o0 20080a8: ab 2d 60 10 sll %l5, 0x10, %l5 20080ac: a2 10 00 13 mov %l3, %l1 20080b0: a0 10 20 00 clr %l0 20080b4: 10 bf ff 6c b 2007e64 <_Objects_Extend_information+0x7c> 20080b8: b8 10 20 00 clr %i4 block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { if ( information->object_blocks[ block ] == NULL ) 20080bc: a2 10 00 13 mov %l3, %l1 <== NOT EXECUTED 20080c0: 10 bf ff 69 b 2007e64 <_Objects_Extend_information+0x7c> <== NOT EXECUTED 20080c4: a0 10 20 00 clr %l0 <== NOT EXECUTED (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) + ((maximum + minimum_index) * sizeof(Objects_Control *)); object_blocks = (void**) _Workspace_Allocate( block_size ); if ( !object_blocks ) { _Workspace_Free( new_object_block ); 20080c8: 40 00 08 7d call 200a2bc <_Workspace_Free> 20080cc: 90 10 00 12 mov %l2, %o0 return; 20080d0: 81 c7 e0 08 ret 20080d4: 81 e8 00 00 restore =============================================================================== 02008184 <_Objects_Get_information>: Objects_Information *_Objects_Get_information( Objects_APIs the_api, uint32_t the_class ) { 2008184: 9d e3 bf a0 save %sp, -96, %sp Objects_Information *info; int the_class_api_maximum; if ( !the_class ) 2008188: 80 a6 60 00 cmp %i1, 0 200818c: 12 80 00 04 bne 200819c <_Objects_Get_information+0x18> 2008190: 01 00 00 00 nop if ( info->maximum == 0 ) return NULL; #endif return info; } 2008194: 81 c7 e0 08 ret 2008198: 91 e8 20 00 restore %g0, 0, %o0 /* * 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 ); 200819c: 40 00 16 d8 call 200dcfc <_Objects_API_maximum_class> 20081a0: 90 10 00 18 mov %i0, %o0 if ( the_class_api_maximum == 0 ) 20081a4: 80 a2 20 00 cmp %o0, 0 20081a8: 22 80 00 15 be,a 20081fc <_Objects_Get_information+0x78> 20081ac: b0 10 20 00 clr %i0 return NULL; if ( the_class > (uint32_t) the_class_api_maximum ) 20081b0: 80 a6 40 08 cmp %i1, %o0 20081b4: 38 80 00 12 bgu,a 20081fc <_Objects_Get_information+0x78> 20081b8: b0 10 20 00 clr %i0 return NULL; if ( !_Objects_Information_table[ the_api ] ) 20081bc: b1 2e 20 02 sll %i0, 2, %i0 20081c0: 03 00 80 76 sethi %hi(0x201d800), %g1 20081c4: 82 10 63 10 or %g1, 0x310, %g1 ! 201db10 <_Objects_Information_table> 20081c8: c2 00 40 18 ld [ %g1 + %i0 ], %g1 20081cc: 80 a0 60 00 cmp %g1, 0 20081d0: 02 80 00 0b be 20081fc <_Objects_Get_information+0x78> <== NEVER TAKEN 20081d4: b0 10 20 00 clr %i0 return NULL; info = _Objects_Information_table[ the_api ][ the_class ]; 20081d8: b3 2e 60 02 sll %i1, 2, %i1 20081dc: f0 00 40 19 ld [ %g1 + %i1 ], %i0 if ( !info ) 20081e0: 80 a6 20 00 cmp %i0, 0 20081e4: 02 80 00 06 be 20081fc <_Objects_Get_information+0x78> <== NEVER TAKEN 20081e8: 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 ) 20081ec: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1 20081f0: 80 a0 60 00 cmp %g1, 0 20081f4: 22 80 00 02 be,a 20081fc <_Objects_Get_information+0x78> 20081f8: b0 10 20 00 clr %i0 return NULL; #endif return info; } 20081fc: 81 c7 e0 08 ret 2008200: 81 e8 00 00 restore =============================================================================== 02017488 <_Objects_Get_name_as_string>: char *_Objects_Get_name_as_string( Objects_Id id, size_t length, char *name ) { 2017488: 9d e3 bf 90 save %sp, -112, %sp char lname[5]; Objects_Control *the_object; Objects_Locations location; Objects_Id tmpId; if ( length == 0 ) 201748c: 80 a6 60 00 cmp %i1, 0 2017490: 12 80 00 05 bne 20174a4 <_Objects_Get_name_as_string+0x1c> 2017494: 80 a6 a0 00 cmp %i2, 0 } } *d = '\0'; _Thread_Enable_dispatch(); return name; 2017498: b4 10 20 00 clr %i2 } return NULL; /* unreachable path */ } 201749c: 81 c7 e0 08 ret 20174a0: 91 e8 00 1a restore %g0, %i2, %o0 Objects_Id tmpId; if ( length == 0 ) return NULL; if ( name == NULL ) 20174a4: 02 bf ff fe be 201749c <_Objects_Get_name_as_string+0x14> 20174a8: 80 a6 20 00 cmp %i0, 0 return NULL; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 20174ac: 12 80 00 04 bne 20174bc <_Objects_Get_name_as_string+0x34> 20174b0: 03 00 80 c1 sethi %hi(0x2030400), %g1 20174b4: c2 00 62 30 ld [ %g1 + 0x230 ], %g1 ! 2030630 <_Thread_Executing> 20174b8: f0 00 60 08 ld [ %g1 + 8 ], %i0 information = _Objects_Get_information_id( tmpId ); 20174bc: 7f ff db ae call 200e374 <_Objects_Get_information_id> 20174c0: 90 10 00 18 mov %i0, %o0 if ( !information ) 20174c4: 80 a2 20 00 cmp %o0, 0 20174c8: 22 bf ff f5 be,a 201749c <_Objects_Get_name_as_string+0x14> 20174cc: b4 10 20 00 clr %i2 return NULL; the_object = _Objects_Get( information, tmpId, &location ); 20174d0: 92 10 00 18 mov %i0, %o1 20174d4: 7f ff db ec call 200e484 <_Objects_Get> 20174d8: 94 07 bf fc add %fp, -4, %o2 switch ( location ) { 20174dc: c2 07 bf fc ld [ %fp + -4 ], %g1 20174e0: 80 a0 60 00 cmp %g1, 0 20174e4: 32 bf ff ee bne,a 201749c <_Objects_Get_name_as_string+0x14> 20174e8: b4 10 20 00 clr %i2 if ( information->is_string ) { s = the_object->name.name_p; } else #endif { uint32_t u32_name = (uint32_t) the_object->name.name_u32; 20174ec: c2 02 20 0c ld [ %o0 + 0xc ], %g1 lname[ 0 ] = (u32_name >> 24) & 0xff; lname[ 1 ] = (u32_name >> 16) & 0xff; lname[ 2 ] = (u32_name >> 8) & 0xff; lname[ 3 ] = (u32_name >> 0) & 0xff; lname[ 4 ] = '\0'; 20174f0: c0 2f bf f4 clrb [ %fp + -12 ] } else #endif { uint32_t u32_name = (uint32_t) the_object->name.name_u32; lname[ 0 ] = (u32_name >> 24) & 0xff; 20174f4: 87 30 60 18 srl %g1, 0x18, %g3 lname[ 1 ] = (u32_name >> 16) & 0xff; 20174f8: 85 30 60 10 srl %g1, 0x10, %g2 lname[ 2 ] = (u32_name >> 8) & 0xff; lname[ 3 ] = (u32_name >> 0) & 0xff; 20174fc: c2 2f bf f3 stb %g1, [ %fp + -13 ] #endif { uint32_t u32_name = (uint32_t) the_object->name.name_u32; lname[ 0 ] = (u32_name >> 24) & 0xff; lname[ 1 ] = (u32_name >> 16) & 0xff; 2017500: c4 2f bf f1 stb %g2, [ %fp + -15 ] lname[ 2 ] = (u32_name >> 8) & 0xff; 2017504: 83 30 60 08 srl %g1, 8, %g1 } else #endif { uint32_t u32_name = (uint32_t) the_object->name.name_u32; lname[ 0 ] = (u32_name >> 24) & 0xff; 2017508: c6 2f bf f0 stb %g3, [ %fp + -16 ] lname[ 1 ] = (u32_name >> 16) & 0xff; lname[ 2 ] = (u32_name >> 8) & 0xff; 201750c: c2 2f bf f2 stb %g1, [ %fp + -14 ] s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { 2017510: b2 86 7f ff addcc %i1, -1, %i1 2017514: 02 80 00 1d be 2017588 <_Objects_Get_name_as_string+0x100><== NEVER TAKEN 2017518: 84 10 00 03 mov %g3, %g2 201751c: 80 a0 e0 00 cmp %g3, 0 2017520: 02 80 00 1a be 2017588 <_Objects_Get_name_as_string+0x100> 2017524: 17 00 80 bd sethi %hi(0x202f400), %o3 2017528: 86 10 00 1a mov %i2, %g3 201752c: 96 12 e1 28 or %o3, 0x128, %o3 2017530: 82 10 20 00 clr %g1 2017534: 10 80 00 06 b 201754c <_Objects_Get_name_as_string+0xc4> 2017538: 98 07 bf f0 add %fp, -16, %o4 201753c: c8 4b 00 01 ldsb [ %o4 + %g1 ], %g4 2017540: 80 a1 20 00 cmp %g4, 0 2017544: 02 80 00 0e be 201757c <_Objects_Get_name_as_string+0xf4> 2017548: c4 0b 00 01 ldub [ %o4 + %g1 ], %g2 *d = (isprint((unsigned char)*s)) ? *s : '*'; 201754c: da 02 c0 00 ld [ %o3 ], %o5 2017550: 88 08 a0 ff and %g2, 0xff, %g4 2017554: 88 03 40 04 add %o5, %g4, %g4 2017558: c8 49 20 01 ldsb [ %g4 + 1 ], %g4 201755c: 80 89 20 97 btst 0x97, %g4 2017560: 12 80 00 03 bne 201756c <_Objects_Get_name_as_string+0xe4> 2017564: 82 00 60 01 inc %g1 2017568: 84 10 20 2a mov 0x2a, %g2 201756c: c4 28 c0 00 stb %g2, [ %g3 ] s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { 2017570: 80 a0 40 19 cmp %g1, %i1 2017574: 0a bf ff f2 bcs 201753c <_Objects_Get_name_as_string+0xb4> 2017578: 86 00 e0 01 inc %g3 *d = (isprint((unsigned char)*s)) ? *s : '*'; } } *d = '\0'; _Thread_Enable_dispatch(); 201757c: 7f ff de 87 call 200ef98 <_Thread_Enable_dispatch> 2017580: c0 28 c0 00 clrb [ %g3 ] return name; 2017584: 30 bf ff c6 b,a 201749c <_Objects_Get_name_as_string+0x14> s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { 2017588: 10 bf ff fd b 201757c <_Objects_Get_name_as_string+0xf4> 201758c: 86 10 00 1a mov %i2, %g3 =============================================================================== 020195e8 <_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; 20195e8: c4 02 20 08 ld [ %o0 + 8 ], %g2 if ( information->maximum >= index ) { 20195ec: 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; 20195f0: 84 22 40 02 sub %o1, %g2, %g2 20195f4: 84 00 a0 01 inc %g2 if ( information->maximum >= index ) { 20195f8: 80 a0 80 01 cmp %g2, %g1 20195fc: 18 80 00 09 bgu 2019620 <_Objects_Get_no_protection+0x38> 2019600: 85 28 a0 02 sll %g2, 2, %g2 if ( (the_object = information->local_table[ index ]) != NULL ) { 2019604: c2 02 20 1c ld [ %o0 + 0x1c ], %g1 2019608: d0 00 40 02 ld [ %g1 + %g2 ], %o0 201960c: 80 a2 20 00 cmp %o0, 0 2019610: 02 80 00 05 be 2019624 <_Objects_Get_no_protection+0x3c> <== NEVER TAKEN 2019614: 82 10 20 01 mov 1, %g1 *location = OBJECTS_LOCAL; return the_object; 2019618: 81 c3 e0 08 retl 201961c: 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; 2019620: 82 10 20 01 mov 1, %g1 2019624: 90 10 20 00 clr %o0 return NULL; } 2019628: 81 c3 e0 08 retl 201962c: c2 22 80 00 st %g1, [ %o2 ] =============================================================================== 0200e4f8 <_Objects_Id_to_name>: */ Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) { 200e4f8: 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; 200e4fc: 92 96 20 00 orcc %i0, 0, %o1 200e500: 12 80 00 06 bne 200e518 <_Objects_Id_to_name+0x20> 200e504: 83 32 60 18 srl %o1, 0x18, %g1 200e508: 03 00 80 c1 sethi %hi(0x2030400), %g1 200e50c: c2 00 62 30 ld [ %g1 + 0x230 ], %g1 ! 2030630 <_Thread_Executing> 200e510: 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); 200e514: 83 32 60 18 srl %o1, 0x18, %g1 200e518: 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 ) 200e51c: 84 00 7f ff add %g1, -1, %g2 200e520: 80 a0 a0 03 cmp %g2, 3 200e524: 18 80 00 18 bgu 200e584 <_Objects_Id_to_name+0x8c> 200e528: 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 ] ) 200e52c: 05 00 80 c1 sethi %hi(0x2030400), %g2 200e530: 84 10 a0 d0 or %g2, 0xd0, %g2 ! 20304d0 <_Objects_Information_table> 200e534: c2 00 80 01 ld [ %g2 + %g1 ], %g1 200e538: 80 a0 60 00 cmp %g1, 0 200e53c: 02 80 00 12 be 200e584 <_Objects_Id_to_name+0x8c> 200e540: 85 32 60 1b srl %o1, 0x1b, %g2 return OBJECTS_INVALID_ID; the_class = _Objects_Get_class( tmpId ); information = _Objects_Information_table[ the_api ][ the_class ]; 200e544: 85 28 a0 02 sll %g2, 2, %g2 200e548: d0 00 40 02 ld [ %g1 + %g2 ], %o0 if ( !information ) 200e54c: 80 a2 20 00 cmp %o0, 0 200e550: 02 80 00 0d be 200e584 <_Objects_Id_to_name+0x8c> <== NEVER TAKEN 200e554: 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 ); 200e558: 7f ff ff cb call 200e484 <_Objects_Get> 200e55c: 94 07 bf fc add %fp, -4, %o2 if ( !the_object ) 200e560: 80 a2 20 00 cmp %o0, 0 200e564: 02 80 00 08 be 200e584 <_Objects_Id_to_name+0x8c> 200e568: 01 00 00 00 nop return OBJECTS_INVALID_ID; *name = the_object->name; 200e56c: c2 02 20 0c ld [ %o0 + 0xc ], %g1 _Thread_Enable_dispatch(); 200e570: b0 10 20 00 clr %i0 200e574: 40 00 02 89 call 200ef98 <_Thread_Enable_dispatch> 200e578: c2 26 40 00 st %g1, [ %i1 ] return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; 200e57c: 81 c7 e0 08 ret 200e580: 81 e8 00 00 restore } 200e584: 81 c7 e0 08 ret 200e588: 91 e8 20 03 restore %g0, 3, %o0 =============================================================================== 020082ec <_Objects_Initialize_information>: , bool supports_global, Objects_Thread_queue_Extract_callout extract #endif ) { 20082ec: 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; 20082f0: 05 00 80 76 sethi %hi(0x201d800), %g2 20082f4: 83 2e 60 02 sll %i1, 2, %g1 20082f8: 84 10 a3 10 or %g2, 0x310, %g2 20082fc: 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; 2008300: 85 2f 20 10 sll %i4, 0x10, %g2 2008304: 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; 2008308: 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; 200830c: 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; 2008310: 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; 2008314: 85 36 e0 1f srl %i3, 0x1f, %g2 maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS; 2008318: 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; 200831c: f2 26 00 00 st %i1, [ %i0 ] information->the_class = the_class; 2008320: f4 36 20 04 sth %i2, [ %i0 + 4 ] information->size = size; information->local_table = 0; 2008324: c0 26 20 1c clr [ %i0 + 0x1c ] information->inactive_per_block = 0; 2008328: c0 26 20 30 clr [ %i0 + 0x30 ] information->object_blocks = 0; 200832c: c0 26 20 34 clr [ %i0 + 0x34 ] information->inactive = 0; 2008330: 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; 2008334: 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 = 2008338: c4 2e 20 12 stb %g2, [ %i0 + 0x12 ] (maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false; maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS; 200833c: b6 2e c0 01 andn %i3, %g1, %i3 /* * Unlimited and maximum of zero is illogical. */ if ( information->auto_extend && maximum_per_allocation == 0) { 2008340: 80 a0 a0 00 cmp %g2, 0 2008344: 02 80 00 05 be 2008358 <_Objects_Initialize_information+0x6c> 2008348: c2 07 a0 5c ld [ %fp + 0x5c ], %g1 200834c: 80 a6 e0 00 cmp %i3, 0 2008350: 02 80 00 28 be 20083f0 <_Objects_Initialize_information+0x104> 2008354: 90 10 20 00 clr %o0 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; 2008358: 07 00 80 76 sethi %hi(0x201d800), %g3 200835c: 86 10 e0 58 or %g3, 0x58, %g3 ! 201d858 /* * Calculate minimum and maximum Id's */ minimum_index = (maximum_per_allocation == 0) ? 0 : 1; information->minimum_id = 2008360: 80 a0 00 1b cmp %g0, %i3 2008364: b3 2e 60 18 sll %i1, 0x18, %i1 2008368: 84 40 20 00 addx %g0, 0, %g2 200836c: 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; 2008370: c6 26 20 1c st %g3, [ %i0 + 0x1c ] } /* * The allocation unit is the maximum value */ information->allocation_size = maximum_per_allocation; 2008374: 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 = 2008378: 07 00 00 40 sethi %hi(0x10000), %g3 200837c: b2 16 40 03 or %i1, %g3, %i1 2008380: b4 16 40 1a or %i1, %i2, %i2 2008384: b4 16 80 02 or %i2, %g2, %i2 2008388: 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) & 200838c: 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) ) 2008390: 80 88 60 03 btst 3, %g1 2008394: 02 80 00 0c be 20083c4 <_Objects_Initialize_information+0xd8><== ALWAYS TAKEN 2008398: 84 08 bf fc and %g2, -4, %g2 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 200839c: 82 06 20 24 add %i0, 0x24, %g1 <== NOT EXECUTED name_length = (name_length + OBJECTS_NAME_ALIGNMENT) & ~(OBJECTS_NAME_ALIGNMENT-1); information->name_length = name_length; 20083a0: c4 36 20 38 sth %g2, [ %i0 + 0x38 ] <== NOT EXECUTED 20083a4: c2 26 20 20 st %g1, [ %i0 + 0x20 ] <== NOT EXECUTED the_chain->permanent_null = NULL; 20083a8: c0 26 20 24 clr [ %i0 + 0x24 ] <== NOT EXECUTED the_chain->last = _Chain_Head(the_chain); 20083ac: 82 06 20 20 add %i0, 0x20, %g1 <== NOT EXECUTED _Chain_Initialize_empty( &information->Inactive ); /* * Initialize objects .. if there are any */ if ( maximum_per_allocation ) { 20083b0: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 20083b4: 12 80 00 0d bne 20083e8 <_Objects_Initialize_information+0xfc><== NOT EXECUTED 20083b8: c2 26 20 28 st %g1, [ %i0 + 0x28 ] <== NOT EXECUTED 20083bc: 81 c7 e0 08 ret 20083c0: 81 e8 00 00 restore /* * Calculate the maximum name length */ name_length = maximum_name_length; if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) ) 20083c4: 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); 20083c8: 82 06 20 24 add %i0, 0x24, %g1 name_length = (name_length + OBJECTS_NAME_ALIGNMENT) & ~(OBJECTS_NAME_ALIGNMENT-1); information->name_length = name_length; 20083cc: c4 36 20 38 sth %g2, [ %i0 + 0x38 ] 20083d0: c2 26 20 20 st %g1, [ %i0 + 0x20 ] the_chain->permanent_null = NULL; 20083d4: c0 26 20 24 clr [ %i0 + 0x24 ] the_chain->last = _Chain_Head(the_chain); 20083d8: 82 06 20 20 add %i0, 0x20, %g1 _Chain_Initialize_empty( &information->Inactive ); /* * Initialize objects .. if there are any */ if ( maximum_per_allocation ) { 20083dc: 80 a6 e0 00 cmp %i3, 0 20083e0: 02 bf ff f7 be 20083bc <_Objects_Initialize_information+0xd0> 20083e4: 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 ); 20083e8: 7f ff fe 80 call 2007de8 <_Objects_Extend_information> 20083ec: 81 e8 00 00 restore /* * Unlimited and maximum of zero is illogical. */ if ( information->auto_extend && maximum_per_allocation == 0) { _Internal_error_Occurred( 20083f0: 92 10 20 01 mov 1, %o1 20083f4: 7f ff fe 1e call 2007c6c <_Internal_error_Occurred> 20083f8: 94 10 20 14 mov 0x14, %o2 =============================================================================== 020084c0 <_Objects_Shrink_information>: */ void _Objects_Shrink_information( Objects_Information *information ) { 20084c0: 9d e3 bf a0 save %sp, -96, %sp /* * Search the list to find block or chunk with all objects inactive. */ index_base = _Objects_Get_index( information->minimum_id ); 20084c4: e0 16 20 0a lduh [ %i0 + 0xa ], %l0 block_count = (information->maximum - index_base) / 20084c8: e2 16 20 14 lduh [ %i0 + 0x14 ], %l1 20084cc: d0 16 20 10 lduh [ %i0 + 0x10 ], %o0 20084d0: 92 10 00 11 mov %l1, %o1 20084d4: 40 00 45 32 call 201999c <.udiv> 20084d8: 90 22 00 10 sub %o0, %l0, %o0 information->allocation_size; for ( block = 0; block < block_count; block++ ) { 20084dc: 80 a2 20 00 cmp %o0, 0 20084e0: 02 80 00 12 be 2008528 <_Objects_Shrink_information+0x68> <== NEVER TAKEN 20084e4: a4 10 20 04 mov 4, %l2 if ( information->inactive_per_block[ block ] == 20084e8: c6 06 20 30 ld [ %i0 + 0x30 ], %g3 20084ec: c4 00 c0 00 ld [ %g3 ], %g2 20084f0: 80 a4 40 02 cmp %l1, %g2 20084f4: 12 80 00 09 bne 2008518 <_Objects_Shrink_information+0x58><== ALWAYS TAKEN 20084f8: 82 10 20 00 clr %g1 20084fc: 10 80 00 0d b 2008530 <_Objects_Shrink_information+0x70> <== NOT EXECUTED 2008500: a4 10 20 00 clr %l2 <== NOT EXECUTED information->inactive -= information->allocation_size; return; } index_base += information->allocation_size; 2008504: a0 04 00 11 add %l0, %l1, %l0 index_base = _Objects_Get_index( information->minimum_id ); block_count = (information->maximum - index_base) / information->allocation_size; for ( block = 0; block < block_count; block++ ) { if ( information->inactive_per_block[ block ] == 2008508: 80 a4 40 02 cmp %l1, %g2 200850c: 02 80 00 09 be 2008530 <_Objects_Shrink_information+0x70> 2008510: 84 04 a0 04 add %l2, 4, %g2 2008514: a4 10 00 02 mov %g2, %l2 index_base = _Objects_Get_index( information->minimum_id ); block_count = (information->maximum - index_base) / information->allocation_size; for ( block = 0; block < block_count; block++ ) { 2008518: 82 00 60 01 inc %g1 200851c: 80 a2 00 01 cmp %o0, %g1 2008520: 38 bf ff f9 bgu,a 2008504 <_Objects_Shrink_information+0x44> 2008524: c4 00 c0 12 ld [ %g3 + %l2 ], %g2 2008528: 81 c7 e0 08 ret 200852c: 81 e8 00 00 restore information->allocation_size ) { /* * Assume the Inactive chain is never empty at this point */ the_object = (Objects_Control *) information->Inactive.first; 2008530: 10 80 00 06 b 2008548 <_Objects_Shrink_information+0x88> 2008534: d0 06 20 20 ld [ %i0 + 0x20 ], %o0 if ((index >= index_base) && (index < (index_base + information->allocation_size))) { _Chain_Extract( &extract_me->Node ); } } while ( the_object ); 2008538: 80 a4 60 00 cmp %l1, 0 200853c: 22 80 00 12 be,a 2008584 <_Objects_Shrink_information+0xc4> 2008540: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 2008544: 90 10 00 11 mov %l1, %o0 * Assume the Inactive chain is never empty at this point */ the_object = (Objects_Control *) information->Inactive.first; do { index = _Objects_Get_index( the_object->id ); 2008548: c2 12 20 0a lduh [ %o0 + 0xa ], %g1 /* * Get the next node before the node is extracted */ extract_me = the_object; the_object = (Objects_Control *) the_object->Node.next; if ((index >= index_base) && 200854c: 80 a0 40 10 cmp %g1, %l0 2008550: 0a bf ff fa bcs 2008538 <_Objects_Shrink_information+0x78> 2008554: e2 02 00 00 ld [ %o0 ], %l1 (index < (index_base + information->allocation_size))) { 2008558: c4 16 20 14 lduh [ %i0 + 0x14 ], %g2 200855c: 84 04 00 02 add %l0, %g2, %g2 2008560: 80 a0 40 02 cmp %g1, %g2 2008564: 1a bf ff f6 bcc 200853c <_Objects_Shrink_information+0x7c> 2008568: 80 a4 60 00 cmp %l1, 0 _Chain_Extract( &extract_me->Node ); 200856c: 7f ff fb 59 call 20072d0 <_Chain_Extract> 2008570: 01 00 00 00 nop } } while ( the_object ); 2008574: 80 a4 60 00 cmp %l1, 0 2008578: 12 bf ff f4 bne 2008548 <_Objects_Shrink_information+0x88><== ALWAYS TAKEN 200857c: 90 10 00 11 mov %l1, %o0 /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); 2008580: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 <== NOT EXECUTED 2008584: 40 00 07 4e call 200a2bc <_Workspace_Free> 2008588: d0 00 40 12 ld [ %g1 + %l2 ], %o0 information->object_blocks[ block ] = NULL; information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; 200858c: c6 16 20 2c lduh [ %i0 + 0x2c ], %g3 /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); information->object_blocks[ block ] = NULL; 2008590: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 information->inactive_per_block[ block ] = 0; 2008594: c8 06 20 30 ld [ %i0 + 0x30 ], %g4 information->inactive -= information->allocation_size; 2008598: c4 16 20 14 lduh [ %i0 + 0x14 ], %g2 * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); information->object_blocks[ block ] = NULL; information->inactive_per_block[ block ] = 0; 200859c: c0 21 00 12 clr [ %g4 + %l2 ] information->inactive -= information->allocation_size; 20085a0: 84 20 c0 02 sub %g3, %g2, %g2 /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); information->object_blocks[ block ] = NULL; 20085a4: c0 20 40 12 clr [ %g1 + %l2 ] information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; 20085a8: c4 36 20 2c sth %g2, [ %i0 + 0x2c ] return; 20085ac: 81 c7 e0 08 ret 20085b0: 81 e8 00 00 restore =============================================================================== 020012c8 <_Partition_Manager_initialization>: #include #include void _Partition_Manager_initialization(void) { } 20012c8: 81 c3 e0 08 retl =============================================================================== 02006ca8 <_RTEMS_tasks_Initialize_user_tasks_body>: * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks_body( void ) { 2006ca8: 9d e3 bf 98 save %sp, -104, %sp rtems_initialization_tasks_table *user_tasks; /* * Move information into local variables */ user_tasks = Configuration_RTEMS_API.User_initialization_tasks_table; 2006cac: 03 00 80 74 sethi %hi(0x201d000), %g1 2006cb0: 82 10 60 c0 or %g1, 0xc0, %g1 ! 201d0c0 2006cb4: e0 00 60 2c ld [ %g1 + 0x2c ], %l0 maximum = Configuration_RTEMS_API.number_of_initialization_tasks; /* * Verify that we have a set of user tasks to iterate */ if ( !user_tasks ) 2006cb8: 80 a4 20 00 cmp %l0, 0 2006cbc: 02 80 00 1a be 2006d24 <_RTEMS_tasks_Initialize_user_tasks_body+0x7c> 2006cc0: e4 00 60 28 ld [ %g1 + 0x28 ], %l2 return; /* * Now iterate over the initialization tasks and create/start them. */ for ( index=0 ; index < maximum ; index++ ) { 2006cc4: 80 a4 a0 00 cmp %l2, 0 2006cc8: 02 80 00 17 be 2006d24 <_RTEMS_tasks_Initialize_user_tasks_body+0x7c><== NEVER TAKEN 2006ccc: a2 10 20 00 clr %l1 2006cd0: a6 07 bf fc add %fp, -4, %l3 return_value = rtems_task_create( 2006cd4: d0 04 00 00 ld [ %l0 ], %o0 2006cd8: d2 04 20 08 ld [ %l0 + 8 ], %o1 2006cdc: d4 04 20 04 ld [ %l0 + 4 ], %o2 2006ce0: d6 04 20 14 ld [ %l0 + 0x14 ], %o3 2006ce4: d8 04 20 0c ld [ %l0 + 0xc ], %o4 2006ce8: 7f ff ff 6e call 2006aa0 2006cec: 9a 10 00 13 mov %l3, %o5 user_tasks[ index ].stack_size, user_tasks[ index ].mode_set, user_tasks[ index ].attribute_set, &id ); if ( !rtems_is_status_successful( return_value ) ) 2006cf0: 80 a2 20 00 cmp %o0, 0 2006cf4: 12 80 00 0f bne 2006d30 <_RTEMS_tasks_Initialize_user_tasks_body+0x88> 2006cf8: 94 10 00 08 mov %o0, %o2 _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value ); return_value = rtems_task_start( 2006cfc: d0 07 bf fc ld [ %fp + -4 ], %o0 2006d00: d2 04 20 10 ld [ %l0 + 0x10 ], %o1 2006d04: 40 00 00 0f call 2006d40 2006d08: d4 04 20 18 ld [ %l0 + 0x18 ], %o2 id, user_tasks[ index ].entry_point, user_tasks[ index ].argument ); if ( !rtems_is_status_successful( return_value ) ) 2006d0c: 80 a2 20 00 cmp %o0, 0 2006d10: 12 80 00 07 bne 2006d2c <_RTEMS_tasks_Initialize_user_tasks_body+0x84> 2006d14: a2 04 60 01 inc %l1 return; /* * Now iterate over the initialization tasks and create/start them. */ for ( index=0 ; index < maximum ; index++ ) { 2006d18: 80 a4 80 11 cmp %l2, %l1 2006d1c: 18 bf ff ee bgu 2006cd4 <_RTEMS_tasks_Initialize_user_tasks_body+0x2c><== NEVER TAKEN 2006d20: a0 04 20 1c add %l0, 0x1c, %l0 2006d24: 81 c7 e0 08 ret 2006d28: 81 e8 00 00 restore id, user_tasks[ index ].entry_point, user_tasks[ index ].argument ); if ( !rtems_is_status_successful( return_value ) ) _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value ); 2006d2c: 94 10 00 08 mov %o0, %o2 2006d30: 92 10 20 01 mov 1, %o1 2006d34: 40 00 03 ce call 2007c6c <_Internal_error_Occurred> 2006d38: 90 10 20 01 mov 1, %o0 =============================================================================== 0200d3fc <_RTEMS_tasks_Post_switch_extension>: */ void _RTEMS_tasks_Post_switch_extension( Thread_Control *executing ) { 200d3fc: 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 ]; 200d400: e0 06 21 60 ld [ %i0 + 0x160 ], %l0 if ( !api ) 200d404: 80 a4 20 00 cmp %l0, 0 200d408: 02 80 00 1f be 200d484 <_RTEMS_tasks_Post_switch_extension+0x88><== NEVER TAKEN 200d40c: 01 00 00 00 nop * Signal Processing */ asr = &api->Signal; _ISR_Disable( level ); 200d410: 7f ff d3 25 call 20020a4 200d414: 01 00 00 00 nop signal_set = asr->signals_posted; 200d418: e2 04 20 14 ld [ %l0 + 0x14 ], %l1 asr->signals_posted = 0; 200d41c: c0 24 20 14 clr [ %l0 + 0x14 ] _ISR_Enable( level ); 200d420: 7f ff d3 25 call 20020b4 200d424: 01 00 00 00 nop if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ 200d428: 80 a4 60 00 cmp %l1, 0 200d42c: 32 80 00 04 bne,a 200d43c <_RTEMS_tasks_Post_switch_extension+0x40><== ALWAYS TAKEN 200d430: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 200d434: 81 c7 e0 08 ret <== NOT EXECUTED 200d438: 81 e8 00 00 restore <== NOT EXECUTED return; asr->nest_level += 1; rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 200d43c: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ return; asr->nest_level += 1; 200d440: 82 00 60 01 inc %g1 rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 200d444: a4 07 bf fc add %fp, -4, %l2 if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ return; asr->nest_level += 1; 200d448: c2 24 20 1c st %g1, [ %l0 + 0x1c ] rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 200d44c: 94 10 00 12 mov %l2, %o2 200d450: 27 00 00 3f sethi %hi(0xfc00), %l3 200d454: 40 00 0a 6b call 200fe00 200d458: 92 14 e3 ff or %l3, 0x3ff, %o1 ! ffff (*asr->handler)( signal_set ); 200d45c: c2 04 20 0c ld [ %l0 + 0xc ], %g1 200d460: 9f c0 40 00 call %g1 200d464: 90 10 00 11 mov %l1, %o0 asr->nest_level -= 1; 200d468: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode ); 200d46c: 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; 200d470: 82 00 7f ff add %g1, -1, %g1 rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode ); 200d474: 92 14 e3 ff or %l3, 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; 200d478: c2 24 20 1c st %g1, [ %l0 + 0x1c ] rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode ); 200d47c: 40 00 0a 61 call 200fe00 200d480: 94 10 00 12 mov %l2, %o2 200d484: 81 c7 e0 08 ret 200d488: 81 e8 00 00 restore =============================================================================== 0200d320 <_RTEMS_tasks_Switch_extension>: /* * Per Task Variables */ tvp = executing->task_variables; 200d320: c2 02 21 70 ld [ %o0 + 0x170 ], %g1 while (tvp) { 200d324: 80 a0 60 00 cmp %g1, 0 200d328: 22 80 00 0b be,a 200d354 <_RTEMS_tasks_Switch_extension+0x34> 200d32c: c2 02 61 70 ld [ %o1 + 0x170 ], %g1 tvp->tval = *tvp->ptr; 200d330: c4 00 60 04 ld [ %g1 + 4 ], %g2 *tvp->ptr = tvp->gval; 200d334: c6 00 60 08 ld [ %g1 + 8 ], %g3 * Per Task Variables */ tvp = executing->task_variables; while (tvp) { tvp->tval = *tvp->ptr; 200d338: c8 00 80 00 ld [ %g2 ], %g4 200d33c: c8 20 60 0c st %g4, [ %g1 + 0xc ] *tvp->ptr = tvp->gval; tvp = (rtems_task_variable_t *)tvp->next; 200d340: c2 00 40 00 ld [ %g1 ], %g1 /* * Per Task Variables */ tvp = executing->task_variables; while (tvp) { 200d344: 80 a0 60 00 cmp %g1, 0 200d348: 12 bf ff fa bne 200d330 <_RTEMS_tasks_Switch_extension+0x10><== NEVER TAKEN 200d34c: c6 20 80 00 st %g3, [ %g2 ] tvp->tval = *tvp->ptr; *tvp->ptr = tvp->gval; tvp = (rtems_task_variable_t *)tvp->next; } tvp = heir->task_variables; 200d350: c2 02 61 70 ld [ %o1 + 0x170 ], %g1 while (tvp) { 200d354: 80 a0 60 00 cmp %g1, 0 200d358: 02 80 00 0a be 200d380 <_RTEMS_tasks_Switch_extension+0x60> 200d35c: 01 00 00 00 nop tvp->gval = *tvp->ptr; 200d360: c4 00 60 04 ld [ %g1 + 4 ], %g2 *tvp->ptr = tvp->tval; 200d364: c6 00 60 0c ld [ %g1 + 0xc ], %g3 tvp = (rtems_task_variable_t *)tvp->next; } tvp = heir->task_variables; while (tvp) { tvp->gval = *tvp->ptr; 200d368: c8 00 80 00 ld [ %g2 ], %g4 200d36c: c8 20 60 08 st %g4, [ %g1 + 8 ] *tvp->ptr = tvp->tval; tvp = (rtems_task_variable_t *)tvp->next; 200d370: c2 00 40 00 ld [ %g1 ], %g1 *tvp->ptr = tvp->gval; tvp = (rtems_task_variable_t *)tvp->next; } tvp = heir->task_variables; while (tvp) { 200d374: 80 a0 60 00 cmp %g1, 0 200d378: 12 bf ff fa bne 200d360 <_RTEMS_tasks_Switch_extension+0x40><== NEVER TAKEN 200d37c: c6 20 80 00 st %g3, [ %g2 ] 200d380: 81 c3 e0 08 retl =============================================================================== 020012e8 <_Rate_monotonic_Manager_initialization>: #include #include void _Rate_monotonic_Manager_initialization(void) { } 20012e8: 81 c3 e0 08 retl =============================================================================== 02045a4c <_Rate_monotonic_Timeout>: void _Rate_monotonic_Timeout( Objects_Id id, void *ignored ) { 2045a4c: 9d e3 bf 98 save %sp, -104, %sp 2045a50: 11 00 81 cd sethi %hi(0x2073400), %o0 2045a54: 92 10 00 18 mov %i0, %o1 2045a58: 90 12 23 30 or %o0, 0x330, %o0 2045a5c: 7f ff 26 99 call 200f4c0 <_Objects_Get> 2045a60: 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 ) { 2045a64: c2 07 bf fc ld [ %fp + -4 ], %g1 2045a68: 80 a0 60 00 cmp %g1, 0 2045a6c: 12 80 00 16 bne 2045ac4 <_Rate_monotonic_Timeout+0x78> <== NEVER TAKEN 2045a70: a0 10 00 08 mov %o0, %l0 case OBJECTS_LOCAL: the_thread = the_period->owner; 2045a74: d0 02 20 40 ld [ %o0 + 0x40 ], %o0 if ( _States_Is_waiting_for_period( the_thread->current_state ) && 2045a78: 03 00 00 10 sethi %hi(0x4000), %g1 2045a7c: c4 02 20 10 ld [ %o0 + 0x10 ], %g2 2045a80: 80 88 80 01 btst %g2, %g1 2045a84: 22 80 00 08 be,a 2045aa4 <_Rate_monotonic_Timeout+0x58> 2045a88: c2 04 20 38 ld [ %l0 + 0x38 ], %g1 the_thread->Wait.id == the_period->Object.id ) { 2045a8c: c4 02 20 20 ld [ %o0 + 0x20 ], %g2 2045a90: c2 04 20 08 ld [ %l0 + 8 ], %g1 2045a94: 80 a0 80 01 cmp %g2, %g1 2045a98: 02 80 00 19 be 2045afc <_Rate_monotonic_Timeout+0xb0> 2045a9c: 13 04 00 ff sethi %hi(0x1003fc00), %o1 _Thread_Unblock( the_thread ); _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 ) { 2045aa0: c2 04 20 38 ld [ %l0 + 0x38 ], %g1 2045aa4: 80 a0 60 01 cmp %g1, 1 2045aa8: 02 80 00 09 be 2045acc <_Rate_monotonic_Timeout+0x80> 2045aac: 82 10 20 04 mov 4, %g1 _Rate_monotonic_Initiate_statistics( the_period ); _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length ); } else the_period->state = RATE_MONOTONIC_EXPIRED; 2045ab0: 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; 2045ab4: 03 00 81 cc sethi %hi(0x2073000), %g1 2045ab8: c4 00 62 b0 ld [ %g1 + 0x2b0 ], %g2 ! 20732b0 <_Thread_Dispatch_disable_level> 2045abc: 84 00 bf ff add %g2, -1, %g2 2045ac0: c4 20 62 b0 st %g2, [ %g1 + 0x2b0 ] 2045ac4: 81 c7 e0 08 ret 2045ac8: 81 e8 00 00 restore _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; 2045acc: 82 10 20 03 mov 3, %g1 _Rate_monotonic_Initiate_statistics( the_period ); 2045ad0: 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; 2045ad4: c2 24 20 38 st %g1, [ %l0 + 0x38 ] _Rate_monotonic_Initiate_statistics( the_period ); 2045ad8: 7f ff fe e5 call 204566c <_Rate_monotonic_Initiate_statistics> 2045adc: 01 00 00 00 nop Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 2045ae0: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 2045ae4: 92 04 20 10 add %l0, 0x10, %o1 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 2045ae8: c2 24 20 1c st %g1, [ %l0 + 0x1c ] _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 2045aec: 11 00 81 cc sethi %hi(0x2073000), %o0 2045af0: 7f ff 2d b6 call 20111c8 <_Watchdog_Insert> 2045af4: 90 12 23 90 or %o0, 0x390, %o0 ! 2073390 <_Watchdog_Ticks_chain> 2045af8: 30 bf ff ef b,a 2045ab4 <_Rate_monotonic_Timeout+0x68> RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 2045afc: 7f ff 27 f3 call 200fac8 <_Thread_Clear_state> 2045b00: 92 12 63 f8 or %o1, 0x3f8, %o1 the_thread = the_period->owner; if ( _States_Is_waiting_for_period( the_thread->current_state ) && the_thread->Wait.id == the_period->Object.id ) { _Thread_Unblock( the_thread ); _Rate_monotonic_Initiate_statistics( the_period ); 2045b04: 10 bf ff f5 b 2045ad8 <_Rate_monotonic_Timeout+0x8c> 2045b08: 90 10 00 10 mov %l0, %o0 =============================================================================== 020012d0 <_Region_Manager_initialization>: #include #include void _Region_Manager_initialization(void) { } 20012d0: 81 c3 e0 08 retl =============================================================================== 0200782c <_TOD_Tickle_ticks>: * * Output parameters: NONE */ void _TOD_Tickle_ticks( void ) { 200782c: 9d e3 bf 98 save %sp, -104, %sp /* Convert the tick quantum to a timestamp */ _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() ); /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; 2007830: 05 00 80 77 sethi %hi(0x201dc00), %g2 2007834: c6 00 a1 04 ld [ %g2 + 0x104 ], %g3 ! 201dd04 <_Watchdog_Ticks_since_boot> { Timestamp_Control tick; uint32_t seconds; /* Convert the tick quantum to a timestamp */ _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() ); 2007838: 03 00 80 74 sethi %hi(0x201d000), %g1 200783c: c2 00 61 04 ld [ %g1 + 0x104 ], %g1 ! 201d104 /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; 2007840: 86 00 e0 01 inc %g3 2007844: c6 20 a1 04 st %g3, [ %g2 + 0x104 ] { Timestamp_Control tick; uint32_t seconds; /* Convert the tick quantum to a timestamp */ _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() ); 2007848: 87 28 60 07 sll %g1, 7, %g3 200784c: 85 28 60 02 sll %g1, 2, %g2 2007850: 84 20 c0 02 sub %g3, %g2, %g2 2007854: 82 00 80 01 add %g2, %g1, %g1 2007858: 83 28 60 03 sll %g1, 3, %g1 /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; /* Update the timespec format uptime */ _Timestamp_Add_to( &_TOD_Uptime, &tick ); 200785c: a0 07 bf f8 add %fp, -8, %l0 { Timestamp_Control tick; uint32_t seconds; /* Convert the tick quantum to a timestamp */ _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() ); 2007860: c2 27 bf fc st %g1, [ %fp + -4 ] /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; /* Update the timespec format uptime */ _Timestamp_Add_to( &_TOD_Uptime, &tick ); 2007864: 92 10 00 10 mov %l0, %o1 { Timestamp_Control tick; uint32_t seconds; /* Convert the tick quantum to a timestamp */ _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() ); 2007868: c0 27 bf f8 clr [ %fp + -8 ] /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; /* Update the timespec format uptime */ _Timestamp_Add_to( &_TOD_Uptime, &tick ); 200786c: 11 00 80 77 sethi %hi(0x201dc00), %o0 2007870: 40 00 08 c5 call 2009b84 <_Timespec_Add_to> 2007874: 90 12 20 30 or %o0, 0x30, %o0 ! 201dc30 <_TOD_Uptime> /* we do not care how much the uptime changed */ /* Update the timespec format TOD */ seconds = _Timestamp_Add_to_at_tick( &_TOD_Now, &tick ); 2007878: 92 10 00 10 mov %l0, %o1 200787c: 11 00 80 77 sethi %hi(0x201dc00), %o0 2007880: 40 00 08 c1 call 2009b84 <_Timespec_Add_to> 2007884: 90 12 20 44 or %o0, 0x44, %o0 ! 201dc44 <_TOD_Now> while ( seconds ) { 2007888: a0 92 20 00 orcc %o0, 0, %l0 200788c: 02 80 00 08 be 20078ac <_TOD_Tickle_ticks+0x80> 2007890: 23 00 80 77 sethi %hi(0x201dc00), %l1 */ RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_seconds( void ) { _Watchdog_Tickle( &_Watchdog_Seconds_chain ); 2007894: a2 14 60 84 or %l1, 0x84, %l1 ! 201dc84 <_Watchdog_Seconds_chain> 2007898: 40 00 0a 47 call 200a1b4 <_Watchdog_Tickle> 200789c: 90 10 00 11 mov %l1, %o0 20078a0: a0 84 3f ff addcc %l0, -1, %l0 20078a4: 12 bf ff fd bne 2007898 <_TOD_Tickle_ticks+0x6c> <== NEVER TAKEN 20078a8: 01 00 00 00 nop 20078ac: 81 c7 e0 08 ret 20078b0: 81 e8 00 00 restore =============================================================================== 02007958 <_TOD_Validate>: */ bool _TOD_Validate( const rtems_time_of_day *the_tod ) { 2007958: 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(); 200795c: 03 00 80 8e sethi %hi(0x2023800), %g1 if ((!the_tod) || 2007960: 80 a6 20 00 cmp %i0, 0 2007964: 02 80 00 2e be 2007a1c <_TOD_Validate+0xc4> <== NEVER TAKEN 2007968: d2 00 60 f4 ld [ %g1 + 0xf4 ], %o1 200796c: 11 00 03 d0 sethi %hi(0xf4000), %o0 2007970: 40 00 5d 3f call 201ee6c <.udiv> 2007974: 90 12 22 40 or %o0, 0x240, %o0 ! f4240 (the_tod->ticks >= ticks_per_second) || 2007978: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 200797c: 80 a2 00 01 cmp %o0, %g1 2007980: 08 80 00 27 bleu 2007a1c <_TOD_Validate+0xc4> 2007984: 01 00 00 00 nop (the_tod->second >= TOD_SECONDS_PER_MINUTE) || 2007988: c2 06 20 14 ld [ %i0 + 0x14 ], %g1 200798c: 80 a0 60 3b cmp %g1, 0x3b 2007990: 18 80 00 23 bgu 2007a1c <_TOD_Validate+0xc4> 2007994: 01 00 00 00 nop (the_tod->minute >= TOD_MINUTES_PER_HOUR) || 2007998: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 200799c: 80 a0 60 3b cmp %g1, 0x3b 20079a0: 18 80 00 1f bgu 2007a1c <_TOD_Validate+0xc4> 20079a4: 01 00 00 00 nop (the_tod->hour >= TOD_HOURS_PER_DAY) || 20079a8: c2 06 20 0c ld [ %i0 + 0xc ], %g1 20079ac: 80 a0 60 17 cmp %g1, 0x17 20079b0: 18 80 00 1b bgu 2007a1c <_TOD_Validate+0xc4> 20079b4: 01 00 00 00 nop (the_tod->month == 0) || 20079b8: 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) || 20079bc: 80 a0 60 00 cmp %g1, 0 20079c0: 02 80 00 17 be 2007a1c <_TOD_Validate+0xc4> <== NEVER TAKEN 20079c4: 80 a0 60 0c cmp %g1, 0xc 20079c8: 18 80 00 15 bgu 2007a1c <_TOD_Validate+0xc4> 20079cc: 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) || 20079d0: c4 06 00 00 ld [ %i0 ], %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) || 20079d4: 80 a0 a7 c3 cmp %g2, 0x7c3 20079d8: 08 80 00 11 bleu 2007a1c <_TOD_Validate+0xc4> 20079dc: 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) ) 20079e0: c6 06 20 08 ld [ %i0 + 8 ], %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) || 20079e4: 80 a0 e0 00 cmp %g3, 0 20079e8: 02 80 00 0d be 2007a1c <_TOD_Validate+0xc4> <== NEVER TAKEN 20079ec: 80 88 a0 03 btst 3, %g2 (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 ) 20079f0: 32 80 00 0d bne,a 2007a24 <_TOD_Validate+0xcc> 20079f4: 83 28 60 02 sll %g1, 2, %g1 days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ]; 20079f8: 82 00 60 0d add %g1, 0xd, %g1 20079fc: 05 00 80 87 sethi %hi(0x2021c00), %g2 2007a00: 83 28 60 02 sll %g1, 2, %g1 2007a04: 84 10 a3 f4 or %g2, 0x3f4, %g2 2007a08: c2 00 80 01 ld [ %g2 + %g1 ], %g1 * false - if the the_tod is invalid * * NOTE: This routine only works for leap-years through 2099. */ bool _TOD_Validate( 2007a0c: 80 a0 40 03 cmp %g1, %g3 2007a10: b0 60 3f ff subx %g0, -1, %i0 2007a14: 81 c7 e0 08 ret 2007a18: 81 e8 00 00 restore if ( the_tod->day > days_in_month ) return false; return true; } 2007a1c: 81 c7 e0 08 ret 2007a20: 91 e8 20 00 restore %g0, 0, %o0 return false; if ( (the_tod->year % 4) == 0 ) days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ]; else days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ]; 2007a24: 05 00 80 87 sethi %hi(0x2021c00), %g2 2007a28: 84 10 a3 f4 or %g2, 0x3f4, %g2 ! 2021ff4 <_TOD_Days_per_month> 2007a2c: 10 bf ff f8 b 2007a0c <_TOD_Validate+0xb4> 2007a30: c2 00 80 01 ld [ %g2 + %g1 ], %g1 =============================================================================== 02008680 <_Thread_Change_priority>: void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) { 2008680: 9d e3 bf a0 save %sp, -96, %sp */ /* * Save original state */ original_state = the_thread->current_state; 2008684: 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 ); 2008688: 40 00 04 84 call 2009898 <_Thread_Set_transient> 200868c: 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 ) 2008690: c2 06 20 14 ld [ %i0 + 0x14 ], %g1 2008694: 80 a0 40 19 cmp %g1, %i1 2008698: 02 80 00 05 be 20086ac <_Thread_Change_priority+0x2c> 200869c: a0 10 00 18 mov %i0, %l0 _Thread_Set_priority( the_thread, new_priority ); 20086a0: 92 10 00 19 mov %i1, %o1 20086a4: 40 00 04 01 call 20096a8 <_Thread_Set_priority> 20086a8: 90 10 00 18 mov %i0, %o0 _ISR_Disable( level ); 20086ac: 7f ff e6 7e call 20020a4 20086b0: 01 00 00 00 nop 20086b4: 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; 20086b8: e4 04 20 10 ld [ %l0 + 0x10 ], %l2 if ( state != STATES_TRANSIENT ) { 20086bc: 80 a4 a0 04 cmp %l2, 4 20086c0: 02 80 00 18 be 2008720 <_Thread_Change_priority+0xa0> 20086c4: 80 8c 60 04 btst 4, %l1 /* Only clear the transient state if it wasn't set already */ if ( ! _States_Is_transient( original_state ) ) 20086c8: 02 80 00 0b be 20086f4 <_Thread_Change_priority+0x74> <== ALWAYS TAKEN 20086cc: 82 0c bf fb and %l2, -5, %g1 the_thread->current_state = _States_Clear( STATES_TRANSIENT, state ); _ISR_Enable( level ); 20086d0: 7f ff e6 79 call 20020b4 <== NOT EXECUTED 20086d4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED if ( _States_Is_waiting_on_thread_queue( state ) ) { 20086d8: 03 00 00 ef sethi %hi(0x3bc00), %g1 <== NOT EXECUTED 20086dc: 82 10 62 e0 or %g1, 0x2e0, %g1 ! 3bee0 <== NOT EXECUTED 20086e0: 80 8c 80 01 btst %l2, %g1 <== NOT EXECUTED 20086e4: 32 80 00 0d bne,a 2008718 <_Thread_Change_priority+0x98> <== NOT EXECUTED 20086e8: f0 04 20 44 ld [ %l0 + 0x44 ], %i0 <== NOT EXECUTED 20086ec: 81 c7 e0 08 ret 20086f0: 81 e8 00 00 restore */ state = the_thread->current_state; if ( state != STATES_TRANSIENT ) { /* Only clear the transient state if it wasn't set already */ if ( ! _States_Is_transient( original_state ) ) the_thread->current_state = _States_Clear( STATES_TRANSIENT, state ); 20086f4: c2 24 20 10 st %g1, [ %l0 + 0x10 ] _ISR_Enable( level ); 20086f8: 7f ff e6 6f call 20020b4 20086fc: 90 10 00 18 mov %i0, %o0 if ( _States_Is_waiting_on_thread_queue( state ) ) { 2008700: 03 00 00 ef sethi %hi(0x3bc00), %g1 2008704: 82 10 62 e0 or %g1, 0x2e0, %g1 ! 3bee0 2008708: 80 8c 80 01 btst %l2, %g1 200870c: 02 bf ff f8 be 20086ec <_Thread_Change_priority+0x6c> 2008710: 01 00 00 00 nop _Thread_queue_Requeue( the_thread->Wait.queue, the_thread ); 2008714: f0 04 20 44 ld [ %l0 + 0x44 ], %i0 2008718: 40 00 03 b4 call 20095e8 <_Thread_queue_Requeue> 200871c: 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 ) ) { 2008720: 12 80 00 14 bne 2008770 <_Thread_Change_priority+0xf0> <== NEVER TAKEN 2008724: 23 00 80 77 sethi %hi(0x201dc00), %l1 RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; 2008728: c2 04 20 90 ld [ %l0 + 0x90 ], %g1 200872c: c4 14 20 96 lduh [ %l0 + 0x96 ], %g2 2008730: c6 10 40 00 lduh [ %g1 ], %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 ); 2008734: c0 24 20 10 clr [ %l0 + 0x10 ] 2008738: 84 10 c0 02 or %g3, %g2, %g2 200873c: c4 30 40 00 sth %g2, [ %g1 ] _Priority_Major_bit_map |= the_priority_map->ready_major; 2008740: c4 14 60 64 lduh [ %l1 + 0x64 ], %g2 2008744: c2 14 20 94 lduh [ %l0 + 0x94 ], %g1 _Priority_Add_to_bit_map( &the_thread->Priority_map ); if ( prepend_it ) 2008748: 80 8e a0 ff btst 0xff, %i2 200874c: 82 10 80 01 or %g2, %g1, %g1 2008750: c2 34 60 64 sth %g1, [ %l1 + 0x64 ] 2008754: 02 80 00 48 be 2008874 <_Thread_Change_priority+0x1f4> 2008758: c2 04 20 8c ld [ %l0 + 0x8c ], %g1 ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 200875c: c4 00 40 00 ld [ %g1 ], %g2 Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 2008760: c2 24 20 04 st %g1, [ %l0 + 4 ] before_node = after_node->next; after_node->next = the_node; 2008764: e0 20 40 00 st %l0, [ %g1 ] the_node->next = before_node; before_node->previous = the_node; 2008768: 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; 200876c: c4 24 00 00 st %g2, [ %l0 ] _Chain_Prepend_unprotected( the_thread->ready, &the_thread->Object.Node ); else _Chain_Append_unprotected( the_thread->ready, &the_thread->Object.Node ); } _ISR_Flash( level ); 2008770: 7f ff e6 51 call 20020b4 2008774: 90 10 00 18 mov %i0, %o0 2008778: 7f ff e6 4b call 20020a4 200877c: 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 ); 2008780: c2 14 60 64 lduh [ %l1 + 0x64 ], %g1 */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) _Thread_Ready_chain[ _Priority_Get_highest() ].first; 2008784: 05 00 80 76 sethi %hi(0x201d800), %g2 2008788: 83 28 60 10 sll %g1, 0x10, %g1 200878c: da 00 a3 04 ld [ %g2 + 0x304 ], %o5 2008790: 85 30 60 10 srl %g1, 0x10, %g2 2008794: 80 a0 a0 ff cmp %g2, 0xff 2008798: 08 80 00 27 bleu 2008834 <_Thread_Change_priority+0x1b4> 200879c: 07 00 80 70 sethi %hi(0x201c000), %g3 20087a0: 83 30 60 18 srl %g1, 0x18, %g1 20087a4: 86 10 e0 78 or %g3, 0x78, %g3 20087a8: c4 08 c0 01 ldub [ %g3 + %g1 ], %g2 _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); 20087ac: 09 00 80 77 sethi %hi(0x201dc00), %g4 20087b0: 85 28 a0 10 sll %g2, 0x10, %g2 20087b4: 88 11 20 e0 or %g4, 0xe0, %g4 20087b8: 83 30 a0 0f srl %g2, 0xf, %g1 20087bc: c2 11 00 01 lduh [ %g4 + %g1 ], %g1 20087c0: 83 28 60 10 sll %g1, 0x10, %g1 20087c4: 89 30 60 10 srl %g1, 0x10, %g4 20087c8: 80 a1 20 ff cmp %g4, 0xff 20087cc: 18 80 00 28 bgu 200886c <_Thread_Change_priority+0x1ec> 20087d0: 83 30 60 18 srl %g1, 0x18, %g1 20087d4: c2 08 c0 04 ldub [ %g3 + %g4 ], %g1 20087d8: 82 00 60 08 add %g1, 8, %g1 * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) 20087dc: 85 30 a0 0c srl %g2, 0xc, %g2 20087e0: 83 28 60 10 sll %g1, 0x10, %g1 20087e4: 83 30 60 10 srl %g1, 0x10, %g1 20087e8: 82 00 40 02 add %g1, %g2, %g1 20087ec: 85 28 60 04 sll %g1, 4, %g2 20087f0: 83 28 60 02 sll %g1, 2, %g1 20087f4: 82 20 80 01 sub %g2, %g1, %g1 20087f8: c2 03 40 01 ld [ %o5 + %g1 ], %g1 * is also the heir thread, and false otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void ) { return ( _Thread_Executing == _Thread_Heir ); 20087fc: 05 00 80 77 sethi %hi(0x201dc00), %g2 2008800: c4 00 a0 70 ld [ %g2 + 0x70 ], %g2 ! 201dc70 <_Thread_Executing> * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) 2008804: 07 00 80 77 sethi %hi(0x201dc00), %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() && 2008808: 80 a0 40 02 cmp %g1, %g2 200880c: 02 80 00 08 be 200882c <_Thread_Change_priority+0x1ac> 2008810: c2 20 e0 40 st %g1, [ %g3 + 0x40 ] _Thread_Executing->is_preemptible ) 2008814: c2 08 a0 75 ldub [ %g2 + 0x75 ], %g1 2008818: 80 a0 60 00 cmp %g1, 0 200881c: 02 80 00 04 be 200882c <_Thread_Change_priority+0x1ac> 2008820: 84 10 20 01 mov 1, %g2 _Context_Switch_necessary = true; 2008824: 03 00 80 77 sethi %hi(0x201dc00), %g1 2008828: c4 28 60 80 stb %g2, [ %g1 + 0x80 ] ! 201dc80 <_Context_Switch_necessary> _ISR_Enable( level ); 200882c: 7f ff e6 22 call 20020b4 2008830: 81 e8 00 00 restore 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 ); 2008834: 86 10 e0 78 or %g3, 0x78, %g3 2008838: c4 08 c0 02 ldub [ %g3 + %g2 ], %g2 _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); 200883c: 09 00 80 77 sethi %hi(0x201dc00), %g4 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 ); 2008840: 84 00 a0 08 add %g2, 8, %g2 _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); 2008844: 88 11 20 e0 or %g4, 0xe0, %g4 2008848: 85 28 a0 10 sll %g2, 0x10, %g2 200884c: 83 30 a0 0f srl %g2, 0xf, %g1 2008850: c2 11 00 01 lduh [ %g4 + %g1 ], %g1 2008854: 83 28 60 10 sll %g1, 0x10, %g1 2008858: 89 30 60 10 srl %g1, 0x10, %g4 200885c: 80 a1 20 ff cmp %g4, 0xff 2008860: 28 bf ff de bleu,a 20087d8 <_Thread_Change_priority+0x158> 2008864: c2 08 c0 04 ldub [ %g3 + %g4 ], %g1 2008868: 83 30 60 18 srl %g1, 0x18, %g1 200886c: 10 bf ff dc b 20087dc <_Thread_Change_priority+0x15c> 2008870: c2 08 c0 01 ldub [ %g3 + %g1 ], %g1 Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 2008874: 84 00 60 04 add %g1, 4, %g2 2008878: c4 24 00 00 st %g2, [ %l0 ] old_last_node = the_chain->last; 200887c: c4 00 60 08 ld [ %g1 + 8 ], %g2 the_chain->last = the_node; 2008880: e0 20 60 08 st %l0, [ %g1 + 8 ] old_last_node->next = the_node; the_node->previous = old_last_node; 2008884: 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; 2008888: 10 bf ff ba b 2008770 <_Thread_Change_priority+0xf0> 200888c: e0 20 80 00 st %l0, [ %g2 ] =============================================================================== 02008890 <_Thread_Clear_state>: void _Thread_Clear_state( Thread_Control *the_thread, States_Control state ) { 2008890: 9d e3 bf a0 save %sp, -96, %sp ISR_Level level; States_Control current_state; _ISR_Disable( level ); 2008894: 7f ff e6 04 call 20020a4 2008898: a0 10 00 18 mov %i0, %l0 200889c: b0 10 00 08 mov %o0, %i0 current_state = the_thread->current_state; 20088a0: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 if ( current_state & state ) { 20088a4: 80 8e 40 01 btst %i1, %g1 20088a8: 02 80 00 06 be 20088c0 <_Thread_Clear_state+0x30> 20088ac: 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); 20088b0: 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 ) ) { 20088b4: 80 a6 60 00 cmp %i1, 0 20088b8: 02 80 00 04 be 20088c8 <_Thread_Clear_state+0x38> 20088bc: f2 24 20 10 st %i1, [ %l0 + 0x10 ] the_thread->current_priority == 0 ) _Context_Switch_necessary = true; } } } _ISR_Enable( level ); 20088c0: 7f ff e5 fd call 20020b4 20088c4: 81 e8 00 00 restore RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; 20088c8: c4 04 20 90 ld [ %l0 + 0x90 ], %g2 if ( _States_Is_ready( current_state ) ) { _Priority_Add_to_bit_map( &the_thread->Priority_map ); _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node); 20088cc: c2 04 20 8c ld [ %l0 + 0x8c ], %g1 20088d0: c8 10 80 00 lduh [ %g2 ], %g4 20088d4: c6 14 20 96 lduh [ %l0 + 0x96 ], %g3 20088d8: 86 11 00 03 or %g4, %g3, %g3 20088dc: c6 30 80 00 sth %g3, [ %g2 ] Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 20088e0: 84 00 60 04 add %g1, 4, %g2 _Priority_Major_bit_map |= the_priority_map->ready_major; 20088e4: c8 14 20 94 lduh [ %l0 + 0x94 ], %g4 20088e8: c4 24 00 00 st %g2, [ %l0 ] 20088ec: 07 00 80 77 sethi %hi(0x201dc00), %g3 old_last_node = the_chain->last; 20088f0: c4 00 60 08 ld [ %g1 + 8 ], %g2 20088f4: da 10 e0 64 lduh [ %g3 + 0x64 ], %o5 the_chain->last = the_node; 20088f8: e0 20 60 08 st %l0, [ %g1 + 8 ] old_last_node->next = the_node; the_node->previous = old_last_node; 20088fc: c4 24 20 04 st %g2, [ %l0 + 4 ] 2008900: 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; 2008904: e0 20 80 00 st %l0, [ %g2 ] 2008908: c2 30 e0 64 sth %g1, [ %g3 + 0x64 ] _ISR_Flash( level ); 200890c: 7f ff e5 ea call 20020b4 2008910: 01 00 00 00 nop 2008914: 7f ff e5 e4 call 20020a4 2008918: 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 ) { 200891c: 03 00 80 77 sethi %hi(0x201dc00), %g1 2008920: c6 00 60 40 ld [ %g1 + 0x40 ], %g3 ! 201dc40 <_Thread_Heir> 2008924: c4 04 20 14 ld [ %l0 + 0x14 ], %g2 2008928: c6 00 e0 14 ld [ %g3 + 0x14 ], %g3 200892c: 80 a0 80 03 cmp %g2, %g3 2008930: 1a bf ff e4 bcc 20088c0 <_Thread_Clear_state+0x30> 2008934: 07 00 80 77 sethi %hi(0x201dc00), %g3 _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible || 2008938: c6 00 e0 70 ld [ %g3 + 0x70 ], %g3 ! 201dc70 <_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; 200893c: e0 20 60 40 st %l0, [ %g1 + 0x40 ] if ( _Thread_Executing->is_preemptible || 2008940: c2 08 e0 75 ldub [ %g3 + 0x75 ], %g1 2008944: 80 a0 60 00 cmp %g1, 0 2008948: 32 80 00 05 bne,a 200895c <_Thread_Clear_state+0xcc> 200894c: 84 10 20 01 mov 1, %g2 2008950: 80 a0 a0 00 cmp %g2, 0 2008954: 12 bf ff db bne 20088c0 <_Thread_Clear_state+0x30> <== ALWAYS TAKEN 2008958: 84 10 20 01 mov 1, %g2 the_thread->current_priority == 0 ) _Context_Switch_necessary = true; 200895c: 03 00 80 77 sethi %hi(0x201dc00), %g1 2008960: c4 28 60 80 stb %g2, [ %g1 + 0x80 ] ! 201dc80 <_Context_Switch_necessary> } } } _ISR_Enable( level ); 2008964: 7f ff e5 d4 call 20020b4 2008968: 81 e8 00 00 restore =============================================================================== 02008b18 <_Thread_Delay_ended>: void _Thread_Delay_ended( Objects_Id id, void *ignored __attribute__((unused)) ) { 2008b18: 9d e3 bf 98 save %sp, -104, %sp Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 2008b1c: 90 10 00 18 mov %i0, %o0 2008b20: 40 00 00 84 call 2008d30 <_Thread_Get> 2008b24: 92 07 bf fc add %fp, -4, %o1 switch ( location ) { 2008b28: c2 07 bf fc ld [ %fp + -4 ], %g1 2008b2c: 80 a0 60 00 cmp %g1, 0 2008b30: 12 80 00 08 bne 2008b50 <_Thread_Delay_ended+0x38> <== NEVER TAKEN 2008b34: 13 04 00 00 sethi %hi(0x10000000), %o1 #if defined(RTEMS_MULTIPROCESSING) case OBJECTS_REMOTE: /* impossible */ #endif break; case OBJECTS_LOCAL: _Thread_Clear_state( 2008b38: 7f ff ff 56 call 2008890 <_Thread_Clear_state> 2008b3c: 92 12 60 18 or %o1, 0x18, %o1 ! 10000018 2008b40: 03 00 80 76 sethi %hi(0x201d800), %g1 2008b44: c4 00 63 b0 ld [ %g1 + 0x3b0 ], %g2 ! 201dbb0 <_Thread_Dispatch_disable_level> 2008b48: 84 00 bf ff add %g2, -1, %g2 2008b4c: c4 20 63 b0 st %g2, [ %g1 + 0x3b0 ] 2008b50: 81 c7 e0 08 ret 2008b54: 81 e8 00 00 restore =============================================================================== 02008b58 <_Thread_Dispatch>: * dispatch thread * no dispatch thread */ void _Thread_Dispatch( void ) { 2008b58: 9d e3 bf 90 save %sp, -112, %sp Thread_Control *executing; Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; 2008b5c: 2b 00 80 77 sethi %hi(0x201dc00), %l5 _ISR_Disable( level ); 2008b60: 7f ff e5 51 call 20020a4 2008b64: e0 05 60 70 ld [ %l5 + 0x70 ], %l0 ! 201dc70 <_Thread_Executing> while ( _Context_Switch_necessary == true ) { 2008b68: 2d 00 80 77 sethi %hi(0x201dc00), %l6 2008b6c: c2 0d a0 80 ldub [ %l6 + 0x80 ], %g1 ! 201dc80 <_Context_Switch_necessary> 2008b70: 80 a0 60 00 cmp %g1, 0 2008b74: 02 80 00 50 be 2008cb4 <_Thread_Dispatch+0x15c> 2008b78: 33 00 80 77 sethi %hi(0x201dc00), %i1 2008b7c: 25 00 80 77 sethi %hi(0x201dc00), %l2 2008b80: 35 00 80 77 sethi %hi(0x201dc00), %i2 2008b84: a4 14 a0 78 or %l2, 0x78, %l2 #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; 2008b88: 31 00 80 76 sethi %hi(0x201d800), %i0 #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 ); 2008b8c: 2f 00 80 77 sethi %hi(0x201dc00), %l7 2008b90: 03 00 80 76 sethi %hi(0x201d800), %g1 2008b94: ac 15 a0 80 or %l6, 0x80, %l6 2008b98: aa 15 60 70 or %l5, 0x70, %l5 2008b9c: b2 16 60 40 or %i1, 0x40, %i1 2008ba0: b4 16 a0 3c or %i2, 0x3c, %i2 2008ba4: b0 16 23 08 or %i0, 0x308, %i0 2008ba8: ae 15 e0 38 or %l7, 0x38, %l7 2008bac: b6 10 63 b0 or %g1, 0x3b0, %i3 2008bb0: a8 07 bf f8 add %fp, -8, %l4 2008bb4: a6 07 bf f0 add %fp, -16, %l3 executing = _Thread_Executing; _ISR_Disable( level ); while ( _Context_Switch_necessary == true ) { heir = _Thread_Heir; _Thread_Dispatch_disable_level = 1; 2008bb8: b8 10 20 01 mov 1, %i4 #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ { Timestamp_Control uptime, ran; _TOD_Get_uptime( &uptime ); _Timestamp_Subtract( 2008bbc: 10 80 00 34 b 2008c8c <_Thread_Dispatch+0x134> 2008bc0: ba 10 00 12 mov %l2, %i5 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; _ISR_Enable( level ); 2008bc4: 7f ff e5 3c call 20020b4 2008bc8: 01 00 00 00 nop #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ { Timestamp_Control uptime, ran; _TOD_Get_uptime( &uptime ); 2008bcc: 40 00 13 3d call 200d8c0 <_TOD_Get_uptime> 2008bd0: 90 10 00 14 mov %l4, %o0 _Timestamp_Subtract( 2008bd4: 90 10 00 1d mov %i5, %o0 2008bd8: 92 10 00 14 mov %l4, %o1 2008bdc: 40 00 04 03 call 2009be8 <_Timespec_Subtract> 2008be0: 94 10 00 13 mov %l3, %o2 &_Thread_Time_of_last_context_switch, &uptime, &ran ); _Timestamp_Add_to( &executing->cpu_time_used, &ran ); 2008be4: 92 10 00 13 mov %l3, %o1 2008be8: 40 00 03 e7 call 2009b84 <_Timespec_Add_to> 2008bec: 90 04 20 84 add %l0, 0x84, %o0 _Thread_Time_of_last_context_switch = uptime; 2008bf0: c4 07 bf f8 ld [ %fp + -8 ], %g2 #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { 2008bf4: c2 06 80 00 ld [ %i2 ], %g1 &_Thread_Time_of_last_context_switch, &uptime, &ran ); _Timestamp_Add_to( &executing->cpu_time_used, &ran ); _Thread_Time_of_last_context_switch = uptime; 2008bf8: c4 24 80 00 st %g2, [ %l2 ] 2008bfc: c4 07 bf fc ld [ %fp + -4 ], %g2 if ( _Thread_libc_reent ) { executing->libc_reent = *_Thread_libc_reent; *_Thread_libc_reent = heir->libc_reent; } _User_extensions_Thread_switch( executing, heir ); 2008c00: 90 10 00 10 mov %l0, %o0 &_Thread_Time_of_last_context_switch, &uptime, &ran ); _Timestamp_Add_to( &executing->cpu_time_used, &ran ); _Thread_Time_of_last_context_switch = uptime; 2008c04: c4 24 a0 04 st %g2, [ %l2 + 4 ] #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { 2008c08: 80 a0 60 00 cmp %g1, 0 2008c0c: 02 80 00 06 be 2008c24 <_Thread_Dispatch+0xcc> <== NEVER TAKEN 2008c10: 92 10 00 11 mov %l1, %o1 executing->libc_reent = *_Thread_libc_reent; 2008c14: c4 00 40 00 ld [ %g1 ], %g2 2008c18: c4 24 21 5c st %g2, [ %l0 + 0x15c ] *_Thread_libc_reent = heir->libc_reent; 2008c1c: c4 04 61 5c ld [ %l1 + 0x15c ], %g2 2008c20: c4 20 40 00 st %g2, [ %g1 ] } _User_extensions_Thread_switch( executing, heir ); 2008c24: 40 00 04 b3 call 2009ef0 <_User_extensions_Thread_switch> 2008c28: 01 00 00 00 nop if ( executing->fp_context != NULL ) _Context_Save_fp( &executing->fp_context ); #endif #endif _Context_Switch( &executing->Registers, &heir->Registers ); 2008c2c: 92 04 60 d0 add %l1, 0xd0, %o1 2008c30: 40 00 06 00 call 200a430 <_CPU_Context_switch> 2008c34: 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) && 2008c38: c2 04 21 58 ld [ %l0 + 0x158 ], %g1 2008c3c: 80 a0 60 00 cmp %g1, 0 2008c40: 02 80 00 0d be 2008c74 <_Thread_Dispatch+0x11c> 2008c44: 01 00 00 00 nop 2008c48: d0 05 c0 00 ld [ %l7 ], %o0 2008c4c: 80 a4 00 08 cmp %l0, %o0 2008c50: 02 80 00 09 be 2008c74 <_Thread_Dispatch+0x11c> 2008c54: 80 a2 20 00 cmp %o0, 0 !_Thread_Is_allocated_fp( executing ) ) { if ( _Thread_Allocated_fp != NULL ) 2008c58: 02 80 00 04 be 2008c68 <_Thread_Dispatch+0x110> 2008c5c: 01 00 00 00 nop _Context_Save_fp( &_Thread_Allocated_fp->fp_context ); 2008c60: 40 00 05 ba call 200a348 <_CPU_Context_save_fp> 2008c64: 90 02 21 58 add %o0, 0x158, %o0 _Context_Restore_fp( &executing->fp_context ); 2008c68: 40 00 05 d5 call 200a3bc <_CPU_Context_restore_fp> 2008c6c: 90 04 21 58 add %l0, 0x158, %o0 _Thread_Allocated_fp = executing; 2008c70: e0 25 c0 00 st %l0, [ %l7 ] #endif #endif executing = _Thread_Executing; _ISR_Disable( level ); 2008c74: 7f ff e5 0c call 20020a4 2008c78: e0 05 40 00 ld [ %l5 ], %l0 Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; _ISR_Disable( level ); while ( _Context_Switch_necessary == true ) { 2008c7c: c2 0d 80 00 ldub [ %l6 ], %g1 2008c80: 80 a0 60 00 cmp %g1, 0 2008c84: 02 80 00 0d be 2008cb8 <_Thread_Dispatch+0x160> 2008c88: 03 00 80 76 sethi %hi(0x201d800), %g1 heir = _Thread_Heir; 2008c8c: e2 06 40 00 ld [ %i1 ], %l1 _Thread_Dispatch_disable_level = 1; 2008c90: f8 26 c0 00 st %i4, [ %i3 ] _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 ) 2008c94: 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; 2008c98: 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 ) 2008c9c: 80 a0 60 01 cmp %g1, 1 2008ca0: 12 bf ff c9 bne 2008bc4 <_Thread_Dispatch+0x6c> 2008ca4: e2 25 40 00 st %l1, [ %l5 ] heir->cpu_time_budget = _Thread_Ticks_per_timeslice; 2008ca8: c2 06 00 00 ld [ %i0 ], %g1 2008cac: 10 bf ff c6 b 2008bc4 <_Thread_Dispatch+0x6c> 2008cb0: c2 24 60 78 st %g1, [ %l1 + 0x78 ] executing = _Thread_Executing; _ISR_Disable( level ); } _Thread_Dispatch_disable_level = 0; 2008cb4: 03 00 80 76 sethi %hi(0x201d800), %g1 2008cb8: c0 20 63 b0 clr [ %g1 + 0x3b0 ] ! 201dbb0 <_Thread_Dispatch_disable_level> _ISR_Enable( level ); 2008cbc: 7f ff e4 fe call 20020b4 2008cc0: 01 00 00 00 nop if ( _Thread_Do_post_task_switch_extension || 2008cc4: 03 00 80 77 sethi %hi(0x201dc00), %g1 2008cc8: c2 00 60 54 ld [ %g1 + 0x54 ], %g1 ! 201dc54 <_Thread_Do_post_task_switch_extension> 2008ccc: 80 a0 60 00 cmp %g1, 0 2008cd0: 12 80 00 06 bne 2008ce8 <_Thread_Dispatch+0x190> <== NEVER TAKEN 2008cd4: 01 00 00 00 nop executing->do_post_task_switch_extension ) { 2008cd8: c2 0c 20 74 ldub [ %l0 + 0x74 ], %g1 2008cdc: 80 a0 60 00 cmp %g1, 0 2008ce0: 02 80 00 04 be 2008cf0 <_Thread_Dispatch+0x198> 2008ce4: 01 00 00 00 nop executing->do_post_task_switch_extension = false; _API_extensions_Run_postswitch(); 2008ce8: 7f ff f9 1b call 2007154 <_API_extensions_Run_postswitch> 2008cec: c0 2c 20 74 clrb [ %l0 + 0x74 ] 2008cf0: 81 c7 e0 08 ret 2008cf4: 81 e8 00 00 restore =============================================================================== 02010184 <_Thread_Evaluate_mode>: bool _Thread_Evaluate_mode( void ) { Thread_Control *executing; executing = _Thread_Executing; 2010184: 03 00 80 77 sethi %hi(0x201dc00), %g1 2010188: c2 00 60 70 ld [ %g1 + 0x70 ], %g1 ! 201dc70 <_Thread_Executing> if ( !_States_Is_ready( executing->current_state ) || 201018c: c4 00 60 10 ld [ %g1 + 0x10 ], %g2 2010190: 80 a0 a0 00 cmp %g2, 0 2010194: 12 80 00 0b bne 20101c0 <_Thread_Evaluate_mode+0x3c> <== NEVER TAKEN 2010198: 84 10 20 01 mov 1, %g2 201019c: 05 00 80 77 sethi %hi(0x201dc00), %g2 20101a0: c4 00 a0 40 ld [ %g2 + 0x40 ], %g2 ! 201dc40 <_Thread_Heir> 20101a4: 80 a0 40 02 cmp %g1, %g2 20101a8: 02 80 00 0b be 20101d4 <_Thread_Evaluate_mode+0x50> 20101ac: 01 00 00 00 nop ( !_Thread_Is_heir( executing ) && executing->is_preemptible ) ) { 20101b0: c2 08 60 75 ldub [ %g1 + 0x75 ], %g1 20101b4: 80 a0 60 00 cmp %g1, 0 20101b8: 02 80 00 07 be 20101d4 <_Thread_Evaluate_mode+0x50> <== NEVER TAKEN 20101bc: 84 10 20 01 mov 1, %g2 _Context_Switch_necessary = true; 20101c0: 03 00 80 77 sethi %hi(0x201dc00), %g1 20101c4: 90 10 20 01 mov 1, %o0 20101c8: c4 28 60 80 stb %g2, [ %g1 + 0x80 ] return true; 20101cc: 81 c3 e0 08 retl 20101d0: 01 00 00 00 nop } return false; } 20101d4: 81 c3 e0 08 retl 20101d8: 90 10 20 00 clr %o0 ! 0 =============================================================================== 020101dc <_Thread_Handler>: * * Output parameters: NONE */ void _Thread_Handler( void ) { 20101dc: 9d e3 bf a0 save %sp, -96, %sp #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) static char doneConstructors; char doneCons; #endif executing = _Thread_Executing; 20101e0: 03 00 80 77 sethi %hi(0x201dc00), %g1 20101e4: e0 00 60 70 ld [ %g1 + 0x70 ], %l0 ! 201dc70 <_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(); 20101e8: 3f 00 80 40 sethi %hi(0x2010000), %i7 20101ec: be 17 e1 dc or %i7, 0x1dc, %i7 ! 20101dc <_Thread_Handler> /* * have to put level into a register for those cpu's that use * inline asm here */ level = executing->Start.isr_level; 20101f0: d0 04 20 b8 ld [ %l0 + 0xb8 ], %o0 _ISR_Set_level(level); 20101f4: 7f ff c7 b0 call 20020b4 20101f8: 91 2a 20 08 sll %o0, 8, %o0 #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) doneCons = doneConstructors; 20101fc: 03 00 80 76 sethi %hi(0x201d800), %g1 doneConstructors = 1; 2010200: 84 10 20 01 mov 1, %g2 level = executing->Start.isr_level; _ISR_Set_level(level); #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) doneCons = doneConstructors; 2010204: e4 08 60 66 ldub [ %g1 + 0x66 ], %l2 doneConstructors = 1; 2010208: c4 28 60 66 stb %g2, [ %g1 + 0x66 ] #endif #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE ) if ( (executing->fp_context != NULL) && 201020c: c2 04 21 58 ld [ %l0 + 0x158 ], %g1 2010210: 80 a0 60 00 cmp %g1, 0 2010214: 02 80 00 0b be 2010240 <_Thread_Handler+0x64> 2010218: 23 00 80 77 sethi %hi(0x201dc00), %l1 #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 ); 201021c: d0 04 60 38 ld [ %l1 + 0x38 ], %o0 ! 201dc38 <_Thread_Allocated_fp> 2010220: 80 a4 00 08 cmp %l0, %o0 2010224: 02 80 00 07 be 2010240 <_Thread_Handler+0x64> 2010228: 80 a2 20 00 cmp %o0, 0 !_Thread_Is_allocated_fp( executing ) ) { if ( _Thread_Allocated_fp != NULL ) 201022c: 22 80 00 05 be,a 2010240 <_Thread_Handler+0x64> 2010230: e0 24 60 38 st %l0, [ %l1 + 0x38 ] _Context_Save_fp( &_Thread_Allocated_fp->fp_context ); 2010234: 7f ff e8 45 call 200a348 <_CPU_Context_save_fp> 2010238: 90 02 21 58 add %o0, 0x158, %o0 _Thread_Allocated_fp = executing; 201023c: e0 24 60 38 st %l0, [ %l1 + 0x38 ] /* * 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 ); 2010240: 7f ff e6 ae call 2009cf8 <_User_extensions_Thread_begin> 2010244: 90 10 00 10 mov %l0, %o0 /* * At this point, the dispatch disable level BETTER be 1. */ _Thread_Enable_dispatch(); 2010248: 7f ff e2 ac call 2008cf8 <_Thread_Enable_dispatch> 201024c: a5 2c a0 18 sll %l2, 0x18, %l2 /* * _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) */ { 2010250: 80 a4 a0 00 cmp %l2, 0 2010254: 02 80 00 0c be 2010284 <_Thread_Handler+0xa8> 2010258: 01 00 00 00 nop INIT_NAME (); } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) { 201025c: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 2010260: 80 a0 60 00 cmp %g1, 0 2010264: 22 80 00 0f be,a 20102a0 <_Thread_Handler+0xc4> <== ALWAYS TAKEN 2010268: c2 04 20 9c ld [ %l0 + 0x9c ], %g1 * 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 ); 201026c: 7f ff e6 b7 call 2009d48 <_User_extensions_Thread_exitted> 2010270: 90 10 00 10 mov %l0, %o0 _Internal_error_Occurred( 2010274: 90 10 20 00 clr %o0 2010278: 92 10 20 01 mov 1, %o1 201027c: 7f ff de 7c call 2007c6c <_Internal_error_Occurred> 2010280: 94 10 20 06 mov 6, %o2 * _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) */ { INIT_NAME (); 2010284: 40 00 33 5d call 201cff8 <_init> 2010288: 01 00 00 00 nop } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) { 201028c: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 2010290: 80 a0 60 00 cmp %g1, 0 2010294: 12 bf ff f6 bne 201026c <_Thread_Handler+0x90> <== NEVER TAKEN 2010298: 01 00 00 00 nop executing->Wait.return_argument = (*(Thread_Entry_numeric) executing->Start.entry_point)( 201029c: c2 04 20 9c ld [ %l0 + 0x9c ], %g1 20102a0: 9f c0 40 00 call %g1 20102a4: d0 04 20 a8 ld [ %l0 + 0xa8 ], %o0 INIT_NAME (); } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) { executing->Wait.return_argument = 20102a8: 10 bf ff f1 b 201026c <_Thread_Handler+0x90> 20102ac: d0 24 20 28 st %o0, [ %l0 + 0x28 ] =============================================================================== 02008ddc <_Thread_Initialize>: Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { 2008ddc: 9d e3 bf a0 save %sp, -96, %sp 2008de0: 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; 2008de4: 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 ) { 2008de8: e2 00 40 00 ld [ %g1 ], %l1 /* * Zero out all the allocated memory fields */ for ( i=0 ; i <= THREAD_API_LAST ; i++ ) the_thread->API_Extensions[i] = NULL; 2008dec: c0 26 61 64 clr [ %i1 + 0x164 ] 2008df0: c0 26 61 68 clr [ %i1 + 0x168 ] extensions_area = NULL; the_thread->libc_reent = NULL; 2008df4: 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 ) { 2008df8: e0 0f a0 5f ldub [ %fp + 0x5f ], %l0 /* * 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 ); 2008dfc: 90 10 00 19 mov %i1, %o0 2008e00: 40 00 02 ca call 2009928 <_Thread_Stack_Allocate> 2008e04: 92 10 00 1b mov %i3, %o1 if ( !actual_stack_size || actual_stack_size < stack_size ) 2008e08: 80 a6 c0 08 cmp %i3, %o0 2008e0c: 18 80 00 5a bgu 2008f74 <_Thread_Initialize+0x198> 2008e10: 80 a2 20 00 cmp %o0, 0 2008e14: 02 80 00 58 be 2008f74 <_Thread_Initialize+0x198> <== NEVER TAKEN 2008e18: 80 8f 20 ff btst 0xff, %i4 Stack_Control *the_stack, void *starting_address, size_t size ) { the_stack->area = starting_address; 2008e1c: c2 06 60 cc ld [ %i1 + 0xcc ], %g1 the_stack->size = size; 2008e20: d0 26 60 c0 st %o0, [ %i1 + 0xc0 ] Stack_Control *the_stack, void *starting_address, size_t size ) { the_stack->area = starting_address; 2008e24: 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 ) { 2008e28: 82 10 20 00 clr %g1 2008e2c: 12 80 00 54 bne 2008f7c <_Thread_Initialize+0x1a0> 2008e30: a4 10 20 00 clr %l2 #endif /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 2008e34: 27 00 80 77 sethi %hi(0x201dc00), %l3 2008e38: c4 04 e0 50 ld [ %l3 + 0x50 ], %g2 ! 201dc50 <_Thread_Maximum_extensions> if ( !fp_area ) goto failed; fp_area = _Context_Fp_start( fp_area, 0 ); } the_thread->fp_context = fp_area; the_thread->Start.fp_context = fp_area; 2008e3c: c2 26 60 c8 st %g1, [ %i1 + 0xc8 ] 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; 2008e40: c2 26 61 58 st %g1, [ %i1 + 0x158 ] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 2008e44: c0 26 60 50 clr [ %i1 + 0x50 ] the_watchdog->routine = routine; 2008e48: c0 26 60 64 clr [ %i1 + 0x64 ] the_watchdog->id = id; 2008e4c: c0 26 60 68 clr [ %i1 + 0x68 ] #endif /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 2008e50: 80 a0 a0 00 cmp %g2, 0 2008e54: 12 80 00 5a bne 2008fbc <_Thread_Initialize+0x1e0> 2008e58: c0 26 60 6c clr [ %i1 + 0x6c ] (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) goto failed; } the_thread->extensions = (void **) extensions_area; 2008e5c: c0 26 61 6c clr [ %i1 + 0x16c ] 2008e60: b6 10 20 00 clr %i3 /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; 2008e64: 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 ); 2008e68: 92 10 00 1d mov %i5, %o1 /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; 2008e6c: c2 26 60 b0 st %g1, [ %i1 + 0xb0 ] the_thread->Start.budget_callout = budget_callout; 2008e70: 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 ); 2008e74: 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; 2008e78: c2 26 60 b4 st %g1, [ %i1 + 0xb4 ] case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; #endif } the_thread->Start.isr_level = isr_level; 2008e7c: c2 07 a0 68 ld [ %fp + 0x68 ], %g1 /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; 2008e80: e0 2e 60 ac stb %l0, [ %i1 + 0xac ] case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; #endif } the_thread->Start.isr_level = isr_level; 2008e84: c2 26 60 b8 st %g1, [ %i1 + 0xb8 ] the_thread->current_state = STATES_DORMANT; 2008e88: 82 10 20 01 mov 1, %g1 the_thread->Wait.queue = NULL; 2008e8c: c0 26 60 44 clr [ %i1 + 0x44 ] #endif } the_thread->Start.isr_level = isr_level; the_thread->current_state = STATES_DORMANT; 2008e90: c2 26 60 10 st %g1, [ %i1 + 0x10 ] the_thread->Wait.queue = NULL; the_thread->resource_count = 0; 2008e94: c0 26 60 1c clr [ %i1 + 0x1c ] #if defined(RTEMS_ITRON_API) the_thread->suspend_count = 0; #endif the_thread->real_priority = priority; 2008e98: fa 26 60 18 st %i5, [ %i1 + 0x18 ] the_thread->Start.initial_priority = priority; _Thread_Set_priority( the_thread, priority ); 2008e9c: 40 00 02 03 call 20096a8 <_Thread_Set_priority> 2008ea0: fa 26 60 bc st %i5, [ %i1 + 0xbc ] #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 2008ea4: c2 16 60 0a lduh [ %i1 + 0xa ], %g1 2008ea8: c4 06 20 1c ld [ %i0 + 0x1c ], %g2 2008eac: 83 28 60 02 sll %g1, 2, %g1 information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 2008eb0: e2 26 60 0c st %l1, [ %i1 + 0xc ] #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 2008eb4: 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 ); 2008eb8: c0 26 60 84 clr [ %i1 + 0x84 ] 2008ebc: 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 ); 2008ec0: 90 10 00 19 mov %i1, %o0 2008ec4: 40 00 03 c8 call 2009de4 <_User_extensions_Thread_create> 2008ec8: b0 10 20 01 mov 1, %i0 if ( extension_status ) 2008ecc: 80 8a 20 ff btst 0xff, %o0 2008ed0: 12 80 00 27 bne 2008f6c <_Thread_Initialize+0x190> 2008ed4: 01 00 00 00 nop return true; failed: if ( the_thread->libc_reent ) 2008ed8: d0 06 61 5c ld [ %i1 + 0x15c ], %o0 2008edc: 80 a2 20 00 cmp %o0, 0 2008ee0: 22 80 00 05 be,a 2008ef4 <_Thread_Initialize+0x118> 2008ee4: d0 06 61 60 ld [ %i1 + 0x160 ], %o0 _Workspace_Free( the_thread->libc_reent ); 2008ee8: 40 00 04 f5 call 200a2bc <_Workspace_Free> 2008eec: 01 00 00 00 nop for ( i=0 ; i <= THREAD_API_LAST ; i++ ) if ( the_thread->API_Extensions[i] ) 2008ef0: d0 06 61 60 ld [ %i1 + 0x160 ], %o0 2008ef4: 80 a2 20 00 cmp %o0, 0 2008ef8: 22 80 00 05 be,a 2008f0c <_Thread_Initialize+0x130> 2008efc: d0 06 61 64 ld [ %i1 + 0x164 ], %o0 _Workspace_Free( the_thread->API_Extensions[i] ); 2008f00: 40 00 04 ef call 200a2bc <_Workspace_Free> 2008f04: 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] ) 2008f08: d0 06 61 64 ld [ %i1 + 0x164 ], %o0 2008f0c: 80 a2 20 00 cmp %o0, 0 2008f10: 22 80 00 05 be,a 2008f24 <_Thread_Initialize+0x148> <== ALWAYS TAKEN 2008f14: d0 06 61 68 ld [ %i1 + 0x168 ], %o0 _Workspace_Free( the_thread->API_Extensions[i] ); 2008f18: 40 00 04 e9 call 200a2bc <_Workspace_Free> <== NOT EXECUTED 2008f1c: 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] ) 2008f20: d0 06 61 68 ld [ %i1 + 0x168 ], %o0 <== NOT EXECUTED 2008f24: 80 a2 20 00 cmp %o0, 0 2008f28: 02 80 00 05 be 2008f3c <_Thread_Initialize+0x160> <== ALWAYS TAKEN 2008f2c: 80 a6 e0 00 cmp %i3, 0 _Workspace_Free( the_thread->API_Extensions[i] ); 2008f30: 40 00 04 e3 call 200a2bc <_Workspace_Free> <== NOT EXECUTED 2008f34: 01 00 00 00 nop <== NOT EXECUTED if ( extensions_area ) 2008f38: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 2008f3c: 02 80 00 05 be 2008f50 <_Thread_Initialize+0x174> 2008f40: 80 a4 a0 00 cmp %l2, 0 (void) _Workspace_Free( extensions_area ); 2008f44: 40 00 04 de call 200a2bc <_Workspace_Free> 2008f48: 90 10 00 1b mov %i3, %o0 #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( fp_area ) 2008f4c: 80 a4 a0 00 cmp %l2, 0 2008f50: 02 80 00 05 be 2008f64 <_Thread_Initialize+0x188> 2008f54: 90 10 00 19 mov %i1, %o0 (void) _Workspace_Free( fp_area ); 2008f58: 40 00 04 d9 call 200a2bc <_Workspace_Free> 2008f5c: 90 10 00 12 mov %l2, %o0 #endif _Thread_Stack_Free( the_thread ); 2008f60: 90 10 00 19 mov %i1, %o0 2008f64: 40 00 02 8c call 2009994 <_Thread_Stack_Free> 2008f68: b0 10 20 00 clr %i0 return false; } 2008f6c: 81 c7 e0 08 ret 2008f70: 81 e8 00 00 restore /* * 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 ); if ( !actual_stack_size || actual_stack_size < stack_size ) 2008f74: 81 c7 e0 08 ret 2008f78: 91 e8 20 00 restore %g0, 0, %o0 /* * Allocate the floating point area for this thread */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( is_fp ) { fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE ); 2008f7c: 40 00 04 c7 call 200a298 <_Workspace_Allocate> 2008f80: 90 10 20 88 mov 0x88, %o0 if ( !fp_area ) 2008f84: b6 10 20 00 clr %i3 2008f88: a4 92 20 00 orcc %o0, 0, %l2 2008f8c: 02 bf ff d3 be 2008ed8 <_Thread_Initialize+0xfc> 2008f90: 82 10 00 12 mov %l2, %g1 #endif /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 2008f94: 27 00 80 77 sethi %hi(0x201dc00), %l3 2008f98: c4 04 e0 50 ld [ %l3 + 0x50 ], %g2 ! 201dc50 <_Thread_Maximum_extensions> if ( !fp_area ) goto failed; fp_area = _Context_Fp_start( fp_area, 0 ); } the_thread->fp_context = fp_area; the_thread->Start.fp_context = fp_area; 2008f9c: c2 26 60 c8 st %g1, [ %i1 + 0xc8 ] 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; 2008fa0: c2 26 61 58 st %g1, [ %i1 + 0x158 ] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 2008fa4: c0 26 60 50 clr [ %i1 + 0x50 ] the_watchdog->routine = routine; 2008fa8: c0 26 60 64 clr [ %i1 + 0x64 ] the_watchdog->id = id; 2008fac: c0 26 60 68 clr [ %i1 + 0x68 ] #endif /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 2008fb0: 80 a0 a0 00 cmp %g2, 0 2008fb4: 02 bf ff aa be 2008e5c <_Thread_Initialize+0x80> 2008fb8: c0 26 60 6c clr [ %i1 + 0x6c ] extensions_area = _Workspace_Allocate( 2008fbc: 84 00 a0 01 inc %g2 2008fc0: 40 00 04 b6 call 200a298 <_Workspace_Allocate> 2008fc4: 91 28 a0 02 sll %g2, 2, %o0 (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) 2008fc8: b6 92 20 00 orcc %o0, 0, %i3 2008fcc: 02 bf ff c3 be 2008ed8 <_Thread_Initialize+0xfc> 2008fd0: c8 04 e0 50 ld [ %l3 + 0x50 ], %g4 goto failed; } the_thread->extensions = (void **) extensions_area; 2008fd4: f6 26 61 6c st %i3, [ %i1 + 0x16c ] 2008fd8: 86 10 00 1b mov %i3, %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++ ) 2008fdc: 84 10 20 00 clr %g2 2008fe0: 10 80 00 03 b 2008fec <_Thread_Initialize+0x210> 2008fe4: 82 10 20 00 clr %g1 2008fe8: c6 06 61 6c ld [ %i1 + 0x16c ], %g3 the_thread->extensions[i] = NULL; 2008fec: 85 28 a0 02 sll %g2, 2, %g2 2008ff0: c0 20 c0 02 clr [ %g3 + %g2 ] * 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++ ) 2008ff4: 82 00 60 01 inc %g1 2008ff8: 80 a1 00 01 cmp %g4, %g1 2008ffc: 1a bf ff fb bcc 2008fe8 <_Thread_Initialize+0x20c> 2009000: 84 10 00 01 mov %g1, %g2 /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; 2009004: 10 bf ff 99 b 2008e68 <_Thread_Initialize+0x8c> 2009008: c2 07 a0 60 ld [ %fp + 0x60 ], %g1 =============================================================================== 0200e128 <_Thread_Reset_timeslice>: * ready chain * select heir */ void _Thread_Reset_timeslice( void ) { 200e128: 9d e3 bf a0 save %sp, -96, %sp ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; 200e12c: 03 00 80 77 sethi %hi(0x201dc00), %g1 200e130: e0 00 60 70 ld [ %g1 + 0x70 ], %l0 ! 201dc70 <_Thread_Executing> ready = executing->ready; _ISR_Disable( level ); 200e134: 7f ff cf dc call 20020a4 200e138: e2 04 20 8c ld [ %l0 + 0x8c ], %l1 200e13c: b0 10 00 08 mov %o0, %i0 if ( _Chain_Has_only_one_node( ready ) ) { 200e140: c4 04 40 00 ld [ %l1 ], %g2 200e144: c2 04 60 08 ld [ %l1 + 8 ], %g1 200e148: 80 a0 80 01 cmp %g2, %g1 200e14c: 02 80 00 17 be 200e1a8 <_Thread_Reset_timeslice+0x80> 200e150: 86 04 60 04 add %l1, 4, %g3 ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 200e154: c2 04 00 00 ld [ %l0 ], %g1 previous = the_node->previous; 200e158: c4 04 20 04 ld [ %l0 + 4 ], %g2 next->previous = previous; previous->next = next; 200e15c: c2 20 80 00 st %g1, [ %g2 ] Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 200e160: c6 24 00 00 st %g3, [ %l0 ] Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; 200e164: 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; 200e168: c2 04 60 08 ld [ %l1 + 8 ], %g1 the_chain->last = the_node; 200e16c: e0 24 60 08 st %l0, [ %l1 + 8 ] old_last_node->next = the_node; the_node->previous = old_last_node; 200e170: 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; 200e174: e0 20 40 00 st %l0, [ %g1 ] return; } _Chain_Extract_unprotected( &executing->Object.Node ); _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); 200e178: 7f ff cf cf call 20020b4 200e17c: 01 00 00 00 nop 200e180: 7f ff cf c9 call 20020a4 200e184: 01 00 00 00 nop if ( _Thread_Is_heir( executing ) ) 200e188: 03 00 80 77 sethi %hi(0x201dc00), %g1 200e18c: c4 00 60 40 ld [ %g1 + 0x40 ], %g2 ! 201dc40 <_Thread_Heir> 200e190: 80 a4 00 02 cmp %l0, %g2 200e194: 22 80 00 07 be,a 200e1b0 <_Thread_Reset_timeslice+0x88> <== ALWAYS TAKEN 200e198: c4 04 40 00 ld [ %l1 ], %g2 _Thread_Heir = (Thread_Control *) ready->first; _Context_Switch_necessary = true; 200e19c: 84 10 20 01 mov 1, %g2 200e1a0: 03 00 80 77 sethi %hi(0x201dc00), %g1 200e1a4: c4 28 60 80 stb %g2, [ %g1 + 0x80 ] ! 201dc80 <_Context_Switch_necessary> _ISR_Enable( level ); 200e1a8: 7f ff cf c3 call 20020b4 200e1ac: 81 e8 00 00 restore _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); if ( _Thread_Is_heir( executing ) ) _Thread_Heir = (Thread_Control *) ready->first; 200e1b0: 10 bf ff fb b 200e19c <_Thread_Reset_timeslice+0x74> 200e1b4: c4 20 60 40 st %g2, [ %g1 + 0x40 ] =============================================================================== 0200d0a0 <_Thread_Resume>: void _Thread_Resume( Thread_Control *the_thread, bool force ) { 200d0a0: 9d e3 bf a0 save %sp, -96, %sp ISR_Level level; States_Control current_state; _ISR_Disable( level ); 200d0a4: 7f ff d4 50 call 20021e4 200d0a8: a0 10 00 18 mov %i0, %l0 200d0ac: b0 10 00 08 mov %o0, %i0 _ISR_Enable( level ); return; } #endif current_state = the_thread->current_state; 200d0b0: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 if ( current_state & STATES_SUSPENDED ) { 200d0b4: 80 88 60 02 btst 2, %g1 200d0b8: 02 80 00 05 be 200d0cc <_Thread_Resume+0x2c> <== NEVER TAKEN 200d0bc: 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 ) ) { 200d0c0: 80 a0 60 00 cmp %g1, 0 200d0c4: 02 80 00 04 be 200d0d4 <_Thread_Resume+0x34> 200d0c8: c2 24 20 10 st %g1, [ %l0 + 0x10 ] _Context_Switch_necessary = true; } } } _ISR_Enable( level ); 200d0cc: 7f ff d4 4a call 20021f4 200d0d0: 81 e8 00 00 restore RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; 200d0d4: c4 04 20 90 ld [ %l0 + 0x90 ], %g2 if ( _States_Is_ready( current_state ) ) { _Priority_Add_to_bit_map( &the_thread->Priority_map ); _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node); 200d0d8: c2 04 20 8c ld [ %l0 + 0x8c ], %g1 200d0dc: c8 10 80 00 lduh [ %g2 ], %g4 200d0e0: c6 14 20 96 lduh [ %l0 + 0x96 ], %g3 200d0e4: 86 11 00 03 or %g4, %g3, %g3 200d0e8: c6 30 80 00 sth %g3, [ %g2 ] Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 200d0ec: 84 00 60 04 add %g1, 4, %g2 _Priority_Major_bit_map |= the_priority_map->ready_major; 200d0f0: c8 14 20 94 lduh [ %l0 + 0x94 ], %g4 200d0f4: c4 24 00 00 st %g2, [ %l0 ] 200d0f8: 07 00 80 86 sethi %hi(0x2021800), %g3 old_last_node = the_chain->last; 200d0fc: c4 00 60 08 ld [ %g1 + 8 ], %g2 200d100: da 10 e1 f4 lduh [ %g3 + 0x1f4 ], %o5 the_chain->last = the_node; 200d104: e0 20 60 08 st %l0, [ %g1 + 8 ] old_last_node->next = the_node; the_node->previous = old_last_node; 200d108: c4 24 20 04 st %g2, [ %l0 + 4 ] 200d10c: 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; 200d110: e0 20 80 00 st %l0, [ %g2 ] 200d114: c2 30 e1 f4 sth %g1, [ %g3 + 0x1f4 ] _ISR_Flash( level ); 200d118: 7f ff d4 37 call 20021f4 200d11c: 01 00 00 00 nop 200d120: 7f ff d4 31 call 20021e4 200d124: 01 00 00 00 nop if ( the_thread->current_priority < _Thread_Heir->current_priority ) { 200d128: 03 00 80 86 sethi %hi(0x2021800), %g1 200d12c: c6 00 61 d0 ld [ %g1 + 0x1d0 ], %g3 ! 20219d0 <_Thread_Heir> 200d130: c4 04 20 14 ld [ %l0 + 0x14 ], %g2 200d134: c6 00 e0 14 ld [ %g3 + 0x14 ], %g3 200d138: 80 a0 80 03 cmp %g2, %g3 200d13c: 1a bf ff e4 bcc 200d0cc <_Thread_Resume+0x2c> 200d140: 07 00 80 86 sethi %hi(0x2021800), %g3 _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible || 200d144: c6 00 e2 00 ld [ %g3 + 0x200 ], %g3 ! 2021a00 <_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; 200d148: e0 20 61 d0 st %l0, [ %g1 + 0x1d0 ] if ( _Thread_Executing->is_preemptible || 200d14c: c2 08 e0 75 ldub [ %g3 + 0x75 ], %g1 200d150: 80 a0 60 00 cmp %g1, 0 200d154: 32 80 00 05 bne,a 200d168 <_Thread_Resume+0xc8> 200d158: 84 10 20 01 mov 1, %g2 200d15c: 80 a0 a0 00 cmp %g2, 0 200d160: 12 bf ff db bne 200d0cc <_Thread_Resume+0x2c> <== ALWAYS TAKEN 200d164: 84 10 20 01 mov 1, %g2 the_thread->current_priority == 0 ) _Context_Switch_necessary = true; 200d168: 03 00 80 86 sethi %hi(0x2021800), %g1 200d16c: c4 28 62 10 stb %g2, [ %g1 + 0x210 ] ! 2021a10 <_Context_Switch_necessary> } } } _ISR_Enable( level ); 200d170: 7f ff d4 21 call 20021f4 200d174: 81 e8 00 00 restore =============================================================================== 02009ad8 <_Thread_Yield_processor>: * ready chain * select heir */ void _Thread_Yield_processor( void ) { 2009ad8: 9d e3 bf a0 save %sp, -96, %sp ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; 2009adc: 03 00 80 77 sethi %hi(0x201dc00), %g1 2009ae0: e0 00 60 70 ld [ %g1 + 0x70 ], %l0 ! 201dc70 <_Thread_Executing> ready = executing->ready; _ISR_Disable( level ); 2009ae4: 7f ff e1 70 call 20020a4 2009ae8: e2 04 20 8c ld [ %l0 + 0x8c ], %l1 2009aec: b0 10 00 08 mov %o0, %i0 if ( !_Chain_Has_only_one_node( ready ) ) { 2009af0: c4 04 40 00 ld [ %l1 ], %g2 2009af4: c2 04 60 08 ld [ %l1 + 8 ], %g1 2009af8: 80 a0 80 01 cmp %g2, %g1 2009afc: 02 80 00 19 be 2009b60 <_Thread_Yield_processor+0x88> 2009b00: 86 04 60 04 add %l1, 4, %g3 ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 2009b04: c2 04 00 00 ld [ %l0 ], %g1 previous = the_node->previous; 2009b08: c4 04 20 04 ld [ %l0 + 4 ], %g2 next->previous = previous; previous->next = next; 2009b0c: c2 20 80 00 st %g1, [ %g2 ] Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 2009b10: c6 24 00 00 st %g3, [ %l0 ] Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; 2009b14: 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; 2009b18: c2 04 60 08 ld [ %l1 + 8 ], %g1 the_chain->last = the_node; 2009b1c: e0 24 60 08 st %l0, [ %l1 + 8 ] old_last_node->next = the_node; the_node->previous = old_last_node; 2009b20: 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; 2009b24: e0 20 40 00 st %l0, [ %g1 ] _Chain_Extract_unprotected( &executing->Object.Node ); _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); 2009b28: 7f ff e1 63 call 20020b4 2009b2c: 01 00 00 00 nop 2009b30: 7f ff e1 5d call 20020a4 2009b34: 01 00 00 00 nop if ( _Thread_Is_heir( executing ) ) 2009b38: 03 00 80 77 sethi %hi(0x201dc00), %g1 2009b3c: c4 00 60 40 ld [ %g1 + 0x40 ], %g2 ! 201dc40 <_Thread_Heir> 2009b40: 80 a4 00 02 cmp %l0, %g2 2009b44: 22 80 00 0e be,a 2009b7c <_Thread_Yield_processor+0xa4> <== ALWAYS TAKEN 2009b48: c4 04 40 00 ld [ %l1 ], %g2 _Thread_Heir = (Thread_Control *) ready->first; _Context_Switch_necessary = true; } else if ( !_Thread_Is_heir( executing ) ) _Context_Switch_necessary = true; 2009b4c: 84 10 20 01 mov 1, %g2 2009b50: 03 00 80 77 sethi %hi(0x201dc00), %g1 2009b54: c4 28 60 80 stb %g2, [ %g1 + 0x80 ] ! 201dc80 <_Context_Switch_necessary> _ISR_Enable( level ); 2009b58: 7f ff e1 57 call 20020b4 2009b5c: 81 e8 00 00 restore if ( _Thread_Is_heir( executing ) ) _Thread_Heir = (Thread_Control *) ready->first; _Context_Switch_necessary = true; } else if ( !_Thread_Is_heir( executing ) ) 2009b60: 03 00 80 77 sethi %hi(0x201dc00), %g1 2009b64: c2 00 60 40 ld [ %g1 + 0x40 ], %g1 ! 201dc40 <_Thread_Heir> 2009b68: 80 a4 00 01 cmp %l0, %g1 2009b6c: 32 bf ff f9 bne,a 2009b50 <_Thread_Yield_processor+0x78> <== NEVER TAKEN 2009b70: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED _Context_Switch_necessary = true; _ISR_Enable( level ); 2009b74: 7f ff e1 50 call 20020b4 2009b78: 81 e8 00 00 restore _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); if ( _Thread_Is_heir( executing ) ) _Thread_Heir = (Thread_Control *) ready->first; 2009b7c: 10 bf ff f4 b 2009b4c <_Thread_Yield_processor+0x74> 2009b80: c4 20 60 40 st %g2, [ %g1 + 0x40 ] =============================================================================== 0200932c <_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 ) { 200932c: 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; 2009330: 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); 2009334: 82 06 60 3c add %i1, 0x3c, %g1 the_chain->permanent_null = NULL; 2009338: 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); 200933c: c2 26 60 38 st %g1, [ %i1 + 0x38 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 2009340: 82 06 60 38 add %i1, 0x38, %g1 2009344: c2 26 60 40 st %g1, [ %i1 + 0x40 ] 2009348: 2d 00 80 74 sethi %hi(0x201d000), %l6 header_index = _Thread_queue_Header_number( priority ); header = &the_thread_queue->Queues.Priority[ header_index ]; 200934c: 83 34 20 06 srl %l0, 6, %g1 block_state = the_thread_queue->state; if ( _Thread_queue_Is_reverse_search( priority ) ) 2009350: 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 ]; 2009354: ab 28 60 04 sll %g1, 4, %l5 2009358: ac 15 a0 f4 or %l6, 0xf4, %l6 200935c: 83 28 60 02 sll %g1, 2, %g1 block_state = the_thread_queue->state; 2009360: e8 06 20 38 ld [ %i0 + 0x38 ], %l4 _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 ]; 2009364: aa 25 40 01 sub %l5, %g1, %l5 block_state = the_thread_queue->state; if ( _Thread_queue_Is_reverse_search( priority ) ) 2009368: 12 80 00 24 bne 20093f8 <_Thread_queue_Enqueue_priority+0xcc> 200936c: aa 06 00 15 add %i0, %l5, %l5 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 2009370: ac 05 60 04 add %l5, 4, %l6 goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); 2009374: 7f ff e3 4c call 20020a4 2009378: 01 00 00 00 nop 200937c: a4 10 00 08 mov %o0, %l2 search_thread = (Thread_Control *) header->first; 2009380: c2 05 40 00 ld [ %l5 ], %g1 while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 2009384: 80 a0 40 16 cmp %g1, %l6 2009388: 02 80 00 3a be 2009470 <_Thread_queue_Enqueue_priority+0x144> 200938c: a2 10 00 01 mov %g1, %l1 search_priority = search_thread->current_priority; 2009390: e6 00 60 14 ld [ %g1 + 0x14 ], %l3 if ( priority <= search_priority ) 2009394: 80 a4 00 13 cmp %l0, %l3 2009398: 18 80 00 0b bgu 20093c4 <_Thread_queue_Enqueue_priority+0x98> 200939c: 01 00 00 00 nop } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 20093a0: 10 80 00 36 b 2009478 <_Thread_queue_Enqueue_priority+0x14c> 20093a4: c4 06 20 30 ld [ %i0 + 0x30 ], %g2 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 ) ) { 20093a8: 80 a4 40 16 cmp %l1, %l6 20093ac: 02 80 00 32 be 2009474 <_Thread_queue_Enqueue_priority+0x148> 20093b0: 82 10 00 11 mov %l1, %g1 search_priority = search_thread->current_priority; 20093b4: e6 04 60 14 ld [ %l1 + 0x14 ], %l3 if ( priority <= search_priority ) 20093b8: 80 a4 00 13 cmp %l0, %l3 20093bc: 28 80 00 2f bleu,a 2009478 <_Thread_queue_Enqueue_priority+0x14c> 20093c0: c4 06 20 30 ld [ %i0 + 0x30 ], %g2 break; search_priority = search_thread->current_priority; if ( priority <= search_priority ) break; #endif _ISR_Flash( level ); 20093c4: 7f ff e3 3c call 20020b4 20093c8: 90 10 00 12 mov %l2, %o0 20093cc: 7f ff e3 36 call 20020a4 20093d0: 01 00 00 00 nop if ( !_States_Are_set( search_thread->current_state, block_state) ) { 20093d4: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 20093d8: 80 8d 00 01 btst %l4, %g1 20093dc: 32 bf ff f3 bne,a 20093a8 <_Thread_queue_Enqueue_priority+0x7c><== ALWAYS TAKEN 20093e0: e2 04 40 00 ld [ %l1 ], %l1 _ISR_Enable( level ); 20093e4: 7f ff e3 34 call 20020b4 <== NOT EXECUTED 20093e8: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED goto restart_forward_search; 20093ec: 30 bf ff e2 b,a 2009374 <_Thread_queue_Enqueue_priority+0x48><== NOT EXECUTED if ( priority >= search_priority ) break; #endif _ISR_Flash( level ); if ( !_States_Are_set( search_thread->current_state, block_state) ) { _ISR_Enable( level ); 20093f0: 7f ff e3 31 call 20020b4 20093f4: 90 10 00 12 mov %l2, %o0 return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; _ISR_Disable( level ); 20093f8: 7f ff e3 2b call 20020a4 20093fc: e6 0d 80 00 ldub [ %l6 ], %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; 2009400: a6 04 e0 01 inc %l3 _ISR_Disable( level ); 2009404: a4 10 00 08 mov %o0, %l2 search_thread = (Thread_Control *) header->last; 2009408: c2 05 60 08 ld [ %l5 + 8 ], %g1 while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { 200940c: 80 a0 40 15 cmp %g1, %l5 2009410: 02 80 00 20 be 2009490 <_Thread_queue_Enqueue_priority+0x164> 2009414: a2 10 00 01 mov %g1, %l1 search_priority = search_thread->current_priority; 2009418: e6 00 60 14 ld [ %g1 + 0x14 ], %l3 if ( priority >= search_priority ) 200941c: 80 a4 00 13 cmp %l0, %l3 2009420: 0a 80 00 0b bcs 200944c <_Thread_queue_Enqueue_priority+0x120> 2009424: 01 00 00 00 nop } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 2009428: 10 80 00 1b b 2009494 <_Thread_queue_Enqueue_priority+0x168> 200942c: c4 06 20 30 ld [ %i0 + 0x30 ], %g2 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 ) ) { 2009430: 80 a4 40 15 cmp %l1, %l5 2009434: 02 80 00 17 be 2009490 <_Thread_queue_Enqueue_priority+0x164> 2009438: 82 10 00 11 mov %l1, %g1 search_priority = search_thread->current_priority; 200943c: e6 04 60 14 ld [ %l1 + 0x14 ], %l3 if ( priority >= search_priority ) 2009440: 80 a4 00 13 cmp %l0, %l3 2009444: 3a 80 00 14 bcc,a 2009494 <_Thread_queue_Enqueue_priority+0x168> 2009448: c4 06 20 30 ld [ %i0 + 0x30 ], %g2 break; search_priority = search_thread->current_priority; if ( priority >= search_priority ) break; #endif _ISR_Flash( level ); 200944c: 7f ff e3 1a call 20020b4 2009450: 90 10 00 12 mov %l2, %o0 2009454: 7f ff e3 14 call 20020a4 2009458: 01 00 00 00 nop if ( !_States_Are_set( search_thread->current_state, block_state) ) { 200945c: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 2009460: 80 8d 00 01 btst %l4, %g1 2009464: 32 bf ff f3 bne,a 2009430 <_Thread_queue_Enqueue_priority+0x104> 2009468: e2 04 60 04 ld [ %l1 + 4 ], %l1 200946c: 30 bf ff e1 b,a 20093f0 <_Thread_queue_Enqueue_priority+0xc4> 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 ) ) { 2009470: a6 10 3f ff mov -1, %l3 } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 2009474: c4 06 20 30 ld [ %i0 + 0x30 ], %g2 2009478: 80 a0 a0 01 cmp %g2, 1 200947c: 02 80 00 17 be 20094d8 <_Thread_queue_Enqueue_priority+0x1ac> 2009480: 80 a4 00 13 cmp %l0, %l3 * 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; 2009484: e4 26 80 00 st %l2, [ %i2 ] return the_thread_queue->sync_state; } 2009488: 81 c7 e0 08 ret 200948c: 91 e8 00 02 restore %g0, %g2, %o0 } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 2009490: c4 06 20 30 ld [ %i0 + 0x30 ], %g2 2009494: 80 a0 a0 01 cmp %g2, 1 2009498: 32 bf ff fc bne,a 2009488 <_Thread_queue_Enqueue_priority+0x15c> 200949c: e4 26 80 00 st %l2, [ %i2 ] THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( priority == search_priority ) 20094a0: 80 a4 00 13 cmp %l0, %l3 20094a4: 02 80 00 1a be 200950c <_Thread_queue_Enqueue_priority+0x1e0> 20094a8: c0 26 20 30 clr [ %i0 + 0x30 ] goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; 20094ac: c4 00 40 00 ld [ %g1 ], %g2 the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; 20094b0: c2 26 60 04 st %g1, [ %i1 + 4 ] search_node = (Chain_Node *) search_thread; next_node = search_node->next; the_node = (Chain_Node *) the_thread; the_node->next = next_node; 20094b4: c4 26 40 00 st %g2, [ %i1 ] the_node->previous = search_node; search_node->next = the_node; next_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 20094b8: 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; 20094bc: f2 20 40 00 st %i1, [ %g1 ] next_node->previous = the_node; 20094c0: f2 20 a0 04 st %i1, [ %g2 + 4 ] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 20094c4: b0 10 20 01 mov 1, %i0 20094c8: 7f ff e2 fb call 20020b4 20094cc: 90 10 00 12 mov %l2, %o0 return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 20094d0: 81 c7 e0 08 ret 20094d4: 81 e8 00 00 restore THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( priority == search_priority ) 20094d8: 02 80 00 0d be 200950c <_Thread_queue_Enqueue_priority+0x1e0> 20094dc: c0 26 20 30 clr [ %i0 + 0x30 ] goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; 20094e0: c4 00 60 04 ld [ %g1 + 4 ], %g2 the_node = (Chain_Node *) the_thread; the_node->next = search_node; 20094e4: c2 26 40 00 st %g1, [ %i1 ] the_node->previous = previous_node; 20094e8: c4 26 60 04 st %g2, [ %i1 + 4 ] previous_node->next = the_node; search_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 20094ec: 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; 20094f0: f2 20 80 00 st %i1, [ %g2 ] search_node->previous = the_node; 20094f4: f2 20 60 04 st %i1, [ %g1 + 4 ] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 20094f8: b0 10 20 01 mov 1, %i0 20094fc: 7f ff e2 ee call 20020b4 2009500: 90 10 00 12 mov %l2, %o0 return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 2009504: 81 c7 e0 08 ret 2009508: 81 e8 00 00 restore 200950c: 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; 2009510: c2 04 60 04 ld [ %l1 + 4 ], %g1 the_node = (Chain_Node *) the_thread; the_node->next = search_node; 2009514: e2 26 40 00 st %l1, [ %i1 ] the_node->previous = previous_node; 2009518: 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; 200951c: 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; 2009520: f2 20 40 00 st %i1, [ %g1 ] search_node->previous = the_node; 2009524: f2 24 60 04 st %i1, [ %l1 + 4 ] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 2009528: b0 10 20 01 mov 1, %i0 200952c: 7f ff e2 e2 call 20020b4 2009530: 90 10 00 12 mov %l2, %o0 return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 2009534: 81 c7 e0 08 ret 2009538: 81 e8 00 00 restore =============================================================================== 020095e8 <_Thread_queue_Requeue>: void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { 20095e8: 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 ) 20095ec: 80 a6 20 00 cmp %i0, 0 20095f0: 02 80 00 13 be 200963c <_Thread_queue_Requeue+0x54> <== NEVER TAKEN 20095f4: 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 ) { 20095f8: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 20095fc: 80 a4 60 01 cmp %l1, 1 2009600: 02 80 00 04 be 2009610 <_Thread_queue_Requeue+0x28> <== ALWAYS TAKEN 2009604: 01 00 00 00 nop 2009608: 81 c7 e0 08 ret <== NOT EXECUTED 200960c: 81 e8 00 00 restore <== NOT EXECUTED Thread_queue_Control *tq = the_thread_queue; ISR_Level level; ISR_Level level_ignored; _ISR_Disable( level ); 2009610: 7f ff e2 a5 call 20020a4 2009614: 01 00 00 00 nop 2009618: a0 10 00 08 mov %o0, %l0 if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 200961c: c4 06 60 10 ld [ %i1 + 0x10 ], %g2 2009620: 03 00 00 ef sethi %hi(0x3bc00), %g1 2009624: 82 10 62 e0 or %g1, 0x2e0, %g1 ! 3bee0 2009628: 80 88 80 01 btst %g2, %g1 200962c: 12 80 00 06 bne 2009644 <_Thread_queue_Requeue+0x5c> <== ALWAYS TAKEN 2009630: 90 10 00 18 mov %i0, %o0 _Thread_queue_Enter_critical_section( tq ); _Thread_queue_Extract_priority_helper( tq, the_thread, true ); (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored ); } _ISR_Enable( level ); 2009634: 7f ff e2 a0 call 20020b4 2009638: 90 10 00 10 mov %l0, %o0 200963c: 81 c7 e0 08 ret 2009640: 81 e8 00 00 restore ISR_Level level_ignored; _ISR_Disable( level ); if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { _Thread_queue_Enter_critical_section( tq ); _Thread_queue_Extract_priority_helper( tq, the_thread, true ); 2009644: 92 10 00 19 mov %i1, %o1 2009648: e2 26 20 30 st %l1, [ %i0 + 0x30 ] 200964c: 40 00 12 17 call 200dea8 <_Thread_queue_Extract_priority_helper> 2009650: 94 10 20 01 mov 1, %o2 (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored ); 2009654: 90 10 00 18 mov %i0, %o0 2009658: 92 10 00 19 mov %i1, %o1 200965c: 7f ff ff 34 call 200932c <_Thread_queue_Enqueue_priority> 2009660: 94 07 bf fc add %fp, -4, %o2 2009664: 30 bf ff f4 b,a 2009634 <_Thread_queue_Requeue+0x4c> =============================================================================== 02009668 <_Thread_queue_Timeout>: void _Thread_queue_Timeout( Objects_Id id, void *ignored __attribute__((unused)) ) { 2009668: 9d e3 bf 98 save %sp, -104, %sp Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 200966c: 90 10 00 18 mov %i0, %o0 2009670: 7f ff fd b0 call 2008d30 <_Thread_Get> 2009674: 92 07 bf fc add %fp, -4, %o1 switch ( location ) { 2009678: c2 07 bf fc ld [ %fp + -4 ], %g1 200967c: 80 a0 60 00 cmp %g1, 0 2009680: 12 80 00 08 bne 20096a0 <_Thread_queue_Timeout+0x38> <== NEVER TAKEN 2009684: 01 00 00 00 nop #if defined(RTEMS_MULTIPROCESSING) case OBJECTS_REMOTE: /* impossible */ #endif break; case OBJECTS_LOCAL: _Thread_queue_Process_timeout( the_thread ); 2009688: 40 00 12 41 call 200df8c <_Thread_queue_Process_timeout> 200968c: 01 00 00 00 nop */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 2009690: 03 00 80 76 sethi %hi(0x201d800), %g1 2009694: c4 00 63 b0 ld [ %g1 + 0x3b0 ], %g2 ! 201dbb0 <_Thread_Dispatch_disable_level> 2009698: 84 00 bf ff add %g2, -1, %g2 200969c: c4 20 63 b0 st %g2, [ %g1 + 0x3b0 ] 20096a0: 81 c7 e0 08 ret 20096a4: 81 e8 00 00 restore =============================================================================== 020012e0 <_Timer_Manager_initialization>: #include #include void _Timer_Manager_initialization(void) { } 20012e0: 81 c3 e0 08 retl =============================================================================== 02016f7c <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { 2016f7c: 9d e3 bf 88 save %sp, -120, %sp 2016f80: 2d 00 80 fd sethi %hi(0x203f400), %l6 2016f84: ba 07 bf f4 add %fp, -12, %i5 2016f88: a8 07 bf f8 add %fp, -8, %l4 2016f8c: a4 07 bf e8 add %fp, -24, %l2 2016f90: ae 07 bf ec add %fp, -20, %l7 2016f94: 2b 00 80 fd sethi %hi(0x203f400), %l5 2016f98: 39 00 80 fc sethi %hi(0x203f000), %i4 RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 2016f9c: c0 27 bf f8 clr [ %fp + -8 ] 2016fa0: c0 27 bf ec clr [ %fp + -20 ] the_chain->last = _Chain_Head(the_chain); 2016fa4: fa 27 bf fc st %i5, [ %fp + -4 ] */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 2016fa8: e8 27 bf f4 st %l4, [ %fp + -12 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 2016fac: e4 27 bf f0 st %l2, [ %fp + -16 ] */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 2016fb0: ee 27 bf e8 st %l7, [ %fp + -24 ] 2016fb4: ac 15 a0 d4 or %l6, 0xd4, %l6 2016fb8: aa 15 60 14 or %l5, 0x14, %l5 2016fbc: b8 17 23 80 or %i4, 0x380, %i4 */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 2016fc0: a2 06 20 30 add %i0, 0x30, %l1 /* * 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 ); 2016fc4: a6 06 20 68 add %i0, 0x68, %l3 static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); 2016fc8: b2 06 20 08 add %i0, 8, %i1 static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); 2016fcc: b4 06 20 40 add %i0, 0x40, %i2 _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; 2016fd0: b6 10 20 01 mov 1, %i3 { /* * 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; 2016fd4: fa 26 20 78 st %i5, [ %i0 + 0x78 ] static void _Timer_server_Process_interval_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot; 2016fd8: c2 05 80 00 ld [ %l6 ], %g1 /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; 2016fdc: d2 06 20 3c ld [ %i0 + 0x3c ], %o1 watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 2016fe0: 90 10 00 11 mov %l1, %o0 2016fe4: 92 20 40 09 sub %g1, %o1, %o1 /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; 2016fe8: c2 26 20 3c st %g1, [ %i0 + 0x3c ] _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 2016fec: 40 00 12 22 call 201b874 <_Watchdog_Adjust_to_chain> 2016ff0: 94 10 00 12 mov %l2, %o2 Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); Watchdog_Interval last_snapshot = watchdogs->last_snapshot; 2016ff4: d2 06 20 74 ld [ %i0 + 0x74 ], %o1 static void _Timer_server_Process_tod_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); 2016ff8: e0 05 40 00 ld [ %l5 ], %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 ) { 2016ffc: 80 a4 00 09 cmp %l0, %o1 2017000: 38 80 00 2f bgu,a 20170bc <_Timer_server_Body+0x140> 2017004: 92 24 00 09 sub %l0, %o1, %o1 * TOD has been set forward. */ delta = snapshot - last_snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); } else if ( snapshot < last_snapshot ) { 2017008: 80 a4 00 09 cmp %l0, %o1 201700c: 0a 80 00 30 bcs 20170cc <_Timer_server_Body+0x150> 2017010: 94 22 40 10 sub %o1, %l0, %o2 */ delta = last_snapshot - snapshot; _Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta ); } watchdogs->last_snapshot = snapshot; 2017014: 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 ); 2017018: d0 06 20 78 ld [ %i0 + 0x78 ], %o0 201701c: 40 00 02 94 call 2017a6c <_Chain_Get> 2017020: 01 00 00 00 nop if ( timer == NULL ) { 2017024: 80 a2 20 00 cmp %o0, 0 2017028: 02 80 00 10 be 2017068 <_Timer_server_Body+0xec> 201702c: 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 ) { 2017030: c2 02 20 38 ld [ %o0 + 0x38 ], %g1 2017034: 80 a0 60 01 cmp %g1, 1 2017038: 02 80 00 29 be 20170dc <_Timer_server_Body+0x160> 201703c: 80 a0 60 03 cmp %g1, 3 _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { 2017040: 12 bf ff f6 bne 2017018 <_Timer_server_Body+0x9c> <== NEVER TAKEN 2017044: 92 02 20 10 add %o0, 0x10, %o1 _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); 2017048: 40 00 12 41 call 201b94c <_Watchdog_Insert> 201704c: 90 10 00 13 mov %l3, %o0 } static void _Timer_server_Process_insertions( Timer_server_Control *ts ) { while ( true ) { Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain ); 2017050: d0 06 20 78 ld [ %i0 + 0x78 ], %o0 2017054: 40 00 02 86 call 2017a6c <_Chain_Get> 2017058: 01 00 00 00 nop if ( timer == NULL ) { 201705c: 80 a2 20 00 cmp %o0, 0 2017060: 32 bf ff f5 bne,a 2017034 <_Timer_server_Body+0xb8> <== NEVER TAKEN 2017064: c2 02 20 38 ld [ %o0 + 0x38 ], %g1 <== NOT EXECUTED * of zero it will be processed in the next iteration of the timer server * body loop. */ _Timer_server_Process_insertions( ts ); _ISR_Disable( level ); 2017068: 7f ff e0 f4 call 200f438 201706c: 01 00 00 00 nop if ( _Chain_Is_empty( insert_chain ) ) { 2017070: c2 07 bf f4 ld [ %fp + -12 ], %g1 2017074: 80 a5 00 01 cmp %l4, %g1 2017078: 02 80 00 1d be 20170ec <_Timer_server_Body+0x170> <== ALWAYS TAKEN 201707c: 01 00 00 00 nop ts->insert_chain = NULL; _ISR_Enable( level ); break; } else { _ISR_Enable( level ); 2017080: 7f ff e0 f2 call 200f448 <== NOT EXECUTED 2017084: 01 00 00 00 nop <== NOT EXECUTED static void _Timer_server_Process_interval_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot; 2017088: c2 05 80 00 ld [ %l6 ], %g1 <== NOT EXECUTED /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; 201708c: d2 06 20 3c ld [ %i0 + 0x3c ], %o1 <== NOT EXECUTED watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 2017090: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2017094: 92 20 40 09 sub %g1, %o1, %o1 <== NOT EXECUTED /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; 2017098: c2 26 20 3c st %g1, [ %i0 + 0x3c ] <== NOT EXECUTED _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 201709c: 40 00 11 f6 call 201b874 <_Watchdog_Adjust_to_chain> <== NOT EXECUTED 20170a0: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); Watchdog_Interval last_snapshot = watchdogs->last_snapshot; 20170a4: d2 06 20 74 ld [ %i0 + 0x74 ], %o1 <== NOT EXECUTED static void _Timer_server_Process_tod_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); 20170a8: e0 05 40 00 ld [ %l5 ], %l0 <== NOT EXECUTED /* * 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 ) { 20170ac: 80 a4 00 09 cmp %l0, %o1 <== NOT EXECUTED 20170b0: 08 bf ff d7 bleu 201700c <_Timer_server_Body+0x90> <== NOT EXECUTED 20170b4: 01 00 00 00 nop <== NOT EXECUTED /* * 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 ); 20170b8: 92 24 00 09 sub %l0, %o1, %o1 <== NOT EXECUTED 20170bc: 90 10 00 13 mov %l3, %o0 20170c0: 40 00 11 ed call 201b874 <_Watchdog_Adjust_to_chain> 20170c4: 94 10 00 12 mov %l2, %o2 20170c8: 30 bf ff d3 b,a 2017014 <_Timer_server_Body+0x98> /* * 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 ); 20170cc: 90 10 00 13 mov %l3, %o0 20170d0: 40 00 11 b9 call 201b7b4 <_Watchdog_Adjust> 20170d4: 92 10 20 01 mov 1, %o1 20170d8: 30 bf ff cf b,a 2017014 <_Timer_server_Body+0x98> Timer_server_Control *ts, Timer_Control *timer ) { if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); 20170dc: 92 02 20 10 add %o0, 0x10, %o1 20170e0: 40 00 12 1b call 201b94c <_Watchdog_Insert> 20170e4: 90 10 00 11 mov %l1, %o0 20170e8: 30 bf ff cc b,a 2017018 <_Timer_server_Body+0x9c> */ _Timer_server_Process_insertions( ts ); _ISR_Disable( level ); if ( _Chain_Is_empty( insert_chain ) ) { ts->insert_chain = NULL; 20170ec: c0 26 20 78 clr [ %i0 + 0x78 ] _ISR_Enable( level ); 20170f0: 7f ff e0 d6 call 200f448 20170f4: 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 ) ) { 20170f8: c2 07 bf e8 ld [ %fp + -24 ], %g1 20170fc: 80 a5 c0 01 cmp %l7, %g1 2017100: 12 80 00 0c bne 2017130 <_Timer_server_Body+0x1b4> 2017104: 01 00 00 00 nop 2017108: 30 80 00 13 b,a 2017154 <_Timer_server_Body+0x1d8> * service routine may remove a watchdog from the chain. */ _ISR_Disable( level ); watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain ); if ( watchdog != NULL ) { watchdog->state = WATCHDOG_INACTIVE; 201710c: c0 24 20 08 clr [ %l0 + 8 ] Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; the_chain->first = new_first; 2017110: c2 27 bf e8 st %g1, [ %fp + -24 ] new_first->previous = _Chain_Head(the_chain); 2017114: e4 20 60 04 st %l2, [ %g1 + 4 ] _ISR_Enable( level ); 2017118: 7f ff e0 cc call 200f448 201711c: 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 ); 2017120: d2 04 20 24 ld [ %l0 + 0x24 ], %o1 2017124: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 2017128: 9f c0 40 00 call %g1 201712c: d0 04 20 20 ld [ %l0 + 0x20 ], %o0 /* * It is essential that interrupts are disable here since an interrupt * service routine may remove a watchdog from the chain. */ _ISR_Disable( level ); 2017130: 7f ff e0 c2 call 200f438 2017134: 01 00 00 00 nop */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 2017138: 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)) 201713c: 80 a5 c0 10 cmp %l7, %l0 2017140: 32 bf ff f3 bne,a 201710c <_Timer_server_Body+0x190> 2017144: c2 04 00 00 ld [ %l0 ], %g1 watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain ); if ( watchdog != NULL ) { watchdog->state = WATCHDOG_INACTIVE; _ISR_Enable( level ); } else { _ISR_Enable( level ); 2017148: 7f ff e0 c0 call 200f448 201714c: 01 00 00 00 nop 2017150: 30 bf ff a1 b,a 2016fd4 <_Timer_server_Body+0x58> * the active flag of the timer server is true. */ (*watchdog->routine)( watchdog->id, watchdog->user_data ); } } else { ts->active = false; 2017154: c0 2e 20 7c clrb [ %i0 + 0x7c ] 2017158: c2 07 00 00 ld [ %i4 ], %g1 201715c: 82 00 60 01 inc %g1 2017160: c2 27 00 00 st %g1, [ %i4 ] /* * Block until there is something to do. */ _Thread_Disable_dispatch(); _Thread_Set_state( ts->thread, STATES_DELAYING ); 2017164: d0 06 00 00 ld [ %i0 ], %o0 2017168: 40 00 0e ed call 201ad1c <_Thread_Set_state> 201716c: 92 10 20 08 mov 8, %o1 _Timer_server_Reset_interval_system_watchdog( ts ); 2017170: 7f ff ff 59 call 2016ed4 <_Timer_server_Reset_interval_system_watchdog> 2017174: 90 10 00 18 mov %i0, %o0 _Timer_server_Reset_tod_system_watchdog( ts ); 2017178: 7f ff ff 6c call 2016f28 <_Timer_server_Reset_tod_system_watchdog> 201717c: 90 10 00 18 mov %i0, %o0 _Thread_Enable_dispatch(); 2017180: 40 00 0b f1 call 201a144 <_Thread_Enable_dispatch> 2017184: 01 00 00 00 nop static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); 2017188: 90 10 00 19 mov %i1, %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; 201718c: f6 2e 20 7c stb %i3, [ %i0 + 0x7c ] static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); 2017190: 40 00 12 58 call 201baf0 <_Watchdog_Remove> 2017194: 01 00 00 00 nop static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); 2017198: 40 00 12 56 call 201baf0 <_Watchdog_Remove> 201719c: 90 10 00 1a mov %i2, %o0 20171a0: 30 bf ff 8d b,a 2016fd4 <_Timer_server_Body+0x58> =============================================================================== 02009b84 <_Timespec_Add_to>: uint32_t _Timespec_Add_to( struct timespec *time, const struct timespec *add ) { 2009b84: 9d e3 bf a0 save %sp, -96, %sp 2009b88: 82 10 00 18 mov %i0, %g1 uint32_t seconds = add->tv_sec; /* Add the basics */ time->tv_sec += add->tv_sec; time->tv_nsec += add->tv_nsec; 2009b8c: c8 06 60 04 ld [ %i1 + 4 ], %g4 uint32_t _Timespec_Add_to( struct timespec *time, const struct timespec *add ) { uint32_t seconds = add->tv_sec; 2009b90: f0 06 40 00 ld [ %i1 ], %i0 /* Add the basics */ time->tv_sec += add->tv_sec; 2009b94: c6 00 40 00 ld [ %g1 ], %g3 time->tv_nsec += add->tv_nsec; 2009b98: c4 00 60 04 ld [ %g1 + 4 ], %g2 ) { uint32_t seconds = add->tv_sec; /* Add the basics */ time->tv_sec += add->tv_sec; 2009b9c: 86 00 c0 18 add %g3, %i0, %g3 time->tv_nsec += add->tv_nsec; 2009ba0: 84 01 00 02 add %g4, %g2, %g2 ) { uint32_t seconds = add->tv_sec; /* Add the basics */ time->tv_sec += add->tv_sec; 2009ba4: c6 20 40 00 st %g3, [ %g1 ] time->tv_nsec += add->tv_nsec; /* Now adjust it so nanoseconds is in range */ while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { 2009ba8: 1b 0e e6 b2 sethi %hi(0x3b9ac800), %o5 2009bac: 9a 13 61 ff or %o5, 0x1ff, %o5 ! 3b9ac9ff 2009bb0: 80 a0 80 0d cmp %g2, %o5 2009bb4: 08 80 00 0b bleu 2009be0 <_Timespec_Add_to+0x5c> 2009bb8: c4 20 60 04 st %g2, [ %g1 + 4 ] time->tv_nsec -= TOD_NANOSECONDS_PER_SECOND; 2009bbc: 09 31 19 4d sethi %hi(0xc4653400), %g4 2009bc0: 88 11 22 00 or %g4, 0x200, %g4 ! c4653600 2009bc4: 84 00 80 04 add %g2, %g4, %g2 * * This routines adds two timespecs. The second argument is added * to the first. */ uint32_t _Timespec_Add_to( 2009bc8: 86 00 e0 01 inc %g3 /* Add the basics */ time->tv_sec += add->tv_sec; time->tv_nsec += add->tv_nsec; /* Now adjust it so nanoseconds is in range */ while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { 2009bcc: 80 a0 80 0d cmp %g2, %o5 2009bd0: 18 bf ff fd bgu 2009bc4 <_Timespec_Add_to+0x40> <== NEVER TAKEN 2009bd4: b0 06 20 01 inc %i0 2009bd8: c6 20 40 00 st %g3, [ %g1 ] 2009bdc: c4 20 60 04 st %g2, [ %g1 + 4 ] time->tv_sec++; seconds++; } return seconds; } 2009be0: 81 c7 e0 08 ret 2009be4: 81 e8 00 00 restore =============================================================================== 02046100 <_Timespec_Greater_than>: bool _Timespec_Greater_than( const struct timespec *lhs, const struct timespec *rhs ) { if ( lhs->tv_sec > rhs->tv_sec ) 2046100: c6 02 00 00 ld [ %o0 ], %g3 2046104: c4 02 40 00 ld [ %o1 ], %g2 bool _Timespec_Greater_than( const struct timespec *lhs, const struct timespec *rhs ) { 2046108: 82 10 00 08 mov %o0, %g1 if ( lhs->tv_sec > rhs->tv_sec ) 204610c: 80 a0 c0 02 cmp %g3, %g2 2046110: 14 80 00 0a bg 2046138 <_Timespec_Greater_than+0x38> 2046114: 90 10 20 01 mov 1, %o0 return true; if ( lhs->tv_sec < rhs->tv_sec ) 2046118: 80 a0 c0 02 cmp %g3, %g2 204611c: 06 80 00 07 bl 2046138 <_Timespec_Greater_than+0x38> <== NEVER TAKEN 2046120: 90 10 20 00 clr %o0 #include #include #include bool _Timespec_Greater_than( 2046124: c4 00 60 04 ld [ %g1 + 4 ], %g2 2046128: c2 02 60 04 ld [ %o1 + 4 ], %g1 204612c: 80 a0 80 01 cmp %g2, %g1 2046130: 04 80 00 04 ble 2046140 <_Timespec_Greater_than+0x40> 2046134: 90 10 20 01 mov 1, %o0 /* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec > rhs->tv_nsec ) return true; return false; } 2046138: 81 c3 e0 08 retl 204613c: 01 00 00 00 nop 2046140: 81 c3 e0 08 retl 2046144: 90 10 20 00 clr %o0 ! 0 =============================================================================== 02009d94 <_User_extensions_Fatal>: void _User_extensions_Fatal ( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) { 2009d94: 9d e3 bf a0 save %sp, -96, %sp Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; 2009d98: 23 00 80 77 sethi %hi(0x201dc00), %l1 2009d9c: a2 14 61 e8 or %l1, 0x1e8, %l1 ! 201dde8 <_User_extensions_List> 2009da0: e0 04 60 08 ld [ %l1 + 8 ], %l0 2009da4: 80 a4 00 11 cmp %l0, %l1 2009da8: 02 80 00 0d be 2009ddc <_User_extensions_Fatal+0x48> <== NEVER TAKEN 2009dac: b2 0e 60 ff and %i1, 0xff, %i1 !_Chain_Is_head( &_User_extensions_List, the_node ) ; the_node = the_node->previous ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.fatal != NULL ) 2009db0: c2 04 20 30 ld [ %l0 + 0x30 ], %g1 2009db4: 80 a0 60 00 cmp %g1, 0 2009db8: 02 80 00 05 be 2009dcc <_User_extensions_Fatal+0x38> 2009dbc: 90 10 00 18 mov %i0, %o0 (*the_extension->Callouts.fatal)( the_source, is_internal, the_error ); 2009dc0: 92 10 00 19 mov %i1, %o1 2009dc4: 9f c0 40 00 call %g1 2009dc8: 94 10 00 1a mov %i2, %o2 Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; !_Chain_Is_head( &_User_extensions_List, the_node ) ; the_node = the_node->previous ) { 2009dcc: e0 04 20 04 ld [ %l0 + 4 ], %l0 ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; 2009dd0: 80 a4 00 11 cmp %l0, %l1 2009dd4: 32 bf ff f8 bne,a 2009db4 <_User_extensions_Fatal+0x20> 2009dd8: c2 04 20 30 ld [ %l0 + 0x30 ], %g1 2009ddc: 81 c7 e0 08 ret 2009de0: 81 e8 00 00 restore =============================================================================== 02009c40 <_User_extensions_Handler_initialization>: #include #include #include void _User_extensions_Handler_initialization(void) { 2009c40: 9d e3 bf a0 save %sp, -96, %sp User_extensions_Control *extension; uint32_t i; uint32_t number_of_extensions; User_extensions_Table *initial_extensions; number_of_extensions = Configuration.number_of_initial_extensions; 2009c44: 07 00 80 74 sethi %hi(0x201d000), %g3 2009c48: 86 10 e0 f8 or %g3, 0xf8, %g3 ! 201d0f8 initial_extensions = Configuration.User_extension_table; 2009c4c: e6 00 e0 3c ld [ %g3 + 0x3c ], %l3 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 2009c50: 1b 00 80 77 sethi %hi(0x201dc00), %o5 2009c54: 09 00 80 76 sethi %hi(0x201d800), %g4 2009c58: 84 13 61 e8 or %o5, 0x1e8, %g2 2009c5c: 82 11 23 b4 or %g4, 0x3b4, %g1 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 2009c60: c4 20 a0 08 st %g2, [ %g2 + 8 ] RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 2009c64: c0 20 a0 04 clr [ %g2 + 4 ] the_chain->last = _Chain_Head(the_chain); 2009c68: c2 20 60 08 st %g1, [ %g1 + 8 ] RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 2009c6c: c0 20 60 04 clr [ %g1 + 4 ] */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 2009c70: 84 00 a0 04 add %g2, 4, %g2 2009c74: 82 00 60 04 add %g1, 4, %g1 2009c78: c4 23 61 e8 st %g2, [ %o5 + 0x1e8 ] 2009c7c: c2 21 23 b4 st %g1, [ %g4 + 0x3b4 ] _Chain_Initialize_empty( &_User_extensions_List ); _Chain_Initialize_empty( &_User_extensions_Switches_list ); if ( initial_extensions ) { 2009c80: 80 a4 e0 00 cmp %l3, 0 2009c84: 02 80 00 1b be 2009cf0 <_User_extensions_Handler_initialization+0xb0> 2009c88: e4 00 e0 38 ld [ %g3 + 0x38 ], %l2 extension = (User_extensions_Control *) _Workspace_Allocate_or_fatal_error( number_of_extensions * sizeof( User_extensions_Control ) 2009c8c: 83 2c a0 02 sll %l2, 2, %g1 2009c90: a3 2c a0 04 sll %l2, 4, %l1 2009c94: a2 24 40 01 sub %l1, %g1, %l1 2009c98: a2 04 40 12 add %l1, %l2, %l1 2009c9c: a3 2c 60 02 sll %l1, 2, %l1 _Chain_Initialize_empty( &_User_extensions_List ); _Chain_Initialize_empty( &_User_extensions_Switches_list ); if ( initial_extensions ) { extension = (User_extensions_Control *) 2009ca0: 40 00 01 6f call 200a25c <_Workspace_Allocate_or_fatal_error> 2009ca4: 90 10 00 11 mov %l1, %o0 _Workspace_Allocate_or_fatal_error( number_of_extensions * sizeof( User_extensions_Control ) ); memset ( 2009ca8: 94 10 00 11 mov %l1, %o2 _Chain_Initialize_empty( &_User_extensions_List ); _Chain_Initialize_empty( &_User_extensions_Switches_list ); if ( initial_extensions ) { extension = (User_extensions_Control *) 2009cac: a0 10 00 08 mov %o0, %l0 _Workspace_Allocate_or_fatal_error( number_of_extensions * sizeof( User_extensions_Control ) ); memset ( 2009cb0: 40 00 1c 63 call 2010e3c 2009cb4: 92 10 20 00 clr %o1 extension, 0, number_of_extensions * sizeof( User_extensions_Control ) ); for ( i = 0 ; i < number_of_extensions ; i++ ) { 2009cb8: 80 a4 a0 00 cmp %l2, 0 2009cbc: 02 80 00 0d be 2009cf0 <_User_extensions_Handler_initialization+0xb0><== NEVER TAKEN 2009cc0: a2 10 20 00 clr %l1 RTEMS_INLINE_ROUTINE void _User_extensions_Add_set_with_table( User_extensions_Control *extension, const User_extensions_Table *extension_table ) { extension->Callouts = *extension_table; 2009cc4: 93 2c 60 05 sll %l1, 5, %o1 2009cc8: 94 10 20 20 mov 0x20, %o2 2009ccc: 92 04 c0 09 add %l3, %o1, %o1 2009cd0: 40 00 1c 1c call 2010d40 2009cd4: 90 04 20 14 add %l0, 0x14, %o0 _User_extensions_Add_set( extension ); 2009cd8: 40 00 11 38 call 200e1b8 <_User_extensions_Add_set> 2009cdc: 90 10 00 10 mov %l0, %o0 2009ce0: a2 04 60 01 inc %l1 2009ce4: 80 a4 80 11 cmp %l2, %l1 2009ce8: 18 bf ff f7 bgu 2009cc4 <_User_extensions_Handler_initialization+0x84> 2009cec: a0 04 20 34 add %l0, 0x34, %l0 2009cf0: 81 c7 e0 08 ret 2009cf4: 81 e8 00 00 restore =============================================================================== 02009cf8 <_User_extensions_Thread_begin>: #include void _User_extensions_Thread_begin ( Thread_Control *executing ) { 2009cf8: 9d e3 bf a0 save %sp, -96, %sp Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; 2009cfc: 23 00 80 77 sethi %hi(0x201dc00), %l1 2009d00: e0 04 61 e8 ld [ %l1 + 0x1e8 ], %l0 ! 201dde8 <_User_extensions_List> 2009d04: a2 14 61 e8 or %l1, 0x1e8, %l1 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 2009d08: a2 04 60 04 add %l1, 4, %l1 2009d0c: 80 a4 00 11 cmp %l0, %l1 2009d10: 02 80 00 0c be 2009d40 <_User_extensions_Thread_begin+0x48><== NEVER TAKEN 2009d14: 01 00 00 00 nop !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_begin != NULL ) 2009d18: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 2009d1c: 80 a0 60 00 cmp %g1, 0 2009d20: 02 80 00 04 be 2009d30 <_User_extensions_Thread_begin+0x38> 2009d24: 90 10 00 18 mov %i0, %o0 (*the_extension->Callouts.thread_begin)( executing ); 2009d28: 9f c0 40 00 call %g1 2009d2c: 01 00 00 00 nop Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { 2009d30: e0 04 00 00 ld [ %l0 ], %l0 ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; 2009d34: 80 a4 00 11 cmp %l0, %l1 2009d38: 32 bf ff f9 bne,a 2009d1c <_User_extensions_Thread_begin+0x24> 2009d3c: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 2009d40: 81 c7 e0 08 ret 2009d44: 81 e8 00 00 restore =============================================================================== 02009de4 <_User_extensions_Thread_create>: #include bool _User_extensions_Thread_create ( Thread_Control *the_thread ) { 2009de4: 9d e3 bf a0 save %sp, -96, %sp Chain_Node *the_node; User_extensions_Control *the_extension; bool status; for ( the_node = _User_extensions_List.first ; 2009de8: 23 00 80 77 sethi %hi(0x201dc00), %l1 2009dec: e0 04 61 e8 ld [ %l1 + 0x1e8 ], %l0 ! 201dde8 <_User_extensions_List> 2009df0: a2 14 61 e8 or %l1, 0x1e8, %l1 2009df4: a2 04 60 04 add %l1, 4, %l1 2009df8: 80 a4 00 11 cmp %l0, %l1 2009dfc: 02 80 00 10 be 2009e3c <_User_extensions_Thread_create+0x58><== NEVER TAKEN 2009e00: 25 00 80 77 sethi %hi(0x201dc00), %l2 the_node = the_node->next ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_create != NULL ) { status = (*the_extension->Callouts.thread_create)( 2009e04: a4 14 a0 70 or %l2, 0x70, %l2 ! 201dc70 <_Thread_Executing> !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_create != NULL ) { 2009e08: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 2009e0c: 80 a0 60 00 cmp %g1, 0 2009e10: 02 80 00 07 be 2009e2c <_User_extensions_Thread_create+0x48> 2009e14: 92 10 00 18 mov %i0, %o1 status = (*the_extension->Callouts.thread_create)( 2009e18: 9f c0 40 00 call %g1 2009e1c: d0 04 80 00 ld [ %l2 ], %o0 _Thread_Executing, the_thread ); if ( !status ) 2009e20: 80 8a 20 ff btst 0xff, %o0 2009e24: 02 80 00 08 be 2009e44 <_User_extensions_Thread_create+0x60> 2009e28: 01 00 00 00 nop User_extensions_Control *the_extension; bool status; for ( the_node = _User_extensions_List.first ; !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { 2009e2c: e0 04 00 00 ld [ %l0 ], %l0 { Chain_Node *the_node; User_extensions_Control *the_extension; bool status; for ( the_node = _User_extensions_List.first ; 2009e30: 80 a4 00 11 cmp %l0, %l1 2009e34: 32 bf ff f6 bne,a 2009e0c <_User_extensions_Thread_create+0x28> 2009e38: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 return false; } } return true; } 2009e3c: 81 c7 e0 08 ret 2009e40: 91 e8 20 01 restore %g0, 1, %o0 if ( the_extension->Callouts.thread_create != NULL ) { status = (*the_extension->Callouts.thread_create)( _Thread_Executing, the_thread ); if ( !status ) 2009e44: 81 c7 e0 08 ret 2009e48: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 02009e4c <_User_extensions_Thread_delete>: #include void _User_extensions_Thread_delete ( Thread_Control *the_thread ) { 2009e4c: 9d e3 bf a0 save %sp, -96, %sp Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; 2009e50: 23 00 80 77 sethi %hi(0x201dc00), %l1 2009e54: a2 14 61 e8 or %l1, 0x1e8, %l1 ! 201dde8 <_User_extensions_List> 2009e58: e0 04 60 08 ld [ %l1 + 8 ], %l0 2009e5c: 80 a4 00 11 cmp %l0, %l1 2009e60: 02 80 00 0d be 2009e94 <_User_extensions_Thread_delete+0x48><== NEVER TAKEN 2009e64: 25 00 80 77 sethi %hi(0x201dc00), %l2 the_node = the_node->previous ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_delete != NULL ) (*the_extension->Callouts.thread_delete)( 2009e68: a4 14 a0 70 or %l2, 0x70, %l2 ! 201dc70 <_Thread_Executing> !_Chain_Is_head( &_User_extensions_List, the_node ) ; the_node = the_node->previous ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_delete != NULL ) 2009e6c: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 2009e70: 80 a0 60 00 cmp %g1, 0 2009e74: 02 80 00 04 be 2009e84 <_User_extensions_Thread_delete+0x38> 2009e78: 92 10 00 18 mov %i0, %o1 (*the_extension->Callouts.thread_delete)( 2009e7c: 9f c0 40 00 call %g1 2009e80: d0 04 80 00 ld [ %l2 ], %o0 Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; !_Chain_Is_head( &_User_extensions_List, the_node ) ; the_node = the_node->previous ) { 2009e84: e0 04 20 04 ld [ %l0 + 4 ], %l0 ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; 2009e88: 80 a4 00 11 cmp %l0, %l1 2009e8c: 32 bf ff f9 bne,a 2009e70 <_User_extensions_Thread_delete+0x24> 2009e90: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 2009e94: 81 c7 e0 08 ret 2009e98: 81 e8 00 00 restore =============================================================================== 02009d48 <_User_extensions_Thread_exitted>: } void _User_extensions_Thread_exitted ( Thread_Control *executing ) { 2009d48: 9d e3 bf a0 save %sp, -96, %sp Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; 2009d4c: 23 00 80 77 sethi %hi(0x201dc00), %l1 2009d50: a2 14 61 e8 or %l1, 0x1e8, %l1 ! 201dde8 <_User_extensions_List> 2009d54: e0 04 60 08 ld [ %l1 + 8 ], %l0 2009d58: 80 a4 00 11 cmp %l0, %l1 2009d5c: 02 80 00 0c be 2009d8c <_User_extensions_Thread_exitted+0x44><== NEVER TAKEN 2009d60: 01 00 00 00 nop !_Chain_Is_head( &_User_extensions_List, the_node ) ; the_node = the_node->previous ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_exitted != NULL ) 2009d64: c2 04 20 2c ld [ %l0 + 0x2c ], %g1 2009d68: 80 a0 60 00 cmp %g1, 0 2009d6c: 02 80 00 04 be 2009d7c <_User_extensions_Thread_exitted+0x34> 2009d70: 90 10 00 18 mov %i0, %o0 (*the_extension->Callouts.thread_exitted)( executing ); 2009d74: 9f c0 40 00 call %g1 2009d78: 01 00 00 00 nop Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; !_Chain_Is_head( &_User_extensions_List, the_node ) ; the_node = the_node->previous ) { 2009d7c: e0 04 20 04 ld [ %l0 + 4 ], %l0 ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; 2009d80: 80 a4 00 11 cmp %l0, %l1 2009d84: 32 bf ff f9 bne,a 2009d68 <_User_extensions_Thread_exitted+0x20> 2009d88: c2 04 20 2c ld [ %l0 + 0x2c ], %g1 2009d8c: 81 c7 e0 08 ret 2009d90: 81 e8 00 00 restore =============================================================================== 0200aba4 <_User_extensions_Thread_restart>: #include void _User_extensions_Thread_restart ( Thread_Control *the_thread ) { 200aba4: 9d e3 bf a0 save %sp, -96, %sp Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; 200aba8: 23 00 80 89 sethi %hi(0x2022400), %l1 200abac: e0 04 63 a8 ld [ %l1 + 0x3a8 ], %l0 ! 20227a8 <_User_extensions_List> 200abb0: a2 14 63 a8 or %l1, 0x3a8, %l1 200abb4: a2 04 60 04 add %l1, 4, %l1 200abb8: 80 a4 00 11 cmp %l0, %l1 200abbc: 02 80 00 0d be 200abf0 <_User_extensions_Thread_restart+0x4c><== NEVER TAKEN 200abc0: 25 00 80 89 sethi %hi(0x2022400), %l2 the_node = the_node->next ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_restart != NULL ) (*the_extension->Callouts.thread_restart)( 200abc4: a4 14 a2 30 or %l2, 0x230, %l2 ! 2022630 <_Thread_Executing> !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_restart != NULL ) 200abc8: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 200abcc: 80 a0 60 00 cmp %g1, 0 200abd0: 02 80 00 04 be 200abe0 <_User_extensions_Thread_restart+0x3c> 200abd4: 92 10 00 18 mov %i0, %o1 (*the_extension->Callouts.thread_restart)( 200abd8: 9f c0 40 00 call %g1 200abdc: d0 04 80 00 ld [ %l2 ], %o0 Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { 200abe0: e0 04 00 00 ld [ %l0 ], %l0 ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; 200abe4: 80 a4 00 11 cmp %l0, %l1 200abe8: 32 bf ff f9 bne,a 200abcc <_User_extensions_Thread_restart+0x28> 200abec: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 200abf0: 81 c7 e0 08 ret 200abf4: 81 e8 00 00 restore =============================================================================== 02009e9c <_User_extensions_Thread_start>: #include void _User_extensions_Thread_start ( Thread_Control *the_thread ) { 2009e9c: 9d e3 bf a0 save %sp, -96, %sp Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; 2009ea0: 23 00 80 77 sethi %hi(0x201dc00), %l1 2009ea4: e0 04 61 e8 ld [ %l1 + 0x1e8 ], %l0 ! 201dde8 <_User_extensions_List> 2009ea8: a2 14 61 e8 or %l1, 0x1e8, %l1 2009eac: a2 04 60 04 add %l1, 4, %l1 2009eb0: 80 a4 00 11 cmp %l0, %l1 2009eb4: 02 80 00 0d be 2009ee8 <_User_extensions_Thread_start+0x4c><== NEVER TAKEN 2009eb8: 25 00 80 77 sethi %hi(0x201dc00), %l2 the_node = the_node->next ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_start != NULL ) (*the_extension->Callouts.thread_start)( 2009ebc: a4 14 a0 70 or %l2, 0x70, %l2 ! 201dc70 <_Thread_Executing> !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_start != NULL ) 2009ec0: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 2009ec4: 80 a0 60 00 cmp %g1, 0 2009ec8: 02 80 00 04 be 2009ed8 <_User_extensions_Thread_start+0x3c> 2009ecc: 92 10 00 18 mov %i0, %o1 (*the_extension->Callouts.thread_start)( 2009ed0: 9f c0 40 00 call %g1 2009ed4: d0 04 80 00 ld [ %l2 ], %o0 Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { 2009ed8: e0 04 00 00 ld [ %l0 ], %l0 ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; 2009edc: 80 a4 00 11 cmp %l0, %l1 2009ee0: 32 bf ff f9 bne,a 2009ec4 <_User_extensions_Thread_start+0x28> 2009ee4: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 2009ee8: 81 c7 e0 08 ret 2009eec: 81 e8 00 00 restore =============================================================================== 02009ef0 <_User_extensions_Thread_switch>: void _User_extensions_Thread_switch ( Thread_Control *executing, Thread_Control *heir ) { 2009ef0: 9d e3 bf a0 save %sp, -96, %sp Chain_Node *the_node; User_extensions_Switch_control *the_extension_switch; for ( the_node = _User_extensions_Switches_list.first ; 2009ef4: 23 00 80 76 sethi %hi(0x201d800), %l1 2009ef8: e0 04 63 b4 ld [ %l1 + 0x3b4 ], %l0 ! 201dbb4 <_User_extensions_Switches_list> 2009efc: a2 14 63 b4 or %l1, 0x3b4, %l1 2009f00: a2 04 60 04 add %l1, 4, %l1 2009f04: 80 a4 00 11 cmp %l0, %l1 2009f08: 02 80 00 0a be 2009f30 <_User_extensions_Thread_switch+0x40><== NEVER TAKEN 2009f0c: 01 00 00 00 nop !_Chain_Is_tail( &_User_extensions_Switches_list, the_node ) ; the_node = the_node->next ) { the_extension_switch = (User_extensions_Switch_control *) the_node; (*the_extension_switch->thread_switch)( executing, heir ); 2009f10: c2 04 20 08 ld [ %l0 + 8 ], %g1 2009f14: 90 10 00 18 mov %i0, %o0 2009f18: 9f c0 40 00 call %g1 2009f1c: 92 10 00 19 mov %i1, %o1 Chain_Node *the_node; User_extensions_Switch_control *the_extension_switch; for ( the_node = _User_extensions_Switches_list.first ; !_Chain_Is_tail( &_User_extensions_Switches_list, the_node ) ; the_node = the_node->next ) { 2009f20: e0 04 00 00 ld [ %l0 ], %l0 ) { Chain_Node *the_node; User_extensions_Switch_control *the_extension_switch; for ( the_node = _User_extensions_Switches_list.first ; 2009f24: 80 a4 00 11 cmp %l0, %l1 2009f28: 32 bf ff fb bne,a 2009f14 <_User_extensions_Thread_switch+0x24> 2009f2c: c2 04 20 08 ld [ %l0 + 8 ], %g1 2009f30: 81 c7 e0 08 ret 2009f34: 81 e8 00 00 restore =============================================================================== 0200c164 <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) { 200c164: 9d e3 bf a0 save %sp, -96, %sp ISR_Level level; _ISR_Disable( level ); 200c168: 7f ff db ac call 2003018 200c16c: 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)); 200c170: 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; 200c174: 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 ) ) { 200c178: 80 a0 40 11 cmp %g1, %l1 200c17c: 02 80 00 1f be 200c1f8 <_Watchdog_Adjust+0x94> 200c180: 80 a6 60 00 cmp %i1, 0 switch ( direction ) { 200c184: 12 80 00 1f bne 200c200 <_Watchdog_Adjust+0x9c> 200c188: 80 a6 60 01 cmp %i1, 1 case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { 200c18c: 80 a6 a0 00 cmp %i2, 0 200c190: 02 80 00 1a be 200c1f8 <_Watchdog_Adjust+0x94> <== NEVER TAKEN 200c194: 01 00 00 00 nop if ( units < _Watchdog_First( header )->delta_interval ) { 200c198: f2 00 60 10 ld [ %g1 + 0x10 ], %i1 200c19c: 80 a6 80 19 cmp %i2, %i1 200c1a0: 1a 80 00 0b bcc 200c1cc <_Watchdog_Adjust+0x68> <== ALWAYS TAKEN 200c1a4: a4 10 20 01 mov 1, %l2 _Watchdog_First( header )->delta_interval -= units; 200c1a8: 10 80 00 1d b 200c21c <_Watchdog_Adjust+0xb8> <== NOT EXECUTED 200c1ac: b4 26 40 1a sub %i1, %i2, %i2 <== NOT EXECUTED switch ( direction ) { case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { 200c1b0: b4 a6 80 19 subcc %i2, %i1, %i2 200c1b4: 02 80 00 11 be 200c1f8 <_Watchdog_Adjust+0x94> <== NEVER TAKEN 200c1b8: 01 00 00 00 nop if ( units < _Watchdog_First( header )->delta_interval ) { 200c1bc: f2 00 60 10 ld [ %g1 + 0x10 ], %i1 200c1c0: 80 a6 40 1a cmp %i1, %i2 200c1c4: 38 80 00 16 bgu,a 200c21c <_Watchdog_Adjust+0xb8> 200c1c8: b4 26 40 1a sub %i1, %i2, %i2 _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 1; 200c1cc: e4 20 60 10 st %l2, [ %g1 + 0x10 ] _ISR_Enable( level ); 200c1d0: 7f ff db 96 call 2003028 200c1d4: 01 00 00 00 nop _Watchdog_Tickle( header ); 200c1d8: 40 00 00 b2 call 200c4a0 <_Watchdog_Tickle> 200c1dc: 90 10 00 10 mov %l0, %o0 _ISR_Disable( level ); 200c1e0: 7f ff db 8e call 2003018 200c1e4: 01 00 00 00 nop */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 200c1e8: c4 04 00 00 ld [ %l0 ], %g2 if ( _Chain_Is_empty( header ) ) 200c1ec: 80 a4 40 02 cmp %l1, %g2 200c1f0: 12 bf ff f0 bne 200c1b0 <_Watchdog_Adjust+0x4c> 200c1f4: 82 10 00 02 mov %g2, %g1 } break; } } _ISR_Enable( level ); 200c1f8: 7f ff db 8c call 2003028 200c1fc: 91 e8 00 08 restore %g0, %o0, %o0 * unmodified across that call. * * Till Straumann, 7/2003 */ if ( !_Chain_Is_empty( header ) ) { switch ( direction ) { 200c200: 12 bf ff fe bne 200c1f8 <_Watchdog_Adjust+0x94> <== NEVER TAKEN 200c204: 01 00 00 00 nop case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; 200c208: c4 00 60 10 ld [ %g1 + 0x10 ], %g2 200c20c: b4 00 80 1a add %g2, %i2, %i2 200c210: f4 20 60 10 st %i2, [ %g1 + 0x10 ] } break; } } _ISR_Enable( level ); 200c214: 7f ff db 85 call 2003028 200c218: 91 e8 00 08 restore %g0, %o0, %o0 break; case WATCHDOG_FORWARD: while ( units ) { if ( units < _Watchdog_First( header )->delta_interval ) { _Watchdog_First( header )->delta_interval -= units; break; 200c21c: 10 bf ff f7 b 200c1f8 <_Watchdog_Adjust+0x94> 200c220: f4 20 60 10 st %i2, [ %g1 + 0x10 ] =============================================================================== 0200a0dc <_Watchdog_Remove>: */ Watchdog_States _Watchdog_Remove( Watchdog_Control *the_watchdog ) { 200a0dc: 9d e3 bf a0 save %sp, -96, %sp ISR_Level level; Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level ); 200a0e0: 7f ff df f1 call 20020a4 200a0e4: 01 00 00 00 nop previous_state = the_watchdog->state; 200a0e8: e0 06 20 08 ld [ %i0 + 8 ], %l0 switch ( previous_state ) { 200a0ec: 80 a4 20 01 cmp %l0, 1 200a0f0: 02 80 00 2a be 200a198 <_Watchdog_Remove+0xbc> 200a0f4: 03 00 80 77 sethi %hi(0x201dc00), %g1 200a0f8: 1a 80 00 09 bcc 200a11c <_Watchdog_Remove+0x40> 200a0fc: 80 a4 20 03 cmp %l0, 3 _Watchdog_Sync_level = _ISR_Nest_level; _Chain_Extract_unprotected( &the_watchdog->Node ); break; } the_watchdog->stop_time = _Watchdog_Ticks_since_boot; 200a100: 03 00 80 77 sethi %hi(0x201dc00), %g1 200a104: c2 00 61 04 ld [ %g1 + 0x104 ], %g1 ! 201dd04 <_Watchdog_Ticks_since_boot> 200a108: c2 26 20 18 st %g1, [ %i0 + 0x18 ] _ISR_Enable( level ); 200a10c: 7f ff df ea call 20020b4 200a110: b0 10 00 10 mov %l0, %i0 return( previous_state ); } 200a114: 81 c7 e0 08 ret 200a118: 81 e8 00 00 restore Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level ); previous_state = the_watchdog->state; switch ( previous_state ) { 200a11c: 18 bf ff fa bgu 200a104 <_Watchdog_Remove+0x28> <== NEVER TAKEN 200a120: 03 00 80 77 sethi %hi(0x201dc00), %g1 RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_Next( Watchdog_Control *the_watchdog ) { return ( (Watchdog_Control *) the_watchdog->Node.next ); 200a124: c2 06 00 00 ld [ %i0 ], %g1 break; case WATCHDOG_ACTIVE: case WATCHDOG_REMOVE_IT: the_watchdog->state = WATCHDOG_INACTIVE; 200a128: c0 26 20 08 clr [ %i0 + 8 ] next_watchdog = _Watchdog_Next( the_watchdog ); if ( _Watchdog_Next(next_watchdog) ) 200a12c: c4 00 40 00 ld [ %g1 ], %g2 200a130: 80 a0 a0 00 cmp %g2, 0 200a134: 02 80 00 07 be 200a150 <_Watchdog_Remove+0x74> 200a138: 05 00 80 77 sethi %hi(0x201dc00), %g2 next_watchdog->delta_interval += the_watchdog->delta_interval; 200a13c: c6 00 60 10 ld [ %g1 + 0x10 ], %g3 200a140: c4 06 20 10 ld [ %i0 + 0x10 ], %g2 200a144: 84 00 c0 02 add %g3, %g2, %g2 200a148: c4 20 60 10 st %g2, [ %g1 + 0x10 ] if ( _Watchdog_Sync_count ) 200a14c: 05 00 80 77 sethi %hi(0x201dc00), %g2 200a150: c4 00 a1 00 ld [ %g2 + 0x100 ], %g2 ! 201dd00 <_Watchdog_Sync_count> 200a154: 80 a0 a0 00 cmp %g2, 0 200a158: 22 80 00 07 be,a 200a174 <_Watchdog_Remove+0x98> 200a15c: c4 06 20 04 ld [ %i0 + 4 ], %g2 _Watchdog_Sync_level = _ISR_Nest_level; 200a160: 05 00 80 77 sethi %hi(0x201dc00), %g2 200a164: c6 00 a0 4c ld [ %g2 + 0x4c ], %g3 ! 201dc4c <_ISR_Nest_level> 200a168: 05 00 80 77 sethi %hi(0x201dc00), %g2 200a16c: c6 20 a0 6c st %g3, [ %g2 + 0x6c ] ! 201dc6c <_Watchdog_Sync_level> { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; 200a170: c4 06 20 04 ld [ %i0 + 4 ], %g2 next->previous = previous; previous->next = next; 200a174: c2 20 80 00 st %g1, [ %g2 ] Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; 200a178: c4 20 60 04 st %g2, [ %g1 + 4 ] _Chain_Extract_unprotected( &the_watchdog->Node ); break; } the_watchdog->stop_time = _Watchdog_Ticks_since_boot; 200a17c: 03 00 80 77 sethi %hi(0x201dc00), %g1 200a180: c2 00 61 04 ld [ %g1 + 0x104 ], %g1 ! 201dd04 <_Watchdog_Ticks_since_boot> 200a184: c2 26 20 18 st %g1, [ %i0 + 0x18 ] _ISR_Enable( level ); 200a188: 7f ff df cb call 20020b4 200a18c: b0 10 00 10 mov %l0, %i0 return( previous_state ); } 200a190: 81 c7 e0 08 ret 200a194: 81 e8 00 00 restore _Watchdog_Sync_level = _ISR_Nest_level; _Chain_Extract_unprotected( &the_watchdog->Node ); break; } the_watchdog->stop_time = _Watchdog_Ticks_since_boot; 200a198: c2 00 61 04 ld [ %g1 + 0x104 ], %g1 /* * It is not actually on the chain so just change the state and * the Insert operation we interrupted will be aborted. */ the_watchdog->state = WATCHDOG_INACTIVE; 200a19c: c0 26 20 08 clr [ %i0 + 8 ] _Watchdog_Sync_level = _ISR_Nest_level; _Chain_Extract_unprotected( &the_watchdog->Node ); break; } the_watchdog->stop_time = _Watchdog_Ticks_since_boot; 200a1a0: c2 26 20 18 st %g1, [ %i0 + 0x18 ] _ISR_Enable( level ); 200a1a4: 7f ff df c4 call 20020b4 200a1a8: b0 10 00 10 mov %l0, %i0 return( previous_state ); } 200a1ac: 81 c7 e0 08 ret 200a1b0: 81 e8 00 00 restore =============================================================================== 0200b930 <_Watchdog_Report_chain>: void _Watchdog_Report_chain( const char *name, Chain_Control *header ) { 200b930: 9d e3 bf a0 save %sp, -96, %sp ISR_Level level; Chain_Node *node; _ISR_Disable( level ); 200b934: 7f ff dc 80 call 2002b34 200b938: a0 10 00 18 mov %i0, %l0 200b93c: b0 10 00 08 mov %o0, %i0 printk( "Watchdog Chain: %s %p\n", name, header ); 200b940: 11 00 80 86 sethi %hi(0x2021800), %o0 200b944: 94 10 00 19 mov %i1, %o2 200b948: 90 12 22 40 or %o0, 0x240, %o0 200b94c: 7f ff e4 4f call 2004a88 200b950: 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)); 200b954: 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; 200b958: b2 06 60 04 add %i1, 4, %i1 if ( !_Chain_Is_empty( header ) ) { 200b95c: 80 a4 40 19 cmp %l1, %i1 200b960: 02 80 00 0f be 200b99c <_Watchdog_Report_chain+0x6c> 200b964: 11 00 80 86 sethi %hi(0x2021800), %o0 node != _Chain_Tail(header) ; node = node->next ) { Watchdog_Control *watch = (Watchdog_Control *) node; _Watchdog_Report( NULL, watch ); 200b968: 92 10 00 11 mov %l1, %o1 200b96c: 40 00 00 11 call 200b9b0 <_Watchdog_Report> 200b970: 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 ) 200b974: 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 ; 200b978: 80 a4 40 19 cmp %l1, %i1 200b97c: 12 bf ff fc bne 200b96c <_Watchdog_Report_chain+0x3c> <== NEVER TAKEN 200b980: 92 10 00 11 mov %l1, %o1 { Watchdog_Control *watch = (Watchdog_Control *) node; _Watchdog_Report( NULL, watch ); } printk( "== end of %s \n", name ); 200b984: 92 10 00 10 mov %l0, %o1 200b988: 11 00 80 86 sethi %hi(0x2021800), %o0 200b98c: 7f ff e4 3f call 2004a88 200b990: 90 12 22 58 or %o0, 0x258, %o0 ! 2021a58 <_Status_Object_name_errors_to_status+0x30> } else { printk( "Chain is empty\n" ); } _ISR_Enable( level ); 200b994: 7f ff dc 6c call 2002b44 200b998: 81 e8 00 00 restore _Watchdog_Report( NULL, watch ); } printk( "== end of %s \n", name ); } else { printk( "Chain is empty\n" ); 200b99c: 7f ff e4 3b call 2004a88 200b9a0: 90 12 22 68 or %o0, 0x268, %o0 } _ISR_Enable( level ); 200b9a4: 7f ff dc 68 call 2002b44 200b9a8: 81 e8 00 00 restore =============================================================================== 02023970 <__kill>: #endif int __kill( pid_t pid, int sig ) { return 0; } 2023970: 81 c3 e0 08 retl <== NOT EXECUTED 2023974: 90 10 20 00 clr %o0 <== NOT EXECUTED =============================================================================== 0201b13c <_exit>: /* * If the toolset uses init/fini sections, then we need to * run the global destructors now. */ #if defined(__USE_INIT_FINI__) FINI_SYMBOL(); 201b13c: 9d e3 bf a0 save %sp, -96, %sp 201b140: 40 00 07 b5 call 201d014 <_fini> 201b144: 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(); 201b148: 7f ff ff e2 call 201b0d0 201b14c: 01 00 00 00 nop rtems_shutdown_executive(status); 201b150: 40 00 00 50 call 201b290 201b154: 90 10 00 18 mov %i0, %o0 201b158: 30 80 00 00 b,a 201b158 <_exit+0x1c> <== NOT EXECUTED =============================================================================== 02029904 <_fat_block_read>: uint32_t start, uint32_t offset, uint32_t count, void *buff ) { 2029904: 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; 2029908: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED uint32_t blk = start; uint32_t ofs = offset; rtems_bdbuf_buffer *block = NULL; uint32_t c = 0; while (count > 0) 202990c: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 2029910: 02 80 00 1d be 2029984 <_fat_block_read+0x80> <== NOT EXECUTED 2029914: b0 10 20 00 clr %i0 <== NOT EXECUTED int rc = RC_OK; register fat_fs_info_t *fs_info = mt_entry->fs_info; ssize_t cmpltd = 0; uint32_t blk = start; uint32_t ofs = offset; rtems_bdbuf_buffer *block = NULL; 2029918: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED 202991c: 10 80 00 10 b 202995c <_fat_block_read+0x58> <== NOT EXECUTED 2029920: a2 07 bf fc add %fp, -4, %l1 <== 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)); 2029924: e4 14 00 00 lduh [ %l0 ], %l2 <== NOT EXECUTED 2029928: a4 24 80 1a sub %l2, %i2, %l2 <== NOT EXECUTED 202992c: 80 a4 80 1b cmp %l2, %i3 <== NOT EXECUTED 2029930: 08 80 00 03 bleu 202993c <_fat_block_read+0x38> <== NOT EXECUTED 2029934: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 2029938: a4 10 00 1b mov %i3, %l2 <== NOT EXECUTED memcpy((buff + cmpltd), (block->buffer + ofs), c); 202993c: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED 2029940: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED 2029944: 40 00 8a 0c call 204c174 <== NOT EXECUTED 2029948: 92 02 40 1a add %o1, %i2, %o1 <== NOT EXECUTED uint32_t blk = start; uint32_t ofs = offset; rtems_bdbuf_buffer *block = NULL; uint32_t c = 0; while (count > 0) 202994c: b6 a6 c0 12 subcc %i3, %l2, %i3 <== NOT EXECUTED 2029950: 02 80 00 0d be 2029984 <_fat_block_read+0x80> <== NOT EXECUTED 2029954: b0 04 80 18 add %l2, %i0, %i0 <== NOT EXECUTED c = MIN(count, (fs_info->vol.bps - ofs)); memcpy((buff + cmpltd), (block->buffer + ofs), c); count -= c; cmpltd += c; blk++; 2029958: b4 10 20 00 clr %i2 <== NOT EXECUTED rtems_bdbuf_buffer *block = NULL; uint32_t c = 0; while (count > 0) { rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block); 202995c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2029960: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED 2029964: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2029968: 7f ff fe 6c call 2029318 <== NOT EXECUTED 202996c: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED c = MIN(count, (fs_info->vol.bps - ofs)); memcpy((buff + cmpltd), (block->buffer + ofs), c); count -= c; cmpltd += c; blk++; 2029970: b2 06 60 01 inc %i1 <== NOT EXECUTED uint32_t c = 0; while (count > 0) { rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block); if (rc != RC_OK) 2029974: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029978: 02 bf ff eb be 2029924 <_fat_block_read+0x20> <== NOT EXECUTED 202997c: 90 07 00 18 add %i4, %i0, %o0 <== NOT EXECUTED c = MIN(count, (fs_info->vol.bps - ofs)); memcpy((buff + cmpltd), (block->buffer + ofs), c); count -= c; cmpltd += c; blk++; 2029980: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED ofs = 0; } return cmpltd; } 2029984: 81 c7 e0 08 ret <== NOT EXECUTED 2029988: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02029304 <_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); 2029304: d0 02 20 34 ld [ %o0 + 0x34 ], %o0 <== NOT EXECUTED 2029308: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 202930c: 7f ff ff 9c call 202917c <== NOT EXECUTED 2029310: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED =============================================================================== 02029538 <_fat_block_write>: rtems_filesystem_mount_table_entry_t *mt_entry, uint32_t start, uint32_t offset, uint32_t count, const void *buff) { 2029538: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED int rc = RC_OK; fat_fs_info_t *fs_info = mt_entry->fs_info; 202953c: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 <== NOT EXECUTED uint32_t blk = start; uint32_t ofs = offset; rtems_bdbuf_buffer *block = NULL; uint32_t c = 0; while(count > 0) 2029540: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 2029544: 02 80 00 2a be 20295ec <_fat_block_write+0xb4> <== NOT EXECUTED 2029548: b0 10 20 00 clr %i0 <== NOT EXECUTED int rc = RC_OK; fat_fs_info_t *fs_info = mt_entry->fs_info; ssize_t cmpltd = 0; uint32_t blk = start; uint32_t ofs = offset; rtems_bdbuf_buffer *block = NULL; 202954c: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED 2029550: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED } static inline void fat_buf_mark_modified(fat_fs_info_t *fs_info) { fs_info->c.modified = true; 2029554: 10 80 00 13 b 20295a0 <_fat_block_write+0x68> <== NOT EXECUTED 2029558: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED c = MIN(count, (fs_info->vol.bps - ofs)); if (c == fs_info->vol.bps) rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_GET, &block); else rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block); 202955c: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED 2029560: 7f ff ff 6e call 2029318 <== NOT EXECUTED 2029564: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED if (rc != RC_OK) return -1; memcpy((block->buffer + ofs), (buff + cmpltd), c); 2029568: 92 07 00 18 add %i4, %i0, %o1 <== NOT EXECUTED if (c == fs_info->vol.bps) rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_GET, &block); else rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block); if (rc != RC_OK) 202956c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029570: 12 80 00 1e bne 20295e8 <_fat_block_write+0xb0> <== NOT EXECUTED 2029574: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED return -1; memcpy((block->buffer + ofs), (buff + cmpltd), c); 2029578: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED fat_buf_mark_modified(fs_info); count -= c; cmpltd +=c; 202957c: b0 04 00 18 add %l0, %i0, %i0 <== NOT EXECUTED else rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block); if (rc != RC_OK) return -1; memcpy((block->buffer + ofs), (buff + cmpltd), c); 2029580: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED fat_buf_mark_modified(fs_info); count -= c; cmpltd +=c; blk++; 2029584: b2 06 60 01 inc %i1 <== NOT EXECUTED else rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block); if (rc != RC_OK) return -1; memcpy((block->buffer + ofs), (buff + cmpltd), c); 2029588: 40 00 8a fb call 204c174 <== NOT EXECUTED 202958c: 90 02 00 1a add %o0, %i2, %o0 <== NOT EXECUTED uint32_t blk = start; uint32_t ofs = offset; rtems_bdbuf_buffer *block = NULL; uint32_t c = 0; while(count > 0) 2029590: b6 a6 c0 10 subcc %i3, %l0, %i3 <== NOT EXECUTED 2029594: 02 80 00 16 be 20295ec <_fat_block_write+0xb4> <== NOT EXECUTED 2029598: e6 2c 60 84 stb %l3, [ %l1 + 0x84 ] <== NOT EXECUTED fat_buf_mark_modified(fs_info); count -= c; cmpltd +=c; blk++; 202959c: b4 10 20 00 clr %i2 <== NOT EXECUTED rtems_bdbuf_buffer *block = NULL; uint32_t c = 0; while(count > 0) { c = MIN(count, (fs_info->vol.bps - ofs)); 20295a0: c2 14 40 00 lduh [ %l1 ], %g1 <== NOT EXECUTED 20295a4: a0 20 40 1a sub %g1, %i2, %l0 <== NOT EXECUTED 20295a8: 80 a4 00 1b cmp %l0, %i3 <== NOT EXECUTED 20295ac: 08 80 00 03 bleu 20295b8 <_fat_block_write+0x80> <== NOT EXECUTED 20295b0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 20295b4: a0 10 00 1b mov %i3, %l0 <== NOT EXECUTED if (c == fs_info->vol.bps) 20295b8: 80 a0 40 10 cmp %g1, %l0 <== NOT EXECUTED 20295bc: 32 bf ff e8 bne,a 202955c <_fat_block_write+0x24> <== NOT EXECUTED 20295c0: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_GET, &block); 20295c4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 20295c8: 94 10 20 02 mov 2, %o2 <== NOT EXECUTED 20295cc: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 20295d0: 7f ff ff 52 call 2029318 <== NOT EXECUTED 20295d4: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED else rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block); if (rc != RC_OK) return -1; memcpy((block->buffer + ofs), (buff + cmpltd), c); 20295d8: 92 07 00 18 add %i4, %i0, %o1 <== NOT EXECUTED if (c == fs_info->vol.bps) rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_GET, &block); else rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block); if (rc != RC_OK) 20295dc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20295e0: 02 bf ff e6 be 2029578 <_fat_block_write+0x40> <== NOT EXECUTED 20295e4: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED fat_buf_mark_modified(fs_info); count -= c; cmpltd +=c; blk++; 20295e8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED ofs = 0; } return cmpltd; } 20295ec: 81 c7 e0 08 ret <== NOT EXECUTED 20295f0: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 020452dc <_fcntl_r>: int fd, int cmd, int arg ) { return fcntl( fd, cmd, arg ); 20452dc: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 20452e0: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 20452e4: 94 10 00 0b mov %o3, %o2 <== NOT EXECUTED 20452e8: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 20452ec: 7f ff ff 69 call 2045090 <== NOT EXECUTED 20452f0: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED =============================================================================== 02023944 <_getpid_r>: pid_t _getpid_r( struct _reent *ptr __attribute__((unused)) ) { return getpid(); } 2023944: 81 c3 e0 08 retl <== NOT EXECUTED 2023948: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED =============================================================================== 02002dfc <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); 2002dfc: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2002e00: 7f ff ff e6 call 2002d98 <== NOT EXECUTED 2002e04: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED =============================================================================== 02023968 <_kill_r>: #include int _kill_r( struct _reent *ptr, pid_t pid, int sig ) { return 0; } 2023968: 81 c3 e0 08 retl <== NOT EXECUTED 202396c: 90 10 20 00 clr %o0 <== NOT EXECUTED =============================================================================== 0202d5a8 <_link_r>: struct _reent *ptr __attribute__((unused)), const char *existing, const char *new ) { return link( existing, new ); 202d5a8: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 202d5ac: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 202d5b0: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 202d5b4: 7f ff ff 70 call 202d374 <== NOT EXECUTED 202d5b8: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED =============================================================================== 0202d880 <_lstat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 202d880: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 202d884: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 202d888: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 202d88c: 7f ff ff b1 call 202d750 <== NOT EXECUTED 202d890: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED =============================================================================== 0201b25c <_realloc_r>: struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { return realloc( ptr, size ); 201b25c: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 201b260: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 201b264: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 201b268: 40 00 00 17 call 201b2c4 <== NOT EXECUTED 201b26c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED =============================================================================== 02062820 <_rename_r>: int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { 2062820: 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 ); 2062824: 7f fe 97 bb call 2008710 2062828: 90 10 00 19 mov %i1, %o0 if ( old_parent_pathlen == 0 ) 206282c: 80 a2 20 00 cmp %o0, 0 2062830: 12 80 00 9d bne 2062aa4 <_rename_r+0x284> 2062834: a0 07 bf d0 add %fp, -48, %l0 rtems_filesystem_get_start_loc( old, &i, &old_parent_loc ); 2062838: 90 10 00 19 mov %i1, %o0 206283c: 92 07 bf fc add %fp, -4, %o1 2062840: 94 10 00 10 mov %l0, %o2 2062844: 7f fe 9f 29 call 200a4e8 2062848: a2 10 20 00 clr %l1 206284c: a4 10 20 00 clr %l2 /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; 2062850: c2 07 bf d0 ld [ %fp + -48 ], %g1 name = old + old_parent_pathlen; 2062854: b2 06 40 11 add %i1, %l1, %i1 /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; 2062858: c2 27 bf e4 st %g1, [ %fp + -28 ] 206285c: c2 07 bf d4 ld [ %fp + -44 ], %g1 name = old + old_parent_pathlen; 2062860: f2 27 bf f8 st %i1, [ %fp + -8 ] /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; 2062864: c2 27 bf e8 st %g1, [ %fp + -24 ] 2062868: c2 07 bf d8 ld [ %fp + -40 ], %g1 name = old + old_parent_pathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 206286c: 90 10 00 19 mov %i1, %o0 /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; 2062870: c2 27 bf ec st %g1, [ %fp + -20 ] 2062874: c2 07 bf dc ld [ %fp + -36 ], %g1 2062878: c2 27 bf f0 st %g1, [ %fp + -16 ] 206287c: c2 07 bf e0 ld [ %fp + -32 ], %g1 name = old + old_parent_pathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 2062880: 7f ff b4 99 call 204fae4 2062884: c2 27 bf f4 st %g1, [ %fp + -12 ] 2062888: 92 10 00 08 mov %o0, %o1 206288c: 7f fe 97 86 call 20086a4 2062890: 90 10 00 19 mov %i1, %o0 2062894: b2 06 40 08 add %i1, %o0, %i1 2062898: f2 27 bf f8 st %i1, [ %fp + -8 ] result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 206289c: 7f ff b4 92 call 204fae4 20628a0: 90 10 00 19 mov %i1, %o0 20628a4: 94 10 20 00 clr %o2 20628a8: 92 10 00 08 mov %o0, %o1 20628ac: 98 10 20 00 clr %o4 20628b0: 90 10 00 19 mov %i1, %o0 20628b4: b2 07 bf e4 add %fp, -28, %i1 20628b8: 7f fe 97 a9 call 200875c 20628bc: 96 10 00 19 mov %i1, %o3 0, &old_loc, false ); if ( result != 0 ) { 20628c0: 80 a2 20 00 cmp %o0, 0 20628c4: 12 80 00 41 bne 20629c8 <_rename_r+0x1a8> 20628c8: a2 07 bf bc add %fp, -68, %l1 /* * Get the parent of the new node we are renaming to. */ rtems_filesystem_get_start_loc( new, &i, &new_parent_loc ); 20628cc: 90 10 00 1a mov %i2, %o0 20628d0: 92 07 bf fc add %fp, -4, %o1 20628d4: 7f fe 9f 05 call 200a4e8 20628d8: 94 10 00 11 mov %l1, %o2 if ( !new_parent_loc.ops->evalformake_h ) { 20628dc: c2 07 bf c8 ld [ %fp + -56 ], %g1 20628e0: c2 00 60 04 ld [ %g1 + 4 ], %g1 20628e4: 80 a0 60 00 cmp %g1, 0 20628e8: 02 80 00 a4 be 2062b78 <_rename_r+0x358> 20628ec: 92 10 00 11 mov %l1, %o1 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 ); 20628f0: d0 07 bf fc ld [ %fp + -4 ], %o0 20628f4: 90 06 80 08 add %i2, %o0, %o0 20628f8: 9f c0 40 00 call %g1 20628fc: 94 07 bf f8 add %fp, -8, %o2 if ( result != 0 ) { 2062900: 80 a2 20 00 cmp %o0, 0 2062904: 12 80 00 74 bne 2062ad4 <_rename_r+0x2b4> 2062908: c2 07 bf cc ld [ %fp + -52 ], %g1 /* * 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 ) { 206290c: c4 07 bf e0 ld [ %fp + -32 ], %g2 2062910: 80 a0 80 01 cmp %g2, %g1 2062914: 12 80 00 32 bne 20629dc <_rename_r+0x1bc> 2062918: c4 07 bf c8 ld [ %fp + -56 ], %g2 rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !new_parent_loc.ops->rename_h ) { 206291c: c2 00 a0 40 ld [ %g2 + 0x40 ], %g1 2062920: 80 a0 60 00 cmp %g1, 0 2062924: 02 80 00 8f be 2062b60 <_rename_r+0x340> 2062928: d6 07 bf f8 ld [ %fp + -8 ], %o3 rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name ); 206292c: 90 10 00 10 mov %l0, %o0 2062930: 92 10 00 19 mov %i1, %o1 2062934: 9f c0 40 00 call %g1 2062938: 94 10 00 11 mov %l1, %o2 rtems_filesystem_freenode( &new_parent_loc ); 206293c: c2 07 bf c8 ld [ %fp + -56 ], %g1 2062940: 80 a0 60 00 cmp %g1, 0 2062944: 02 80 00 08 be 2062964 <_rename_r+0x144> <== NEVER TAKEN 2062948: b0 10 00 08 mov %o0, %i0 206294c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2062950: 80 a0 60 00 cmp %g1, 0 2062954: 02 80 00 05 be 2062968 <_rename_r+0x148> <== NEVER TAKEN 2062958: 80 8c a0 ff btst 0xff, %l2 206295c: 9f c0 40 00 call %g1 2062960: 90 10 00 11 mov %l1, %o0 if ( free_old_parentloc ) 2062964: 80 8c a0 ff btst 0xff, %l2 2062968: 02 80 00 0d be 206299c <_rename_r+0x17c> 206296c: c2 07 bf f0 ld [ %fp + -16 ], %g1 rtems_filesystem_freenode( &old_parent_loc ); 2062970: c2 07 bf dc ld [ %fp + -36 ], %g1 2062974: 80 a0 60 00 cmp %g1, 0 2062978: 22 80 00 09 be,a 206299c <_rename_r+0x17c> <== NEVER TAKEN 206297c: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2062980: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2062984: 80 a0 60 00 cmp %g1, 0 2062988: 22 80 00 05 be,a 206299c <_rename_r+0x17c> <== NEVER TAKEN 206298c: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2062990: 9f c0 40 00 call %g1 2062994: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &old_loc ); 2062998: c2 07 bf f0 ld [ %fp + -16 ], %g1 206299c: 80 a0 60 00 cmp %g1, 0 20629a0: 02 80 00 91 be 2062be4 <_rename_r+0x3c4> <== NEVER TAKEN 20629a4: 01 00 00 00 nop 20629a8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20629ac: 80 a0 60 00 cmp %g1, 0 20629b0: 02 80 00 8d be 2062be4 <_rename_r+0x3c4> <== NEVER TAKEN 20629b4: 01 00 00 00 nop 20629b8: 9f c0 40 00 call %g1 20629bc: 90 10 00 19 mov %i1, %o0 20629c0: 81 c7 e0 08 ret 20629c4: 81 e8 00 00 restore name += rtems_filesystem_prefix_separators( name, strlen( name ) ); result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &old_loc, false ); if ( result != 0 ) { if ( free_old_parentloc ) 20629c8: 80 8c a0 ff btst 0xff, %l2 20629cc: 12 80 00 2b bne 2062a78 <_rename_r+0x258> <== ALWAYS TAKEN 20629d0: c2 07 bf dc ld [ %fp + -36 ], %g1 if ( free_old_parentloc ) rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); return result; } 20629d4: 81 c7 e0 08 ret <== NOT EXECUTED 20629d8: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED * Check to see if the caller is trying to rename across file system * boundaries. */ if ( old_parent_loc.mt_entry != new_parent_loc.mt_entry ) { rtems_filesystem_freenode( &new_parent_loc ); 20629dc: c2 07 bf c8 ld [ %fp + -56 ], %g1 20629e0: 80 a0 60 00 cmp %g1, 0 20629e4: 02 80 00 09 be 2062a08 <_rename_r+0x1e8> <== NEVER TAKEN 20629e8: 80 8c a0 ff btst 0xff, %l2 20629ec: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20629f0: 80 a0 60 00 cmp %g1, 0 20629f4: 02 80 00 05 be 2062a08 <_rename_r+0x1e8> <== NEVER TAKEN 20629f8: 80 8c a0 ff btst 0xff, %l2 20629fc: 9f c0 40 00 call %g1 2062a00: 90 10 00 11 mov %l1, %o0 if ( free_old_parentloc ) 2062a04: 80 8c a0 ff btst 0xff, %l2 2062a08: 02 80 00 0d be 2062a3c <_rename_r+0x21c> 2062a0c: c2 07 bf f0 ld [ %fp + -16 ], %g1 rtems_filesystem_freenode( &old_parent_loc ); 2062a10: c2 07 bf dc ld [ %fp + -36 ], %g1 2062a14: 80 a0 60 00 cmp %g1, 0 2062a18: 22 80 00 09 be,a 2062a3c <_rename_r+0x21c> <== NEVER TAKEN 2062a1c: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2062a20: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2062a24: 80 a0 60 00 cmp %g1, 0 2062a28: 22 80 00 05 be,a 2062a3c <_rename_r+0x21c> <== NEVER TAKEN 2062a2c: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2062a30: 9f c0 40 00 call %g1 2062a34: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &old_loc ); 2062a38: c2 07 bf f0 ld [ %fp + -16 ], %g1 2062a3c: 80 a0 60 00 cmp %g1, 0 2062a40: 02 80 00 08 be 2062a60 <_rename_r+0x240> <== NEVER TAKEN 2062a44: 01 00 00 00 nop 2062a48: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2062a4c: 80 a0 60 00 cmp %g1, 0 2062a50: 02 80 00 04 be 2062a60 <_rename_r+0x240> <== NEVER TAKEN 2062a54: 01 00 00 00 nop 2062a58: 9f c0 40 00 call %g1 2062a5c: 90 10 00 19 mov %i1, %o0 rtems_set_errno_and_return_minus_one( EXDEV ); 2062a60: 7f ff 98 79 call 2048c44 <__errno> 2062a64: b0 10 3f ff mov -1, %i0 2062a68: 82 10 20 12 mov 0x12, %g1 2062a6c: c2 22 00 00 st %g1, [ %o0 ] 2062a70: 81 c7 e0 08 ret 2062a74: 81 e8 00 00 restore result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &old_loc, false ); if ( result != 0 ) { if ( free_old_parentloc ) rtems_filesystem_freenode( &old_parent_loc ); 2062a78: 80 a0 60 00 cmp %g1, 0 2062a7c: 02 bf ff d1 be 20629c0 <_rename_r+0x1a0> <== NEVER TAKEN 2062a80: b0 10 3f ff mov -1, %i0 2062a84: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2062a88: 80 a0 60 00 cmp %g1, 0 2062a8c: 02 bf ff cd be 20629c0 <_rename_r+0x1a0> <== NEVER TAKEN 2062a90: 90 10 00 10 mov %l0, %o0 2062a94: 9f c0 40 00 call %g1 2062a98: 01 00 00 00 nop 2062a9c: 81 c7 e0 08 ret 2062aa0: 81 e8 00 00 restore 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, 2062aa4: a2 10 00 08 mov %o0, %l1 2062aa8: 90 10 00 19 mov %i1, %o0 2062aac: 92 10 00 11 mov %l1, %o1 2062ab0: 94 10 20 02 mov 2, %o2 2062ab4: 96 10 00 10 mov %l0, %o3 2062ab8: 7f fe 97 6a call 2008860 2062abc: 98 10 20 00 clr %o4 RTEMS_LIBIO_PERMS_WRITE, &old_parent_loc, false ); if ( result != 0 ) 2062ac0: 80 a2 20 00 cmp %o0, 0 2062ac4: 12 bf ff c4 bne 20629d4 <_rename_r+0x1b4> <== NEVER TAKEN 2062ac8: a4 10 20 01 mov 1, %l2 /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; 2062acc: 10 bf ff 62 b 2062854 <_rename_r+0x34> 2062ad0: c2 07 bf d0 ld [ %fp + -48 ], %g1 rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*new_parent_loc.ops->evalformake_h)( &new[i], &new_parent_loc, &name ); if ( result != 0 ) { rtems_filesystem_freenode( &new_parent_loc ); 2062ad4: c2 07 bf c8 ld [ %fp + -56 ], %g1 2062ad8: 80 a0 60 00 cmp %g1, 0 2062adc: 02 80 00 09 be 2062b00 <_rename_r+0x2e0> <== NEVER TAKEN 2062ae0: 80 8c a0 ff btst 0xff, %l2 2062ae4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2062ae8: 80 a0 60 00 cmp %g1, 0 2062aec: 02 80 00 05 be 2062b00 <_rename_r+0x2e0> <== NEVER TAKEN 2062af0: 80 8c a0 ff btst 0xff, %l2 2062af4: 9f c0 40 00 call %g1 2062af8: 90 10 00 11 mov %l1, %o0 if ( free_old_parentloc ) 2062afc: 80 8c a0 ff btst 0xff, %l2 2062b00: 02 80 00 0d be 2062b34 <_rename_r+0x314> <== NEVER TAKEN 2062b04: c2 07 bf f0 ld [ %fp + -16 ], %g1 rtems_filesystem_freenode( &old_parent_loc ); 2062b08: c2 07 bf dc ld [ %fp + -36 ], %g1 2062b0c: 80 a0 60 00 cmp %g1, 0 2062b10: 22 80 00 09 be,a 2062b34 <_rename_r+0x314> <== NEVER TAKEN 2062b14: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2062b18: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2062b1c: 80 a0 60 00 cmp %g1, 0 2062b20: 22 80 00 05 be,a 2062b34 <_rename_r+0x314> <== NEVER TAKEN 2062b24: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2062b28: 9f c0 40 00 call %g1 2062b2c: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &old_loc ); 2062b30: c2 07 bf f0 ld [ %fp + -16 ], %g1 2062b34: 80 a0 60 00 cmp %g1, 0 2062b38: 02 bf ff a2 be 20629c0 <_rename_r+0x1a0> <== NEVER TAKEN 2062b3c: b0 10 3f ff mov -1, %i0 2062b40: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2062b44: 80 a0 60 00 cmp %g1, 0 2062b48: 02 bf ff 9e be 20629c0 <_rename_r+0x1a0> <== NEVER TAKEN 2062b4c: 90 10 00 19 mov %i1, %o0 2062b50: 9f c0 40 00 call %g1 2062b54: 01 00 00 00 nop 2062b58: 81 c7 e0 08 ret 2062b5c: 81 e8 00 00 restore rtems_filesystem_freenode( &old_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !new_parent_loc.ops->rename_h ) { rtems_filesystem_freenode( &new_parent_loc ); 2062b60: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 2062b64: 80 a0 60 00 cmp %g1, 0 2062b68: 02 80 00 05 be 2062b7c <_rename_r+0x35c> <== NEVER TAKEN 2062b6c: 80 8c a0 ff btst 0xff, %l2 2062b70: 9f c0 40 00 call %g1 2062b74: 90 10 00 11 mov %l1, %o0 if ( free_old_parentloc ) 2062b78: 80 8c a0 ff btst 0xff, %l2 2062b7c: 02 80 00 0d be 2062bb0 <_rename_r+0x390> <== NEVER TAKEN 2062b80: c2 07 bf f0 ld [ %fp + -16 ], %g1 rtems_filesystem_freenode( &old_parent_loc ); 2062b84: c2 07 bf dc ld [ %fp + -36 ], %g1 2062b88: 80 a0 60 00 cmp %g1, 0 2062b8c: 22 80 00 09 be,a 2062bb0 <_rename_r+0x390> <== NEVER TAKEN 2062b90: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2062b94: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2062b98: 80 a0 60 00 cmp %g1, 0 2062b9c: 22 80 00 05 be,a 2062bb0 <_rename_r+0x390> <== NEVER TAKEN 2062ba0: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2062ba4: 9f c0 40 00 call %g1 2062ba8: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &old_loc ); 2062bac: c2 07 bf f0 ld [ %fp + -16 ], %g1 2062bb0: 80 a0 60 00 cmp %g1, 0 2062bb4: 02 80 00 08 be 2062bd4 <_rename_r+0x3b4> <== NEVER TAKEN 2062bb8: 01 00 00 00 nop 2062bbc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2062bc0: 80 a0 60 00 cmp %g1, 0 2062bc4: 02 80 00 04 be 2062bd4 <_rename_r+0x3b4> <== NEVER TAKEN 2062bc8: 01 00 00 00 nop 2062bcc: 9f c0 40 00 call %g1 2062bd0: 90 10 00 19 mov %i1, %o0 rtems_set_errno_and_return_minus_one( ENOTSUP ); 2062bd4: 7f ff 98 1c call 2048c44 <__errno> 2062bd8: b0 10 3f ff mov -1, %i0 2062bdc: 82 10 20 86 mov 0x86, %g1 2062be0: c2 22 00 00 st %g1, [ %o0 ] 2062be4: 81 c7 e0 08 ret 2062be8: 81 e8 00 00 restore =============================================================================== 0200a4d0 <_stat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 200a4d0: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 200a4d4: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 200a4d8: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 200a4dc: 7f ff ff b1 call 200a3a0 <== NOT EXECUTED 200a4e0: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED =============================================================================== 0200fdd8 <_unlink_r>: int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) { return unlink( path ); 200fdd8: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 200fddc: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 200fde0: 7f ff ff 5d call 200fb54 <== NOT EXECUTED 200fde4: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED =============================================================================== 02002a60 : ) { register char *cptr; size_t length; MSBUMP(calloc_calls, 1); 2002a60: 9d e3 bf a0 save %sp, -96, %sp 2002a64: 21 00 80 76 sethi %hi(0x201d800), %l0 2002a68: a0 14 21 f0 or %l0, 0x1f0, %l0 ! 201d9f0 2002a6c: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 length = nelem * elsize; 2002a70: 92 10 00 18 mov %i0, %o1 ) { register char *cptr; size_t length; MSBUMP(calloc_calls, 1); 2002a74: 82 00 60 01 inc %g1 length = nelem * elsize; 2002a78: 90 10 00 19 mov %i1, %o0 2002a7c: 40 00 5b 8e call 20198b4 <.umul> 2002a80: c2 24 20 14 st %g1, [ %l0 + 0x14 ] cptr = malloc( length ); 2002a84: 40 00 01 82 call 200308c 2002a88: a2 10 00 08 mov %o0, %l1 if ( cptr ) 2002a8c: b0 92 20 00 orcc %o0, 0, %i0 2002a90: 02 80 00 04 be 2002aa0 <== NEVER TAKEN 2002a94: 94 10 00 11 mov %l1, %o2 memset( cptr, '\0', length ); 2002a98: 40 00 38 e9 call 2010e3c 2002a9c: 92 10 20 00 clr %o1 MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ 2002aa0: c2 04 20 04 ld [ %l0 + 4 ], %g1 2002aa4: 82 00 7f ff add %g1, -1, %g1 2002aa8: c2 24 20 04 st %g1, [ %l0 + 4 ] return cptr; } 2002aac: 81 c7 e0 08 ret 2002ab0: 81 e8 00 00 restore =============================================================================== 0202c164 : #include int chdir( const char *pathname ) { 202c164: 9d e3 bf 88 save %sp, -120, %sp rtems_filesystem_location_info_t loc; int result; if ( !pathname ) 202c168: 80 a6 20 00 cmp %i0, 0 202c16c: 02 80 00 31 be 202c230 202c170: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EFAULT ); /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 202c174: 40 00 8e 5c call 204fae4 202c178: 90 10 00 18 mov %i0, %o0 202c17c: a0 07 bf ec add %fp, -20, %l0 202c180: 92 10 00 08 mov %o0, %o1 202c184: 94 10 20 01 mov 1, %o2 202c188: 90 10 00 18 mov %i0, %o0 202c18c: 96 10 00 10 mov %l0, %o3 202c190: 98 10 20 01 mov 1, %o4 202c194: 7f ff 71 b3 call 2008860 202c198: b0 10 3f ff mov -1, %i0 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) 202c19c: 80 a2 20 00 cmp %o0, 0 202c1a0: 12 80 00 28 bne 202c240 202c1a4: c4 07 bf f8 ld [ %fp + -8 ], %g2 return -1; /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { 202c1a8: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 202c1ac: 80 a0 60 00 cmp %g1, 0 202c1b0: 22 80 00 35 be,a 202c284 <== NEVER TAKEN 202c1b4: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 202c1b8: 9f c0 40 00 call %g1 202c1bc: 90 10 00 10 mov %l0, %o0 202c1c0: 80 a2 20 01 cmp %o0, 1 202c1c4: 12 80 00 21 bne 202c248 202c1c8: c2 07 bf f8 ld [ %fp + -8 ], %g1 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTDIR ); } rtems_filesystem_freenode( &rtems_filesystem_current ); 202c1cc: 21 00 81 bc sethi %hi(0x206f000), %l0 202c1d0: d0 04 23 24 ld [ %l0 + 0x324 ], %o0 ! 206f324 202c1d4: c2 02 20 10 ld [ %o0 + 0x10 ], %g1 202c1d8: 80 a0 60 00 cmp %g1, 0 202c1dc: 22 80 00 0a be,a 202c204 <== NEVER TAKEN 202c1e0: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED 202c1e4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 202c1e8: 80 a0 60 00 cmp %g1, 0 202c1ec: 22 80 00 06 be,a 202c204 <== NEVER TAKEN 202c1f0: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED 202c1f4: 9f c0 40 00 call %g1 202c1f8: 90 02 20 04 add %o0, 4, %o0 202c1fc: d0 04 23 24 ld [ %l0 + 0x324 ], %o0 rtems_filesystem_current = loc; 202c200: c2 07 bf ec ld [ %fp + -20 ], %g1 202c204: c2 22 20 04 st %g1, [ %o0 + 4 ] 202c208: c2 07 bf f0 ld [ %fp + -16 ], %g1 202c20c: c2 22 20 08 st %g1, [ %o0 + 8 ] 202c210: c2 07 bf f4 ld [ %fp + -12 ], %g1 202c214: c2 22 20 0c st %g1, [ %o0 + 0xc ] 202c218: c2 07 bf f8 ld [ %fp + -8 ], %g1 202c21c: c2 22 20 10 st %g1, [ %o0 + 0x10 ] 202c220: c2 07 bf fc ld [ %fp + -4 ], %g1 202c224: c2 22 20 14 st %g1, [ %o0 + 0x14 ] return 0; } 202c228: 81 c7 e0 08 ret 202c22c: 91 e8 20 00 restore %g0, 0, %o0 { rtems_filesystem_location_info_t loc; int result; if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); 202c230: 40 00 72 85 call 2048c44 <__errno> 202c234: b0 10 3f ff mov -1, %i0 202c238: 82 10 20 0e mov 0xe, %g1 202c23c: c2 22 00 00 st %g1, [ %o0 ] 202c240: 81 c7 e0 08 ret 202c244: 81 e8 00 00 restore rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { rtems_filesystem_freenode( &loc ); 202c248: 80 a0 60 00 cmp %g1, 0 202c24c: 02 80 00 08 be 202c26c <== NEVER TAKEN 202c250: 01 00 00 00 nop 202c254: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 202c258: 80 a0 60 00 cmp %g1, 0 202c25c: 02 80 00 04 be 202c26c <== NEVER TAKEN 202c260: 01 00 00 00 nop 202c264: 9f c0 40 00 call %g1 202c268: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( ENOTDIR ); 202c26c: 40 00 72 76 call 2048c44 <__errno> 202c270: b0 10 3f ff mov -1, %i0 202c274: 82 10 20 14 mov 0x14, %g1 202c278: c2 22 00 00 st %g1, [ %o0 ] 202c27c: 81 c7 e0 08 ret 202c280: 81 e8 00 00 restore /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { rtems_filesystem_freenode( &loc ); 202c284: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202c288: 02 80 00 04 be 202c298 <== NOT EXECUTED 202c28c: 01 00 00 00 nop <== NOT EXECUTED 202c290: 9f c0 40 00 call %g1 <== NOT EXECUTED 202c294: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 202c298: 40 00 72 6b call 2048c44 <__errno> <== NOT EXECUTED 202c29c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202c2a0: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 202c2a4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202c2a8: 81 c7 e0 08 ret <== NOT EXECUTED 202c2ac: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 020082a8 : int chmod( const char *path, mode_t mode ) { 20082a8: 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 ); 20082ac: 40 01 1e 0e call 204fae4 20082b0: 90 10 00 18 mov %i0, %o0 20082b4: a0 07 bf ec add %fp, -20, %l0 20082b8: 92 10 00 08 mov %o0, %o1 20082bc: 94 10 20 00 clr %o2 20082c0: 90 10 00 18 mov %i0, %o0 20082c4: 96 10 00 10 mov %l0, %o3 20082c8: 98 10 20 01 mov 1, %o4 20082cc: 40 00 01 65 call 2008860 20082d0: b0 10 3f ff mov -1, %i0 if ( status != 0 ) 20082d4: 80 a2 20 00 cmp %o0, 0 20082d8: 12 80 00 15 bne 200832c 20082dc: c2 07 bf f4 ld [ %fp + -12 ], %g1 return -1; if ( !loc.handlers ){ 20082e0: 80 a0 60 00 cmp %g1, 0 20082e4: 22 80 00 24 be,a 2008374 <== NEVER TAKEN 20082e8: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EBADF ); } if ( !loc.handlers->fchmod_h ){ 20082ec: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20082f0: 80 a0 60 00 cmp %g1, 0 20082f4: 02 80 00 10 be 2008334 <== NEVER TAKEN 20082f8: 92 10 00 19 mov %i1, %o1 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->fchmod_h)( &loc, mode ); 20082fc: 9f c0 40 00 call %g1 2008300: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &loc ); 2008304: c2 07 bf f8 ld [ %fp + -8 ], %g1 2008308: 80 a0 60 00 cmp %g1, 0 200830c: 02 80 00 08 be 200832c <== NEVER TAKEN 2008310: b0 10 00 08 mov %o0, %i0 2008314: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2008318: 80 a0 60 00 cmp %g1, 0 200831c: 02 80 00 23 be 20083a8 <== NEVER TAKEN 2008320: 01 00 00 00 nop 2008324: 9f c0 40 00 call %g1 2008328: 90 10 00 10 mov %l0, %o0 return result; } 200832c: 81 c7 e0 08 ret 2008330: 81 e8 00 00 restore rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EBADF ); } if ( !loc.handlers->fchmod_h ){ rtems_filesystem_freenode( &loc ); 2008334: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2008338: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200833c: 02 80 00 08 be 200835c <== NOT EXECUTED 2008340: 01 00 00 00 nop <== NOT EXECUTED 2008344: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2008348: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200834c: 02 80 00 04 be 200835c <== NOT EXECUTED 2008350: 01 00 00 00 nop <== NOT EXECUTED 2008354: 9f c0 40 00 call %g1 <== NOT EXECUTED 2008358: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 200835c: 40 01 02 3a call 2048c44 <__errno> <== NOT EXECUTED 2008360: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2008364: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2008368: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200836c: 81 c7 e0 08 ret <== NOT EXECUTED 2008370: 81 e8 00 00 restore <== NOT EXECUTED status = rtems_filesystem_evaluate_path( path, strlen( path ), 0, &loc, true ); if ( status != 0 ) return -1; if ( !loc.handlers ){ rtems_filesystem_freenode( &loc ); 2008374: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2008378: 02 80 00 08 be 2008398 <== NOT EXECUTED 200837c: 01 00 00 00 nop <== NOT EXECUTED 2008380: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2008384: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2008388: 02 80 00 04 be 2008398 <== NOT EXECUTED 200838c: 01 00 00 00 nop <== NOT EXECUTED 2008390: 9f c0 40 00 call %g1 <== NOT EXECUTED 2008394: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); 2008398: 40 01 02 2b call 2048c44 <__errno> <== NOT EXECUTED 200839c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20083a0: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED 20083a4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20083a8: 81 c7 e0 08 ret <== NOT EXECUTED 20083ac: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0202c2b0 : int chown( const char *path, uid_t owner, gid_t group ) { 202c2b0: 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 ) ) 202c2b4: 40 00 8e 0c call 204fae4 202c2b8: 90 10 00 18 mov %i0, %o0 202c2bc: a0 07 bf ec add %fp, -20, %l0 202c2c0: 92 10 00 08 mov %o0, %o1 202c2c4: 94 10 20 00 clr %o2 202c2c8: 90 10 00 18 mov %i0, %o0 202c2cc: 96 10 00 10 mov %l0, %o3 202c2d0: 98 10 20 01 mov 1, %o4 202c2d4: 7f ff 71 63 call 2008860 202c2d8: b0 10 3f ff mov -1, %i0 202c2dc: 80 a2 20 00 cmp %o0, 0 202c2e0: 12 80 00 15 bne 202c334 202c2e4: c4 07 bf f8 ld [ %fp + -8 ], %g2 return -1; if ( !loc.ops->chown_h ) { 202c2e8: c2 00 a0 18 ld [ %g2 + 0x18 ], %g1 202c2ec: 80 a0 60 00 cmp %g1, 0 202c2f0: 02 80 00 13 be 202c33c <== NEVER TAKEN 202c2f4: 93 2e 60 10 sll %i1, 0x10, %o1 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->chown_h)( &loc, owner, group ); 202c2f8: 95 2e a0 10 sll %i2, 0x10, %o2 202c2fc: 93 32 60 10 srl %o1, 0x10, %o1 202c300: 95 32 a0 10 srl %o2, 0x10, %o2 202c304: 9f c0 40 00 call %g1 202c308: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &loc ); 202c30c: c2 07 bf f8 ld [ %fp + -8 ], %g1 202c310: 80 a0 60 00 cmp %g1, 0 202c314: 02 80 00 08 be 202c334 <== NEVER TAKEN 202c318: b0 10 00 08 mov %o0, %i0 202c31c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 202c320: 80 a0 60 00 cmp %g1, 0 202c324: 02 80 00 10 be 202c364 <== NEVER TAKEN 202c328: 01 00 00 00 nop 202c32c: 9f c0 40 00 call %g1 202c330: 90 10 00 10 mov %l0, %o0 return result; } 202c334: 81 c7 e0 08 ret 202c338: 81 e8 00 00 restore if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &loc, true ) ) return -1; if ( !loc.ops->chown_h ) { rtems_filesystem_freenode( &loc ); 202c33c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 202c340: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202c344: 02 80 00 04 be 202c354 <== NOT EXECUTED 202c348: 01 00 00 00 nop <== NOT EXECUTED 202c34c: 9f c0 40 00 call %g1 <== NOT EXECUTED 202c350: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 202c354: 40 00 72 3c call 2048c44 <__errno> <== NOT EXECUTED 202c358: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202c35c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 202c360: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202c364: 81 c7 e0 08 ret <== NOT EXECUTED 202c368: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0202c36c : #include int chroot( const char *pathname ) { 202c36c: 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) { 202c370: 21 00 81 bc sethi %hi(0x206f000), %l0 202c374: e2 04 23 24 ld [ %l0 + 0x324 ], %l1 ! 206f324 202c378: 03 00 81 cc sethi %hi(0x2073000), %g1 202c37c: 82 10 61 2c or %g1, 0x12c, %g1 ! 207312c 202c380: 80 a4 40 01 cmp %l1, %g1 202c384: 02 80 00 28 be 202c424 <== ALWAYS TAKEN 202c388: 01 00 00 00 nop rtems_libio_set_private_env(); /* try to set a new private env*/ if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = chdir(pathname); 202c38c: 7f ff ff 76 call 202c164 202c390: 90 10 00 18 mov %i0, %o0 if (result) { 202c394: 80 a2 20 00 cmp %o0, 0 202c398: 12 80 00 2f bne 202c454 <== NEVER TAKEN 202c39c: 11 00 81 a5 sethi %hi(0x2069400), %o0 rtems_set_errno_and_return_minus_one( errno ); } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 202c3a0: 92 10 20 01 mov 1, %o1 202c3a4: 90 12 21 78 or %o0, 0x178, %o0 202c3a8: 94 10 20 00 clr %o2 202c3ac: 96 07 bf ec add %fp, -20, %o3 202c3b0: 7f ff 71 2c call 2008860 202c3b4: 98 10 20 00 clr %o4 202c3b8: 80 a2 20 00 cmp %o0, 0 202c3bc: 12 80 00 26 bne 202c454 <== NEVER TAKEN 202c3c0: d0 04 23 24 ld [ %l0 + 0x324 ], %o0 /* our cwd has changed, though - but there is no easy way of return :-( */ rtems_set_errno_and_return_minus_one( errno ); } rtems_filesystem_freenode(&rtems_filesystem_root); 202c3c4: c2 02 20 24 ld [ %o0 + 0x24 ], %g1 202c3c8: 80 a0 60 00 cmp %g1, 0 202c3cc: 22 80 00 0b be,a 202c3f8 <== NEVER TAKEN 202c3d0: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED 202c3d4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 202c3d8: 80 a0 60 00 cmp %g1, 0 202c3dc: 22 80 00 07 be,a 202c3f8 <== NEVER TAKEN 202c3e0: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED 202c3e4: 9f c0 40 00 call %g1 202c3e8: 90 02 20 18 add %o0, 0x18, %o0 202c3ec: 03 00 81 bc sethi %hi(0x206f000), %g1 202c3f0: d0 00 63 24 ld [ %g1 + 0x324 ], %o0 ! 206f324 rtems_filesystem_root = loc; 202c3f4: c2 07 bf ec ld [ %fp + -20 ], %g1 202c3f8: c2 22 20 18 st %g1, [ %o0 + 0x18 ] 202c3fc: c2 07 bf f0 ld [ %fp + -16 ], %g1 202c400: c2 22 20 1c st %g1, [ %o0 + 0x1c ] 202c404: c2 07 bf f4 ld [ %fp + -12 ], %g1 202c408: c2 22 20 20 st %g1, [ %o0 + 0x20 ] 202c40c: c2 07 bf f8 ld [ %fp + -8 ], %g1 202c410: c2 22 20 24 st %g1, [ %o0 + 0x24 ] 202c414: c2 07 bf fc ld [ %fp + -4 ], %g1 202c418: c2 22 20 28 st %g1, [ %o0 + 0x28 ] return 0; } 202c41c: 81 c7 e0 08 ret 202c420: 91 e8 20 00 restore %g0, 0, %o0 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) { rtems_libio_set_private_env(); /* try to set a new private env*/ 202c424: 40 00 06 75 call 202ddf8 202c428: 01 00 00 00 nop if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ 202c42c: c2 04 23 24 ld [ %l0 + 0x324 ], %g1 202c430: 80 a0 40 11 cmp %g1, %l1 202c434: 12 bf ff d6 bne 202c38c <== ALWAYS TAKEN 202c438: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); 202c43c: 40 00 72 02 call 2048c44 <__errno> <== NOT EXECUTED 202c440: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 202c444: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 202c448: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202c44c: 81 c7 e0 08 ret <== NOT EXECUTED 202c450: 81 e8 00 00 restore <== NOT EXECUTED } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { /* our cwd has changed, though - but there is no easy way of return :-( */ rtems_set_errno_and_return_minus_one( errno ); 202c454: 40 00 71 fc call 2048c44 <__errno> <== NOT EXECUTED 202c458: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202c45c: 40 00 71 fa call 2048c44 <__errno> <== NOT EXECUTED 202c460: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED 202c464: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 202c468: c2 24 00 00 st %g1, [ %l0 ] <== NOT EXECUTED 202c46c: 81 c7 e0 08 ret <== NOT EXECUTED 202c470: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0200c730 : #include int close( int fd ) { 200c730: 9d e3 bf a0 save %sp, -96, %sp rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); 200c734: 03 00 80 74 sethi %hi(0x201d000), %g1 200c738: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 ! 201d044 200c73c: 80 a6 00 01 cmp %i0, %g1 200c740: 1a 80 00 21 bcc 200c7c4 200c744: 03 00 80 76 sethi %hi(0x201d800), %g1 iop = rtems_libio_iop(fd); 200c748: e0 00 61 d8 ld [ %g1 + 0x1d8 ], %l0 ! 201d9d8 200c74c: 83 2e 20 06 sll %i0, 6, %g1 200c750: b1 2e 20 03 sll %i0, 3, %i0 200c754: b0 06 00 01 add %i0, %g1, %i0 200c758: a0 04 00 18 add %l0, %i0, %l0 rtems_libio_check_is_open(iop); 200c75c: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 200c760: 80 88 61 00 btst 0x100, %g1 200c764: 02 80 00 18 be 200c7c4 200c768: 01 00 00 00 nop rc = RTEMS_SUCCESSFUL; if ( iop->handlers->close_h ) 200c76c: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 200c770: c2 00 60 04 ld [ %g1 + 4 ], %g1 200c774: 80 a0 60 00 cmp %g1, 0 200c778: 02 80 00 05 be 200c78c <== NEVER TAKEN 200c77c: b0 10 20 00 clr %i0 rc = (*iop->handlers->close_h)( iop ); 200c780: 9f c0 40 00 call %g1 200c784: 90 10 00 10 mov %l0, %o0 200c788: b0 10 00 08 mov %o0, %i0 rtems_filesystem_freenode( &iop->pathinfo ); 200c78c: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 200c790: 80 a0 60 00 cmp %g1, 0 200c794: 02 80 00 08 be 200c7b4 <== NEVER TAKEN 200c798: 01 00 00 00 nop 200c79c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200c7a0: 80 a0 60 00 cmp %g1, 0 200c7a4: 02 80 00 04 be 200c7b4 200c7a8: 01 00 00 00 nop 200c7ac: 9f c0 40 00 call %g1 200c7b0: 90 04 20 1c add %l0, 0x1c, %o0 rtems_libio_free( iop ); 200c7b4: 40 00 00 b0 call 200ca74 200c7b8: 90 10 00 10 mov %l0, %o0 return rc; } 200c7bc: 81 c7 e0 08 ret 200c7c0: 81 e8 00 00 restore rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); iop = rtems_libio_iop(fd); rtems_libio_check_is_open(iop); 200c7c4: 40 00 0f 23 call 2010450 <__errno> 200c7c8: b0 10 3f ff mov -1, %i0 200c7cc: 82 10 20 09 mov 9, %g1 200c7d0: c2 22 00 00 st %g1, [ %o0 ] 200c7d4: 81 c7 e0 08 ret 200c7d8: 81 e8 00 00 restore =============================================================================== 02002f3c : return disktab [major].minor + minor; } static rtems_status_code create_disk(dev_t dev, const char *name, rtems_disk_device **dd_ptr) { 2002f3c: 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) { 2002f40: 23 00 80 85 sethi %hi(0x2021400), %l1 2002f44: e4 04 62 a0 ld [ %l1 + 0x2a0 ], %l2 ! 20216a0 2002f48: 80 a6 00 12 cmp %i0, %l2 2002f4c: 1a 80 00 4a bcc 2003074 2002f50: a0 10 00 18 mov %i0, %l0 2002f54: 29 00 80 85 sethi %hi(0x2021400), %l4 2002f58: e6 05 22 9c ld [ %l4 + 0x29c ], %l3 ! 202169c memset(table + old_size, 0, (new_size - old_size) * sizeof(*table)); disktab = table; disktab_size = new_size; } if (disktab [major].minor == NULL || minor >= disktab[major].size) { 2002f5c: a3 2c 20 03 sll %l0, 3, %l1 2002f60: e4 04 c0 11 ld [ %l3 + %l1 ], %l2 2002f64: 80 a4 a0 00 cmp %l2, 0 2002f68: 02 80 00 2b be 2003014 2002f6c: a6 04 c0 11 add %l3, %l1, %l3 2002f70: ea 04 e0 04 ld [ %l3 + 4 ], %l5 2002f74: 80 a6 40 15 cmp %i1, %l5 2002f78: 1a 80 00 29 bcc 200301c <== NEVER TAKEN 2002f7c: 80 a5 60 00 cmp %l5, 0 memset(table + old_size, 0, (new_size - old_size) * sizeof(*table)); disktab [major].minor = table; disktab [major].size = new_size; } return disktab [major].minor + minor; 2002f80: 83 2e 60 02 sll %i1, 2, %g1 { rtems_disk_device **dd_entry = create_disk_table_entry(dev); rtems_disk_device *dd = NULL; char *alloc_name = NULL; if (dd_entry == NULL) { 2002f84: a2 84 80 01 addcc %l2, %g1, %l1 2002f88: 02 80 00 4e be 20030c0 <== NEVER TAKEN 2002f8c: 01 00 00 00 nop return RTEMS_NO_MEMORY; } if (*dd_entry != NULL) { 2002f90: c2 04 80 01 ld [ %l2 + %g1 ], %g1 2002f94: 80 a0 60 00 cmp %g1, 0 2002f98: 12 80 00 51 bne 20030dc 2002f9c: b0 10 20 0c mov 0xc, %i0 return RTEMS_RESOURCE_IN_USE; } dd = malloc(sizeof(*dd)); 2002fa0: 40 00 04 64 call 2004130 2002fa4: 90 10 20 38 mov 0x38, %o0 if (dd == NULL) { 2002fa8: a4 92 20 00 orcc %o0, 0, %l2 2002fac: 02 80 00 45 be 20030c0 <== NEVER TAKEN 2002fb0: 80 a6 a0 00 cmp %i2, 0 return RTEMS_NO_MEMORY; } if (name != NULL) { 2002fb4: 02 80 00 0f be 2002ff0 2002fb8: a6 10 20 00 clr %l3 alloc_name = strdup(name); 2002fbc: 40 00 49 38 call 201549c 2002fc0: 90 10 00 1a mov %i2, %o0 if (alloc_name == NULL) { 2002fc4: b4 92 20 00 orcc %o0, 0, %i2 2002fc8: 02 80 00 47 be 20030e4 <== NEVER TAKEN 2002fcc: a6 10 00 1a mov %i2, %l3 return RTEMS_NO_MEMORY; } } if (name != NULL) { if (mknod(alloc_name, 0777 | S_IFBLK, dev) < 0) { 2002fd0: 13 00 00 18 sethi %hi(0x6000), %o1 2002fd4: 94 10 00 10 mov %l0, %o2 2002fd8: 92 12 61 ff or %o1, 0x1ff, %o1 2002fdc: 40 00 04 9d call 2004250 2002fe0: 96 10 00 19 mov %i1, %o3 2002fe4: 80 a2 20 00 cmp %o0, 0 2002fe8: 06 80 00 38 bl 20030c8 <== NEVER TAKEN 2002fec: 01 00 00 00 nop dd->dev = dev; dd->name = alloc_name; dd->uses = 0; dd->deleted = false; *dd_entry = dd; 2002ff0: e4 24 40 00 st %l2, [ %l1 ] *dd_ptr = dd; 2002ff4: e4 26 c0 00 st %l2, [ %i3 ] free(dd); return RTEMS_UNSATISFIED; } } dd->dev = dev; 2002ff8: e0 24 80 00 st %l0, [ %l2 ] 2002ffc: f2 24 a0 04 st %i1, [ %l2 + 4 ] dd->name = alloc_name; 2003000: e6 24 a0 10 st %l3, [ %l2 + 0x10 ] dd->uses = 0; 2003004: c0 24 a0 14 clr [ %l2 + 0x14 ] dd->deleted = false; 2003008: c0 2c a0 30 clrb [ %l2 + 0x30 ] *dd_entry = dd; *dd_ptr = dd; return RTEMS_SUCCESSFUL; 200300c: 81 c7 e0 08 ret 2003010: 91 e8 20 00 restore %g0, 0, %o0 memset(table + old_size, 0, (new_size - old_size) * sizeof(*table)); disktab = table; disktab_size = new_size; } if (disktab [major].minor == NULL || minor >= disktab[major].size) { 2003014: ea 04 e0 04 ld [ %l3 + 4 ], %l5 rtems_disk_device **table = disktab [major].minor; rtems_device_minor_number old_size = disktab [major].size; rtems_device_minor_number new_size = 0; if (old_size == 0) { 2003018: 80 a5 60 00 cmp %l5, 0 200301c: 12 80 00 03 bne 2003028 <== NEVER TAKEN 2003020: a7 2d 60 01 sll %l5, 1, %l3 2003024: a6 10 20 08 mov 8, %l3 new_size = DISKTAB_INITIAL_SIZE; } else { new_size = 2 * old_size; } if (minor >= new_size) { 2003028: 80 a6 40 13 cmp %i1, %l3 200302c: 3a 80 00 02 bcc,a 2003034 2003030: a6 06 60 01 add %i1, 1, %l3 new_size = minor + 1; } table = realloc(table, new_size * sizeof(*table)); 2003034: 90 10 00 12 mov %l2, %o0 2003038: 40 00 07 75 call 2004e0c 200303c: 93 2c e0 02 sll %l3, 2, %o1 if (table == NULL) { 2003040: a4 92 20 00 orcc %o0, 0, %l2 2003044: 02 80 00 1f be 20030c0 2003048: 91 2d 60 02 sll %l5, 2, %o0 return NULL; } memset(table + old_size, 0, (new_size - old_size) * sizeof(*table)); 200304c: 94 24 c0 15 sub %l3, %l5, %o2 2003050: 90 04 80 08 add %l2, %o0, %o0 2003054: 95 2a a0 02 sll %o2, 2, %o2 2003058: 40 00 48 02 call 2015060 200305c: 92 10 20 00 clr %o1 disktab [major].minor = table; 2003060: c2 05 22 9c ld [ %l4 + 0x29c ], %g1 2003064: e4 20 40 11 st %l2, [ %g1 + %l1 ] 2003068: a2 00 40 11 add %g1, %l1, %l1 disktab [major].size = new_size; 200306c: 10 bf ff c5 b 2002f80 2003070: e6 24 60 04 st %l3, [ %l1 + 4 ] rtems_device_minor_number minor = 0; rtems_filesystem_split_dev_t(dev, major, minor); if (major >= disktab_size) { rtems_disk_device_table *table = disktab; 2003074: 29 00 80 85 sethi %hi(0x2021400), %l4 rtems_device_major_number old_size = disktab_size; rtems_device_major_number new_size = 2 * old_size; 2003078: ab 2c a0 01 sll %l2, 1, %l5 if (major >= new_size) { 200307c: 80 a6 00 15 cmp %i0, %l5 2003080: 0a 80 00 03 bcs 200308c <== NEVER TAKEN 2003084: d0 05 22 9c ld [ %l4 + 0x29c ], %o0 new_size = major + 1; 2003088: aa 06 20 01 add %i0, 1, %l5 } table = realloc(table, new_size * sizeof(*table)); 200308c: 40 00 07 60 call 2004e0c 2003090: 93 2d 60 03 sll %l5, 3, %o1 if (table == NULL) { 2003094: a6 92 20 00 orcc %o0, 0, %l3 2003098: 02 80 00 0a be 20030c0 <== ALWAYS TAKEN 200309c: 91 2c a0 03 sll %l2, 3, %o0 return NULL; } memset(table + old_size, 0, (new_size - old_size) * sizeof(*table)); 20030a0: 94 25 40 12 sub %l5, %l2, %o2 <== NOT EXECUTED 20030a4: 90 04 c0 08 add %l3, %o0, %o0 <== NOT EXECUTED 20030a8: 95 2a a0 03 sll %o2, 3, %o2 <== NOT EXECUTED 20030ac: 40 00 47 ed call 2015060 <== NOT EXECUTED 20030b0: 92 10 20 00 clr %o1 <== NOT EXECUTED disktab = table; disktab_size = new_size; 20030b4: ea 24 62 a0 st %l5, [ %l1 + 0x2a0 ] <== NOT EXECUTED if (table == NULL) { return NULL; } memset(table + old_size, 0, (new_size - old_size) * sizeof(*table)); disktab = table; 20030b8: 10 bf ff a9 b 2002f5c <== NOT EXECUTED 20030bc: e6 25 22 9c st %l3, [ %l4 + 0x29c ] <== NOT EXECUTED *dd_entry = dd; *dd_ptr = dd; return RTEMS_SUCCESSFUL; } 20030c0: 81 c7 e0 08 ret 20030c4: 91 e8 20 1a restore %g0, 0x1a, %o0 } } if (name != NULL) { if (mknod(alloc_name, 0777 | S_IFBLK, dev) < 0) { free(alloc_name); 20030c8: 40 00 03 32 call 2003d90 <== NOT EXECUTED 20030cc: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED free(dd); 20030d0: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 20030d4: 40 00 03 2f call 2003d90 <== NOT EXECUTED 20030d8: b0 10 20 0d mov 0xd, %i0 <== NOT EXECUTED return RTEMS_UNSATISFIED; 20030dc: 81 c7 e0 08 ret 20030e0: 81 e8 00 00 restore if (name != NULL) { alloc_name = strdup(name); if (alloc_name == NULL) { free(dd); 20030e4: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 20030e8: 40 00 03 2a call 2003d90 <== NOT EXECUTED 20030ec: b0 10 20 1a mov 0x1a, %i0 <== NOT EXECUTED return RTEMS_NO_MEMORY; 20030f0: 81 c7 e0 08 ret <== NOT EXECUTED 20030f4: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02009f60 : #include "devfs.h" int devFS_close( rtems_libio_t *iop ) { 2009f60: 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; 2009f64: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.flags = 0; 2009f68: c0 27 bf f8 clr [ %fp + -8 ] args.mode = 0; 2009f6c: c0 27 bf fc clr [ %fp + -4 ] status = rtems_io_close( 2009f70: d2 00 60 0c ld [ %g1 + 0xc ], %o1 2009f74: 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; 2009f78: f0 27 bf f4 st %i0, [ %fp + -12 ] args.flags = 0; args.mode = 0; status = rtems_io_close( 2009f7c: 94 07 bf f4 add %fp, -12, %o2 2009f80: 40 00 04 21 call 200b004 2009f84: b0 10 20 00 clr %i0 np->major, np->minor, (void *) &args ); if ( status ) { 2009f88: 80 a2 20 00 cmp %o0, 0 2009f8c: 12 80 00 04 bne 2009f9c <== NEVER TAKEN 2009f90: 01 00 00 00 nop return rtems_deviceio_errno(status); } return 0; } 2009f94: 81 c7 e0 08 ret 2009f98: 81 e8 00 00 restore np->major, np->minor, (void *) &args ); if ( status ) { return rtems_deviceio_errno(status); 2009f9c: 40 00 00 48 call 200a0bc <== NOT EXECUTED 2009fa0: 01 00 00 00 nop <== NOT EXECUTED } return 0; } 2009fa4: 81 c7 e0 08 ret <== NOT EXECUTED 2009fa8: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED =============================================================================== 02009fb8 : const char *pathname, size_t pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { 2009fb8: 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 ) ) 2009fbc: 80 8e bf f8 btst -8, %i2 2009fc0: 12 80 00 33 bne 200a08c <== NEVER TAKEN 2009fc4: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EPERM ); /* get the device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; 2009fc8: e4 06 c0 00 ld [ %i3 ], %l2 if (!device_name_table) 2009fcc: 80 a4 a0 00 cmp %l2, 0 2009fd0: 02 80 00 35 be 200a0a4 <== NEVER TAKEN 2009fd4: 03 00 80 3e sethi %hi(0x200f800), %g1 rtems_set_errno_and_return_minus_one( EFAULT ); for (i = 0; i < rtems_device_table_size; i++) { 2009fd8: e6 00 62 88 ld [ %g1 + 0x288 ], %l3 ! 200fa88 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 ); 2009fdc: a0 10 20 00 clr %l0 for (i = 0; i < rtems_device_table_size; i++) { 2009fe0: 80 a4 e0 00 cmp %l3, 0 2009fe4: 02 80 00 18 be 200a044 <== NEVER TAKEN 2009fe8: 82 10 20 00 clr %g1 if (!device_name_table[i].device_name) 2009fec: 85 28 60 04 sll %g1, 4, %g2 2009ff0: a9 28 60 02 sll %g1, 2, %l4 2009ff4: a8 05 00 02 add %l4, %g2, %l4 2009ff8: e2 04 80 14 ld [ %l2 + %l4 ], %l1 /* 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++) { 2009ffc: a0 04 20 01 inc %l0 if (!device_name_table[i].device_name) 200a000: 80 a4 60 00 cmp %l1, 0 200a004: 02 80 00 0d be 200a038 200a008: a8 04 80 14 add %l2, %l4, %l4 continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) 200a00c: 90 10 00 18 mov %i0, %o0 200a010: 92 10 00 11 mov %l1, %o1 200a014: 40 00 0b d1 call 200cf58 200a018: 94 10 00 19 mov %i1, %o2 200a01c: 80 a2 20 00 cmp %o0, 0 200a020: 12 80 00 07 bne 200a03c <== NEVER TAKEN 200a024: 80 a4 c0 10 cmp %l3, %l0 continue; if (device_name_table[i].device_name[pathnamelen] != '\0') 200a028: c2 4c 40 19 ldsb [ %l1 + %i1 ], %g1 200a02c: 80 a0 60 00 cmp %g1, 0 200a030: 02 80 00 0b be 200a05c 200a034: 03 00 80 3f sethi %hi(0x200fc00), %g1 /* 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++) { 200a038: 80 a4 c0 10 cmp %l3, %l0 200a03c: 18 bf ff ec bgu 2009fec 200a040: 82 10 00 10 mov %l0, %g1 pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; } /* no such file or directory */ rtems_set_errno_and_return_minus_one( ENOENT ); 200a044: 40 00 08 24 call 200c0d4 <__errno> 200a048: b0 10 3f ff mov -1, %i0 200a04c: 82 10 20 02 mov 2, %g1 200a050: c2 22 00 00 st %g1, [ %o0 ] } 200a054: 81 c7 e0 08 ret 200a058: 81 e8 00 00 restore /* 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; 200a05c: c2 00 60 b8 ld [ %g1 + 0xb8 ], %g1 if (device_name_table[i].device_name[pathnamelen] != '\0') continue; /* find the device, set proper values */ pathloc->node_access = (void *)&device_name_table[i]; 200a060: e8 26 c0 00 st %l4, [ %i3 ] pathloc->handlers = &devFS_file_handlers; pathloc->ops = &devFS_ops; pathloc->mt_entry = rtems_filesystem_root.mt_entry; 200a064: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 200a068: 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; 200a06c: 03 00 80 3f sethi %hi(0x200fc00), %g1 200a070: 82 10 60 60 or %g1, 0x60, %g1 ! 200fc60 200a074: c2 26 e0 08 st %g1, [ %i3 + 8 ] pathloc->ops = &devFS_ops; 200a078: 03 00 80 3f sethi %hi(0x200fc00), %g1 200a07c: 82 10 60 18 or %g1, 0x18, %g1 ! 200fc18 200a080: c2 26 e0 0c st %g1, [ %i3 + 0xc ] pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; 200a084: 81 c7 e0 08 ret 200a088: 91 e8 20 00 restore %g0, 0, %o0 int i; rtems_device_name_t *device_name_table; /* see if 'flags' is valid */ if ( !rtems_libio_is_valid_perms( flags ) ) rtems_set_errno_and_return_minus_one( EPERM ); 200a08c: 40 00 08 12 call 200c0d4 <__errno> <== NOT EXECUTED 200a090: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200a094: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 200a098: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200a09c: 81 c7 e0 08 ret <== NOT EXECUTED 200a0a0: 81 e8 00 00 restore <== NOT EXECUTED /* 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 ); 200a0a4: 40 00 08 0c call 200c0d4 <__errno> <== NOT EXECUTED 200a0a8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200a0ac: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 200a0b0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200a0b4: 81 c7 e0 08 ret <== NOT EXECUTED 200a0b8: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02001fd8 : int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry, const void *data ) { 2001fd8: 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( 2001fdc: 23 00 80 3e sethi %hi(0x200f800), %l1 2001fe0: c2 04 62 88 ld [ %l1 + 0x288 ], %g1 ! 200fa88 2001fe4: 85 28 60 04 sll %g1, 4, %g2 2001fe8: 83 28 60 02 sll %g1, 2, %g1 2001fec: 40 00 1e 0d call 2009820 <_Workspace_Allocate> 2001ff0: 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) 2001ff4: a0 92 20 00 orcc %o0, 0, %l0 2001ff8: 02 80 00 10 be 2002038 <== NEVER TAKEN 2001ffc: c2 04 62 88 ld [ %l1 + 0x288 ], %g1 rtems_set_errno_and_return_minus_one( ENOMEM ); memset( 2002000: 92 10 20 00 clr %o1 2002004: 85 28 60 04 sll %g1, 4, %g2 2002008: 83 28 60 02 sll %g1, 2, %g1 200200c: 40 00 2a 93 call 200ca58 2002010: 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; 2002014: 03 00 80 3f sethi %hi(0x200fc00), %g1 2002018: 82 10 60 60 or %g1, 0x60, %g1 ! 200fc60 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; 200201c: 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; 2002020: c2 26 20 24 st %g1, [ %i0 + 0x24 ] temp_mt_entry->mt_fs_root.ops = &devFS_ops; 2002024: 03 00 80 3f sethi %hi(0x200fc00), %g1 2002028: 82 10 60 18 or %g1, 0x18, %g1 ! 200fc18 200202c: 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; } 2002030: 81 c7 e0 08 ret 2002034: 91 e8 20 00 restore %g0, 0, %o0 sizeof( rtems_device_name_t ) * ( rtems_device_table_size ) ); /* no memory for device filesystem */ if (!device_name_table) rtems_set_errno_and_return_minus_one( ENOMEM ); 2002038: 40 00 28 27 call 200c0d4 <__errno> <== NOT EXECUTED 200203c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2002040: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 2002044: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2002048: 81 c7 e0 08 ret <== NOT EXECUTED 200204c: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 020021fc : int devFS_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 20021fc: 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; 2002200: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.command = command; 2002204: f2 27 bf f4 st %i1, [ %fp + -12 ] args.buffer = buffer; status = rtems_io_control( 2002208: d2 00 60 0c ld [ %g1 + 0xc ], %o1 200220c: 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; 2002210: f0 27 bf f0 st %i0, [ %fp + -16 ] args.command = command; args.buffer = buffer; 2002214: f4 27 bf f8 st %i2, [ %fp + -8 ] status = rtems_io_control( 2002218: 40 00 11 45 call 200672c 200221c: 94 07 bf f0 add %fp, -16, %o2 np->major, np->minor, (void *) &args ); if ( status ) 2002220: 80 a2 20 00 cmp %o0, 0 2002224: 12 80 00 05 bne 2002238 <== NEVER TAKEN 2002228: 01 00 00 00 nop return rtems_deviceio_errno(status); return args.ioctl_return; 200222c: f0 07 bf fc ld [ %fp + -4 ], %i0 } 2002230: 81 c7 e0 08 ret 2002234: 81 e8 00 00 restore np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 2002238: 40 00 1f a1 call 200a0bc <== NOT EXECUTED 200223c: 01 00 00 00 nop <== NOT EXECUTED 2002240: 81 c7 e0 08 ret <== NOT EXECUTED 2002244: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED =============================================================================== 02002050 : const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) { 2002050: 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') && 2002054: c2 4e 00 00 ldsb [ %i0 ], %g1 2002058: 80 a0 60 64 cmp %g1, 0x64 200205c: 02 80 00 43 be 2002168 <== ALWAYS TAKEN 2002060: a0 10 00 18 mov %i0, %l0 (path[2] == 'v') && (path[3] == '\0')) return 0; /* must be a character device or a block device */ if (!S_ISBLK(mode) && !S_ISCHR(mode)) 2002064: 03 00 00 3c sethi %hi(0xf000), %g1 2002068: 05 00 00 08 sethi %hi(0x2000), %g2 200206c: 82 0e 40 01 and %i1, %g1, %g1 2002070: 80 a0 40 02 cmp %g1, %g2 2002074: 12 80 00 4b bne 20021a0 <== NEVER TAKEN 2002078: 05 00 00 18 sethi %hi(0x6000), %g2 rtems_set_errno_and_return_minus_one( EINVAL ); 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; 200207c: e4 07 00 00 ld [ %i4 ], %l2 if (!device_name_table) 2002080: 80 a4 a0 00 cmp %l2, 0 2002084: 02 80 00 56 be 20021dc <== NEVER TAKEN 2002088: 03 00 80 3e sethi %hi(0x200f800), %g1 rtems_set_errno_and_return_minus_one( EFAULT ); for (slot = -1, i = 0; i < rtems_device_table_size; i++){ 200208c: e6 00 62 88 ld [ %g1 + 0x288 ], %l3 ! 200fa88 2002090: 80 a4 e0 00 cmp %l3, 0 2002094: 02 80 00 4c be 20021c4 <== NEVER TAKEN 2002098: 82 10 20 00 clr %g1 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) rtems_set_errno_and_return_minus_one( EFAULT ); 200209c: a8 10 3f ff mov -1, %l4 20020a0: 10 80 00 0a b 20020c8 20020a4: a2 10 20 00 clr %l1 for (slot = -1, i = 0; i < rtems_device_table_size; i++){ if (device_name_table[i].device_name == NULL) slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) 20020a8: 40 00 2b 26 call 200cd40 20020ac: 01 00 00 00 nop 20020b0: 80 a2 20 00 cmp %o0, 0 20020b4: 02 80 00 27 be 2002150 <== NEVER TAKEN 20020b8: a2 04 60 01 inc %l1 /* 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++){ 20020bc: 80 a4 40 13 cmp %l1, %l3 20020c0: 1a 80 00 0e bcc 20020f8 <== ALWAYS TAKEN 20020c4: 82 10 00 11 mov %l1, %g1 if (device_name_table[i].device_name == NULL) 20020c8: 85 28 60 04 sll %g1, 4, %g2 20020cc: 83 28 60 02 sll %g1, 2, %g1 20020d0: 82 00 40 02 add %g1, %g2, %g1 20020d4: d2 04 80 01 ld [ %l2 + %g1 ], %o1 20020d8: 80 a2 60 00 cmp %o1, 0 20020dc: 12 bf ff f3 bne 20020a8 20020e0: 90 10 00 10 mov %l0, %o0 slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); 20020e4: a8 10 00 11 mov %l1, %l4 /* 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++){ 20020e8: a2 04 60 01 inc %l1 20020ec: 80 a4 40 13 cmp %l1, %l3 20020f0: 0a bf ff f6 bcs 20020c8 20020f4: 82 10 00 11 mov %l1, %g1 else if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); } if (slot == -1) 20020f8: 80 a5 3f ff cmp %l4, -1 20020fc: 02 80 00 32 be 20021c4 <== NEVER TAKEN 2002100: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOMEM ); _ISR_Disable(level); 2002104: 7f ff ff 3e call 2001dfc 2002108: 01 00 00 00 nop 200210c: a2 10 00 08 mov %o0, %l1 device_name_table[slot].device_name = (char *)path; 2002110: 83 2d 20 04 sll %l4, 4, %g1 device_name_table[slot].device_name_length = strlen(path); 2002114: 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; 2002118: a9 2d 20 02 sll %l4, 2, %l4 200211c: a8 05 00 01 add %l4, %g1, %l4 2002120: e0 24 80 14 st %l0, [ %l2 + %l4 ] device_name_table[slot].device_name_length = strlen(path); 2002124: 40 00 2b 58 call 200ce84 2002128: a4 04 80 14 add %l2, %l4, %l2 device_name_table[slot].major = major; device_name_table[slot].minor = minor; device_name_table[slot].mode = mode; 200212c: f2 24 a0 10 st %i1, [ %l2 + 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); 2002130: d0 24 a0 04 st %o0, [ %l2 + 4 ] device_name_table[slot].major = major; 2002134: f4 24 a0 08 st %i2, [ %l2 + 8 ] device_name_table[slot].minor = minor; 2002138: f6 24 a0 0c st %i3, [ %l2 + 0xc ] device_name_table[slot].mode = mode; _ISR_Enable(level); 200213c: b0 10 20 00 clr %i0 2002140: 7f ff ff 33 call 2001e0c 2002144: 90 10 00 11 mov %l1, %o0 return 0; } 2002148: 81 c7 e0 08 ret 200214c: 81 e8 00 00 restore for (slot = -1, i = 0; i < rtems_device_table_size; i++){ if (device_name_table[i].device_name == NULL) slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); 2002150: 40 00 27 e1 call 200c0d4 <__errno> <== NOT EXECUTED 2002154: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2002158: 82 10 20 11 mov 0x11, %g1 <== NOT EXECUTED 200215c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2002160: 81 c7 e0 08 ret <== NOT EXECUTED 2002164: 81 e8 00 00 restore <== NOT EXECUTED * 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') && 2002168: c2 4e 20 01 ldsb [ %i0 + 1 ], %g1 200216c: 80 a0 60 65 cmp %g1, 0x65 2002170: 12 bf ff be bne 2002068 <== NEVER TAKEN 2002174: 03 00 00 3c sethi %hi(0xf000), %g1 (path[2] == 'v') && (path[3] == '\0')) 2002178: c2 4e 20 02 ldsb [ %i0 + 2 ], %g1 200217c: 80 a0 60 76 cmp %g1, 0x76 2002180: 12 bf ff ba bne 2002068 <== NEVER TAKEN 2002184: 03 00 00 3c sethi %hi(0xf000), %g1 2002188: c2 4e 20 03 ldsb [ %i0 + 3 ], %g1 200218c: 80 a0 60 00 cmp %g1, 0 2002190: 12 bf ff b5 bne 2002064 2002194: b0 10 20 00 clr %i0 device_name_table[slot].minor = minor; device_name_table[slot].mode = mode; _ISR_Enable(level); return 0; } 2002198: 81 c7 e0 08 ret 200219c: 81 e8 00 00 restore if ((path[0] == 'd') && (path[1] == 'e') && (path[2] == 'v') && (path[3] == '\0')) return 0; /* must be a character device or a block device */ if (!S_ISBLK(mode) && !S_ISCHR(mode)) 20021a0: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 20021a4: 22 bf ff b7 be,a 2002080 <== NOT EXECUTED 20021a8: e4 07 00 00 ld [ %i4 ], %l2 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); 20021ac: 40 00 27 ca call 200c0d4 <__errno> <== NOT EXECUTED 20021b0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20021b4: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 20021b8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20021bc: 81 c7 e0 08 ret <== NOT EXECUTED 20021c0: 81 e8 00 00 restore <== NOT EXECUTED if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); } if (slot == -1) rtems_set_errno_and_return_minus_one( ENOMEM ); 20021c4: 40 00 27 c4 call 200c0d4 <__errno> <== NOT EXECUTED 20021c8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20021cc: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 20021d0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20021d4: 81 c7 e0 08 ret <== NOT EXECUTED 20021d8: 81 e8 00 00 restore <== NOT EXECUTED 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) rtems_set_errno_and_return_minus_one( EFAULT ); 20021dc: 40 00 27 be call 200c0d4 <__errno> <== NOT EXECUTED 20021e0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20021e4: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 20021e8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20021ec: 81 c7 e0 08 ret <== NOT EXECUTED 20021f0: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02002248 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 2002248: 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; 200224c: 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; 2002250: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.flags = iop->flags; 2002254: c4 27 bf f8 st %g2, [ %fp + -8 ] args.mode = mode; 2002258: f6 27 bf fc st %i3, [ %fp + -4 ] status = rtems_io_open( 200225c: d2 00 60 0c ld [ %g1 + 0xc ], %o1 2002260: 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; 2002264: f0 27 bf f4 st %i0, [ %fp + -12 ] args.flags = iop->flags; args.mode = mode; status = rtems_io_open( 2002268: 94 07 bf f4 add %fp, -12, %o2 200226c: 40 00 11 8d call 20068a0 2002270: b0 10 20 00 clr %i0 np->major, np->minor, (void *) &args ); if ( status ) 2002274: 80 a2 20 00 cmp %o0, 0 2002278: 12 80 00 04 bne 2002288 <== NEVER TAKEN 200227c: 01 00 00 00 nop return rtems_deviceio_errno(status); return 0; } 2002280: 81 c7 e0 08 ret 2002284: 81 e8 00 00 restore np->major, np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 2002288: 40 00 1f 8d call 200a0bc <== NOT EXECUTED 200228c: 01 00 00 00 nop <== NOT EXECUTED return 0; } 2002290: 81 c7 e0 08 ret <== NOT EXECUTED 2002294: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED =============================================================================== 02002298 : ssize_t devFS_read( rtems_libio_t *iop, void *buffer, size_t count ) { 2002298: 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; 200229c: 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; 20022a0: 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; 20022a4: 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; 20022a8: f4 27 bf f4 st %i2, [ %fp + -12 ] <== NOT EXECUTED args.flags = iop->flags; args.bytes_moved = 0; 20022ac: 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; 20022b0: 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( 20022b4: d2 00 60 0c ld [ %g1 + 0xc ], %o1 <== NOT EXECUTED 20022b8: 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; 20022bc: c4 3f bf e8 std %g2, [ %fp + -24 ] <== NOT EXECUTED args.buffer = buffer; 20022c0: 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; 20022c4: 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( 20022c8: 40 00 11 8e call 2006900 <== NOT EXECUTED 20022cc: 94 07 bf e0 add %fp, -32, %o2 <== NOT EXECUTED np->major, np->minor, (void *) &args ); if ( status ) 20022d0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20022d4: 12 80 00 05 bne 20022e8 <== NOT EXECUTED 20022d8: 01 00 00 00 nop <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 20022dc: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED } 20022e0: 81 c7 e0 08 ret <== NOT EXECUTED 20022e4: 81 e8 00 00 restore <== NOT EXECUTED np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 20022e8: 40 00 1f 75 call 200a0bc <== NOT EXECUTED 20022ec: 01 00 00 00 nop <== NOT EXECUTED 20022f0: 81 c7 e0 08 ret <== NOT EXECUTED 20022f4: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED =============================================================================== 020022f8 : int devFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 20022f8: 9d e3 bf a0 save %sp, -96, %sp rtems_device_name_t *the_dev; the_dev = (rtems_device_name_t *)loc->node_access; 20022fc: c2 06 00 00 ld [ %i0 ], %g1 if (!the_dev) 2002300: 80 a0 60 00 cmp %g1, 0 2002304: 02 80 00 0a be 200232c <== NEVER TAKEN 2002308: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EFAULT ); buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor ); 200230c: c4 00 60 0c ld [ %g1 + 0xc ], %g2 buf->st_mode = the_dev->mode; 2002310: c6 00 60 10 ld [ %g1 + 0x10 ], %g3 rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; 2002314: 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 ); 2002318: c4 26 60 1c st %g2, [ %i1 + 0x1c ] buf->st_mode = the_dev->mode; 200231c: 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 ); 2002320: c2 26 60 18 st %g1, [ %i1 + 0x18 ] buf->st_mode = the_dev->mode; return 0; } 2002324: 81 c7 e0 08 ret 2002328: 91 e8 20 00 restore %g0, 0, %o0 { rtems_device_name_t *the_dev; the_dev = (rtems_device_name_t *)loc->node_access; if (!the_dev) rtems_set_errno_and_return_minus_one( EFAULT ); 200232c: 40 00 27 6a call 200c0d4 <__errno> <== NOT EXECUTED 2002330: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2002334: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 2002338: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200233c: 81 c7 e0 08 ret <== NOT EXECUTED 2002340: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02002344 : ssize_t devFS_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 2002344: 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; 2002348: 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; 200234c: 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; 2002350: 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; 2002354: f4 27 bf f4 st %i2, [ %fp + -12 ] args.flags = iop->flags; args.bytes_moved = 0; 2002358: 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; 200235c: 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( 2002360: d2 00 60 0c ld [ %g1 + 0xc ], %o1 2002364: 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; 2002368: c4 3f bf e8 std %g2, [ %fp + -24 ] args.buffer = (void *) buffer; 200236c: 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; 2002370: 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( 2002374: 40 00 11 7b call 2006960 2002378: 94 07 bf e0 add %fp, -32, %o2 np->major, np->minor, (void *) &args ); if ( status ) 200237c: 80 a2 20 00 cmp %o0, 0 2002380: 12 80 00 05 bne 2002394 <== NEVER TAKEN 2002384: 01 00 00 00 nop return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 2002388: f0 07 bf fc ld [ %fp + -4 ], %i0 } 200238c: 81 c7 e0 08 ret 2002390: 81 e8 00 00 restore np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 2002394: 40 00 1f 4a call 200a0bc <== NOT EXECUTED 2002398: 01 00 00 00 nop <== NOT EXECUTED 200239c: 81 c7 e0 08 ret <== NOT EXECUTED 20023a0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED =============================================================================== 0200f5c8 : */ int device_close( rtems_libio_t *iop ) { 200f5c8: 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; 200f5cc: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; 200f5d0: f0 27 bf f4 st %i0, [ %fp + -12 ] args.flags = 0; 200f5d4: c0 27 bf f8 clr [ %fp + -8 ] args.mode = 0; 200f5d8: c0 27 bf fc clr [ %fp + -4 ] status = rtems_io_close( 200f5dc: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 200f5e0: 94 07 bf f4 add %fp, -12, %o2 200f5e4: 40 00 02 70 call 200ffa4 200f5e8: b0 10 20 00 clr %i0 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) { 200f5ec: 80 a2 20 00 cmp %o0, 0 200f5f0: 12 80 00 04 bne 200f600 <== NEVER TAKEN 200f5f4: 01 00 00 00 nop return rtems_deviceio_errno(status); } return 0; } 200f5f8: 81 c7 e0 08 ret 200f5fc: 81 e8 00 00 restore the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) { return rtems_deviceio_errno(status); 200f600: 40 00 03 51 call 2010344 <== NOT EXECUTED 200f604: 01 00 00 00 nop <== NOT EXECUTED } return 0; } 200f608: 81 c7 e0 08 ret <== NOT EXECUTED 200f60c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED =============================================================================== 0200f4c8 : int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 200f4c8: 9d e3 bf 90 save %sp, -112, %sp args.iop = iop; args.command = command; args.buffer = buffer; the_jnode = iop->file_info; 200f4cc: 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; 200f4d0: f2 27 bf f4 st %i1, [ %fp + -12 ] args.buffer = buffer; 200f4d4: 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; 200f4d8: f0 27 bf f0 st %i0, [ %fp + -16 ] args.command = command; args.buffer = buffer; the_jnode = iop->file_info; status = rtems_io_control( 200f4dc: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 200f4e0: 40 00 02 c9 call 2010004 200f4e4: 94 07 bf f0 add %fp, -16, %o2 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200f4e8: 80 a2 20 00 cmp %o0, 0 200f4ec: 12 80 00 05 bne 200f500 <== NEVER TAKEN 200f4f0: 01 00 00 00 nop return rtems_deviceio_errno(status); return args.ioctl_return; 200f4f4: f0 07 bf fc ld [ %fp + -4 ], %i0 } 200f4f8: 81 c7 e0 08 ret 200f4fc: 81 e8 00 00 restore the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 200f500: 40 00 03 91 call 2010344 <== NOT EXECUTED 200f504: 01 00 00 00 nop <== NOT EXECUTED 200f508: 81 c7 e0 08 ret <== NOT EXECUTED 200f50c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED =============================================================================== 0200f610 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 200f610: 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; 200f614: 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; 200f618: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; 200f61c: f0 27 bf f4 st %i0, [ %fp + -12 ] args.flags = iop->flags; 200f620: c4 27 bf f8 st %g2, [ %fp + -8 ] args.mode = mode; 200f624: f6 27 bf fc st %i3, [ %fp + -4 ] status = rtems_io_open( 200f628: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 200f62c: 94 07 bf f4 add %fp, -12, %o2 200f630: 40 00 02 8d call 2010064 200f634: b0 10 20 00 clr %i0 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200f638: 80 a2 20 00 cmp %o0, 0 200f63c: 12 80 00 04 bne 200f64c <== NEVER TAKEN 200f640: 01 00 00 00 nop return rtems_deviceio_errno(status); return 0; } 200f644: 81 c7 e0 08 ret 200f648: 81 e8 00 00 restore the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 200f64c: 40 00 03 3e call 2010344 <== NOT EXECUTED 200f650: 01 00 00 00 nop <== NOT EXECUTED return 0; } 200f654: 81 c7 e0 08 ret <== NOT EXECUTED 200f658: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED =============================================================================== 0200f56c : ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { 200f56c: 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; 200f570: 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; 200f574: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.offset = iop->offset; 200f578: d8 1e 20 10 ldd [ %i0 + 0x10 ], %o4 args.buffer = buffer; 200f57c: 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; 200f580: d8 3f bf e8 std %o4, [ %fp + -24 ] args.buffer = buffer; args.count = count; 200f584: f4 27 bf f4 st %i2, [ %fp + -12 ] args.flags = iop->flags; 200f588: 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; 200f58c: 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; 200f590: c0 27 bf fc clr [ %fp + -4 ] status = rtems_io_read( 200f594: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 200f598: 40 00 02 cb call 20100c4 200f59c: 94 07 bf e0 add %fp, -32, %o2 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200f5a0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200f5a4: 12 80 00 05 bne 200f5b8 <== NOT EXECUTED 200f5a8: 01 00 00 00 nop <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 200f5ac: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED } 200f5b0: 81 c7 e0 08 ret <== NOT EXECUTED 200f5b4: 81 e8 00 00 restore <== NOT EXECUTED the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 200f5b8: 40 00 03 63 call 2010344 <== NOT EXECUTED 200f5bc: 01 00 00 00 nop <== NOT EXECUTED 200f5c0: 81 c7 e0 08 ret <== NOT EXECUTED 200f5c4: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED =============================================================================== 0200f510 : ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 200f510: 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; 200f514: 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; 200f518: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.offset = iop->offset; 200f51c: d8 1e 20 10 ldd [ %i0 + 0x10 ], %o4 args.buffer = (void *) buffer; 200f520: 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; 200f524: d8 3f bf e8 std %o4, [ %fp + -24 ] args.buffer = (void *) buffer; args.count = count; 200f528: f4 27 bf f4 st %i2, [ %fp + -12 ] args.flags = iop->flags; 200f52c: 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; 200f530: 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; 200f534: c0 27 bf fc clr [ %fp + -4 ] status = rtems_io_write( 200f538: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 200f53c: 40 00 02 fa call 2010124 200f540: 94 07 bf e0 add %fp, -32, %o2 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200f544: 80 a2 20 00 cmp %o0, 0 200f548: 12 80 00 05 bne 200f55c <== NEVER TAKEN 200f54c: 01 00 00 00 nop return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 200f550: f0 07 bf fc ld [ %fp + -4 ], %i0 } 200f554: 81 c7 e0 08 ret 200f558: 81 e8 00 00 restore the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 200f55c: 40 00 03 7a call 2010344 <== NOT EXECUTED 200f560: 01 00 00 00 nop <== NOT EXECUTED 200f564: 81 c7 e0 08 ret <== NOT EXECUTED 200f568: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED =============================================================================== 02002b28 : */ static volatile bool diskdevs_protected; static rtems_status_code disk_lock(void) { 2002b28: 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); 2002b2c: 03 00 80 85 sethi %hi(0x2021400), %g1 2002b30: d0 00 62 a4 ld [ %g1 + 0x2a4 ], %o0 ! 20216a4 2002b34: 92 10 20 00 clr %o1 2002b38: 94 10 20 00 clr %o2 2002b3c: 40 00 14 63 call 2007cc8 2002b40: b0 10 20 16 mov 0x16, %i0 if (sc == RTEMS_SUCCESSFUL) { 2002b44: 80 a2 20 00 cmp %o0, 0 2002b48: 12 80 00 05 bne 2002b5c <== NEVER TAKEN 2002b4c: 84 10 20 01 mov 1, %g2 diskdevs_protected = true; 2002b50: 03 00 80 85 sethi %hi(0x2021400), %g1 2002b54: b0 10 20 00 clr %i0 2002b58: c4 28 62 a8 stb %g2, [ %g1 + 0x2a8 ] return RTEMS_SUCCESSFUL; } else { return RTEMS_NOT_CONFIGURED; } } 2002b5c: 81 c7 e0 08 ret 2002b60: 81 e8 00 00 restore =============================================================================== 02002b64 : static void disk_unlock(void) { 2002b64: 9d e3 bf a0 save %sp, -96, %sp rtems_status_code sc = RTEMS_SUCCESSFUL; diskdevs_protected = false; sc = rtems_semaphore_release(diskdevs_mutex); 2002b68: 03 00 80 85 sethi %hi(0x2021400), %g1 2002b6c: d0 00 62 a4 ld [ %g1 + 0x2a4 ], %o0 ! 20216a4 static void disk_unlock(void) { rtems_status_code sc = RTEMS_SUCCESSFUL; diskdevs_protected = false; 2002b70: 03 00 80 85 sethi %hi(0x2021400), %g1 2002b74: c0 28 62 a8 clrb [ %g1 + 0x2a8 ] ! 20216a8 sc = rtems_semaphore_release(diskdevs_mutex); 2002b78: 40 00 14 9b call 2007de4 2002b7c: 01 00 00 00 nop if (sc != RTEMS_SUCCESSFUL) { 2002b80: 80 a2 20 00 cmp %o0, 0 2002b84: 12 80 00 04 bne 2002b94 <== NEVER TAKEN 2002b88: 11 37 ab 6f sethi %hi(0xdeadbc00), %o0 2002b8c: 81 c7 e0 08 ret 2002b90: 81 e8 00 00 restore /* FIXME: Error number */ rtems_fatal_error_occurred(0xdeadbeef); 2002b94: 40 00 15 d4 call 20082e4 <== NOT EXECUTED 2002b98: 90 12 22 ef or %o0, 0x2ef, %o0 <== NOT EXECUTED =============================================================================== 02004d38 : /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { 2004d38: 9d e3 bf a0 save %sp, -96, %sp rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { 2004d3c: c2 06 20 b4 ld [ %i0 + 0xb4 ], %g1 2004d40: 80 a0 60 00 cmp %g1, 0 2004d44: 12 80 00 04 bne 2004d54 <== NEVER TAKEN 2004d48: 01 00 00 00 nop 2004d4c: 81 c7 e0 08 ret 2004d50: 81 e8 00 00 restore rtems_interrupt_disable (level); 2004d54: 7f ff f4 d4 call 20020a4 <== NOT EXECUTED 2004d58: 01 00 00 00 nop <== NOT EXECUTED while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) { 2004d5c: c4 06 20 84 ld [ %i0 + 0x84 ], %g2 <== NOT EXECUTED 2004d60: c2 06 20 80 ld [ %i0 + 0x80 ], %g1 <== NOT EXECUTED 2004d64: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2004d68: 02 80 00 14 be 2004db8 <== NOT EXECUTED 2004d6c: 01 00 00 00 nop <== NOT EXECUTED tty->rawOutBufState = rob_wait; 2004d70: a0 10 20 02 mov 2, %l0 ! 2 <== NOT EXECUTED 2004d74: e0 26 20 94 st %l0, [ %i0 + 0x94 ] <== NOT EXECUTED rtems_interrupt_enable (level); 2004d78: 7f ff f4 cf call 20020b4 <== NOT EXECUTED 2004d7c: 01 00 00 00 nop <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 2004d80: d0 06 20 8c ld [ %i0 + 0x8c ], %o0 <== NOT EXECUTED 2004d84: 92 10 20 00 clr %o1 <== NOT EXECUTED 2004d88: 40 00 06 d3 call 20068d4 <== NOT EXECUTED 2004d8c: 94 10 20 00 clr %o2 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 2004d90: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004d94: 12 80 00 0b bne 2004dc0 <== NOT EXECUTED 2004d98: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); 2004d9c: 7f ff f4 c2 call 20020a4 <== NOT EXECUTED 2004da0: 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) { 2004da4: c4 06 20 84 ld [ %i0 + 0x84 ], %g2 <== NOT EXECUTED 2004da8: c2 06 20 80 ld [ %i0 + 0x80 ], %g1 <== NOT EXECUTED 2004dac: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2004db0: 32 bf ff f2 bne,a 2004d78 <== NOT EXECUTED 2004db4: e0 26 20 94 st %l0, [ %i0 + 0x94 ] <== NOT EXECUTED RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } rtems_interrupt_enable (level); 2004db8: 7f ff f4 bf call 20020b4 <== NOT EXECUTED 2004dbc: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED rtems_interrupt_enable (level); sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); 2004dc0: 40 00 08 64 call 2006f50 <== NOT EXECUTED =============================================================================== 0200346c : int dup2( int fildes, int fildes2 ) { 200346c: 9d e3 bf 58 save %sp, -168, %sp /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); 2003470: a0 07 bf b8 add %fp, -72, %l0 2003474: 90 10 00 18 mov %i0, %o0 2003478: 40 00 01 ed call 2003c2c 200347c: 92 10 00 10 mov %l0, %o1 if ( status == -1 ) 2003480: 80 a2 3f ff cmp %o0, -1 2003484: 12 80 00 04 bne 2003494 <== ALWAYS TAKEN 2003488: 92 10 00 10 mov %l0, %o1 /* * This fcntl handles everything else. */ return fcntl( fildes, F_DUPFD, fildes2 ); } 200348c: 81 c7 e0 08 ret 2003490: 91 e8 3f ff restore %g0, -1, %o0 /* * If fildes2 is not valid, then we should not do anything either. */ status = fstat( fildes2, &buf ); 2003494: 40 00 01 e6 call 2003c2c 2003498: 90 10 00 19 mov %i1, %o0 if ( status == -1 ) 200349c: 80 a2 3f ff cmp %o0, -1 20034a0: 02 bf ff fb be 200348c <== ALWAYS TAKEN 20034a4: 90 10 00 18 mov %i0, %o0 /* * This fcntl handles everything else. */ return fcntl( fildes, F_DUPFD, fildes2 ); 20034a8: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED 20034ac: 40 00 00 a2 call 2003734 <== NOT EXECUTED 20034b0: 92 10 20 00 clr %o1 <== NOT EXECUTED 20034b4: 81 c7 e0 08 ret <== NOT EXECUTED 20034b8: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED =============================================================================== 02004764 : /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { 2004764: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 2004768: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED 200476c: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 2004770: 02 80 00 09 be 2004794 <== NOT EXECUTED 2004774: 90 0e 20 ff and %i0, 0xff, %o0 <== NOT EXECUTED 2004778: 05 00 80 74 sethi %hi(0x201d000), %g2 <== NOT EXECUTED 200477c: c4 00 a2 78 ld [ %g2 + 0x278 ], %g2 ! 201d278 <__ctype_ptr__><== NOT EXECUTED 2004780: 82 00 80 08 add %g2, %o0, %g1 <== NOT EXECUTED 2004784: c2 08 60 01 ldub [ %g1 + 1 ], %g1 <== NOT EXECUTED 2004788: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 200478c: 12 80 00 06 bne 20047a4 <== NOT EXECUTED 2004790: 80 a2 20 09 cmp %o0, 9 <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); tty->column += 2; } else { oproc (c, tty); 2004794: 7f ff ff 87 call 20045b0 <== NOT EXECUTED 2004798: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200479c: 81 c7 e0 08 ret <== NOT EXECUTED 20047a0: 81 e8 00 00 restore <== 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')) { 20047a4: 02 bf ff fc be 2004794 <== NOT EXECUTED 20047a8: 80 a2 20 0a cmp %o0, 0xa <== NOT EXECUTED 20047ac: 02 bf ff fa be 2004794 <== NOT EXECUTED 20047b0: 82 10 20 5e mov 0x5e, %g1 <== NOT EXECUTED char echobuf[2]; echobuf[0] = '^'; echobuf[1] = c ^ 0x40; 20047b4: 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] = '^'; 20047b8: c2 2f bf f8 stb %g1, [ %fp + -8 ] <== NOT EXECUTED echobuf[1] = c ^ 0x40; 20047bc: f0 2f bf f9 stb %i0, [ %fp + -7 ] <== NOT EXECUTED rtems_termios_puts (echobuf, 2, tty); 20047c0: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED 20047c4: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 20047c8: 7f ff ff 2b call 2004474 <== NOT EXECUTED 20047cc: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED tty->column += 2; 20047d0: c2 06 60 28 ld [ %i1 + 0x28 ], %g1 <== NOT EXECUTED 20047d4: 82 00 60 02 add %g1, 2, %g1 <== NOT EXECUTED 20047d8: 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')) { 20047dc: 81 c7 e0 08 ret <== NOT EXECUTED 20047e0: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0202c8f0 : group_fp = fopen("/etc/group", "r"); } void endgrent(void) { if (group_fp != NULL) 202c8f0: 03 00 81 cb sethi %hi(0x2072c00), %g1 <== NOT EXECUTED 202c8f4: d0 00 61 cc ld [ %g1 + 0x1cc ], %o0 ! 2072dcc <== NOT EXECUTED 202c8f8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202c8fc: 02 80 00 05 be 202c910 <== NOT EXECUTED 202c900: 01 00 00 00 nop <== NOT EXECUTED fclose(group_fp); 202c904: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 202c908: 40 00 71 27 call 2048da4 <== NOT EXECUTED 202c90c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 202c910: 81 c3 e0 08 retl <== NOT EXECUTED =============================================================================== 0202c918 : passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { if (passwd_fp != NULL) 202c918: 03 00 81 cb sethi %hi(0x2072c00), %g1 <== NOT EXECUTED 202c91c: d0 00 60 e4 ld [ %g1 + 0xe4 ], %o0 ! 2072ce4 <== NOT EXECUTED 202c920: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202c924: 02 80 00 05 be 202c938 <== NOT EXECUTED 202c928: 01 00 00 00 nop <== NOT EXECUTED fclose(passwd_fp); 202c92c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 202c930: 40 00 71 1d call 2048da4 <== NOT EXECUTED 202c934: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 202c938: 81 c3 e0 08 retl <== NOT EXECUTED =============================================================================== 020047e4 : * 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) { 20047e4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (tty->ccount == 0) 20047e8: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 <== NOT EXECUTED 20047ec: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20047f0: 02 80 00 36 be 20048c8 <== NOT EXECUTED 20047f4: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED return; if (lineFlag) { 20047f8: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 20047fc: 12 80 00 35 bne 20048d0 <== NOT EXECUTED 2004800: c4 06 20 3c ld [ %i0 + 0x3c ], %g2 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { 2004804: 27 00 80 74 sethi %hi(0x201d000), %l3 <== NOT EXECUTED 2004808: 29 00 80 70 sethi %hi(0x201c000), %l4 <== NOT EXECUTED 200480c: 25 00 80 70 sethi %hi(0x201c000), %l2 <== NOT EXECUTED 2004810: a6 14 e2 78 or %l3, 0x278, %l3 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); 2004814: a8 15 20 20 or %l4, 0x20, %l4 <== NOT EXECUTED /* * Back up over the tab */ while (tty->column > col) { rtems_termios_puts ("\b", 1, tty); 2004818: 10 80 00 0c b 2004848 <== NOT EXECUTED 200481c: a4 14 a0 18 or %l2, 0x18, %l2 <== NOT EXECUTED tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { 2004820: 12 80 00 6a bne 20049c8 <== NOT EXECUTED 2004824: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED if (tty->column) tty->column--; } } } if (!lineFlag) 2004828: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 200482c: 02 80 00 63 be 20049b8 <== NOT EXECUTED 2004830: 01 00 00 00 nop <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) echo ('\n', tty); return; } } while (tty->ccount) { 2004834: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED 2004838: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200483c: 02 80 00 5f be 20049b8 <== NOT EXECUTED 2004840: 01 00 00 00 nop <== NOT EXECUTED 2004844: c4 04 20 3c ld [ %l0 + 0x3c ], %g2 <== NOT EXECUTED unsigned char c = tty->cbuf[--tty->ccount]; 2004848: c8 04 20 1c ld [ %l0 + 0x1c ], %g4 <== NOT EXECUTED 200484c: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 2004850: c2 24 20 20 st %g1, [ %l0 + 0x20 ] <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { 2004854: 80 88 a0 08 btst 8, %g2 <== NOT EXECUTED 2004858: 02 bf ff f4 be 2004828 <== NOT EXECUTED 200485c: e2 09 00 01 ldub [ %g4 + %g1 ], %l1 <== NOT EXECUTED if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { 2004860: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 2004864: 12 80 00 05 bne 2004878 <== NOT EXECUTED 2004868: a2 0c 60 ff and %l1, 0xff, %l1 <== NOT EXECUTED 200486c: 80 88 a0 10 btst 0x10, %g2 <== NOT EXECUTED 2004870: 22 80 00 54 be,a 20049c0 <== NOT EXECUTED 2004874: f0 0c 20 43 ldub [ %l0 + 0x43 ], %i0 <== NOT EXECUTED echo (tty->termios.c_cc[VERASE], tty); } else if (c == '\t') { 2004878: 80 a4 60 09 cmp %l1, 9 <== NOT EXECUTED 200487c: 02 80 00 24 be 200490c <== NOT EXECUTED 2004880: a2 04 60 01 inc %l1 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { 2004884: c2 04 c0 00 ld [ %l3 ], %g1 <== NOT EXECUTED 2004888: c2 08 40 11 ldub [ %g1 + %l1 ], %g1 <== NOT EXECUTED 200488c: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 2004890: 12 bf ff e4 bne 2004820 <== NOT EXECUTED 2004894: 80 88 a2 00 btst 0x200, %g2 <== 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); 2004898: 11 00 80 70 sethi %hi(0x201c000), %o0 <== NOT EXECUTED 200489c: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED 20048a0: 90 12 20 20 or %o0, 0x20, %o0 <== NOT EXECUTED 20048a4: 7f ff fe f4 call 2004474 <== NOT EXECUTED 20048a8: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED if (tty->column) 20048ac: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED 20048b0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20048b4: 02 bf ff de be 200482c <== NOT EXECUTED 20048b8: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED tty->column--; 20048bc: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED } } } if (!lineFlag) 20048c0: 12 bf ff dd bne 2004834 <== NOT EXECUTED 20048c4: c2 24 20 28 st %g1, [ %l0 + 0x28 ] <== NOT EXECUTED 20048c8: 81 c7 e0 08 ret <== NOT EXECUTED 20048cc: 81 e8 00 00 restore <== NOT EXECUTED erase (struct rtems_termios_tty *tty, int lineFlag) { if (tty->ccount == 0) return; if (lineFlag) { if (!(tty->termios.c_lflag & ECHO)) { 20048d0: 80 88 a0 08 btst 8, %g2 <== NOT EXECUTED 20048d4: 02 80 00 38 be 20049b4 <== NOT EXECUTED 20048d8: 80 88 a0 10 btst 0x10, %g2 <== NOT EXECUTED tty->ccount = 0; return; } if (!(tty->termios.c_lflag & ECHOE)) { 20048dc: 12 bf ff cb bne 2004808 <== NOT EXECUTED 20048e0: 27 00 80 74 sethi %hi(0x201d000), %l3 <== NOT EXECUTED tty->ccount = 0; echo (tty->termios.c_cc[VKILL], tty); 20048e4: 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; 20048e8: c0 26 20 20 clr [ %i0 + 0x20 ] <== NOT EXECUTED echo (tty->termios.c_cc[VKILL], tty); 20048ec: 7f ff ff 9e call 2004764 <== NOT EXECUTED 20048f0: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) 20048f4: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED 20048f8: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 20048fc: 02 bf ff f3 be 20048c8 <== NOT EXECUTED 2004900: b2 10 00 18 mov %i0, %i1 <== NOT EXECUTED echo ('\n', tty); 2004904: 7f ff ff 98 call 2004764 <== NOT EXECUTED 2004908: 91 e8 20 0a restore %g0, 0xa, %o0 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 200490c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004910: 02 80 00 17 be 200496c <== NOT EXECUTED 2004914: e2 04 20 2c ld [ %l0 + 0x2c ], %l1 <== NOT EXECUTED c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { if (tty->termios.c_lflag & ECHOCTL) 2004918: 96 08 a2 00 and %g2, 0x200, %o3 <== NOT EXECUTED while (i != tty->ccount) { c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { 200491c: d8 04 c0 00 ld [ %l3 ], %o4 <== NOT EXECUTED 2004920: 10 80 00 07 b 200493c <== NOT EXECUTED 2004924: 84 10 20 00 clr %g2 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) 2004928: 32 80 00 02 bne,a 2004930 <== NOT EXECUTED 200492c: a2 04 60 02 add %l1, 2, %l1 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 2004930: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2004934: 22 80 00 0f be,a 2004970 <== NOT EXECUTED 2004938: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED c = tty->cbuf[i++]; 200493c: c6 09 00 02 ldub [ %g4 + %g2 ], %g3 <== NOT EXECUTED 2004940: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (c == '\t') { 2004944: 80 a0 e0 09 cmp %g3, 9 <== NOT EXECUTED 2004948: 02 80 00 18 be 20049a8 <== NOT EXECUTED 200494c: 9a 03 00 03 add %o4, %g3, %o5 <== NOT EXECUTED col = (col | 7) + 1; } else if (iscntrl (c)) { 2004950: c6 0b 60 01 ldub [ %o5 + 1 ], %g3 <== NOT EXECUTED 2004954: 80 88 e0 20 btst 0x20, %g3 <== NOT EXECUTED 2004958: 12 bf ff f4 bne 2004928 <== NOT EXECUTED 200495c: 80 a2 e0 00 cmp %o3, 0 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 2004960: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2004964: 12 bf ff f6 bne 200493c <== NOT EXECUTED 2004968: a2 04 60 01 inc %l1 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 200496c: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED 2004970: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED 2004974: 16 bf ff ae bge 200482c <== NOT EXECUTED 2004978: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); 200497c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 2004980: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 2004984: 7f ff fe bc call 2004474 <== NOT EXECUTED 2004988: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED tty->column--; 200498c: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED 2004990: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 2004994: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED 2004998: 06 bf ff f9 bl 200497c <== NOT EXECUTED 200499c: c2 24 20 28 st %g1, [ %l0 + 0x28 ] <== NOT EXECUTED if (tty->column) tty->column--; } } } if (!lineFlag) 20049a0: 10 bf ff a3 b 200482c <== NOT EXECUTED 20049a4: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; 20049a8: a2 14 60 07 or %l1, 7, %l1 <== NOT EXECUTED 20049ac: 10 bf ff e1 b 2004930 <== NOT EXECUTED 20049b0: a2 04 60 01 inc %l1 <== NOT EXECUTED { if (tty->ccount == 0) return; if (lineFlag) { if (!(tty->termios.c_lflag & ECHO)) { tty->ccount = 0; 20049b4: c0 26 20 20 clr [ %i0 + 0x20 ] <== NOT EXECUTED return; 20049b8: 81 c7 e0 08 ret <== NOT EXECUTED 20049bc: 81 e8 00 00 restore <== NOT EXECUTED while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; if (tty->termios.c_lflag & ECHO) { if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { echo (tty->termios.c_cc[VERASE], tty); 20049c0: 7f ff ff 69 call 2004764 <== NOT EXECUTED 20049c4: 93 e8 00 10 restore %g0, %l0, %o1 <== NOT EXECUTED tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { rtems_termios_puts ("\b \b", 3, tty); 20049c8: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED 20049cc: 7f ff fe aa call 2004474 <== NOT EXECUTED 20049d0: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED if (tty->column) 20049d4: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED 20049d8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20049dc: 22 80 00 05 be,a 20049f0 <== NOT EXECUTED 20049e0: c2 04 c0 00 ld [ %l3 ], %g1 <== NOT EXECUTED tty->column--; 20049e4: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 20049e8: c2 24 20 28 st %g1, [ %l0 + 0x28 ] <== NOT EXECUTED } if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) { 20049ec: c2 04 c0 00 ld [ %l3 ], %g1 <== NOT EXECUTED 20049f0: c2 08 40 11 ldub [ %g1 + %l1 ], %g1 <== NOT EXECUTED 20049f4: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 20049f8: 02 bf ff a9 be 200489c <== NOT EXECUTED 20049fc: 11 00 80 70 sethi %hi(0x201c000), %o0 <== NOT EXECUTED 2004a00: c4 04 20 3c ld [ %l0 + 0x3c ], %g2 <== NOT EXECUTED 2004a04: 80 88 a2 00 btst 0x200, %g2 <== NOT EXECUTED 2004a08: 12 bf ff a6 bne 20048a0 <== NOT EXECUTED 2004a0c: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED if (tty->column) tty->column--; } } } if (!lineFlag) 2004a10: 10 bf ff 87 b 200482c <== NOT EXECUTED 2004a14: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED =============================================================================== 02029318 : #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) { 2029318: 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) 202931c: c2 0e 20 85 ldub [ %i0 + 0x85 ], %g1 <== NOT EXECUTED 2029320: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029324: 02 80 00 5c be 2029494 <== NOT EXECUTED 2029328: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED 202932c: c2 06 20 80 ld [ %i0 + 0x80 ], %g1 <== NOT EXECUTED fs_info->c.blk_num = blk; fs_info->c.modified = 0; fs_info->c.state = FAT_CACHE_ACTUAL; } sec_of_fat = ((fs_info->c.blk_num >= fs_info->vol.fat_loc) && 2029330: c4 16 20 14 lduh [ %i0 + 0x14 ], %g2 <== NOT EXECUTED 2029334: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2029338: 08 80 00 67 bleu 20294d4 <== NOT EXECUTED 202933c: a0 10 20 00 clr %l0 <== NOT EXECUTED (fs_info->c.blk_num < fs_info->vol.rdir_loc)); if (fs_info->c.blk_num != blk) 2029340: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 2029344: 22 80 00 51 be,a 2029488 <== NOT EXECUTED 2029348: c2 06 20 88 ld [ %i0 + 0x88 ], %g1 <== NOT EXECUTED { if (fs_info->c.modified) 202934c: c2 0e 20 84 ldub [ %i0 + 0x84 ], %g1 <== NOT EXECUTED 2029350: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029354: 02 80 00 3c be 2029444 <== NOT EXECUTED 2029358: a0 8c 20 ff andcc %l0, 0xff, %l0 <== NOT EXECUTED { if (sec_of_fat && !fs_info->vol.mirror) 202935c: 02 80 00 06 be 2029374 <== NOT EXECUTED 2029360: 01 00 00 00 nop <== NOT EXECUTED 2029364: c2 0e 20 48 ldub [ %i0 + 0x48 ], %g1 <== NOT EXECUTED 2029368: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202936c: 22 80 00 63 be,a 20294f8 <== NOT EXECUTED 2029370: c2 06 20 88 ld [ %i0 + 0x88 ], %g1 <== NOT EXECUTED memcpy(fs_info->sec_buf, fs_info->c.buf->buffer, fs_info->vol.bps); sc = rtems_bdbuf_release_modified(fs_info->c.buf); 2029374: 7f ff 6e 57 call 2004cd0 <== NOT EXECUTED 2029378: d0 06 20 88 ld [ %i0 + 0x88 ], %o0 <== NOT EXECUTED fs_info->c.state = FAT_CACHE_EMPTY; 202937c: c0 2e 20 85 clrb [ %i0 + 0x85 ] <== NOT EXECUTED fs_info->c.modified = 0; if (sc != RTEMS_SUCCESSFUL) 2029380: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029384: 12 80 00 67 bne 2029520 <== NOT EXECUTED 2029388: 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) 202938c: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED 2029390: 02 80 00 33 be 202945c <== NOT EXECUTED 2029394: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED 2029398: c2 0e 20 48 ldub [ %i0 + 0x48 ], %g1 <== NOT EXECUTED 202939c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20293a0: 12 80 00 2f bne 202945c <== NOT EXECUTED 20293a4: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED { rtems_bdbuf_buffer *b; for (i = 1; i < fs_info->vol.fats; i++) 20293a8: c2 0e 20 09 ldub [ %i0 + 9 ], %g1 <== NOT EXECUTED 20293ac: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 20293b0: 08 80 00 2a bleu 2029458 <== NOT EXECUTED 20293b4: a0 10 20 01 mov 1, %l0 <== NOT EXECUTED 20293b8: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED 20293bc: 10 80 00 10 b 20293fc <== NOT EXECUTED 20293c0: a2 07 bf fc add %fp, -4, %l1 <== NOT EXECUTED fs_info->c.blk_num + fs_info->vol.fat_length * i, &b); if ( sc != RTEMS_SUCCESSFUL) rtems_set_errno_and_return_minus_one(ENOMEM); memcpy(b->buffer, fs_info->sec_buf, fs_info->vol.bps); 20293c4: d2 06 20 8c ld [ %i0 + 0x8c ], %o1 <== NOT EXECUTED 20293c8: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED 20293cc: d4 16 00 00 lduh [ %i0 ], %o2 <== NOT EXECUTED 20293d0: 40 00 8b 69 call 204c174 <== NOT EXECUTED 20293d4: a0 04 20 01 inc %l0 <== NOT EXECUTED sc = rtems_bdbuf_release_modified(b); 20293d8: 7f ff 6e 3e call 2004cd0 <== NOT EXECUTED 20293dc: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED if ( sc != RTEMS_SUCCESSFUL) 20293e0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20293e4: 12 80 00 12 bne 202942c <== NOT EXECUTED 20293e8: 90 0c 20 ff and %l0, 0xff, %o0 <== NOT EXECUTED if (sec_of_fat && !fs_info->vol.mirror) { rtems_bdbuf_buffer *b; for (i = 1; i < fs_info->vol.fats; i++) 20293ec: c2 0e 20 09 ldub [ %i0 + 9 ], %g1 <== NOT EXECUTED 20293f0: 80 a0 40 08 cmp %g1, %o0 <== NOT EXECUTED 20293f4: 08 80 00 1a bleu 202945c <== NOT EXECUTED 20293f8: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED { sc = rtems_bdbuf_get(fs_info->vol.dev, 20293fc: d2 06 20 18 ld [ %i0 + 0x18 ], %o1 <== NOT EXECUTED 2029400: 7f ff 65 e3 call 2002b8c <.umul> <== NOT EXECUTED 2029404: e4 1e 20 58 ldd [ %i0 + 0x58 ], %l2 <== NOT EXECUTED 2029408: d4 06 20 80 ld [ %i0 + 0x80 ], %o2 <== NOT EXECUTED 202940c: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED 2029410: 94 02 00 0a add %o0, %o2, %o2 <== NOT EXECUTED 2029414: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED 2029418: 7f ff 72 f7 call 2005ff4 <== NOT EXECUTED 202941c: 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) 2029420: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029424: 02 bf ff e8 be 20293c4 <== NOT EXECUTED 2029428: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); memcpy(b->buffer, fs_info->sec_buf, fs_info->vol.bps); sc = rtems_bdbuf_release_modified(b); if ( sc != RTEMS_SUCCESSFUL) rtems_set_errno_and_return_minus_one(ENOMEM); 202942c: 40 00 7e 06 call 2048c44 <__errno> <== NOT EXECUTED 2029430: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2029434: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 2029438: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202943c: 81 c7 e0 08 ret <== NOT EXECUTED 2029440: 81 e8 00 00 restore <== NOT EXECUTED } } } else { sc = rtems_bdbuf_release(fs_info->c.buf); 2029444: 7f ff 6e 46 call 2004d5c <== NOT EXECUTED 2029448: d0 06 20 88 ld [ %i0 + 0x88 ], %o0 <== NOT EXECUTED fs_info->c.state = FAT_CACHE_EMPTY; if (sc != RTEMS_SUCCESSFUL) 202944c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029450: 12 80 00 34 bne 2029520 <== NOT EXECUTED 2029454: c0 2e 20 85 clrb [ %i0 + 0x85 ] <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EIO); } if (op_type == FAT_OP_TYPE_READ) 2029458: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED 202945c: 02 80 00 2c be 202950c <== NOT EXECUTED 2029460: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED 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); 2029464: d0 1e 20 58 ldd [ %i0 + 0x58 ], %o0 <== NOT EXECUTED 2029468: 7f ff 72 e3 call 2005ff4 <== NOT EXECUTED 202946c: 96 06 20 88 add %i0, 0x88, %o3 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 2029470: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029474: 12 80 00 2b bne 2029520 <== NOT EXECUTED 2029478: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EIO); fs_info->c.blk_num = blk; 202947c: f2 26 20 80 st %i1, [ %i0 + 0x80 ] <== NOT EXECUTED fs_info->c.state = FAT_CACHE_ACTUAL; 2029480: c2 2e 20 85 stb %g1, [ %i0 + 0x85 ] <== NOT EXECUTED } *buf = fs_info->c.buf; 2029484: c2 06 20 88 ld [ %i0 + 0x88 ], %g1 <== NOT EXECUTED 2029488: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED return RC_OK; } 202948c: 81 c7 e0 08 ret <== NOT EXECUTED 2029490: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED bool sec_of_fat; if (fs_info->c.state == FAT_CACHE_EMPTY) { if (op_type == FAT_OP_TYPE_READ) 2029494: 02 80 00 14 be 20294e4 <== NOT EXECUTED 2029498: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED 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); 202949c: d0 1e 20 58 ldd [ %i0 + 0x58 ], %o0 <== NOT EXECUTED 20294a0: 7f ff 72 d5 call 2005ff4 <== NOT EXECUTED 20294a4: 96 06 20 88 add %i0, 0x88, %o3 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 20294a8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20294ac: 12 80 00 1d bne 2029520 <== NOT EXECUTED 20294b0: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED fs_info->c.blk_num = blk; fs_info->c.modified = 0; fs_info->c.state = FAT_CACHE_ACTUAL; } sec_of_fat = ((fs_info->c.blk_num >= fs_info->vol.fat_loc) && 20294b4: c4 16 20 14 lduh [ %i0 + 0x14 ], %g2 <== NOT EXECUTED 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); if (sc != RTEMS_SUCCESSFUL) rtems_set_errno_and_return_minus_one(EIO); fs_info->c.blk_num = blk; 20294b8: f2 26 20 80 st %i1, [ %i0 + 0x80 ] <== NOT EXECUTED fs_info->c.modified = 0; fs_info->c.state = FAT_CACHE_ACTUAL; 20294bc: c2 2e 20 85 stb %g1, [ %i0 + 0x85 ] <== NOT EXECUTED else sc = rtems_bdbuf_get(fs_info->vol.dev, blk, &fs_info->c.buf); if (sc != RTEMS_SUCCESSFUL) rtems_set_errno_and_return_minus_one(EIO); fs_info->c.blk_num = blk; fs_info->c.modified = 0; 20294c0: c0 2e 20 84 clrb [ %i0 + 0x84 ] <== NOT EXECUTED fs_info->c.state = FAT_CACHE_ACTUAL; 20294c4: 82 10 00 19 mov %i1, %g1 <== NOT EXECUTED } sec_of_fat = ((fs_info->c.blk_num >= fs_info->vol.fat_loc) && 20294c8: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 20294cc: 18 bf ff 9d bgu 2029340 <== NOT EXECUTED 20294d0: a0 10 20 00 clr %l0 <== NOT EXECUTED 20294d4: c4 06 20 1c ld [ %i0 + 0x1c ], %g2 <== NOT EXECUTED 20294d8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 20294dc: 10 bf ff 99 b 2029340 <== NOT EXECUTED 20294e0: a0 40 20 00 addx %g0, 0, %l0 <== 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); 20294e4: d0 1e 20 58 ldd [ %i0 + 0x58 ], %o0 <== NOT EXECUTED 20294e8: 7f ff 72 f8 call 20060c8 <== NOT EXECUTED 20294ec: 96 06 20 88 add %i0, 0x88, %o3 <== NOT EXECUTED else sc = rtems_bdbuf_get(fs_info->vol.dev, blk, &fs_info->c.buf); if (sc != RTEMS_SUCCESSFUL) 20294f0: 10 bf ff ef b 20294ac <== NOT EXECUTED 20294f4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED if (fs_info->c.blk_num != blk) { if (fs_info->c.modified) { if (sec_of_fat && !fs_info->vol.mirror) memcpy(fs_info->sec_buf, fs_info->c.buf->buffer, 20294f8: d0 06 20 8c ld [ %i0 + 0x8c ], %o0 <== NOT EXECUTED 20294fc: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED 2029500: 40 00 8b 1d call 204c174 <== NOT EXECUTED 2029504: d4 16 00 00 lduh [ %i0 ], %o2 <== NOT EXECUTED 2029508: 30 bf ff 9b b,a 2029374 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) rtems_set_errno_and_return_minus_one(EIO); } if (op_type == FAT_OP_TYPE_READ) sc = rtems_bdbuf_read(fs_info->vol.dev, blk, &fs_info->c.buf); 202950c: d0 1e 20 58 ldd [ %i0 + 0x58 ], %o0 <== NOT EXECUTED 2029510: 7f ff 72 ee call 20060c8 <== NOT EXECUTED 2029514: 96 06 20 88 add %i0, 0x88, %o3 <== NOT EXECUTED else sc = rtems_bdbuf_get(fs_info->vol.dev, blk, &fs_info->c.buf); if (sc != RTEMS_SUCCESSFUL) 2029518: 10 bf ff d7 b 2029474 <== NOT EXECUTED 202951c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EIO); 2029520: 40 00 7d c9 call 2048c44 <__errno> <== NOT EXECUTED 2029524: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2029528: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED 202952c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2029530: 81 c7 e0 08 ret <== NOT EXECUTED 2029534: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0202917c : return RC_OK; } int fat_buf_release(fat_fs_info_t *fs_info) { 202917c: 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) 2029180: c2 0e 20 85 ldub [ %i0 + 0x85 ], %g1 <== NOT EXECUTED return RC_OK; } int fat_buf_release(fat_fs_info_t *fs_info) { 2029184: 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) 2029188: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202918c: 02 80 00 41 be 2029290 <== NOT EXECUTED 2029190: b0 10 20 00 clr %i0 <== NOT EXECUTED return RC_OK; sec_of_fat = ((fs_info->c.blk_num >= fs_info->vol.fat_loc) && 2029194: c2 04 20 80 ld [ %l0 + 0x80 ], %g1 <== NOT EXECUTED 2029198: c4 14 20 14 lduh [ %l0 + 0x14 ], %g2 <== NOT EXECUTED 202919c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 20291a0: 1a 80 00 46 bcc 20292b8 <== NOT EXECUTED 20291a4: a2 10 20 00 clr %l1 <== NOT EXECUTED (fs_info->c.blk_num < fs_info->vol.rdir_loc)); if (fs_info->c.modified) 20291a8: c2 0c 20 84 ldub [ %l0 + 0x84 ], %g1 <== NOT EXECUTED 20291ac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20291b0: 02 80 00 3a be 2029298 <== NOT EXECUTED 20291b4: a2 8c 60 ff andcc %l1, 0xff, %l1 <== NOT EXECUTED { if (sec_of_fat && !fs_info->vol.mirror) 20291b8: 02 80 00 06 be 20291d0 <== NOT EXECUTED 20291bc: 01 00 00 00 nop <== NOT EXECUTED 20291c0: c2 0c 20 48 ldub [ %l0 + 0x48 ], %g1 <== NOT EXECUTED 20291c4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20291c8: 22 80 00 44 be,a 20292d8 <== NOT EXECUTED 20291cc: c2 04 20 88 ld [ %l0 + 0x88 ], %g1 <== NOT EXECUTED memcpy(fs_info->sec_buf, fs_info->c.buf->buffer, fs_info->vol.bps); sc = rtems_bdbuf_release_modified(fs_info->c.buf); 20291d0: 7f ff 6e c0 call 2004cd0 <== NOT EXECUTED 20291d4: d0 04 20 88 ld [ %l0 + 0x88 ], %o0 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 20291d8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20291dc: 12 80 00 44 bne 20292ec <== NOT EXECUTED 20291e0: 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) 20291e4: 02 80 00 32 be 20292ac <== NOT EXECUTED 20291e8: c0 2c 20 84 clrb [ %l0 + 0x84 ] <== NOT EXECUTED 20291ec: c2 0c 20 48 ldub [ %l0 + 0x48 ], %g1 <== NOT EXECUTED 20291f0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20291f4: 32 80 00 2f bne,a 20292b0 <== NOT EXECUTED 20291f8: c0 2c 20 85 clrb [ %l0 + 0x85 ] <== NOT EXECUTED { rtems_bdbuf_buffer *b; for (i = 1; i < fs_info->vol.fats; i++) 20291fc: c2 0c 20 09 ldub [ %l0 + 9 ], %g1 <== NOT EXECUTED 2029200: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 2029204: 08 80 00 2a bleu 20292ac <== NOT EXECUTED 2029208: a2 10 20 01 mov 1, %l1 <== NOT EXECUTED 202920c: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED 2029210: 10 80 00 10 b 2029250 <== NOT EXECUTED 2029214: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED fs_info->c.blk_num + fs_info->vol.fat_length * i, &b); if ( sc != RTEMS_SUCCESSFUL) rtems_set_errno_and_return_minus_one(ENOMEM); memcpy(b->buffer, fs_info->sec_buf, fs_info->vol.bps); 2029218: d2 04 20 8c ld [ %l0 + 0x8c ], %o1 <== NOT EXECUTED 202921c: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED 2029220: d4 14 00 00 lduh [ %l0 ], %o2 <== NOT EXECUTED 2029224: 40 00 8b d4 call 204c174 <== NOT EXECUTED 2029228: a2 04 60 01 inc %l1 <== NOT EXECUTED sc = rtems_bdbuf_release_modified(b); 202922c: 7f ff 6e a9 call 2004cd0 <== NOT EXECUTED 2029230: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED if ( sc != RTEMS_SUCCESSFUL) 2029234: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029238: 12 80 00 12 bne 2029280 <== NOT EXECUTED 202923c: 90 0c 60 ff and %l1, 0xff, %o0 <== NOT EXECUTED if (sec_of_fat && !fs_info->vol.mirror) { rtems_bdbuf_buffer *b; for (i = 1; i < fs_info->vol.fats; i++) 2029240: c2 0c 20 09 ldub [ %l0 + 9 ], %g1 <== NOT EXECUTED 2029244: 80 a0 40 08 cmp %g1, %o0 <== NOT EXECUTED 2029248: 28 80 00 1a bleu,a 20292b0 <== NOT EXECUTED 202924c: c0 2c 20 85 clrb [ %l0 + 0x85 ] <== NOT EXECUTED { sc = rtems_bdbuf_get(fs_info->vol.dev, 2029250: d2 04 20 18 ld [ %l0 + 0x18 ], %o1 <== NOT EXECUTED 2029254: 7f ff 66 4e call 2002b8c <.umul> <== NOT EXECUTED 2029258: e8 1c 20 58 ldd [ %l0 + 0x58 ], %l4 <== NOT EXECUTED 202925c: d4 04 20 80 ld [ %l0 + 0x80 ], %o2 <== NOT EXECUTED 2029260: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED 2029264: 94 02 00 0a add %o0, %o2, %o2 <== NOT EXECUTED 2029268: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED 202926c: 7f ff 73 62 call 2005ff4 <== NOT EXECUTED 2029270: 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) 2029274: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029278: 02 bf ff e8 be 2029218 <== NOT EXECUTED 202927c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); memcpy(b->buffer, fs_info->sec_buf, fs_info->vol.bps); sc = rtems_bdbuf_release_modified(b); if ( sc != RTEMS_SUCCESSFUL) rtems_set_errno_and_return_minus_one(ENOMEM); 2029280: 40 00 7e 71 call 2048c44 <__errno> <== NOT EXECUTED 2029284: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2029288: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 202928c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2029290: 81 c7 e0 08 ret <== NOT EXECUTED 2029294: 81 e8 00 00 restore <== NOT EXECUTED } } } else { sc = rtems_bdbuf_release(fs_info->c.buf); 2029298: 7f ff 6e b1 call 2004d5c <== NOT EXECUTED 202929c: d0 04 20 88 ld [ %l0 + 0x88 ], %o0 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 20292a0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20292a4: 12 80 00 12 bne 20292ec <== NOT EXECUTED 20292a8: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EIO); } fs_info->c.state = FAT_CACHE_EMPTY; 20292ac: c0 2c 20 85 clrb [ %l0 + 0x85 ] <== NOT EXECUTED return RC_OK; } 20292b0: 81 c7 e0 08 ret <== NOT EXECUTED 20292b4: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED *buf = fs_info->c.buf; return RC_OK; } int fat_buf_release(fat_fs_info_t *fs_info) 20292b8: c4 04 20 1c ld [ %l0 + 0x1c ], %g2 <== NOT EXECUTED 20292bc: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED return RC_OK; sec_of_fat = ((fs_info->c.blk_num >= fs_info->vol.fat_loc) && (fs_info->c.blk_num < fs_info->vol.rdir_loc)); if (fs_info->c.modified) 20292c0: c2 0c 20 84 ldub [ %l0 + 0x84 ], %g1 <== NOT EXECUTED *buf = fs_info->c.buf; return RC_OK; } int fat_buf_release(fat_fs_info_t *fs_info) 20292c4: a2 40 20 00 addx %g0, 0, %l1 <== NOT EXECUTED return RC_OK; sec_of_fat = ((fs_info->c.blk_num >= fs_info->vol.fat_loc) && (fs_info->c.blk_num < fs_info->vol.rdir_loc)); if (fs_info->c.modified) 20292c8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20292cc: 32 bf ff bb bne,a 20291b8 <== NOT EXECUTED 20292d0: a2 8c 60 ff andcc %l1, 0xff, %l1 <== NOT EXECUTED 20292d4: 30 bf ff f1 b,a 2029298 <== NOT EXECUTED { if (sec_of_fat && !fs_info->vol.mirror) memcpy(fs_info->sec_buf, fs_info->c.buf->buffer, fs_info->vol.bps); 20292d8: d0 04 20 8c ld [ %l0 + 0x8c ], %o0 <== NOT EXECUTED 20292dc: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED 20292e0: 40 00 8b a5 call 204c174 <== NOT EXECUTED 20292e4: d4 14 00 00 lduh [ %l0 ], %o2 <== NOT EXECUTED 20292e8: 30 bf ff ba b,a 20291d0 <== NOT EXECUTED } else { sc = rtems_bdbuf_release(fs_info->c.buf); if (sc != RTEMS_SUCCESSFUL) rtems_set_errno_and_return_minus_one(EIO); 20292ec: 40 00 7e 56 call 2048c44 <__errno> <== NOT EXECUTED 20292f0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20292f4: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED 20292f8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20292fc: 81 c7 e0 08 ret <== NOT EXECUTED 2029300: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0202a150 : fat_cluster_read( rtems_filesystem_mount_table_entry_t *mt_entry, uint32_t cln, void *buff ) { 202a150: 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)) ) 202a154: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED 202a158: 12 80 00 06 bne 202a170 <== NOT EXECUTED 202a15c: c4 02 20 34 ld [ %o0 + 0x34 ], %g2 <== NOT EXECUTED 202a160: c2 08 a0 0a ldub [ %g2 + 0xa ], %g1 <== NOT EXECUTED 202a164: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED 202a168: 32 80 00 0e bne,a 202a1a0 <== NOT EXECUTED 202a16c: c2 08 a0 02 ldub [ %g2 + 2 ], %g1 <== NOT EXECUTED return fs_info->vol.rdir_loc; return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) + 202a170: c2 00 a0 30 ld [ %g2 + 0x30 ], %g1 <== NOT EXECUTED 202a174: c6 08 a0 05 ldub [ %g2 + 5 ], %g3 <== NOT EXECUTED 202a178: 92 02 7f fe add %o1, -2, %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, 202a17c: d6 08 a0 04 ldub [ %g2 + 4 ], %o3 <== NOT EXECUTED 202a180: 93 2a 40 03 sll %o1, %g3, %o1 <== NOT EXECUTED 202a184: 92 02 40 01 add %o1, %g1, %o1 <== NOT EXECUTED 202a188: c2 08 a0 02 ldub [ %g2 + 2 ], %g1 <== NOT EXECUTED 202a18c: 94 10 20 00 clr %o2 <== NOT EXECUTED 202a190: 97 2a c0 01 sll %o3, %g1, %o3 <== NOT EXECUTED 202a194: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 202a198: 7f ff fd db call 2029904 <_fat_block_read> <== NOT EXECUTED 202a19c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 202a1a0: d6 08 a0 04 ldub [ %g2 + 4 ], %o3 <== NOT EXECUTED ) { register fat_fs_info_t *fs_info = mt_entry->fs_info; if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) ) return fs_info->vol.rdir_loc; 202a1a4: d2 00 a0 1c ld [ %g2 + 0x1c ], %o1 <== NOT EXECUTED 202a1a8: 97 2a c0 01 sll %o3, %g1, %o3 <== NOT EXECUTED 202a1ac: 94 10 20 00 clr %o2 <== NOT EXECUTED 202a1b0: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 202a1b4: 7f ff fd d4 call 2029904 <_fat_block_read> <== NOT EXECUTED 202a1b8: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED =============================================================================== 020297d4 : fat_cluster_write( rtems_filesystem_mount_table_entry_t *mt_entry, uint32_t cln, const void *buff ) { 20297d4: 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)) ) 20297d8: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED 20297dc: 12 80 00 06 bne 20297f4 <== NOT EXECUTED 20297e0: c4 02 20 34 ld [ %o0 + 0x34 ], %g2 <== NOT EXECUTED 20297e4: c2 08 a0 0a ldub [ %g2 + 0xa ], %g1 <== NOT EXECUTED 20297e8: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED 20297ec: 32 80 00 0e bne,a 2029824 <== NOT EXECUTED 20297f0: c2 08 a0 02 ldub [ %g2 + 2 ], %g1 <== NOT EXECUTED return fs_info->vol.rdir_loc; return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) + 20297f4: c2 00 a0 30 ld [ %g2 + 0x30 ], %g1 <== NOT EXECUTED 20297f8: c6 08 a0 05 ldub [ %g2 + 5 ], %g3 <== NOT EXECUTED 20297fc: 92 02 7f fe add %o1, -2, %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, 2029800: d6 08 a0 04 ldub [ %g2 + 4 ], %o3 <== NOT EXECUTED 2029804: 93 2a 40 03 sll %o1, %g3, %o1 <== NOT EXECUTED 2029808: 92 02 40 01 add %o1, %g1, %o1 <== NOT EXECUTED 202980c: c2 08 a0 02 ldub [ %g2 + 2 ], %g1 <== NOT EXECUTED 2029810: 94 10 20 00 clr %o2 <== NOT EXECUTED 2029814: 97 2a c0 01 sll %o3, %g1, %o3 <== NOT EXECUTED 2029818: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 202981c: 7f ff ff 47 call 2029538 <_fat_block_write> <== NOT EXECUTED 2029820: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2029824: d6 08 a0 04 ldub [ %g2 + 4 ], %o3 <== NOT EXECUTED ) { register fat_fs_info_t *fs_info = mt_entry->fs_info; if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) ) return fs_info->vol.rdir_loc; 2029828: d2 00 a0 1c ld [ %g2 + 0x1c ], %o1 <== NOT EXECUTED 202982c: 97 2a c0 01 sll %o3, %g1, %o3 <== NOT EXECUTED 2029830: 94 10 20 00 clr %o2 <== NOT EXECUTED 2029834: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2029838: 7f ff ff 40 call 2029538 <_fat_block_write> <== NOT EXECUTED 202983c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED =============================================================================== 020295f4 : fat_fat32_update_fsinfo_sector( rtems_filesystem_mount_table_entry_t *mt_entry, uint32_t free_count, uint32_t next_free ) { 20295f4: 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; 20295f8: 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); 20295fc: 89 2e 60 18 sll %i1, 0x18, %g4 <== NOT EXECUTED le_next_free = CT_LE_L(next_free); ret1 = _fat_block_write(mt_entry, 2029600: 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); 2029604: 87 36 60 10 srl %i1, 0x10, %g3 <== NOT EXECUTED 2029608: 83 36 60 18 srl %i1, 0x18, %g1 <== NOT EXECUTED 202960c: 86 08 e0 ff and %g3, 0xff, %g3 <== NOT EXECUTED 2029610: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED 2029614: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED 2029618: b3 36 60 08 srl %i1, 8, %i1 <== NOT EXECUTED 202961c: b2 0e 60 ff and %i1, 0xff, %i1 <== NOT EXECUTED 2029620: b3 2e 60 10 sll %i1, 0x10, %i1 <== NOT EXECUTED 2029624: 82 10 40 19 or %g1, %i1, %g1 <== NOT EXECUTED 2029628: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED le_next_free = CT_LE_L(next_free); 202962c: 85 36 a0 10 srl %i2, 0x10, %g2 <== NOT EXECUTED 2029630: 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); 2029634: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED le_next_free = CT_LE_L(next_free); 2029638: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED 202963c: 83 36 a0 18 srl %i2, 0x18, %g1 <== NOT EXECUTED 2029640: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED 2029644: 82 10 c0 01 or %g3, %g1, %g1 <== NOT EXECUTED 2029648: b5 36 a0 08 srl %i2, 8, %i2 <== NOT EXECUTED 202964c: b4 0e a0 ff and %i2, 0xff, %i2 <== NOT EXECUTED 2029650: b5 2e a0 10 sll %i2, 0x10, %i2 <== NOT EXECUTED 2029654: 82 10 40 1a or %g1, %i2, %g1 <== NOT EXECUTED 2029658: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED ret1 = _fat_block_write(mt_entry, 202965c: 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); 2029660: c2 27 bf f8 st %g1, [ %fp + -8 ] <== NOT EXECUTED ret1 = _fat_block_write(mt_entry, 2029664: 96 10 20 04 mov 4, %o3 <== NOT EXECUTED 2029668: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED 202966c: 7f ff ff b3 call 2029538 <_fat_block_write> <== NOT EXECUTED 2029670: 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, 2029674: 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, 2029678: 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, 202967c: 94 10 21 ec mov 0x1ec, %o2 <== NOT EXECUTED 2029680: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2029684: 96 10 20 04 mov 4, %o3 <== NOT EXECUTED 2029688: 7f ff ff ac call 2029538 <_fat_block_write> <== NOT EXECUTED 202968c: 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) ) 2029690: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029694: 06 80 00 06 bl 20296ac <== NOT EXECUTED 2029698: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 202969c: 06 80 00 04 bl 20296ac <== NOT EXECUTED 20296a0: b0 10 20 00 clr %i0 <== NOT EXECUTED return -1; return RC_OK; } 20296a4: 81 c7 e0 08 ret <== NOT EXECUTED 20296a8: 81 e8 00 00 restore <== NOT EXECUTED 20296ac: 81 c7 e0 08 ret <== NOT EXECUTED 20296b0: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED =============================================================================== 02028cc0 : int fat_file_close( rtems_filesystem_mount_table_entry_t *mt_entry, fat_file_fd_t *fat_fd ) { 2028cc0: 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) 2028cc4: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED 2028cc8: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 2028ccc: 08 80 00 07 bleu 2028ce8 <== NOT EXECUTED 2028cd0: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED { fat_fd->links_num--; 2028cd4: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 2028cd8: 90 10 20 00 clr %o0 <== NOT EXECUTED 2028cdc: c2 26 60 08 st %g1, [ %i1 + 8 ] <== NOT EXECUTED * flush any modified "cached" buffer back to disk */ rc = fat_buf_release(fs_info); return rc; } 2028ce0: 81 c7 e0 08 ret <== NOT EXECUTED 2028ce4: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return rc; } key = fat_construct_key(mt_entry, &fat_fd->dir_pos.sname); if (fat_fd->flags & FAT_FILE_REMOVED) 2028ce8: c2 0e 60 30 ldub [ %i1 + 0x30 ], %g1 <== NOT EXECUTED 2028cec: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 2028cf0: 22 80 00 16 be,a 2028d48 <== NOT EXECUTED 2028cf4: d2 06 60 0c ld [ %i1 + 0xc ], %o1 <== NOT EXECUTED { rc = fat_file_truncate(mt_entry, fat_fd, 0); 2028cf8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2028cfc: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2028d00: 7f ff fe 0b call 202852c <== NOT EXECUTED 2028d04: 94 10 20 00 clr %o2 <== NOT EXECUTED if ( rc != RC_OK ) 2028d08: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2028d0c: 12 bf ff f5 bne 2028ce0 <== NOT EXECUTED 2028d10: 01 00 00 00 nop <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 2028d14: 7f ff 95 8d call 200e348 <_Chain_Extract> <== NOT EXECUTED 2028d18: 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) ) 2028d1c: d2 06 60 0c ld [ %i1 + 0xc ], %o1 <== NOT EXECUTED 2028d20: 40 00 00 d4 call 2029070 <== NOT EXECUTED 2028d24: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2028d28: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED 2028d2c: 32 80 00 13 bne,a 2028d78 <== NOT EXECUTED 2028d30: d2 06 60 0c ld [ %i1 + 0xc ], %o1 <== NOT EXECUTED fat_fd->links_num = 0; } else { _hash_delete(fs_info->vhash, key, fat_fd->ino, fat_fd); free(fat_fd); 2028d34: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 2028d38: 7f ff 7e e9 call 20088dc <== NOT EXECUTED 2028d3c: b0 10 00 10 mov %l0, %i0 <== NOT EXECUTED } } /* * flush any modified "cached" buffer back to disk */ rc = fat_buf_release(fs_info); 2028d40: 40 00 01 0f call 202917c <== NOT EXECUTED 2028d44: 81 e8 00 00 restore <== NOT EXECUTED free(fat_fd); } else { if (fat_ino_is_unique(mt_entry, fat_fd->ino)) 2028d48: 40 00 00 ca call 2029070 <== NOT EXECUTED 2028d4c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2028d50: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED 2028d54: 02 80 00 05 be 2028d68 <== NOT EXECUTED 2028d58: 01 00 00 00 nop <== NOT EXECUTED { fat_fd->links_num = 0; 2028d5c: c0 26 60 08 clr [ %i1 + 8 ] <== NOT EXECUTED } } /* * flush any modified "cached" buffer back to disk */ rc = fat_buf_release(fs_info); 2028d60: 40 00 01 07 call 202917c <== NOT EXECUTED 2028d64: 91 e8 00 10 restore %g0, %l0, %o0 <== NOT EXECUTED 2028d68: 7f ff 95 78 call 200e348 <_Chain_Extract> <== NOT EXECUTED 2028d6c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED fat_fd->links_num = 0; } else { _hash_delete(fs_info->vhash, key, fat_fd->ino, fat_fd); free(fat_fd); 2028d70: 10 bf ff f2 b 2028d38 <== NOT EXECUTED 2028d74: 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) ) fat_free_unique_ino(mt_entry, fat_fd->ino); 2028d78: 40 00 00 b0 call 2029038 <== NOT EXECUTED 2028d7c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED fat_fd->links_num = 0; } else { _hash_delete(fs_info->vhash, key, fat_fd->ino, fat_fd); free(fat_fd); 2028d80: 10 bf ff ee b 2028d38 <== NOT EXECUTED 2028d84: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED =============================================================================== 020282d8 : int fat_file_datasync( rtems_filesystem_mount_table_entry_t *mt_entry, fat_file_fd_t *fat_fd ) { 20282d8: 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) 20282dc: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED int fat_file_datasync( rtems_filesystem_mount_table_entry_t *mt_entry, fat_file_fd_t *fat_fd ) { 20282e0: a8 10 00 18 mov %i0, %l4 <== 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) 20282e4: 80 a0 60 00 cmp %g1, 0 <== 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; 20282e8: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 <== NOT EXECUTED uint32_t cur_cln = fat_fd->cln; 20282ec: c2 06 60 1c ld [ %i1 + 0x1c ], %g1 <== NOT EXECUTED rtems_bdbuf_buffer *block = NULL; uint32_t sec = 0; uint32_t i = 0; if (fat_fd->fat_file_size == 0) 20282f0: 02 80 00 33 be 20283bc <== NOT EXECUTED 20282f4: b0 10 20 00 clr %i0 <== 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; 20282f8: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED rtems_bdbuf_buffer *block = NULL; 20282fc: 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); 2028300: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2028304: 40 00 03 9e call 202917c <== NOT EXECUTED 2028308: a4 07 bf f8 add %fp, -8, %l2 <== NOT EXECUTED if (rc != RC_OK) 202830c: aa 92 20 00 orcc %o0, 0, %l5 <== NOT EXECUTED 2028310: 12 80 00 33 bne 20283dc <== NOT EXECUTED 2028314: ac 07 bf fc add %fp, -4, %l6 <== NOT EXECUTED return rc; /* for each cluster of the file ... */ while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val) 2028318: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED 202831c: c4 04 60 0c ld [ %l1 + 0xc ], %g2 <== NOT EXECUTED 2028320: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED 2028324: 84 0a 40 02 and %o1, %g2, %g2 <== NOT EXECUTED 2028328: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 202832c: 1a 80 00 2c bcc 20283dc <== NOT EXECUTED 2028330: 80 a2 60 00 cmp %o1, 0 <== 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)) ) 2028334: 02 80 00 24 be 20283c4 <== NOT EXECUTED 2028338: c2 05 20 34 ld [ %l4 + 0x34 ], %g1 <== NOT EXECUTED return fs_info->vol.rdir_loc; return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) + 202833c: c4 00 60 30 ld [ %g1 + 0x30 ], %g2 <== NOT EXECUTED 2028340: c2 08 60 05 ldub [ %g1 + 5 ], %g1 <== NOT EXECUTED 2028344: a6 02 7f fe add %o1, -2, %l3 <== NOT EXECUTED 2028348: a7 2c c0 01 sll %l3, %g1, %l3 <== NOT EXECUTED 202834c: a6 04 c0 02 add %l3, %g2, %l3 <== NOT EXECUTED { 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++ ) 2028350: c2 0c 60 04 ldub [ %l1 + 4 ], %g1 <== NOT EXECUTED 2028354: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2028358: 02 80 00 23 be 20283e4 <== NOT EXECUTED 202835c: a0 10 20 00 clr %l0 <== NOT EXECUTED { /* ... sync it */ sc = rtems_bdbuf_read(fs_info->vol.dev, (sec + i), &block); 2028360: 10 80 00 0c b 2028390 <== NOT EXECUTED 2028364: d0 1c 60 58 ldd [ %l1 + 0x58 ], %o0 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) rtems_set_errno_and_return_minus_one( EIO ); sc = rtems_bdbuf_sync(block); 2028368: 7f ff 75 21 call 20057ec <== NOT EXECUTED 202836c: d0 07 bf f8 ld [ %fp + -8 ], %o0 <== NOT EXECUTED if ( sc != RTEMS_SUCCESSFUL ) 2028370: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2028374: 12 80 00 0e bne 20283ac <== NOT EXECUTED 2028378: 01 00 00 00 nop <== 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++ ) 202837c: c2 0c 60 04 ldub [ %l1 + 4 ], %g1 <== NOT EXECUTED 2028380: 80 a0 40 10 cmp %g1, %l0 <== NOT EXECUTED 2028384: 08 80 00 18 bleu 20283e4 <== NOT EXECUTED 2028388: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED { /* ... sync it */ sc = rtems_bdbuf_read(fs_info->vol.dev, (sec + i), &block); 202838c: d0 1c 60 58 ldd [ %l1 + 0x58 ], %o0 <== NOT EXECUTED 2028390: 94 04 00 13 add %l0, %l3, %o2 <== NOT EXECUTED 2028394: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED 2028398: 7f ff 77 4c call 20060c8 <== NOT EXECUTED 202839c: a0 04 20 01 inc %l0 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 20283a0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20283a4: 02 bf ff f1 be 2028368 <== NOT EXECUTED 20283a8: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EIO ); sc = rtems_bdbuf_sync(block); if ( sc != RTEMS_SUCCESSFUL ) rtems_set_errno_and_return_minus_one( EIO ); 20283ac: 40 00 82 26 call 2048c44 <__errno> <== NOT EXECUTED 20283b0: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 20283b4: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED 20283b8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20283bc: 81 c7 e0 08 ret <== NOT EXECUTED 20283c0: 81 e8 00 00 restore <== 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)) ) 20283c4: c4 08 60 0a ldub [ %g1 + 0xa ], %g2 <== NOT EXECUTED 20283c8: 80 88 a0 03 btst 3, %g2 <== NOT EXECUTED 20283cc: 22 bf ff dd be,a 2028340 <== NOT EXECUTED 20283d0: c4 00 60 30 ld [ %g1 + 0x30 ], %g2 <== NOT EXECUTED return fs_info->vol.rdir_loc; 20283d4: 10 bf ff df b 2028350 <== NOT EXECUTED 20283d8: e6 00 60 1c ld [ %g1 + 0x1c ], %l3 <== NOT EXECUTED rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln); if ( rc != RC_OK ) return rc; } return rc; } 20283dc: 81 c7 e0 08 ret <== NOT EXECUTED 20283e0: 91 e8 00 15 restore %g0, %l5, %o0 <== 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); 20283e4: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED 20283e8: 40 00 70 81 call 20445ec <== NOT EXECUTED 20283ec: 94 10 00 16 mov %l6, %o2 <== NOT EXECUTED if ( rc != RC_OK ) 20283f0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 20283f4: 02 bf ff ca be 202831c <== NOT EXECUTED 20283f8: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED return rc; } return rc; } 20283fc: 81 c7 e0 08 ret <== NOT EXECUTED 2028400: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02028634 : rtems_filesystem_mount_table_entry_t *mt_entry, fat_file_fd_t *fat_fd, uint32_t new_length, uint32_t *a_length ) { 2028634: 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; 2028638: f4 26 c0 00 st %i2, [ %i3 ] <== NOT EXECUTED if (new_length <= fat_fd->fat_file_size) 202863c: 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; 2028640: 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; 2028644: 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 ) { 2028648: 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) 202864c: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED 2028650: 08 80 00 3f bleu 202874c <== NOT EXECUTED 2028654: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 <== NOT EXECUTED return RC_OK; if ((FAT_FD_OF_ROOT_DIR(fat_fd)) && 2028658: c4 06 60 20 ld [ %i1 + 0x20 ], %g2 <== NOT EXECUTED 202865c: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED 2028660: 22 80 00 3d be,a 2028754 <== NOT EXECUTED 2028664: c4 06 60 24 ld [ %i1 + 0x24 ], %g2 <== NOT EXECUTED (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))) & 2028668: c6 14 60 06 lduh [ %l1 + 6 ], %g3 <== NOT EXECUTED (fs_info->vol.bpc - 1); bytes2add = new_length - fat_fd->fat_file_size; 202866c: 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))) & 2028670: 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 - 2028674: a4 08 80 01 and %g2, %g1, %l2 <== NOT EXECUTED 2028678: a4 20 c0 12 sub %g3, %l2, %l2 <== NOT EXECUTED 202867c: 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) 2028680: 80 a4 80 14 cmp %l2, %l4 <== NOT EXECUTED 2028684: 1a 80 00 3f bcc 2028780 <== NOT EXECUTED 2028688: 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) 202868c: a8 a5 00 12 subcc %l4, %l2, %l4 <== NOT EXECUTED 2028690: 02 80 00 3c be 2028780 <== NOT EXECUTED 2028694: a6 05 3f ff add %l4, -1, %l3 <== NOT EXECUTED return RC_OK; cls2add = ((bytes2add - 1) >> fs_info->vol.bpc_log2) + 1; 2028698: c2 0c 60 08 ldub [ %l1 + 8 ], %g1 <== NOT EXECUTED rc = fat_scan_fat_for_free_clusters(mt_entry, &chain, cls2add, 202869c: 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; 20286a0: a7 34 c0 01 srl %l3, %g1, %l3 <== NOT EXECUTED rc = fat_scan_fat_for_free_clusters(mt_entry, &chain, cls2add, 20286a4: 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; 20286a8: a6 04 e0 01 inc %l3 <== NOT EXECUTED rc = fat_scan_fat_for_free_clusters(mt_entry, &chain, cls2add, 20286ac: 96 07 bf f0 add %fp, -16, %o3 <== NOT EXECUTED 20286b0: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED 20286b4: 40 00 70 8a call 20448dc <== NOT EXECUTED 20286b8: 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) 20286bc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 20286c0: 12 80 00 30 bne 2028780 <== NOT EXECUTED 20286c4: 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)) 20286c8: 02 80 00 53 be 2028814 <== NOT EXECUTED 20286cc: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOSPC); /* check wether we satisfied request for 'cls2add' clusters */ if (cls2add != cls_added) 20286d0: 80 a4 c0 01 cmp %l3, %g1 <== NOT EXECUTED 20286d4: 02 80 00 0b be 2028700 <== NOT EXECUTED 20286d8: 88 38 00 01 xnor %g0, %g1, %g4 <== NOT EXECUTED *a_length = new_length - 20286dc: c6 0c 60 08 ldub [ %l1 + 8 ], %g3 <== NOT EXECUTED 20286e0: c4 14 60 06 lduh [ %l1 + 6 ], %g2 <== NOT EXECUTED 20286e4: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED 20286e8: a6 01 00 13 add %g4, %l3, %l3 <== NOT EXECUTED 20286ec: a8 0d 00 02 and %l4, %g2, %l4 <== NOT EXECUTED 20286f0: a7 2c c0 03 sll %l3, %g3, %l3 <== NOT EXECUTED 20286f4: a6 26 80 13 sub %i2, %l3, %l3 <== NOT EXECUTED 20286f8: a8 24 c0 14 sub %l3, %l4, %l4 <== NOT EXECUTED 20286fc: 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 ) 2028700: d6 06 60 18 ld [ %i1 + 0x18 ], %o3 <== NOT EXECUTED 2028704: 80 a2 e0 00 cmp %o3, 0 <== NOT EXECUTED 2028708: 32 80 00 20 bne,a 2028788 <== NOT EXECUTED 202870c: d2 06 60 3c ld [ %i1 + 0x3c ], %o1 <== NOT EXECUTED { fat_fd->map.disk_cln = fat_fd->cln = chain; 2028710: c4 07 bf fc ld [ %fp + -4 ], %g2 <== NOT EXECUTED fat_fd->map.file_cln = 0; 2028714: 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; 2028718: c4 26 60 38 st %g2, [ %i1 + 0x38 ] <== NOT EXECUTED 202871c: c4 26 60 1c st %g2, [ %i1 + 0x1c ] <== NOT EXECUTED } fat_buf_release(fs_info); } /* update number of the last cluster of the file if it changed */ if (cls_added != 0) 2028720: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2028724: 22 80 00 08 be,a 2028744 <== NOT EXECUTED 2028728: f4 26 60 18 st %i2, [ %i1 + 0x18 ] <== NOT EXECUTED { fat_fd->map.last_cln = last_cl; 202872c: c4 07 bf f4 ld [ %fp + -12 ], %g2 <== NOT EXECUTED if (fat_fd->fat_file_type == FAT_DIRECTORY) 2028730: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 <== NOT EXECUTED 2028734: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 2028738: 02 80 00 22 be 20287c0 <== NOT EXECUTED 202873c: c4 26 60 3c st %g2, [ %i1 + 0x3c ] <== NOT EXECUTED return rc; } } } fat_fd->fat_file_size = new_length; 2028740: f4 26 60 18 st %i2, [ %i1 + 0x18 ] <== NOT EXECUTED return RC_OK; 2028744: 81 c7 e0 08 ret <== NOT EXECUTED 2028748: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED } 202874c: 81 c7 e0 08 ret <== NOT EXECUTED 2028750: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED *a_length = new_length; if (new_length <= fat_fd->fat_file_size) return RC_OK; if ((FAT_FD_OF_ROOT_DIR(fat_fd)) && 2028754: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2028758: 32 bf ff c5 bne,a 202866c <== NOT EXECUTED 202875c: c6 14 60 06 lduh [ %l1 + 6 ], %g3 <== NOT EXECUTED (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16))) 2028760: c4 0c 60 0a ldub [ %l1 + 0xa ], %g2 <== NOT EXECUTED 2028764: 80 88 a0 03 btst 3, %g2 <== NOT EXECUTED 2028768: 22 bf ff c1 be,a 202866c <== NOT EXECUTED 202876c: c6 14 60 06 lduh [ %l1 + 6 ], %g3 <== NOT EXECUTED if (rc != RC_OK) return rc; /* this means that no space left on device */ if ((cls_added == 0) && (bytes_remain == 0)) rtems_set_errno_and_return_minus_one(ENOSPC); 2028770: 40 00 81 35 call 2048c44 <__errno> <== NOT EXECUTED 2028774: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2028778: 82 10 20 1c mov 0x1c, %g1 <== NOT EXECUTED 202877c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2028780: 81 c7 e0 08 ret <== NOT EXECUTED 2028784: 81 e8 00 00 restore <== NOT EXECUTED fat_fd->map.disk_cln = fat_fd->cln = chain; fat_fd->map.file_cln = 0; } else { if (fat_fd->map.last_cln != FAT_UNDEFINED_VALUE) 2028788: 80 a2 7f ff cmp %o1, -1 <== NOT EXECUTED 202878c: 02 80 00 18 be 20287ec <== NOT EXECUTED 2028790: 96 02 ff ff add %o3, -1, %o3 <== NOT EXECUTED { old_last_cl = fat_fd->map.last_cln; 2028794: d2 27 bf f8 st %o1, [ %fp + -8 ] <== NOT EXECUTED fat_free_fat_clusters_chain(mt_entry, chain); return rc; } } rc = fat_set_fat_cluster(mt_entry, old_last_cl, chain); 2028798: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED 202879c: 40 00 6e cf call 20442d8 <== NOT EXECUTED 20287a0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( rc != RC_OK ) 20287a4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 20287a8: 12 80 00 0d bne 20287dc <== NOT EXECUTED 20287ac: 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); 20287b0: 40 00 02 73 call 202917c <== NOT EXECUTED 20287b4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 20287b8: 10 bf ff da b 2028720 <== NOT EXECUTED 20287bc: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED if (cls_added != 0) { fat_fd->map.last_cln = last_cl; if (fat_fd->fat_file_type == FAT_DIRECTORY) { rc = fat_init_clusters_chain(mt_entry, chain); 20287c0: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED 20287c4: 40 00 04 20 call 2029844 <== NOT EXECUTED 20287c8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( rc != RC_OK ) 20287cc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 20287d0: 22 bf ff dd be,a 2028744 <== NOT EXECUTED 20287d4: f4 26 60 18 st %i2, [ %i1 + 0x18 ] <== NOT EXECUTED { fat_free_fat_clusters_chain(mt_entry, chain); 20287d8: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED 20287dc: 40 00 70 08 call 20447fc <== NOT EXECUTED 20287e0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return rc; 20287e4: 81 c7 e0 08 ret <== NOT EXECUTED 20287e8: 81 e8 00 00 restore <== NOT EXECUTED { old_last_cl = fat_fd->map.last_cln; } else { rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM, 20287ec: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20287f0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 20287f4: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED 20287f8: 7f ff ff 18 call 2028458 <== NOT EXECUTED 20287fc: 98 07 bf f8 add %fp, -8, %o4 <== NOT EXECUTED (fat_fd->fat_file_size - 1), &old_last_cl); if ( rc != RC_OK ) 2028800: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 2028804: 12 bf ff f5 bne 20287d8 <== NOT EXECUTED 2028808: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED fat_free_fat_clusters_chain(mt_entry, chain); return rc; } } rc = fat_set_fat_cluster(mt_entry, old_last_cl, chain); 202880c: 10 bf ff e4 b 202879c <== NOT EXECUTED 2028810: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED /* this means that low level I/O error occured */ if (rc != RC_OK) return rc; /* this means that no space left on device */ if ((cls_added == 0) && (bytes_remain == 0)) 2028814: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2028818: 12 bf ff af bne 20286d4 <== NOT EXECUTED 202881c: 80 a4 c0 01 cmp %l3, %g1 <== NOT EXECUTED 2028820: 30 bf ff d4 b,a 2028770 <== NOT EXECUTED =============================================================================== 02028458 : fat_file_ioctl( rtems_filesystem_mount_table_entry_t *mt_entry, fat_file_fd_t *fat_fd, int cmd, ...) { 2028458: 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); 202845c: 82 07 a0 50 add %fp, 0x50, %g1 <== NOT EXECUTED 2028460: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED 2028464: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED 2028468: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED 202846c: 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; 2028470: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED uint32_t *ret; va_list ap; va_start(ap, cmd); switch (cmd) 2028474: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED 2028478: 02 80 00 08 be 2028498 <== NOT EXECUTED 202847c: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 <== NOT EXECUTED *ret = cur_cln; break; default: errno = EINVAL; 2028480: 40 00 81 f1 call 2048c44 <__errno> <== NOT EXECUTED 2028484: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2028488: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 202848c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED rc = -1; break; } return rc; } 2028490: 81 c7 e0 08 ret <== NOT EXECUTED 2028494: 81 e8 00 00 restore <== 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 ) 2028498: 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 *); 202849c: 86 07 a0 58 add %fp, 0x58, %g3 <== NOT EXECUTED /* sanity check */ if ( pos >= fat_fd->fat_file_size ) 20284a0: 80 a6 c0 02 cmp %i3, %g2 <== NOT EXECUTED 20284a4: 1a 80 00 1c bcc 2028514 <== NOT EXECUTED 20284a8: c6 27 bf f8 st %g3, [ %fp + -8 ] <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EIO ); if ((FAT_FD_OF_ROOT_DIR(fat_fd)) && 20284ac: c4 06 60 20 ld [ %i1 + 0x20 ], %g2 <== NOT EXECUTED 20284b0: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED 20284b4: 22 80 00 0e be,a 20284ec <== NOT EXECUTED 20284b8: c4 06 60 24 ld [ %i1 + 0x24 ], %g2 <== NOT EXECUTED return RC_OK; } cl_start = pos >> fs_info->vol.bpc_log2; rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln); 20284bc: d4 08 60 08 ldub [ %g1 + 8 ], %o2 <== NOT EXECUTED 20284c0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 20284c4: 95 36 c0 0a srl %i3, %o2, %o2 <== NOT EXECUTED 20284c8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 20284cc: 7f ff ff 55 call 2028220 <== NOT EXECUTED 20284d0: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED if ( rc != RC_OK ) 20284d4: b0 92 60 00 orcc %o1, 0, %i0 <== NOT EXECUTED 20284d8: 12 bf ff ee bne 2028490 <== NOT EXECUTED 20284dc: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED return rc; *ret = cur_cln; 20284e0: c2 27 00 00 st %g1, [ %i4 ] <== NOT EXECUTED break; 20284e4: 81 c7 e0 08 ret <== NOT EXECUTED 20284e8: 81 e8 00 00 restore <== NOT EXECUTED /* sanity check */ if ( pos >= fat_fd->fat_file_size ) rtems_set_errno_and_return_minus_one( EIO ); if ((FAT_FD_OF_ROOT_DIR(fat_fd)) && 20284ec: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 20284f0: 32 bf ff f4 bne,a 20284c0 <== NOT EXECUTED 20284f4: d4 08 60 08 ldub [ %g1 + 8 ], %o2 <== NOT EXECUTED (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16))) 20284f8: c4 08 60 0a ldub [ %g1 + 0xa ], %g2 <== NOT EXECUTED 20284fc: 80 88 a0 03 btst 3, %g2 <== NOT EXECUTED 2028500: 22 bf ff f0 be,a 20284c0 <== NOT EXECUTED 2028504: d4 08 60 08 ldub [ %g1 + 8 ], %o2 <== NOT EXECUTED { /* cluster 0 (zero) reserved for root dir */ *ret = 0; 2028508: c0 27 00 00 clr [ %i4 ] <== NOT EXECUTED return RC_OK; 202850c: 81 c7 e0 08 ret <== NOT EXECUTED 2028510: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED pos = va_arg(ap, uint32_t ); ret = va_arg(ap, uint32_t *); /* sanity check */ if ( pos >= fat_fd->fat_file_size ) rtems_set_errno_and_return_minus_one( EIO ); 2028514: 40 00 81 cc call 2048c44 <__errno> <== NOT EXECUTED 2028518: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202851c: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED 2028520: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2028524: 81 c7 e0 08 ret <== NOT EXECUTED 2028528: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02028220 : rtems_filesystem_mount_table_entry_t *mt_entry, fat_file_fd_t *fat_fd, uint32_t file_cln, uint32_t *disk_cln ) { 2028220: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED int rc = RC_OK; if (file_cln == fat_fd->map.file_cln) 2028224: e2 06 60 34 ld [ %i1 + 0x34 ], %l1 <== NOT EXECUTED 2028228: 80 a4 40 1a cmp %l1, %i2 <== NOT EXECUTED 202822c: 22 80 00 25 be,a 20282c0 <== NOT EXECUTED 2028230: c2 06 60 38 ld [ %i1 + 0x38 ], %g1 <== NOT EXECUTED { uint32_t cur_cln; uint32_t count; uint32_t i; if (file_cln > fat_fd->map.file_cln) 2028234: 2a 80 00 18 bcs,a 2028294 <== NOT EXECUTED 2028238: d2 06 60 38 ld [ %i1 + 0x38 ], %o1 <== NOT EXECUTED cur_cln = fat_fd->map.disk_cln; count = file_cln - fat_fd->map.file_cln; } else { cur_cln = fat_fd->cln; 202823c: d2 06 60 1c ld [ %i1 + 0x1c ], %o1 <== NOT EXECUTED 2028240: a2 10 00 1a mov %i2, %l1 <== NOT EXECUTED 2028244: d2 27 bf fc st %o1, [ %fp + -4 ] <== NOT EXECUTED count = file_cln; } /* skip over the clusters */ for (i = 0; i < count; i++) 2028248: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 202824c: 02 80 00 15 be 20282a0 <== NOT EXECUTED 2028250: a0 10 20 00 clr %l0 <== NOT EXECUTED 2028254: 10 80 00 05 b 2028268 <== NOT EXECUTED 2028258: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED 202825c: 80 a4 40 10 cmp %l1, %l0 <== NOT EXECUTED 2028260: 08 80 00 10 bleu 20282a0 <== NOT EXECUTED 2028264: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED { rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln); 2028268: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 202826c: 40 00 70 e0 call 20445ec <== NOT EXECUTED 2028270: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED if ( rc != RC_OK ) 2028274: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2028278: 22 bf ff f9 be,a 202825c <== NOT EXECUTED 202827c: a0 04 20 01 inc %l0 <== NOT EXECUTED return rc; 2028280: 86 10 00 08 mov %o0, %g3 <== NOT EXECUTED 2028284: 85 3a 20 1f sra %o0, 0x1f, %g2 <== NOT EXECUTED fat_fd->map.disk_cln = cur_cln; *disk_cln = cur_cln; } return RC_OK; } 2028288: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED 202828c: 81 c7 e0 08 ret <== NOT EXECUTED 2028290: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED uint32_t i; if (file_cln > fat_fd->map.file_cln) { cur_cln = fat_fd->map.disk_cln; count = file_cln - fat_fd->map.file_cln; 2028294: a2 26 80 11 sub %i2, %l1, %l1 <== NOT EXECUTED uint32_t count; uint32_t i; if (file_cln > fat_fd->map.file_cln) { cur_cln = fat_fd->map.disk_cln; 2028298: 10 bf ff ec b 2028248 <== NOT EXECUTED 202829c: d2 27 bf fc st %o1, [ %fp + -4 ] <== NOT EXECUTED if ( rc != RC_OK ) return rc; } /* update cache */ fat_fd->map.file_cln = file_cln; 20282a0: f4 26 60 34 st %i2, [ %i1 + 0x34 ] <== NOT EXECUTED fat_fd->map.disk_cln = cur_cln; 20282a4: d2 26 60 38 st %o1, [ %i1 + 0x38 ] <== NOT EXECUTED *disk_cln = cur_cln; 20282a8: 84 10 20 00 clr %g2 <== NOT EXECUTED 20282ac: 86 10 20 00 clr %g3 <== NOT EXECUTED 20282b0: d2 26 c0 00 st %o1, [ %i3 ] <== NOT EXECUTED } return RC_OK; } 20282b4: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED 20282b8: 81 c7 e0 08 ret <== NOT EXECUTED 20282bc: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED ) { int rc = RC_OK; if (file_cln == fat_fd->map.file_cln) *disk_cln = fat_fd->map.disk_cln; 20282c0: 84 10 20 00 clr %g2 <== NOT EXECUTED 20282c4: 86 10 20 00 clr %g3 <== NOT EXECUTED 20282c8: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED fat_fd->map.disk_cln = cur_cln; *disk_cln = cur_cln; } return RC_OK; } 20282cc: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED 20282d0: 81 c7 e0 08 ret <== NOT EXECUTED 20282d4: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED =============================================================================== 02028404 : void fat_file_mark_removed( rtems_filesystem_mount_table_entry_t *mt_entry, fat_file_fd_t *fat_fd ) { 2028404: 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) + 2028408: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED fat_fs_info_t *fs_info = mt_entry->fs_info; 202840c: 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) 2028410: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED (pos->ofs >> FAT_SECTOR512_BITS)) << 4) + 2028414: 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 ); 2028418: 7f ff 97 cc call 200e348 <_Chain_Extract> <== NOT EXECUTED 202841c: 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 ); 2028420: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED 2028424: a3 34 60 05 srl %l1, 5, %l1 <== NOT EXECUTED 2028428: a2 0c 60 01 and %l1, 1, %l1 <== NOT EXECUTED 202842c: 83 2c 60 04 sll %l1, 4, %g1 <== NOT EXECUTED 2028430: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2028434: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED 2028438: a2 20 40 11 sub %g1, %l1, %l1 <== NOT EXECUTED 202843c: 7f ff 97 b7 call 200e318 <_Chain_Append> <== NOT EXECUTED 2028440: 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; 2028444: c2 0e 60 30 ldub [ %i1 + 0x30 ], %g1 <== NOT EXECUTED 2028448: 82 10 60 01 or %g1, 1, %g1 <== NOT EXECUTED 202844c: c2 2e 60 30 stb %g1, [ %i1 + 0x30 ] <== NOT EXECUTED } 2028450: 81 c7 e0 08 ret <== NOT EXECUTED 2028454: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02028d88 : fat_file_open( rtems_filesystem_mount_table_entry_t *mt_entry, fat_dir_pos_t *dir_pos, fat_file_fd_t **fat_fd ) { 2028d88: 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) + 2028d8c: c2 06 40 00 ld [ %i1 ], %g1 <== NOT EXECUTED int rc = RC_OK; fat_fs_info_t *fs_info = mt_entry->fs_info; 2028d90: 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) 2028d94: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 2028d98: 02 80 00 0c be 2028dc8 <== NOT EXECUTED 2028d9c: 84 10 20 01 mov 1, %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)) ) 2028da0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2028da4: 32 80 00 7d bne,a 2028f98 <== NOT EXECUTED 2028da8: c4 0c 20 05 ldub [ %l0 + 5 ], %g2 <== NOT EXECUTED 2028dac: c4 0c 20 0a ldub [ %l0 + 0xa ], %g2 <== NOT EXECUTED 2028db0: 80 88 a0 03 btst 3, %g2 <== NOT EXECUTED 2028db4: 22 80 00 79 be,a 2028f98 <== NOT EXECUTED 2028db8: c4 0c 20 05 ldub [ %l0 + 5 ], %g2 <== NOT EXECUTED return fs_info->vol.rdir_loc; 2028dbc: c4 04 20 1c ld [ %l0 + 0x1c ], %g2 <== 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) << 2028dc0: c2 0c 20 03 ldub [ %l0 + 3 ], %g1 <== NOT EXECUTED 2028dc4: 85 28 80 01 sll %g2, %g1, %g2 <== NOT EXECUTED (pos->ofs >> FAT_SECTOR512_BITS)) << 4) + 2028dc8: 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; 2028dcc: da 04 20 68 ld [ %l0 + 0x68 ], %o5 <== 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) + 2028dd0: 87 30 60 05 srl %g1, 5, %g3 <== NOT EXECUTED 2028dd4: a3 30 60 09 srl %g1, 9, %l1 <== NOT EXECUTED 2028dd8: 86 08 e0 0f and %g3, 0xf, %g3 <== NOT EXECUTED 2028ddc: a2 00 80 11 add %g2, %l1, %l1 <== NOT EXECUTED 2028de0: a3 2c 60 04 sll %l1, 4, %l1 <== NOT EXECUTED 2028de4: a2 04 40 03 add %l1, %g3, %l1 <== NOT EXECUTED 2028de8: 82 0c 60 01 and %l1, 1, %g1 <== NOT EXECUTED 2028dec: a7 28 60 04 sll %g1, 4, %l3 <== NOT EXECUTED 2028df0: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED 2028df4: a6 24 c0 01 sub %l3, %g1, %l3 <== NOT EXECUTED 2028df8: c2 03 40 13 ld [ %o5 + %l3 ], %g1 <== NOT EXECUTED 2028dfc: 9a 03 40 13 add %o5, %l3, %o5 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 2028e00: 9a 03 60 04 add %o5, 4, %o5 <== NOT EXECUTED for ( ; !rtems_chain_is_tail((hash) + mod, the_node) ; ) 2028e04: 80 a3 40 01 cmp %o5, %g1 <== NOT EXECUTED 2028e08: 22 80 00 1f be,a 2028e84 <== NOT EXECUTED 2028e0c: da 04 20 6c ld [ %l0 + 0x6c ], %o5 <== NOT EXECUTED 2028e10: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 <== NOT EXECUTED uint32_t cln ) { fat_fs_info_t *fs_info = mt_entry->fs_info; if (cln == 1) 2028e14: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED 2028e18: 02 80 00 0c be 2028e48 <== NOT EXECUTED 2028e1c: 88 10 20 01 mov 1, %g4 <== 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)) ) 2028e20: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2028e24: 32 80 00 67 bne,a 2028fc0 <== NOT EXECUTED 2028e28: c8 0c 20 05 ldub [ %l0 + 5 ], %g4 <== NOT EXECUTED 2028e2c: c6 0c 20 0a ldub [ %l0 + 0xa ], %g3 <== NOT EXECUTED 2028e30: 80 88 e0 03 btst 3, %g3 <== NOT EXECUTED 2028e34: 22 80 00 63 be,a 2028fc0 <== NOT EXECUTED 2028e38: c8 0c 20 05 ldub [ %l0 + 5 ], %g4 <== NOT EXECUTED return fs_info->vol.rdir_loc; 2028e3c: c8 04 20 1c ld [ %l0 + 0x1c ], %g4 <== 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) << 2028e40: c6 0c 20 03 ldub [ %l0 + 3 ], %g3 <== NOT EXECUTED 2028e44: 89 29 00 03 sll %g4, %g3, %g4 <== NOT EXECUTED (pos->ofs >> FAT_SECTOR512_BITS)) << 4) + 2028e48: c6 00 60 24 ld [ %g1 + 0x24 ], %g3 <== NOT EXECUTED { 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) 2028e4c: 85 30 e0 05 srl %g3, 5, %g2 <== NOT EXECUTED 2028e50: 87 30 e0 09 srl %g3, 9, %g3 <== NOT EXECUTED 2028e54: 84 08 a0 0f and %g2, 0xf, %g2 <== NOT EXECUTED 2028e58: 88 01 00 03 add %g4, %g3, %g4 <== NOT EXECUTED 2028e5c: 89 29 20 04 sll %g4, 4, %g4 <== NOT EXECUTED 2028e60: 88 01 00 02 add %g4, %g2, %g4 <== NOT EXECUTED 2028e64: 80 a4 40 04 cmp %l1, %g4 <== NOT EXECUTED 2028e68: 22 80 00 62 be,a 2028ff0 <== NOT EXECUTED 2028e6c: c4 00 60 08 ld [ %g1 + 8 ], %g2 <== NOT EXECUTED { *ret = (void *)the_node; return 0; } } the_node = the_node->next; 2028e70: 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) ; ) 2028e74: 80 a3 40 01 cmp %o5, %g1 <== NOT EXECUTED 2028e78: 32 bf ff e7 bne,a 2028e14 <== NOT EXECUTED 2028e7c: 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; 2028e80: da 04 20 6c ld [ %l0 + 0x6c ], %o5 <== NOT EXECUTED 2028e84: c2 03 40 13 ld [ %o5 + %l3 ], %g1 <== NOT EXECUTED 2028e88: 9a 03 40 13 add %o5, %l3, %o5 <== NOT EXECUTED 2028e8c: 9a 03 60 04 add %o5, 4, %o5 <== NOT EXECUTED for ( ; !rtems_chain_is_tail((hash) + mod, the_node) ; ) 2028e90: 80 a0 40 0d cmp %g1, %o5 <== NOT EXECUTED 2028e94: 02 80 00 1f be 2028f10 <== NOT EXECUTED 2028e98: a8 10 3f ff mov -1, %l4 <== 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) + 2028e9c: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 <== NOT EXECUTED uint32_t cln ) { fat_fs_info_t *fs_info = mt_entry->fs_info; if (cln == 1) 2028ea0: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED 2028ea4: 02 80 00 0c be 2028ed4 <== NOT EXECUTED 2028ea8: 88 10 20 01 mov 1, %g4 <== 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)) ) 2028eac: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2028eb0: 32 80 00 3f bne,a 2028fac <== NOT EXECUTED 2028eb4: c8 0c 20 05 ldub [ %l0 + 5 ], %g4 <== NOT EXECUTED 2028eb8: c6 0c 20 0a ldub [ %l0 + 0xa ], %g3 <== NOT EXECUTED 2028ebc: 80 88 e0 03 btst 3, %g3 <== NOT EXECUTED 2028ec0: 22 80 00 3b be,a 2028fac <== NOT EXECUTED 2028ec4: c8 0c 20 05 ldub [ %l0 + 5 ], %g4 <== NOT EXECUTED return fs_info->vol.rdir_loc; 2028ec8: c8 04 20 1c ld [ %l0 + 0x1c ], %g4 <== 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) << 2028ecc: c6 0c 20 03 ldub [ %l0 + 3 ], %g3 <== NOT EXECUTED 2028ed0: 89 29 00 03 sll %g4, %g3, %g4 <== NOT EXECUTED (pos->ofs >> FAT_SECTOR512_BITS)) << 4) + 2028ed4: c6 00 60 24 ld [ %g1 + 0x24 ], %g3 <== NOT EXECUTED { 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) 2028ed8: 85 30 e0 05 srl %g3, 5, %g2 <== NOT EXECUTED 2028edc: 87 30 e0 09 srl %g3, 9, %g3 <== NOT EXECUTED 2028ee0: 84 08 a0 0f and %g2, 0xf, %g2 <== NOT EXECUTED 2028ee4: 88 01 00 03 add %g4, %g3, %g4 <== NOT EXECUTED 2028ee8: 89 29 20 04 sll %g4, 4, %g4 <== NOT EXECUTED 2028eec: 88 01 00 02 add %g4, %g2, %g4 <== NOT EXECUTED 2028ef0: 80 a4 40 04 cmp %l1, %g4 <== NOT EXECUTED 2028ef4: 02 80 00 38 be 2028fd4 <== NOT EXECUTED 2028ef8: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED { *ret = (void *)the_node; return 0; } } the_node = the_node->next; 2028efc: 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) ; ) 2028f00: 80 a3 40 01 cmp %o5, %g1 <== NOT EXECUTED 2028f04: 32 bf ff e7 bne,a 2028ea0 <== NOT EXECUTED 2028f08: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 <== NOT EXECUTED 2028f0c: 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)); 2028f10: 7f ff 80 54 call 2009060 <== NOT EXECUTED 2028f14: 90 10 20 44 mov 0x44, %o0 <== NOT EXECUTED 2028f18: d0 26 80 00 st %o0, [ %i2 ] <== NOT EXECUTED if ( lfat_fd == NULL ) 2028f1c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2028f20: 02 80 00 40 be 2029020 <== NOT EXECUTED 2028f24: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOMEM ); memset(lfat_fd, 0, sizeof(fat_file_fd_t)); 2028f28: 92 10 20 00 clr %o1 <== NOT EXECUTED 2028f2c: 40 00 8d 25 call 204c3c0 <== NOT EXECUTED 2028f30: 94 10 20 44 mov 0x44, %o2 <== NOT EXECUTED lfat_fd->links_num = 1; lfat_fd->flags &= ~FAT_FILE_REMOVED; 2028f34: c2 0c a0 30 ldub [ %l2 + 0x30 ], %g1 <== NOT EXECUTED lfat_fd->map.last_cln = FAT_UNDEFINED_VALUE; lfat_fd->dir_pos = *dir_pos; 2028f38: c4 06 60 0c ld [ %i1 + 0xc ], %g2 <== 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; 2028f3c: 82 08 7f fe and %g1, -2, %g1 <== NOT EXECUTED lfat_fd->map.last_cln = FAT_UNDEFINED_VALUE; lfat_fd->dir_pos = *dir_pos; 2028f40: da 06 40 00 ld [ %i1 ], %o5 <== NOT EXECUTED 2028f44: c8 06 60 04 ld [ %i1 + 4 ], %g4 <== NOT EXECUTED 2028f48: c6 06 60 08 ld [ %i1 + 8 ], %g3 <== 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; 2028f4c: c2 2c a0 30 stb %g1, [ %l2 + 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; 2028f50: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED lfat_fd->flags &= ~FAT_FILE_REMOVED; lfat_fd->map.last_cln = FAT_UNDEFINED_VALUE; lfat_fd->dir_pos = *dir_pos; 2028f54: da 24 a0 20 st %o5, [ %l2 + 0x20 ] <== 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; 2028f58: c2 24 a0 08 st %g1, [ %l2 + 8 ] <== NOT EXECUTED lfat_fd->flags &= ~FAT_FILE_REMOVED; lfat_fd->map.last_cln = FAT_UNDEFINED_VALUE; lfat_fd->dir_pos = *dir_pos; 2028f5c: c8 24 a0 24 st %g4, [ %l2 + 0x24 ] <== 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; 2028f60: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED lfat_fd->dir_pos = *dir_pos; 2028f64: c6 24 a0 28 st %g3, [ %l2 + 0x28 ] <== NOT EXECUTED 2028f68: c4 24 a0 2c st %g2, [ %l2 + 0x2c ] <== NOT EXECUTED if ( rc != RC_OK ) 2028f6c: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED 2028f70: 02 80 00 25 be 2029004 <== NOT EXECUTED 2028f74: c2 24 a0 3c st %g1, [ %l2 + 0x3c ] <== NOT EXECUTED lfat_fd->ino = key; 2028f78: e2 24 a0 0c st %l1, [ %l2 + 0xc ] <== 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 ); 2028f7c: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED 2028f80: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED 2028f84: 90 02 00 13 add %o0, %l3, %o0 <== NOT EXECUTED 2028f88: 7f ff 94 e4 call 200e318 <_Chain_Append> <== NOT EXECUTED 2028f8c: b0 10 20 00 clr %i0 <== NOT EXECUTED * other fields of fat-file descriptor will be initialized on upper * level */ return RC_OK; } 2028f90: 81 c7 e0 08 ret <== NOT EXECUTED 2028f94: 81 e8 00 00 restore <== NOT EXECUTED register fat_fs_info_t *fs_info = mt_entry->fs_info; if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) ) return fs_info->vol.rdir_loc; return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) + 2028f98: c6 04 20 30 ld [ %l0 + 0x30 ], %g3 <== NOT EXECUTED 2028f9c: 82 00 7f fe add %g1, -2, %g1 <== NOT EXECUTED 2028fa0: 85 28 40 02 sll %g1, %g2, %g2 <== NOT EXECUTED 2028fa4: 10 bf ff 87 b 2028dc0 <== NOT EXECUTED 2028fa8: 84 00 80 03 add %g2, %g3, %g2 <== NOT EXECUTED 2028fac: c6 04 20 30 ld [ %l0 + 0x30 ], %g3 <== NOT EXECUTED 2028fb0: 84 00 bf fe add %g2, -2, %g2 <== NOT EXECUTED 2028fb4: 89 28 80 04 sll %g2, %g4, %g4 <== NOT EXECUTED 2028fb8: 10 bf ff c5 b 2028ecc <== NOT EXECUTED 2028fbc: 88 01 00 03 add %g4, %g3, %g4 <== NOT EXECUTED 2028fc0: c6 04 20 30 ld [ %l0 + 0x30 ], %g3 <== NOT EXECUTED 2028fc4: 84 00 bf fe add %g2, -2, %g2 <== NOT EXECUTED 2028fc8: 89 28 80 04 sll %g2, %g4, %g4 <== NOT EXECUTED 2028fcc: 10 bf ff 9d b 2028e40 <== NOT EXECUTED 2028fd0: 88 01 00 03 add %g4, %g3, %g4 <== NOT EXECUTED 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) { if ( ((key2) == 0) || ((key2) == ffd->ino) ) 2028fd4: 02 bf ff cf be 2028f10 <== NOT EXECUTED 2028fd8: a8 10 20 00 clr %l4 <== NOT EXECUTED 2028fdc: c4 00 60 0c ld [ %g1 + 0xc ], %g2 <== NOT EXECUTED 2028fe0: 80 a4 40 02 cmp %l1, %g2 <== NOT EXECUTED 2028fe4: 32 bf ff c7 bne,a 2028f00 <== NOT EXECUTED 2028fe8: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED 2028fec: 30 bf ff c9 b,a 2028f10 <== 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; 2028ff0: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED lfat_fd->links_num++; 2028ff4: 84 00 a0 01 inc %g2 <== NOT EXECUTED 2028ff8: c4 20 60 08 st %g2, [ %g1 + 8 ] <== NOT EXECUTED return rc; 2028ffc: 81 c7 e0 08 ret <== NOT EXECUTED 2029000: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED if ( rc != RC_OK ) lfat_fd->ino = key; else { lfat_fd->ino = fat_get_unique_ino(mt_entry); 2029004: 40 00 00 20 call 2029084 <== NOT EXECUTED 2029008: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED if ( lfat_fd->ino == 0 ) 202900c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029010: 12 bf ff db bne 2028f7c <== NOT EXECUTED 2029014: d0 24 a0 0c st %o0, [ %l2 + 0xc ] <== NOT EXECUTED { free((*fat_fd)); 2029018: 7f ff 7e 31 call 20088dc <== NOT EXECUTED 202901c: 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 ); 2029020: 40 00 7f 09 call 2048c44 <__errno> <== NOT EXECUTED 2029024: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2029028: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 202902c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2029030: 81 c7 e0 08 ret <== NOT EXECUTED 2029034: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02028a94 : fat_file_fd_t *fat_fd, uint32_t start, uint32_t count, uint8_t *buf ) { 2028a94: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED 2028a98: 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) 2028a9c: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 2028aa0: 02 80 00 50 be 2028be0 <== NOT EXECUTED 2028aa4: e4 06 20 34 ld [ %i0 + 0x34 ], %l2 <== NOT EXECUTED /* * >= because start is offset and computed from 0 and file_size * computed from 1 */ if ( start >= fat_fd->fat_file_size ) 2028aa8: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED 2028aac: 80 a0 40 1a cmp %g1, %i2 <== NOT EXECUTED 2028ab0: 08 80 00 4c bleu 2028be0 <== NOT EXECUTED 2028ab4: 80 a6 c0 01 cmp %i3, %g1 <== NOT EXECUTED return FAT_EOF; if ((count > fat_fd->fat_file_size) || 2028ab8: 08 80 00 68 bleu 2028c58 <== NOT EXECUTED 2028abc: 84 20 40 1b sub %g1, %i3, %g2 <== NOT EXECUTED (start > fat_fd->fat_file_size - count)) count = fat_fd->fat_file_size - start; 2028ac0: b6 20 40 1a sub %g1, %i2, %i3 <== NOT EXECUTED if ((FAT_FD_OF_ROOT_DIR(fat_fd)) && 2028ac4: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED 2028ac8: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 2028acc: 02 80 00 47 be 2028be8 <== NOT EXECUTED 2028ad0: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED return -1; return ret; } cl_start = start >> fs_info->vol.bpc_log2; 2028ad4: ea 0c a0 08 ldub [ %l2 + 8 ], %l5 <== NOT EXECUTED save_ofs = ofs = start & (fs_info->vol.bpc - 1); 2028ad8: e2 14 a0 06 lduh [ %l2 + 6 ], %l1 <== NOT EXECUTED return -1; return ret; } cl_start = start >> fs_info->vol.bpc_log2; 2028adc: ab 36 80 15 srl %i2, %l5, %l5 <== NOT EXECUTED save_ofs = ofs = start & (fs_info->vol.bpc - 1); rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln); 2028ae0: a8 07 bf fc add %fp, -4, %l4 <== NOT EXECUTED 2028ae4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2028ae8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2028aec: 94 10 00 15 mov %l5, %o2 <== NOT EXECUTED 2028af0: 7f ff fd cc call 2028220 <== NOT EXECUTED 2028af4: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED if (rc != RC_OK) 2028af8: b0 92 60 00 orcc %o1, 0, %i0 <== NOT EXECUTED 2028afc: 12 80 00 66 bne 2028c94 <== NOT EXECUTED 2028b00: a3 2c 60 10 sll %l1, 0x10, %l1 <== NOT EXECUTED return rc; while (count > 0) 2028b04: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED return ret; } cl_start = start >> fs_info->vol.bpc_log2; save_ofs = ofs = start & (fs_info->vol.bpc - 1); 2028b08: a3 34 60 10 srl %l1, 0x10, %l1 <== NOT EXECUTED 2028b0c: a2 04 7f ff add %l1, -1, %l1 <== NOT EXECUTED rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln); if (rc != RC_OK) return rc; while (count > 0) 2028b10: 02 80 00 63 be 2028c9c <== NOT EXECUTED 2028b14: b4 0e 80 11 and %i2, %l1, %i2 <== NOT EXECUTED cl_start = start >> fs_info->vol.bpc_log2; save_ofs = ofs = start & (fs_info->vol.bpc - 1); rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln); if (rc != RC_OK) 2028b18: c6 0c a0 02 ldub [ %l2 + 2 ], %g3 <== NOT EXECUTED 2028b1c: d4 14 80 00 lduh [ %l2 ], %o2 <== NOT EXECUTED 2028b20: 82 10 00 1a mov %i2, %g1 <== NOT EXECUTED 2028b24: 10 80 00 20 b 2028ba4 <== NOT EXECUTED 2028b28: a6 10 20 00 clr %l3 <== 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)) ) 2028b2c: da 08 a0 0a ldub [ %g2 + 0xa ], %o5 <== NOT EXECUTED 2028b30: 80 8b 60 03 btst 3, %o5 <== NOT EXECUTED 2028b34: 22 80 00 27 be,a 2028bd0 <== NOT EXECUTED 2028b38: da 00 a0 30 ld [ %g2 + 0x30 ], %o5 <== NOT EXECUTED return fs_info->vol.rdir_loc; 2028b3c: d2 00 a0 1c ld [ %g2 + 0x1c ], %o1 <== 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); 2028b40: 87 30 40 03 srl %g1, %g3, %g3 <== NOT EXECUTED 2028b44: 98 07 00 13 add %i4, %l3, %o4 <== NOT EXECUTED 2028b48: 92 02 40 03 add %o1, %g3, %o1 <== NOT EXECUTED 2028b4c: 95 2a a0 10 sll %o2, 0x10, %o2 <== NOT EXECUTED 2028b50: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED 2028b54: 95 32 a0 10 srl %o2, 0x10, %o2 <== NOT EXECUTED 2028b58: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2028b5c: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED 2028b60: 40 00 03 69 call 2029904 <_fat_block_read> <== NOT EXECUTED 2028b64: 94 0a 80 01 and %o2, %g1, %o2 <== NOT EXECUTED if ( ret < 0 ) return -1; count -= c; cmpltd += c; 2028b68: a6 04 c0 11 add %l3, %l1, %l3 <== 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 ) 2028b6c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED return -1; count -= c; cmpltd += c; save_cln = cur_cln; rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln); 2028b70: 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 ) 2028b74: 06 80 00 37 bl 2028c50 <== NOT EXECUTED 2028b78: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return -1; count -= c; cmpltd += c; save_cln = cur_cln; 2028b7c: ec 07 bf fc ld [ %fp + -4 ], %l6 <== NOT EXECUTED rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln); 2028b80: 40 00 6e 9b call 20445ec <== NOT EXECUTED 2028b84: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED if ( rc != RC_OK ) 2028b88: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2028b8c: 12 80 00 38 bne 2028c6c <== NOT EXECUTED 2028b90: b6 a6 c0 11 subcc %i3, %l1, %i3 <== NOT EXECUTED rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln); if (rc != RC_OK) return rc; while (count > 0) 2028b94: 02 80 00 38 be 2028c74 <== NOT EXECUTED 2028b98: 82 10 20 00 clr %g1 <== NOT EXECUTED 2028b9c: c6 0c a0 02 ldub [ %l2 + 2 ], %g3 <== NOT EXECUTED 2028ba0: d4 14 80 00 lduh [ %l2 ], %o2 <== NOT EXECUTED { c = MIN(count, (fs_info->vol.bpc - ofs)); 2028ba4: e2 14 a0 06 lduh [ %l2 + 6 ], %l1 <== NOT EXECUTED 2028ba8: a2 24 40 01 sub %l1, %g1, %l1 <== NOT EXECUTED 2028bac: 80 a4 40 1b cmp %l1, %i3 <== NOT EXECUTED 2028bb0: 08 80 00 03 bleu 2028bbc <== NOT EXECUTED 2028bb4: c4 07 bf fc ld [ %fp + -4 ], %g2 <== NOT EXECUTED 2028bb8: a2 10 00 1b mov %i3, %l1 <== 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)) ) 2028bbc: 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) + 2028bc0: 88 00 bf fe add %g2, -2, %g4 <== 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)) ) 2028bc4: 02 bf ff da be 2028b2c <== NOT EXECUTED 2028bc8: c4 04 20 34 ld [ %l0 + 0x34 ], %g2 <== NOT EXECUTED return fs_info->vol.rdir_loc; return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) + 2028bcc: da 00 a0 30 ld [ %g2 + 0x30 ], %o5 <== NOT EXECUTED 2028bd0: d2 08 a0 05 ldub [ %g2 + 5 ], %o1 <== NOT EXECUTED 2028bd4: 93 29 00 09 sll %g4, %o1, %o1 <== NOT EXECUTED 2028bd8: 10 bf ff da b 2028b40 <== NOT EXECUTED 2028bdc: 92 02 40 0d add %o1, %o5, %o1 <== 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; 2028be0: 81 c7 e0 08 ret <== NOT EXECUTED 2028be4: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED if ((count > fat_fd->fat_file_size) || (start > fat_fd->fat_file_size - count)) count = fat_fd->fat_file_size - start; if ((FAT_FD_OF_ROOT_DIR(fat_fd)) && 2028be8: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 <== NOT EXECUTED 2028bec: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2028bf0: 32 bf ff ba bne,a 2028ad8 <== NOT EXECUTED 2028bf4: ea 0c a0 08 ldub [ %l2 + 8 ], %l5 <== NOT EXECUTED (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16))) 2028bf8: c2 0c a0 0a ldub [ %l2 + 0xa ], %g1 <== NOT EXECUTED 2028bfc: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED 2028c00: 22 bf ff b6 be,a 2028ad8 <== NOT EXECUTED 2028c04: ea 0c a0 08 ldub [ %l2 + 8 ], %l5 <== NOT EXECUTED { sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->cln); 2028c08: c2 06 60 1c ld [ %i1 + 0x1c ], %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)) ) 2028c0c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2028c10: 32 80 00 27 bne,a 2028cac <== NOT EXECUTED 2028c14: c6 0c a0 05 ldub [ %l2 + 5 ], %g3 <== NOT EXECUTED return fs_info->vol.rdir_loc; 2028c18: d2 04 a0 1c ld [ %l2 + 0x1c ], %o1 <== 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); 2028c1c: d4 14 80 00 lduh [ %l2 ], %o2 <== NOT EXECUTED 2028c20: c2 0c a0 02 ldub [ %l2 + 2 ], %g1 <== NOT EXECUTED 2028c24: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED 2028c28: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2028c2c: 94 0e 80 0a and %i2, %o2, %o2 <== NOT EXECUTED 2028c30: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED 2028c34: b5 36 80 01 srl %i2, %g1, %i2 <== NOT EXECUTED 2028c38: 98 10 00 1c mov %i4, %o4 <== NOT EXECUTED 2028c3c: 40 00 03 32 call 2029904 <_fat_block_read> <== NOT EXECUTED 2028c40: 92 02 40 1a add %o1, %i2, %o1 <== NOT EXECUTED if ( ret < 0 ) 2028c44: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 2028c48: 16 80 00 13 bge 2028c94 <== NOT EXECUTED 2028c4c: 01 00 00 00 nop <== NOT EXECUTED 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; } 2028c50: 81 c7 e0 08 ret <== NOT EXECUTED 2028c54: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED * computed from 1 */ if ( start >= fat_fd->fat_file_size ) return FAT_EOF; if ((count > fat_fd->fat_file_size) || 2028c58: 80 a6 80 02 cmp %i2, %g2 <== NOT EXECUTED 2028c5c: 28 bf ff 9b bleu,a 2028ac8 <== NOT EXECUTED 2028c60: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED (start > fat_fd->fat_file_size - count)) count = fat_fd->fat_file_size - start; 2028c64: 10 bf ff 98 b 2028ac4 <== NOT EXECUTED 2028c68: b6 20 40 1a sub %g1, %i2, %i3 <== NOT EXECUTED count -= c; cmpltd += c; save_cln = cur_cln; rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln); if ( rc != RC_OK ) 2028c6c: 81 c7 e0 08 ret <== NOT EXECUTED 2028c70: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln); if (rc != RC_OK) return rc; while (count > 0) 2028c74: b0 10 00 13 mov %l3, %i0 <== NOT EXECUTED ofs = 0; } /* update cache */ /* XXX: check this - I'm not sure :( */ fat_fd->map.file_cln = cl_start + 2028c78: c2 0c a0 08 ldub [ %l2 + 8 ], %g1 <== NOT EXECUTED 2028c7c: 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; 2028c80: ec 26 60 38 st %l6, [ %i1 + 0x38 ] <== NOT EXECUTED ofs = 0; } /* update cache */ /* XXX: check this - I'm not sure :( */ fat_fd->map.file_cln = cl_start + 2028c84: a6 06 80 13 add %i2, %l3, %l3 <== NOT EXECUTED 2028c88: a7 34 c0 01 srl %l3, %g1, %l3 <== NOT EXECUTED 2028c8c: aa 04 c0 15 add %l3, %l5, %l5 <== NOT EXECUTED 2028c90: ea 26 60 34 st %l5, [ %i1 + 0x34 ] <== NOT EXECUTED ((save_ofs + cmpltd - 1) >> fs_info->vol.bpc_log2); fat_fd->map.disk_cln = save_cln; return cmpltd; 2028c94: 81 c7 e0 08 ret <== NOT EXECUTED 2028c98: 81 e8 00 00 restore <== NOT EXECUTED rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln); if (rc != RC_OK) return rc; while (count > 0) 2028c9c: b0 10 20 00 clr %i0 <== NOT EXECUTED 2028ca0: ac 10 20 00 clr %l6 <== NOT EXECUTED 2028ca4: 10 bf ff f5 b 2028c78 <== NOT EXECUTED 2028ca8: a6 10 20 00 clr %l3 <== NOT EXECUTED return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) + 2028cac: c4 04 a0 30 ld [ %l2 + 0x30 ], %g2 <== NOT EXECUTED 2028cb0: 82 00 7f fe add %g1, -2, %g1 <== NOT EXECUTED 2028cb4: 93 28 40 03 sll %g1, %g3, %o1 <== NOT EXECUTED 2028cb8: 10 bf ff d9 b 2028c1c <== NOT EXECUTED 2028cbc: 92 02 40 02 add %o1, %g2, %o1 <== NOT EXECUTED =============================================================================== 02028134 : * RC_OK */ int fat_file_reopen(fat_file_fd_t *fat_fd) { fat_fd->links_num++; 2028134: c4 02 20 08 ld [ %o0 + 8 ], %g2 <== NOT EXECUTED * RETURNS: * RC_OK */ int fat_file_reopen(fat_file_fd_t *fat_fd) { 2028138: 82 10 00 08 mov %o0, %g1 <== NOT EXECUTED fat_fd->links_num++; 202813c: 84 00 a0 01 inc %g2 <== NOT EXECUTED return RC_OK; } 2028140: 90 10 20 00 clr %o0 <== NOT EXECUTED 2028144: 81 c3 e0 08 retl <== NOT EXECUTED 2028148: c4 20 60 08 st %g2, [ %g1 + 8 ] <== NOT EXECUTED =============================================================================== 0202814c : int fat_file_size( rtems_filesystem_mount_table_entry_t *mt_entry, fat_file_fd_t *fat_fd ) { 202814c: 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)) && 2028150: 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 ) { 2028154: 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)) && 2028158: 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; 202815c: 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)) && 2028160: 02 80 00 24 be 20281f0 <== NOT EXECUTED 2028164: e2 06 60 1c ld [ %i1 + 0x1c ], %l1 <== NOT EXECUTED { fat_fd->fat_file_size = fs_info->vol.rdir_size; return rc; } fat_fd->fat_file_size = 0; 2028168: c0 26 60 18 clr [ %i1 + 0x18 ] <== NOT EXECUTED while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val) 202816c: c4 04 20 0c ld [ %l0 + 0xc ], %g2 <== NOT EXECUTED 2028170: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 2028174: 84 0c 40 02 and %l1, %g2, %g2 <== NOT EXECUTED 2028178: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 202817c: 1a 80 00 18 bcc 20281dc <== NOT EXECUTED 2028180: a6 07 bf fc add %fp, -4, %l3 <== 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; 2028184: 10 80 00 0d b 20281b8 <== NOT EXECUTED 2028188: e2 27 bf fc st %l1, [ %fp + -4 ] <== NOT EXECUTED save_cln = cur_cln; rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln); if ( rc != RC_OK ) return rc; fat_fd->fat_file_size += fs_info->vol.bpc; 202818c: c4 14 20 06 lduh [ %l0 + 6 ], %g2 <== NOT EXECUTED return rc; } fat_fd->fat_file_size = 0; while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val) 2028190: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED save_cln = cur_cln; rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln); if ( rc != RC_OK ) return rc; fat_fd->fat_file_size += fs_info->vol.bpc; 2028194: 84 00 c0 02 add %g3, %g2, %g2 <== NOT EXECUTED 2028198: 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) 202819c: c6 04 20 0c ld [ %l0 + 0xc ], %g3 <== NOT EXECUTED 20281a0: c4 04 20 10 ld [ %l0 + 0x10 ], %g2 <== NOT EXECUTED 20281a4: 86 08 40 03 and %g1, %g3, %g3 <== NOT EXECUTED 20281a8: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED 20281ac: 1a 80 00 0e bcc 20281e4 <== NOT EXECUTED 20281b0: 90 10 20 00 clr %o0 <== NOT EXECUTED 20281b4: a2 10 00 01 mov %g1, %l1 <== NOT EXECUTED { save_cln = cur_cln; rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln); 20281b8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED 20281bc: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 20281c0: 40 00 71 0b call 20445ec <== NOT EXECUTED 20281c4: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED if ( rc != RC_OK ) 20281c8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20281cc: 22 bf ff f0 be,a 202818c <== NOT EXECUTED 20281d0: c6 06 60 18 ld [ %i1 + 0x18 ], %g3 <== NOT EXECUTED fat_fd->fat_file_size += fs_info->vol.bpc; } fat_fd->map.last_cln = save_cln; return rc; } 20281d4: 81 c7 e0 08 ret <== NOT EXECUTED 20281d8: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return rc; } fat_fd->fat_file_size = 0; while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val) 20281dc: a2 10 20 00 clr %l1 <== NOT EXECUTED if ( rc != RC_OK ) return rc; fat_fd->fat_file_size += fs_info->vol.bpc; } fat_fd->map.last_cln = save_cln; 20281e0: 90 10 20 00 clr %o0 <== NOT EXECUTED 20281e4: e2 26 60 3c st %l1, [ %i1 + 0x3c ] <== NOT EXECUTED return rc; } 20281e8: 81 c7 e0 08 ret <== NOT EXECUTED 20281ec: 91 e8 00 08 restore %g0, %o0, %o0 <== 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)) && 20281f0: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 <== NOT EXECUTED 20281f4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20281f8: 32 bf ff dd bne,a 202816c <== NOT EXECUTED 20281fc: c0 26 60 18 clr [ %i1 + 0x18 ] <== NOT EXECUTED (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16))) 2028200: c2 0c 20 0a ldub [ %l0 + 0xa ], %g1 <== NOT EXECUTED 2028204: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED 2028208: 22 bf ff d9 be,a 202816c <== NOT EXECUTED 202820c: c0 26 60 18 clr [ %i1 + 0x18 ] <== NOT EXECUTED { fat_fd->fat_file_size = fs_info->vol.rdir_size; 2028210: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED 2028214: 90 10 20 00 clr %o0 <== NOT EXECUTED return rc; 2028218: 10 bf ff ef b 20281d4 <== NOT EXECUTED 202821c: c2 26 60 18 st %g1, [ %i1 + 0x18 ] <== NOT EXECUTED =============================================================================== 0202852c : fat_file_truncate( rtems_filesystem_mount_table_entry_t *mt_entry, fat_file_fd_t *fat_fd, uint32_t new_length ) { 202852c: 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 ) 2028530: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED 2028534: 80 a0 40 1a cmp %g1, %i2 <== NOT EXECUTED 2028538: 08 80 00 33 bleu 2028604 <== NOT EXECUTED 202853c: 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; 2028540: 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; 2028544: 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); 2028548: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202854c: 02 80 00 31 be 2028610 <== NOT EXECUTED 2028550: c6 27 bf f8 st %g3, [ %fp + -8 ] <== NOT EXECUTED cl_start = (new_length + fs_info->vol.bpc - 1) >> fs_info->vol.bpc_log2; 2028554: c6 10 a0 06 lduh [ %g2 + 6 ], %g3 <== NOT EXECUTED 2028558: c4 08 a0 08 ldub [ %g2 + 8 ], %g2 <== NOT EXECUTED 202855c: 86 00 ff ff add %g3, -1, %g3 <== NOT EXECUTED 2028560: b4 00 c0 1a add %g3, %i2, %i2 <== NOT EXECUTED 2028564: b5 36 80 02 srl %i2, %g2, %i2 <== NOT EXECUTED if ((cl_start << fs_info->vol.bpc_log2) >= fat_fd->fat_file_size) 2028568: 85 2e 80 02 sll %i2, %g2, %g2 <== NOT EXECUTED 202856c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2028570: 08 80 00 25 bleu 2028604 <== NOT EXECUTED 2028574: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED return RC_OK; if (cl_start != 0) 2028578: 02 80 00 09 be 202859c <== NOT EXECUTED 202857c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED { rc = fat_file_lseek(mt_entry, fat_fd, cl_start - 1, &new_last_cln); 2028580: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2028584: 94 06 bf ff add %i2, -1, %o2 <== NOT EXECUTED 2028588: 7f ff ff 26 call 2028220 <== NOT EXECUTED 202858c: 96 07 bf f8 add %fp, -8, %o3 <== NOT EXECUTED if (rc != RC_OK) 2028590: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED 2028594: 12 80 00 1d bne 2028608 <== NOT EXECUTED 2028598: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED return rc; } rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln); 202859c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 20285a0: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED 20285a4: 7f ff ff 1f call 2028220 <== NOT EXECUTED 20285a8: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED if (rc != RC_OK) 20285ac: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED 20285b0: 12 80 00 16 bne 2028608 <== NOT EXECUTED 20285b4: 01 00 00 00 nop <== NOT EXECUTED return rc; rc = fat_free_fat_clusters_chain(mt_entry, cur_cln); 20285b8: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED 20285bc: 40 00 70 90 call 20447fc <== NOT EXECUTED 20285c0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED if (rc != RC_OK) 20285c4: 92 92 20 00 orcc %o0, 0, %o1 <== NOT EXECUTED 20285c8: 12 80 00 10 bne 2028608 <== NOT EXECUTED 20285cc: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED return rc; if (cl_start != 0) 20285d0: 02 80 00 0e be 2028608 <== NOT EXECUTED 20285d4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED { rc = fat_set_fat_cluster(mt_entry, new_last_cln, FAT_GENFAT_EOC); 20285d8: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED 20285dc: 40 00 6f 3f call 20442d8 <== NOT EXECUTED 20285e0: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED if ( rc != RC_OK ) 20285e4: 92 92 20 00 orcc %o0, 0, %o1 <== NOT EXECUTED 20285e8: 12 80 00 08 bne 2028608 <== NOT EXECUTED 20285ec: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED return rc; fat_fd->map.file_cln = cl_start - 1; 20285f0: 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; 20285f4: 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; 20285f8: f4 26 60 34 st %i2, [ %i1 + 0x34 ] <== NOT EXECUTED fat_fd->map.disk_cln = new_last_cln; 20285fc: 10 80 00 03 b 2028608 <== NOT EXECUTED 2028600: c2 26 60 38 st %g1, [ %i1 + 0x38 ] <== NOT EXECUTED fat_fd->map.last_cln = new_last_cln; 2028604: 92 10 20 00 clr %o1 <== NOT EXECUTED } return RC_OK; } 2028608: 81 c7 e0 08 ret <== NOT EXECUTED 202860c: 91 e8 00 09 restore %g0, %o1, %o0 <== NOT EXECUTED if ( new_length >= fat_fd->fat_file_size ) return rc; assert(fat_fd->fat_file_size); 2028610: 11 00 81 a4 sethi %hi(0x2069000), %o0 <== NOT EXECUTED 2028614: 15 00 81 a4 sethi %hi(0x2069000), %o2 <== NOT EXECUTED 2028618: 17 00 81 a4 sethi %hi(0x2069000), %o3 <== NOT EXECUTED 202861c: 90 12 21 c8 or %o0, 0x1c8, %o0 <== NOT EXECUTED 2028620: 94 12 a2 30 or %o2, 0x230, %o2 <== NOT EXECUTED 2028624: 96 12 e2 18 or %o3, 0x218, %o3 <== NOT EXECUTED 2028628: 40 00 0e 48 call 202bf48 <__assert_func> <== NOT EXECUTED 202862c: 92 10 22 6d mov 0x26d, %o1 <== NOT EXECUTED =============================================================================== 02028824 : fat_file_fd_t *fat_fd, uint32_t start, uint32_t count, const uint8_t *buf ) { 2028824: 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 ) 2028828: 90 10 20 00 clr %o0 <== NOT EXECUTED fat_file_fd_t *fat_fd, uint32_t start, uint32_t count, const uint8_t *buf ) { 202882c: 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 ) 2028830: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 2028834: 02 80 00 81 be 2028a38 <== NOT EXECUTED 2028838: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 <== NOT EXECUTED return cmpltd; if ( start > fat_fd->fat_file_size ) 202883c: 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; 2028840: 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 ) 2028844: 80 a0 40 1a cmp %g1, %i2 <== NOT EXECUTED 2028848: 0a 80 00 7e bcs 2028a40 <== NOT EXECUTED 202884c: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EIO ); if ((count > fat_fd->size_limit) || 2028850: c2 06 60 14 ld [ %i1 + 0x14 ], %g1 <== NOT EXECUTED 2028854: 80 a6 c0 01 cmp %i3, %g1 <== NOT EXECUTED 2028858: 18 80 00 7a bgu 2028a40 <== NOT EXECUTED 202885c: 82 20 40 1b sub %g1, %i3, %g1 <== NOT EXECUTED 2028860: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED 2028864: 18 80 00 77 bgu 2028a40 <== NOT EXECUTED 2028868: a4 06 c0 1a add %i3, %i2, %l2 <== NOT EXECUTED (start > fat_fd->size_limit - count)) rtems_set_errno_and_return_minus_one( EIO ); rc = fat_file_extend(mt_entry, fat_fd, start + count, &c); 202886c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2028870: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2028874: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED 2028878: 7f ff ff 6f call 2028634 <== NOT EXECUTED 202887c: 96 07 bf f8 add %fp, -8, %o3 <== NOT EXECUTED if (rc != RC_OK) 2028880: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2028884: 12 80 00 6d bne 2028a38 <== NOT EXECUTED 2028888: 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)) 202888c: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED 2028890: 32 80 00 02 bne,a 2028898 <== NOT EXECUTED 2028894: b6 20 40 1a sub %g1, %i2, %i3 <== NOT EXECUTED count = c - start; if ((FAT_FD_OF_ROOT_DIR(fat_fd)) && 2028898: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED 202889c: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 20288a0: 22 80 00 48 be,a 20289c0 <== NOT EXECUTED 20288a4: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 <== NOT EXECUTED return -1; return ret; } cl_start = start >> fs_info->vol.bpc_log2; 20288a8: e8 0c 60 08 ldub [ %l1 + 8 ], %l4 <== NOT EXECUTED save_ofs = ofs = start & (fs_info->vol.bpc - 1); 20288ac: e4 14 60 06 lduh [ %l1 + 6 ], %l2 <== NOT EXECUTED return -1; return ret; } cl_start = start >> fs_info->vol.bpc_log2; 20288b0: a9 36 80 14 srl %i2, %l4, %l4 <== NOT EXECUTED save_ofs = ofs = start & (fs_info->vol.bpc - 1); rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln); 20288b4: a6 07 bf fc add %fp, -4, %l3 <== NOT EXECUTED 20288b8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20288bc: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 20288c0: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED 20288c4: 7f ff fe 57 call 2028220 <== NOT EXECUTED 20288c8: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED if (rc != RC_OK) 20288cc: 90 92 60 00 orcc %o1, 0, %o0 <== NOT EXECUTED 20288d0: 12 80 00 5a bne 2028a38 <== NOT EXECUTED 20288d4: 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); 20288d8: a5 34 a0 10 srl %l2, 0x10, %l2 <== NOT EXECUTED 20288dc: a4 04 bf ff add %l2, -1, %l2 <== NOT EXECUTED rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln); if (rc != RC_OK) return rc; while (count > 0) 20288e0: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED return ret; } cl_start = start >> fs_info->vol.bpc_log2; save_ofs = ofs = start & (fs_info->vol.bpc - 1); 20288e4: b4 0e 80 12 and %i2, %l2, %i2 <== NOT EXECUTED rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln); if (rc != RC_OK) return rc; while (count > 0) 20288e8: ac 10 20 00 clr %l6 <== NOT EXECUTED 20288ec: 02 80 00 5c be 2028a5c <== NOT EXECUTED 20288f0: a4 10 20 00 clr %l2 <== NOT EXECUTED cl_start = start >> fs_info->vol.bpc_log2; save_ofs = ofs = start & (fs_info->vol.bpc - 1); rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln); if (rc != RC_OK) 20288f4: c8 0c 60 02 ldub [ %l1 + 2 ], %g4 <== NOT EXECUTED 20288f8: d4 14 40 00 lduh [ %l1 ], %o2 <== NOT EXECUTED 20288fc: 10 80 00 22 b 2028984 <== NOT EXECUTED 2028900: 84 10 00 1a mov %i2, %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)) ) 2028904: d8 08 e0 0a ldub [ %g3 + 0xa ], %o4 <== NOT EXECUTED 2028908: 80 8b 20 03 btst 3, %o4 <== NOT EXECUTED 202890c: 22 80 00 29 be,a 20289b0 <== NOT EXECUTED 2028910: d8 00 e0 30 ld [ %g3 + 0x30 ], %o4 <== NOT EXECUTED return fs_info->vol.rdir_loc; 2028914: d2 00 e0 1c ld [ %g3 + 0x1c ], %o1 <== 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); 2028918: 89 30 80 04 srl %g2, %g4, %g4 <== NOT EXECUTED 202891c: 95 2a a0 10 sll %o2, 0x10, %o2 <== NOT EXECUTED 2028920: 92 02 40 04 add %o1, %g4, %o1 <== NOT EXECUTED 2028924: 96 10 00 01 mov %g1, %o3 <== NOT EXECUTED 2028928: 95 32 a0 10 srl %o2, 0x10, %o2 <== NOT EXECUTED if (rc != RC_OK) return rc; while (count > 0) { c = MIN(count, (fs_info->vol.bpc - ofs)); 202892c: 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); 2028930: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED 2028934: 98 07 00 12 add %i4, %l2, %o4 <== NOT EXECUTED 2028938: 94 0a 80 02 and %o2, %g2, %o2 <== NOT EXECUTED 202893c: 40 00 02 ff call 2029538 <_fat_block_write> <== NOT EXECUTED 2028940: 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); 2028944: 94 10 00 13 mov %l3, %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 ) 2028948: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202894c: 06 80 00 3a bl 2028a34 <== NOT EXECUTED 2028950: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return -1; count -= c; cmpltd += c; save_cln = cur_cln; 2028954: ec 07 bf fc ld [ %fp + -4 ], %l6 <== NOT EXECUTED ret = _fat_block_write(mt_entry, sec, byte, c, buf + cmpltd); if ( ret < 0 ) return -1; count -= c; 2028958: ea 07 bf f8 ld [ %fp + -8 ], %l5 <== NOT EXECUTED cmpltd += c; save_cln = cur_cln; rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln); 202895c: 40 00 6f 24 call 20445ec <== NOT EXECUTED 2028960: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED if ( rc != RC_OK ) 2028964: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2028968: 12 80 00 34 bne 2028a38 <== NOT EXECUTED 202896c: b6 a6 c0 15 subcc %i3, %l5, %i3 <== NOT EXECUTED rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln); if (rc != RC_OK) return rc; while (count > 0) 2028970: 02 80 00 3a be 2028a58 <== NOT EXECUTED 2028974: a4 04 80 15 add %l2, %l5, %l2 <== NOT EXECUTED 2028978: c8 0c 60 02 ldub [ %l1 + 2 ], %g4 <== NOT EXECUTED 202897c: d4 14 40 00 lduh [ %l1 ], %o2 <== NOT EXECUTED 2028980: 84 10 20 00 clr %g2 <== NOT EXECUTED { c = MIN(count, (fs_info->vol.bpc - ofs)); 2028984: c2 14 60 06 lduh [ %l1 + 6 ], %g1 <== NOT EXECUTED 2028988: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 202898c: 80 a0 40 1b cmp %g1, %i3 <== NOT EXECUTED 2028990: 08 80 00 03 bleu 202899c <== NOT EXECUTED 2028994: c6 07 bf fc ld [ %fp + -4 ], %g3 <== NOT EXECUTED 2028998: 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)) ) 202899c: 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) + 20289a0: 9a 00 ff fe add %g3, -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)) ) 20289a4: 02 bf ff d8 be 2028904 <== NOT EXECUTED 20289a8: c6 04 20 34 ld [ %l0 + 0x34 ], %g3 <== NOT EXECUTED return fs_info->vol.rdir_loc; return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) + 20289ac: d8 00 e0 30 ld [ %g3 + 0x30 ], %o4 <== NOT EXECUTED 20289b0: d2 08 e0 05 ldub [ %g3 + 5 ], %o1 <== NOT EXECUTED 20289b4: 93 2b 40 09 sll %o5, %o1, %o1 <== NOT EXECUTED 20289b8: 10 bf ff d8 b 2028918 <== NOT EXECUTED 20289bc: 92 02 40 0c add %o1, %o4, %o1 <== NOT EXECUTED * file of 'start + count' bytes */ if (c != (start + count)) count = c - start; if ((FAT_FD_OF_ROOT_DIR(fat_fd)) && 20289c0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20289c4: 32 bf ff ba bne,a 20288ac <== NOT EXECUTED 20289c8: e8 0c 60 08 ldub [ %l1 + 8 ], %l4 <== NOT EXECUTED (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16))) 20289cc: c2 0c 60 0a ldub [ %l1 + 0xa ], %g1 <== NOT EXECUTED 20289d0: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED 20289d4: 22 bf ff b6 be,a 20288ac <== NOT EXECUTED 20289d8: e8 0c 60 08 ldub [ %l1 + 8 ], %l4 <== NOT EXECUTED { sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->cln); 20289dc: 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)) ) 20289e0: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 20289e4: 12 80 00 26 bne 2028a7c <== NOT EXECUTED 20289e8: c2 04 20 34 ld [ %l0 + 0x34 ], %g1 <== NOT EXECUTED 20289ec: c6 08 60 0a ldub [ %g1 + 0xa ], %g3 <== NOT EXECUTED 20289f0: 80 88 e0 03 btst 3, %g3 <== NOT EXECUTED 20289f4: 22 80 00 23 be,a 2028a80 <== NOT EXECUTED 20289f8: c6 00 60 30 ld [ %g1 + 0x30 ], %g3 <== NOT EXECUTED return fs_info->vol.rdir_loc; 20289fc: d2 00 60 1c ld [ %g1 + 0x1c ], %o1 <== 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); 2028a00: d4 14 40 00 lduh [ %l1 ], %o2 <== NOT EXECUTED 2028a04: c2 0c 60 02 ldub [ %l1 + 2 ], %g1 <== NOT EXECUTED 2028a08: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED 2028a0c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2028a10: 94 0e 80 0a and %i2, %o2, %o2 <== NOT EXECUTED 2028a14: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED 2028a18: b5 36 80 01 srl %i2, %g1, %i2 <== NOT EXECUTED 2028a1c: 98 10 00 1c mov %i4, %o4 <== NOT EXECUTED 2028a20: 40 00 02 c6 call 2029538 <_fat_block_write> <== NOT EXECUTED 2028a24: 92 02 40 1a add %o1, %i2, %o1 <== NOT EXECUTED if ( ret < 0 ) 2028a28: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2028a2c: 16 80 00 03 bge 2028a38 <== NOT EXECUTED 2028a30: 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; 2028a34: 90 10 3f ff mov -1, %o0 ! ffffffff <== NOT EXECUTED } 2028a38: 81 c7 e0 08 ret <== NOT EXECUTED 2028a3c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED if ( start > fat_fd->fat_file_size ) rtems_set_errno_and_return_minus_one( EIO ); if ((count > fat_fd->size_limit) || (start > fat_fd->size_limit - count)) rtems_set_errno_and_return_minus_one( EIO ); 2028a40: 40 00 80 81 call 2048c44 <__errno> <== NOT EXECUTED 2028a44: 01 00 00 00 nop <== NOT EXECUTED 2028a48: 82 10 20 05 mov 5, %g1 ! 5 <== NOT EXECUTED 2028a4c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2028a50: 10 bf ff fa b 2028a38 <== NOT EXECUTED 2028a54: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln); if (rc != RC_OK) return rc; while (count > 0) 2028a58: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED ofs = 0; } /* update cache */ /* XXX: check this - I'm not sure :( */ fat_fd->map.file_cln = cl_start + 2028a5c: c2 0c 60 08 ldub [ %l1 + 8 ], %g1 <== NOT EXECUTED 2028a60: 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; 2028a64: ec 26 60 38 st %l6, [ %i1 + 0x38 ] <== NOT EXECUTED ofs = 0; } /* update cache */ /* XXX: check this - I'm not sure :( */ fat_fd->map.file_cln = cl_start + 2028a68: a4 06 80 12 add %i2, %l2, %l2 <== NOT EXECUTED 2028a6c: a5 34 80 01 srl %l2, %g1, %l2 <== NOT EXECUTED 2028a70: a8 04 80 14 add %l2, %l4, %l4 <== NOT EXECUTED ((save_ofs + cmpltd - 1) >> fs_info->vol.bpc_log2); fat_fd->map.disk_cln = save_cln; return cmpltd; 2028a74: 10 bf ff f1 b 2028a38 <== NOT EXECUTED 2028a78: e8 26 60 34 st %l4, [ %i1 + 0x34 ] <== NOT EXECUTED return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) + 2028a7c: c6 00 60 30 ld [ %g1 + 0x30 ], %g3 <== NOT EXECUTED 2028a80: c2 08 60 05 ldub [ %g1 + 5 ], %g1 <== NOT EXECUTED 2028a84: 84 00 bf fe add %g2, -2, %g2 <== NOT EXECUTED 2028a88: 93 28 80 01 sll %g2, %g1, %o1 <== NOT EXECUTED 2028a8c: 10 bf ff dd b 2028a00 <== NOT EXECUTED 2028a90: 92 02 40 03 add %o1, %g3, %o1 <== NOT EXECUTED =============================================================================== 020447fc : int fat_free_fat_clusters_chain( rtems_filesystem_mount_table_entry_t *mt_entry, uint32_t chain ) { 20447fc: 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; 2044800: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED uint32_t cur_cln = chain; uint32_t next_cln = 0; 2044804: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED uint32_t freed_cls_cnt = 0; while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val) 2044808: c4 04 20 0c ld [ %l0 + 0xc ], %g2 <== NOT EXECUTED 204480c: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 2044810: 84 0e 40 02 and %i1, %g2, %g2 <== NOT EXECUTED int fat_free_fat_clusters_chain( rtems_filesystem_mount_table_entry_t *mt_entry, uint32_t chain ) { 2044814: a2 10 00 18 mov %i0, %l1 <== 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) 2044818: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 204481c: a6 10 20 00 clr %l3 <== NOT EXECUTED 2044820: 08 80 00 24 bleu 20448b0 <== NOT EXECUTED 2044824: aa 10 20 00 clr %l5 <== NOT EXECUTED 2044828: a4 10 00 19 mov %i1, %l2 <== NOT EXECUTED 204482c: 10 80 00 0e b 2044864 <== NOT EXECUTED 2044830: a8 07 bf fc add %fp, -4, %l4 <== NOT EXECUTED fat_buf_release(fs_info); return rc; } rc = fat_set_fat_cluster(mt_entry, cur_cln, FAT_GENFAT_FREE); 2044834: 7f ff fe a9 call 20442d8 <== NOT EXECUTED 2044838: 01 00 00 00 nop <== NOT EXECUTED if ( rc != RC_OK ) 204483c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2044840: 02 80 00 03 be 204484c <== NOT EXECUTED 2044844: e4 07 bf fc ld [ %fp + -4 ], %l2 <== NOT EXECUTED 2044848: aa 10 00 08 mov %o0, %l5 <== 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) 204484c: c4 04 20 0c ld [ %l0 + 0xc ], %g2 <== NOT EXECUTED 2044850: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 2044854: 84 0c 80 02 and %l2, %g2, %g2 <== NOT EXECUTED 2044858: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 204485c: 1a 80 00 15 bcc 20448b0 <== NOT EXECUTED 2044860: a6 04 e0 01 inc %l3 <== NOT EXECUTED { rc = fat_get_fat_cluster(mt_entry, cur_cln, &next_cln); 2044864: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED 2044868: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED 204486c: 7f ff ff 60 call 20445ec <== NOT EXECUTED 2044870: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED fat_buf_release(fs_info); return rc; } rc = fat_set_fat_cluster(mt_entry, cur_cln, FAT_GENFAT_FREE); 2044874: 92 10 00 12 mov %l2, %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); 2044878: 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); 204487c: 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 ) 2044880: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 2044884: 02 bf ff ec be 2044834 <== NOT EXECUTED 2044888: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED { if(fs_info->vol.free_cls != FAT_UNDEFINED_VALUE) 204488c: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 <== NOT EXECUTED 2044890: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED 2044894: 02 80 00 03 be 20448a0 <== NOT EXECUTED 2044898: 82 04 c0 01 add %l3, %g1, %g1 <== NOT EXECUTED fs_info->vol.free_cls += freed_cls_cnt; 204489c: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED fat_buf_release(fs_info); 20448a0: 7f ff 92 37 call 202917c <== NOT EXECUTED 20448a4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return rc; 20448a8: 81 c7 e0 08 ret <== NOT EXECUTED 20448ac: 81 e8 00 00 restore <== NOT EXECUTED freed_cls_cnt++; cur_cln = next_cln; } fs_info->vol.next_cl = chain; if (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE) 20448b0: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 <== NOT EXECUTED 20448b4: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED 20448b8: 02 80 00 04 be 20448c8 <== NOT EXECUTED 20448bc: f2 24 20 44 st %i1, [ %l0 + 0x44 ] <== NOT EXECUTED fs_info->vol.free_cls += freed_cls_cnt; 20448c0: 82 04 c0 01 add %l3, %g1, %g1 <== NOT EXECUTED 20448c4: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED fat_buf_release(fs_info); 20448c8: b0 10 00 15 mov %l5, %i0 <== NOT EXECUTED 20448cc: 7f ff 92 2c call 202917c <== NOT EXECUTED 20448d0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if (rc1 != RC_OK) return rc1; return RC_OK; } 20448d4: 81 c7 e0 08 ret <== NOT EXECUTED 20448d8: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02029038 : void fat_free_unique_ino( rtems_filesystem_mount_table_entry_t *mt_entry, uint32_t ino ) { 2029038: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED fat_fs_info_t *fs_info = mt_entry->fs_info; 202903c: c4 06 20 34 ld [ %i0 + 0x34 ], %g2 <== NOT EXECUTED FAT_SET_UNIQ_INO_FREE((ino - fs_info->uino_base), fs_info->uino); 2029040: 9a 10 20 01 mov 1, %o5 <== NOT EXECUTED 2029044: c2 00 a0 70 ld [ %g2 + 0x70 ], %g1 <== NOT EXECUTED 2029048: c4 00 a0 7c ld [ %g2 + 0x7c ], %g2 <== NOT EXECUTED 202904c: 84 26 40 02 sub %i1, %g2, %g2 <== NOT EXECUTED 2029050: 87 30 a0 03 srl %g2, 3, %g3 <== NOT EXECUTED 2029054: c8 08 40 03 ldub [ %g1 + %g3 ], %g4 <== NOT EXECUTED 2029058: 84 08 a0 07 and %g2, 7, %g2 <== NOT EXECUTED 202905c: 85 2b 40 02 sll %o5, %g2, %g2 <== NOT EXECUTED 2029060: 84 29 00 02 andn %g4, %g2, %g2 <== NOT EXECUTED 2029064: c4 28 40 03 stb %g2, [ %g1 + %g3 ] <== NOT EXECUTED } 2029068: 81 c7 e0 08 ret <== NOT EXECUTED 202906c: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 020445ec : fat_get_fat_cluster( rtems_filesystem_mount_table_entry_t *mt_entry, uint32_t cln, uint32_t *ret_val ) { 20445ec: 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; 20445f0: 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)) ) 20445f4: 80 a6 60 01 cmp %i1, 1 <== NOT EXECUTED 20445f8: 08 80 00 6c bleu 20447a8 <== NOT EXECUTED 20445fc: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED 2044600: c2 04 20 34 ld [ %l0 + 0x34 ], %g1 <== NOT EXECUTED 2044604: 82 00 60 01 inc %g1 <== NOT EXECUTED 2044608: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 204460c: 18 80 00 67 bgu 20447a8 <== NOT EXECUTED 2044610: 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) + 2044614: c2 0c 20 0a ldub [ %l0 + 0xa ], %g1 <== NOT EXECUTED 2044618: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 204461c: 12 80 00 24 bne 20446ac <== NOT EXECUTED 2044620: e6 0c 20 02 ldub [ %l0 + 2 ], %l3 <== NOT EXECUTED 2044624: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED 2044628: 02 80 00 27 be 20446c4 <== NOT EXECUTED 204462c: 01 00 00 00 nop <== NOT EXECUTED 2044630: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 <== NOT EXECUTED 2044634: a3 2e 60 01 sll %i1, 1, %l1 <== NOT EXECUTED 2044638: a7 34 40 13 srl %l1, %l3, %l3 <== NOT EXECUTED 204463c: a6 04 c0 01 add %l3, %g1, %l3 <== NOT EXECUTED fs_info->vol.afat_loc; ofs = FAT_FAT_OFFSET(fs_info->vol.type, cln) & (fs_info->vol.bps - 1); 2044640: e8 14 00 00 lduh [ %l0 ], %l4 <== NOT EXECUTED rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &block0); 2044644: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED 2044648: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 204464c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED 2044650: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED 2044654: 7f ff 93 31 call 2029318 <== NOT EXECUTED 2044658: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED if (rc != RC_OK) 204465c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 2044660: 12 80 00 11 bne 20446a4 <== NOT EXECUTED 2044664: a9 2d 20 10 sll %l4, 0x10, %l4 <== NOT EXECUTED return rc; switch ( fs_info->vol.type ) 2044668: c2 0c 20 0a ldub [ %l0 + 0xa ], %g1 <== NOT EXECUTED 204466c: 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); 2044670: a9 35 20 10 srl %l4, 0x10, %l4 <== NOT EXECUTED 2044674: 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 ) 2044678: 02 80 00 18 be 20446d8 <== NOT EXECUTED 204467c: a2 0c 40 14 and %l1, %l4, %l1 <== NOT EXECUTED 2044680: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED 2044684: 02 80 00 35 be 2044758 <== NOT EXECUTED 2044688: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 204468c: 02 80 00 20 be 204470c <== NOT EXECUTED 2044690: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED *ret_val = *((uint32_t *)(block0->buffer + ofs)); *ret_val = CF_LE_L(*ret_val); break; default: rtems_set_errno_and_return_minus_one(EIO); 2044694: 40 00 11 6c call 2048c44 <__errno> <== NOT EXECUTED 2044698: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 204469c: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED 20446a0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED break; } return RC_OK; } 20446a4: 81 c7 e0 08 ret <== NOT EXECUTED 20446a8: 81 e8 00 00 restore <== 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) + 20446ac: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 <== NOT EXECUTED 20446b0: a3 36 60 01 srl %i1, 1, %l1 <== NOT EXECUTED 20446b4: a2 04 40 19 add %l1, %i1, %l1 <== NOT EXECUTED 20446b8: a7 34 40 13 srl %l1, %l3, %l3 <== NOT EXECUTED 20446bc: 10 bf ff e1 b 2044640 <== NOT EXECUTED 20446c0: a6 04 c0 01 add %l3, %g1, %l3 <== NOT EXECUTED 20446c4: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 <== NOT EXECUTED 20446c8: a3 2e 60 02 sll %i1, 2, %l1 <== NOT EXECUTED 20446cc: a7 34 40 13 srl %l1, %l3, %l3 <== NOT EXECUTED 20446d0: 10 bf ff dc b 2044640 <== NOT EXECUTED 20446d4: a6 04 c0 01 add %l3, %g1, %l3 <== NOT EXECUTED else *ret_val = (*ret_val) & FAT_FAT12_MASK; break; case FAT_FAT16: *ret_val = *((uint16_t *)(block0->buffer + ofs)); 20446d8: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED *ret_val = CF_LE_W(*ret_val); 20446dc: 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)); 20446e0: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED *ret_val = CF_LE_W(*ret_val); 20446e4: 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)); 20446e8: c2 10 40 11 lduh [ %g1 + %l1 ], %g1 <== NOT EXECUTED *ret_val = CF_LE_W(*ret_val); 20446ec: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED 20446f0: 85 30 60 18 srl %g1, 0x18, %g2 <== NOT EXECUTED 20446f4: 83 30 60 08 srl %g1, 8, %g1 <== NOT EXECUTED 20446f8: 82 08 40 03 and %g1, %g3, %g1 <== NOT EXECUTED 20446fc: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED 2044700: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED break; 2044704: 81 c7 e0 08 ret <== NOT EXECUTED 2044708: 91 e8 20 00 restore %g0, 0, %o0 <== 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) ) 204470c: 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))); 2044710: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 <== NOT EXECUTED if ( ofs == (fs_info->vol.bps - 1) ) 2044714: 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))); 2044718: c2 08 80 11 ldub [ %g2 + %l1 ], %g1 <== NOT EXECUTED if ( ofs == (fs_info->vol.bps - 1) ) 204471c: 80 a0 c0 11 cmp %g3, %l1 <== NOT EXECUTED 2044720: 02 80 00 28 be 20447c0 <== NOT EXECUTED 2044724: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED *ret_val |= (*((uint8_t *)(block0->buffer)))<<8; } else { *ret_val |= (*((uint8_t *)(block0->buffer + ofs + 1)))<<8; 2044728: a2 00 80 11 add %g2, %l1, %l1 <== NOT EXECUTED 204472c: c4 0c 60 01 ldub [ %l1 + 1 ], %g2 <== NOT EXECUTED 2044730: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED 2044734: 82 10 80 01 or %g2, %g1, %g1 <== NOT EXECUTED 2044738: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED } if ( FAT_CLUSTER_IS_ODD(cln) ) 204473c: 80 8e 60 01 btst 1, %i1 <== NOT EXECUTED 2044740: 22 80 00 17 be,a 204479c <== NOT EXECUTED 2044744: 82 08 6f ff and %g1, 0xfff, %g1 <== NOT EXECUTED *ret_val = (*ret_val) >> FAT12_SHIFT; 2044748: 83 30 60 04 srl %g1, 4, %g1 <== NOT EXECUTED 204474c: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED 2044750: 81 c7 e0 08 ret <== NOT EXECUTED 2044754: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED *ret_val = *((uint16_t *)(block0->buffer + ofs)); *ret_val = CF_LE_W(*ret_val); break; case FAT_FAT32: *ret_val = *((uint32_t *)(block0->buffer + ofs)); 2044758: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 204475c: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED 2044760: c2 00 40 11 ld [ %g1 + %l1 ], %g1 <== NOT EXECUTED *ret_val = CF_LE_L(*ret_val); 2044764: 85 30 60 10 srl %g1, 0x10, %g2 <== NOT EXECUTED 2044768: 89 28 60 18 sll %g1, 0x18, %g4 <== NOT EXECUTED 204476c: 87 30 60 18 srl %g1, 0x18, %g3 <== NOT EXECUTED 2044770: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED 2044774: 86 11 00 03 or %g4, %g3, %g3 <== NOT EXECUTED 2044778: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED 204477c: 83 30 60 08 srl %g1, 8, %g1 <== NOT EXECUTED 2044780: 82 08 60 ff and %g1, 0xff, %g1 <== NOT EXECUTED 2044784: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED 2044788: 82 10 c0 01 or %g3, %g1, %g1 <== NOT EXECUTED 204478c: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED 2044790: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED break; 2044794: 81 c7 e0 08 ret <== NOT EXECUTED 2044798: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED } if ( FAT_CLUSTER_IS_ODD(cln) ) *ret_val = (*ret_val) >> FAT12_SHIFT; else *ret_val = (*ret_val) & FAT_FAT12_MASK; 204479c: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED 20447a0: 81 c7 e0 08 ret <== NOT EXECUTED 20447a4: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED uint32_t sec = 0; uint32_t ofs = 0; /* sanity check */ if ( (cln < 2) || (cln > (fs_info->vol.data_cls + 1)) ) rtems_set_errno_and_return_minus_one(EIO); 20447a8: 40 00 11 27 call 2048c44 <__errno> <== NOT EXECUTED 20447ac: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20447b0: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED 20447b4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20447b8: 81 c7 e0 08 ret <== NOT EXECUTED 20447bc: 81 e8 00 00 restore <== NOT EXECUTED * align problems for some architectures */ *ret_val = (*((uint8_t *)(block0->buffer + ofs))); if ( ofs == (fs_info->vol.bps - 1) ) { rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ, 20447c0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20447c4: 92 04 e0 01 add %l3, 1, %o1 <== NOT EXECUTED 20447c8: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED 20447cc: 7f ff 92 d3 call 2029318 <== NOT EXECUTED 20447d0: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED &block0); if (rc != RC_OK) 20447d4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 20447d8: 12 bf ff b3 bne 20446a4 <== NOT EXECUTED 20447dc: c4 07 bf fc ld [ %fp + -4 ], %g2 <== NOT EXECUTED return rc; *ret_val |= (*((uint8_t *)(block0->buffer)))<<8; 20447e0: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED 20447e4: c4 00 a0 24 ld [ %g2 + 0x24 ], %g2 <== NOT EXECUTED 20447e8: c4 08 80 00 ldub [ %g2 ], %g2 <== NOT EXECUTED 20447ec: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED 20447f0: 82 10 80 01 or %g2, %g1, %g1 <== NOT EXECUTED 20447f4: 10 bf ff d2 b 204473c <== NOT EXECUTED 20447f8: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED =============================================================================== 02029084 : * 0 means FAILED !!! * */ uint32_t fat_get_unique_ino(rtems_filesystem_mount_table_entry_t *mt_entry) { 2029084: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED register fat_fs_info_t *fs_info = mt_entry->fs_info; 2029088: 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)) 202908c: 23 03 ff ff sethi %hi(0xffffc00), %l1 <== NOT EXECUTED 2029090: da 04 20 78 ld [ %l0 + 0x78 ], %o5 <== NOT EXECUTED 2029094: a2 14 63 ff or %l1, 0x3ff, %l1 <== NOT EXECUTED uint32_t j = 0; bool resrc_unsuff = false; while (!resrc_unsuff) { for (j = 0; j < fs_info->uino_pool_size; j++) 2029098: 80 a3 60 00 cmp %o5, 0 <== NOT EXECUTED 202909c: 02 80 00 20 be 202911c <== NOT EXECUTED 20290a0: 92 10 00 0d mov %o5, %o1 <== NOT EXECUTED { if (!FAT_UNIQ_INO_IS_BUSY(fs_info->index, fs_info->uino)) 20290a4: c6 04 20 70 ld [ %l0 + 0x70 ], %g3 <== NOT EXECUTED 20290a8: c2 04 20 74 ld [ %l0 + 0x74 ], %g1 <== NOT EXECUTED 20290ac: 85 30 60 03 srl %g1, 3, %g2 <== NOT EXECUTED 20290b0: c8 48 c0 02 ldsb [ %g3 + %g2 ], %g4 <== NOT EXECUTED 20290b4: 98 08 60 07 and %g1, 7, %o4 <== NOT EXECUTED 20290b8: 96 00 c0 02 add %g3, %g2, %o3 <== NOT EXECUTED 20290bc: 89 39 00 0c sra %g4, %o4, %g4 <== NOT EXECUTED 20290c0: 80 89 20 01 btst 1, %g4 <== NOT EXECUTED 20290c4: 02 80 00 1e be 202913c <== NOT EXECUTED 20290c8: c4 08 c0 02 ldub [ %g3 + %g2 ], %g2 <== NOT EXECUTED { FAT_SET_UNIQ_INO_BUSY(fs_info->index, fs_info->uino); return (fs_info->uino_base + fs_info->index); 20290cc: 10 80 00 0a b 20290f4 <== NOT EXECUTED 20290d0: 88 10 20 00 clr %g4 <== 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)) 20290d4: 85 30 60 03 srl %g1, 3, %g2 <== NOT EXECUTED 20290d8: d6 48 c0 02 ldsb [ %g3 + %g2 ], %o3 <== NOT EXECUTED 20290dc: 98 08 60 07 and %g1, 7, %o4 <== NOT EXECUTED 20290e0: 97 3a c0 0c sra %o3, %o4, %o3 <== NOT EXECUTED 20290e4: 80 8a e0 01 btst 1, %o3 <== NOT EXECUTED 20290e8: 96 00 c0 02 add %g3, %g2, %o3 <== NOT EXECUTED 20290ec: 02 80 00 14 be 202913c <== NOT EXECUTED 20290f0: c4 08 c0 02 ldub [ %g3 + %g2 ], %g2 <== NOT EXECUTED { FAT_SET_UNIQ_INO_BUSY(fs_info->index, fs_info->uino); return (fs_info->uino_base + fs_info->index); } fs_info->index++; 20290f4: 82 00 60 01 inc %g1 <== NOT EXECUTED if (fs_info->index >= fs_info->uino_pool_size) 20290f8: 80 a3 40 01 cmp %o5, %g1 <== NOT EXECUTED 20290fc: 18 80 00 03 bgu 2029108 <== NOT EXECUTED 2029100: c2 24 20 74 st %g1, [ %l0 + 0x74 ] <== NOT EXECUTED fs_info->index = 0; 2029104: 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++) 2029108: 88 01 20 01 inc %g4 <== NOT EXECUTED 202910c: 80 a1 00 0d cmp %g4, %o5 <== NOT EXECUTED 2029110: 2a bf ff f1 bcs,a 20290d4 <== NOT EXECUTED 2029114: c2 04 20 74 ld [ %l0 + 0x74 ], %g1 <== NOT EXECUTED 2029118: 92 10 00 0d mov %o5, %o1 <== 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)) 202911c: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED 2029120: 93 2a 60 01 sll %o1, 1, %o1 <== NOT EXECUTED 2029124: 82 24 40 01 sub %l1, %g1, %g1 <== NOT EXECUTED 2029128: 80 a2 40 01 cmp %o1, %g1 <== NOT EXECUTED 202912c: 2a 80 00 0c bcs,a 202915c <== NOT EXECUTED 2029130: d0 04 20 70 ld [ %l0 + 0x70 ], %o0 <== NOT EXECUTED } else resrc_unsuff = true; } return 0; } 2029134: 81 c7 e0 08 ret <== NOT EXECUTED 2029138: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED { for (j = 0; j < fs_info->uino_pool_size; j++) { if (!FAT_UNIQ_INO_IS_BUSY(fs_info->index, fs_info->uino)) { FAT_SET_UNIQ_INO_BUSY(fs_info->index, fs_info->uino); 202913c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 2029140: 99 28 40 0c sll %g1, %o4, %o4 <== NOT EXECUTED 2029144: 84 13 00 02 or %o4, %g2, %g2 <== NOT EXECUTED 2029148: c4 2a c0 00 stb %g2, [ %o3 ] <== NOT EXECUTED return (fs_info->uino_base + fs_info->index); 202914c: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED 2029150: f0 04 20 74 ld [ %l0 + 0x74 ], %i0 <== NOT EXECUTED 2029154: 81 c7 e0 08 ret <== NOT EXECUTED 2029158: 91 ee 00 01 restore %i0, %g1, %o0 <== NOT EXECUTED } if ((fs_info->uino_pool_size << 1) < (0x0FFFFFFF - fs_info->uino_base)) { fs_info->uino_pool_size <<= 1; fs_info->uino = realloc(fs_info->uino, fs_info->uino_pool_size); 202915c: 7f ff 83 9f call 2009fd8 <== NOT EXECUTED 2029160: d2 24 20 78 st %o1, [ %l0 + 0x78 ] <== NOT EXECUTED if (fs_info->uino != NULL) 2029164: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029168: 02 bf ff f3 be 2029134 <== NOT EXECUTED 202916c: d0 24 20 70 st %o0, [ %l0 + 0x70 ] <== NOT EXECUTED fs_info->index = fs_info->uino_pool_size; 2029170: da 04 20 78 ld [ %l0 + 0x78 ], %o5 <== NOT EXECUTED 2029174: 10 bf ff c9 b 2029098 <== NOT EXECUTED 2029178: da 24 20 74 st %o5, [ %l0 + 0x74 ] <== NOT EXECUTED =============================================================================== 02029844 : int fat_init_clusters_chain( rtems_filesystem_mount_table_entry_t *mt_entry, uint32_t start_cln ) { 2029844: 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; 2029848: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED uint32_t cur_cln = start_cln; 202984c: f2 27 bf fc st %i1, [ %fp + -4 ] <== NOT EXECUTED char *buf; buf = calloc(fs_info->vol.bpc, sizeof(char)); 2029850: d0 14 20 06 lduh [ %l0 + 6 ], %o0 <== NOT EXECUTED 2029854: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 2029858: 7f ff 7a 7f call 2008254 <== NOT EXECUTED 202985c: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED if ( buf == NULL ) 2029860: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED 2029864: 02 80 00 22 be 20298ec <== NOT EXECUTED 2029868: a6 07 bf fc add %fp, -4, %l3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EIO ); while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val) 202986c: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED 2029870: c4 04 20 0c ld [ %l0 + 0xc ], %g2 <== NOT EXECUTED 2029874: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 2029878: 84 0a 40 02 and %o1, %g2, %g2 <== NOT EXECUTED 202987c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2029880: 1a 80 00 11 bcc 20298c4 <== NOT EXECUTED 2029884: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED { ret = fat_cluster_write(mt_entry, cur_cln, buf); 2029888: 7f ff ff d3 call 20297d4 <== NOT EXECUTED 202988c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED { free(buf); return -1; } rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln); 2029890: 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 ) 2029894: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 2029898: 02 80 00 10 be 20298d8 <== NOT EXECUTED 202989c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED { free(buf); return -1; } rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln); 20298a0: 40 00 6b 53 call 20445ec <== NOT EXECUTED 20298a4: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED if ( rc != RC_OK ) 20298a8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 20298ac: 02 bf ff f1 be 2029870 <== NOT EXECUTED 20298b0: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED { free(buf); 20298b4: 7f ff 7c 0a call 20088dc <== NOT EXECUTED 20298b8: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED return rc; 20298bc: 81 c7 e0 08 ret <== NOT EXECUTED 20298c0: 81 e8 00 00 restore <== NOT EXECUTED } } free(buf); 20298c4: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 20298c8: 7f ff 7c 05 call 20088dc <== NOT EXECUTED 20298cc: b0 10 20 00 clr %i0 <== NOT EXECUTED return rc; } 20298d0: 81 c7 e0 08 ret <== NOT EXECUTED 20298d4: 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); if ( ret == -1 ) { free(buf); 20298d8: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 20298dc: 7f ff 7c 00 call 20088dc <== NOT EXECUTED 20298e0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return -1; 20298e4: 81 c7 e0 08 ret <== NOT EXECUTED 20298e8: 81 e8 00 00 restore <== NOT EXECUTED uint32_t cur_cln = start_cln; char *buf; buf = calloc(fs_info->vol.bpc, sizeof(char)); if ( buf == NULL ) rtems_set_errno_and_return_minus_one( EIO ); 20298ec: 40 00 7c d6 call 2048c44 <__errno> <== NOT EXECUTED 20298f0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20298f4: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED 20298f8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20298fc: 81 c7 e0 08 ret <== NOT EXECUTED 2029900: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0202998c : * 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) { 202998c: 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); 2029990: 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; 2029994: 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) { 2029998: 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; 202999c: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED rc = stat(mt_entry->dev, &stat_buf); 20299a0: 7f ff 82 80 call 200a3a0 <== NOT EXECUTED 20299a4: 92 07 bf a8 add %fp, -88, %o1 <== NOT EXECUTED if (rc == -1) 20299a8: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 20299ac: 02 80 00 ed be 2029d60 <== NOT EXECUTED 20299b0: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED return rc; /* Must be a block device. */ if (!S_ISBLK(stat_buf.st_mode)) 20299b4: c4 07 bf b4 ld [ %fp + -76 ], %g2 <== NOT EXECUTED 20299b8: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED 20299bc: 84 08 80 01 and %g2, %g1, %g2 <== NOT EXECUTED 20299c0: 03 00 00 18 sethi %hi(0x6000), %g1 <== NOT EXECUTED 20299c4: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 20299c8: 12 80 01 7d bne 2029fbc <== NOT EXECUTED 20299cc: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOTTY); /* check that device is registred as block device and lock it */ vol->dd = rtems_disk_obtain(stat_buf.st_rdev); 20299d0: 7f ff 76 b0 call 2007490 <== NOT EXECUTED 20299d4: d0 1f bf c0 ldd [ %fp + -64 ], %o0 <== NOT EXECUTED if (vol->dd == NULL) 20299d8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20299dc: 02 80 01 aa be 202a084 <== NOT EXECUTED 20299e0: d0 24 20 60 st %o0, [ %l0 + 0x60 ] <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EIO); vol->dev = stat_buf.st_rdev; 20299e4: 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); 20299e8: 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; 20299ec: 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); 20299f0: 7f ff 71 b6 call 20060c8 <== NOT EXECUTED 20299f4: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 20299f8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20299fc: 12 80 01 8e bne 202a034 <== NOT EXECUTED 2029a00: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED { rtems_disk_release(vol->dd); rtems_set_errno_and_return_minus_one( EIO); } memcpy( boot_rec, block->buffer, FAT_MAX_BPB_SIZE); 2029a04: 94 10 20 5a mov 0x5a, %o2 <== NOT EXECUTED 2029a08: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED 2029a0c: 40 00 89 da call 204c174 <== NOT EXECUTED 2029a10: 90 07 bf 48 add %fp, -184, %o0 <== NOT EXECUTED sc = rtems_bdbuf_release( block); 2029a14: 7f ff 6c d2 call 2004d5c <== NOT EXECUTED 2029a18: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 2029a1c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029a20: 12 80 01 85 bne 202a034 <== NOT EXECUTED 2029a24: c4 0f bf 53 ldub [ %fp + -173 ], %g2 <== NOT EXECUTED rtems_disk_release(vol->dd); rtems_set_errno_and_return_minus_one( EIO ); } /* Evaluate boot record */ vol->bps = FAT_GET_BR_BYTES_PER_SECTOR(boot_rec); 2029a28: c2 0f bf 54 ldub [ %fp + -172 ], %g1 <== NOT EXECUTED 2029a2c: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED 2029a30: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED 2029a34: c2 34 00 00 sth %g1, [ %l0 ] <== NOT EXECUTED if ( (vol->bps != 512) && 2029a38: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED 2029a3c: 85 30 60 10 srl %g1, 0x10, %g2 <== NOT EXECUTED 2029a40: 80 a0 a4 00 cmp %g2, 0x400 <== NOT EXECUTED 2029a44: 12 80 00 c9 bne 2029d68 <== NOT EXECUTED 2029a48: 80 a0 a2 00 cmp %g2, 0x200 <== 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; 2029a4c: 83 30 60 19 srl %g1, 0x19, %g1 <== NOT EXECUTED 2029a50: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 2029a54: 12 80 00 09 bne 2029a78 <== NOT EXECUTED 2029a58: c0 2c 20 03 clrb [ %l0 + 3 ] <== NOT EXECUTED 2029a5c: c4 0c 20 03 ldub [ %l0 + 3 ], %g2 <== NOT EXECUTED i >>= 1, vol->sec_mul++); 2029a60: 83 38 60 01 sra %g1, 1, %g1 <== NOT EXECUTED 2029a64: 86 00 a0 01 add %g2, 1, %g3 <== 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; 2029a68: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 2029a6c: 02 bf ff fd be 2029a60 <== NOT EXECUTED 2029a70: 84 10 00 03 mov %g3, %g2 <== NOT EXECUTED 2029a74: c6 2c 20 03 stb %g3, [ %l0 + 3 ] <== NOT EXECUTED i >>= 1, vol->sec_mul++); for (vol->sec_log2 = 0, i = vol->bps; (i & 1) == 0; 2029a78: c4 14 00 00 lduh [ %l0 ], %g2 <== NOT EXECUTED 2029a7c: c0 2c 20 02 clrb [ %l0 + 2 ] <== NOT EXECUTED 2029a80: 80 88 a0 01 btst 1, %g2 <== NOT EXECUTED 2029a84: 12 80 00 0a bne 2029aac <== NOT EXECUTED 2029a88: 82 10 00 02 mov %g2, %g1 <== NOT EXECUTED 2029a8c: 10 80 00 03 b 2029a98 <== NOT EXECUTED 2029a90: 86 10 20 01 mov 1, %g3 <== NOT EXECUTED 2029a94: 86 10 00 04 mov %g4, %g3 <== NOT EXECUTED i >>= 1, vol->sec_log2++); 2029a98: 85 38 a0 01 sra %g2, 1, %g2 <== 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; 2029a9c: 80 88 a0 01 btst 1, %g2 <== NOT EXECUTED 2029aa0: 02 bf ff fd be 2029a94 <== NOT EXECUTED 2029aa4: 88 00 e0 01 add %g3, 1, %g4 <== NOT EXECUTED 2029aa8: c6 2c 20 02 stb %g3, [ %l0 + 2 ] <== NOT EXECUTED if ( (ret1 < 0) || (ret2 < 0) ) return -1; return RC_OK; } 2029aac: 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); 2029ab0: 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) 2029ab4: 84 88 a0 ff andcc %g2, 0xff, %g2 <== NOT EXECUTED 2029ab8: 02 80 01 47 be 2029fd4 <== NOT EXECUTED 2029abc: 80 88 a0 01 btst 1, %g2 <== 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; 2029ac0: c0 2c 20 05 clrb [ %l0 + 5 ] <== NOT EXECUTED 2029ac4: 86 10 20 01 mov 1, %g3 <== NOT EXECUTED 2029ac8: 02 80 00 05 be 2029adc <== NOT EXECUTED 2029acc: 88 10 20 00 clr %g4 <== 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) 2029ad0: 10 80 00 0a b 2029af8 <== NOT EXECUTED 2029ad4: 85 28 60 10 sll %g1, 0x10, %g2 <== 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; 2029ad8: 86 10 00 04 mov %g4, %g3 <== NOT EXECUTED i >>= 1, vol->spc_log2++); 2029adc: 85 38 a0 01 sra %g2, 1, %g2 <== 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; 2029ae0: 80 88 a0 01 btst 1, %g2 <== NOT EXECUTED 2029ae4: 02 bf ff fd be 2029ad8 <== NOT EXECUTED 2029ae8: 88 00 e0 01 add %g3, 1, %g4 <== NOT EXECUTED 2029aec: c6 2c 20 05 stb %g3, [ %l0 + 5 ] <== NOT EXECUTED 2029af0: 88 08 e0 ff and %g3, 0xff, %g4 <== 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) 2029af4: 85 28 60 10 sll %g1, 0x10, %g2 <== NOT EXECUTED 2029af8: 85 30 a0 10 srl %g2, 0x10, %g2 <== NOT EXECUTED 2029afc: 85 28 80 04 sll %g2, %g4, %g2 <== NOT EXECUTED 2029b00: c4 34 20 06 sth %g2, [ %l0 + 6 ] <== NOT EXECUTED 2029b04: 07 00 00 20 sethi %hi(0x8000), %g3 <== NOT EXECUTED 2029b08: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED 2029b0c: 85 30 a0 10 srl %g2, 0x10, %g2 <== NOT EXECUTED 2029b10: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED 2029b14: 18 80 01 30 bgu 2029fd4 <== NOT EXECUTED 2029b18: 80 88 a0 01 btst 1, %g2 <== 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; 2029b1c: 12 80 00 0a bne 2029b44 <== NOT EXECUTED 2029b20: c0 2c 20 08 clrb [ %l0 + 8 ] <== NOT EXECUTED 2029b24: 10 80 00 03 b 2029b30 <== NOT EXECUTED 2029b28: 86 10 20 01 mov 1, %g3 <== NOT EXECUTED 2029b2c: 86 10 00 04 mov %g4, %g3 <== NOT EXECUTED i >>= 1, vol->bpc_log2++); 2029b30: 85 38 a0 01 sra %g2, 1, %g2 <== 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; 2029b34: 80 88 a0 01 btst 1, %g2 <== NOT EXECUTED 2029b38: 02 bf ff fd be 2029b2c <== NOT EXECUTED 2029b3c: 88 00 e0 01 add %g3, 1, %g4 <== NOT EXECUTED 2029b40: c6 2c 20 08 stb %g3, [ %l0 + 8 ] <== NOT EXECUTED if ( (ret1 < 0) || (ret2 < 0) ) return -1; return RC_OK; } 2029b44: e6 0f bf 58 ldub [ %fp + -168 ], %l3 <== 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)) / 2029b48: 83 28 60 10 sll %g1, 0x10, %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); 2029b4c: e6 2c 20 09 stb %l3, [ %l0 + 9 ] <== NOT EXECUTED vol->fat_loc = FAT_GET_BR_RESERVED_SECTORS_NUM(boot_rec); 2029b50: c4 0f bf 56 ldub [ %fp + -170 ], %g2 <== NOT EXECUTED 2029b54: e4 0f bf 57 ldub [ %fp + -169 ], %l2 <== 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)) / 2029b58: 83 30 60 10 srl %g1, 0x10, %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); vol->fat_loc = FAT_GET_BR_RESERVED_SECTORS_NUM(boot_rec); 2029b5c: a5 2c a0 08 sll %l2, 8, %l2 <== NOT EXECUTED 2029b60: a4 14 80 02 or %l2, %g2, %l2 <== NOT EXECUTED 2029b64: e4 34 20 14 sth %l2, [ %l0 + 0x14 ] <== NOT EXECUTED vol->rdir_entrs = FAT_GET_BR_FILES_PER_ROOT_DIR(boot_rec); 2029b68: c6 0f bf 59 ldub [ %fp + -167 ], %g3 <== NOT EXECUTED 2029b6c: 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)) / 2029b70: 92 10 00 01 mov %g1, %o1 <== 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); 2029b74: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED 2029b78: 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)) / 2029b7c: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 2029b80: 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); 2029b84: 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)) / 2029b88: 85 30 e0 0b srl %g3, 0xb, %g2 <== NOT EXECUTED 2029b8c: 40 00 dd 5d call 2061100 <.div> <== NOT EXECUTED 2029b90: 90 00 40 02 add %g1, %g2, %o0 <== NOT EXECUTED vol->bps; vol->rdir_size = vol->rdir_secs << vol->sec_log2; 2029b94: c4 0c 20 02 ldub [ %l0 + 2 ], %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)) / 2029b98: d0 24 20 24 st %o0, [ %l0 + 0x24 ] <== NOT EXECUTED vol->bps; vol->rdir_size = vol->rdir_secs << vol->sec_log2; 2029b9c: 85 2a 00 02 sll %o0, %g2, %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)) / 2029ba0: 82 10 00 08 mov %o0, %g1 <== NOT EXECUTED vol->bps; vol->rdir_size = vol->rdir_secs << vol->sec_log2; 2029ba4: c4 24 20 28 st %g2, [ %l0 + 0x28 ] <== NOT EXECUTED if ( (FAT_GET_BR_SECTORS_PER_FAT(boot_rec)) != 0) 2029ba8: d0 0f bf 5f ldub [ %fp + -161 ], %o0 <== NOT EXECUTED 2029bac: c4 0f bf 5e ldub [ %fp + -162 ], %g2 <== NOT EXECUTED 2029bb0: 91 2a 20 08 sll %o0, 8, %o0 <== NOT EXECUTED 2029bb4: 90 12 00 02 or %o0, %g2, %o0 <== NOT EXECUTED 2029bb8: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED 2029bbc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029bc0: 22 80 00 ec be,a 2029f70 <== NOT EXECUTED 2029bc4: d0 0f bf 6d ldub [ %fp + -147 ], %o0 <== NOT EXECUTED vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT(boot_rec); 2029bc8: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED 2029bcc: d0 24 20 18 st %o0, [ %l0 + 0x18 ] <== NOT EXECUTED else vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT32(boot_rec); vol->data_fsec = vol->fat_loc + vol->fats * vol->fat_length + 2029bd0: 92 0c e0 ff and %l3, 0xff, %o1 <== NOT EXECUTED 2029bd4: a5 2c a0 10 sll %l2, 0x10, %l2 <== NOT EXECUTED 2029bd8: a5 34 a0 10 srl %l2, 0x10, %l2 <== NOT EXECUTED 2029bdc: 7f ff 63 ec call 2002b8c <.umul> <== NOT EXECUTED 2029be0: a4 00 40 12 add %g1, %l2, %l2 <== NOT EXECUTED vol->rdir_secs; /* for FAT12/16 root dir starts at(sector) */ vol->rdir_loc = vol->fat_loc + vol->fats * vol->fat_length; 2029be4: d2 04 20 18 ld [ %l0 + 0x18 ], %o1 <== 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 + 2029be8: a4 04 80 08 add %l2, %o0, %l2 <== NOT EXECUTED vol->rdir_secs; /* for FAT12/16 root dir starts at(sector) */ vol->rdir_loc = vol->fat_loc + vol->fats * vol->fat_length; 2029bec: d0 0c 20 09 ldub [ %l0 + 9 ], %o0 <== NOT EXECUTED 2029bf0: 7f ff 63 e7 call 2002b8c <.umul> <== NOT EXECUTED 2029bf4: e4 24 20 30 st %l2, [ %l0 + 0x30 ] <== NOT EXECUTED 2029bf8: c2 14 20 14 lduh [ %l0 + 0x14 ], %g1 <== NOT EXECUTED 2029bfc: 82 02 00 01 add %o0, %g1, %g1 <== NOT EXECUTED 2029c00: c2 24 20 1c st %g1, [ %l0 + 0x1c ] <== NOT EXECUTED if ( (FAT_GET_BR_TOTAL_SECTORS_NUM16(boot_rec)) != 0) 2029c04: d0 0f bf 5c ldub [ %fp + -164 ], %o0 <== NOT EXECUTED 2029c08: c2 0f bf 5b ldub [ %fp + -165 ], %g1 <== NOT EXECUTED 2029c0c: 91 2a 20 08 sll %o0, 8, %o0 <== NOT EXECUTED 2029c10: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 2029c14: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED 2029c18: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029c1c: 22 80 00 ca be,a 2029f44 <== NOT EXECUTED 2029c20: d0 0f bf 69 ldub [ %fp + -151 ], %o0 <== NOT EXECUTED vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM16(boot_rec); 2029c24: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED 2029c28: d0 24 20 2c st %o0, [ %l0 + 0x2c ] <== NOT EXECUTED else vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM32(boot_rec); data_secs = vol->tot_secs - vol->data_fsec; vol->data_cls = data_secs / vol->spc; 2029c2c: d2 0c 20 04 ldub [ %l0 + 4 ], %o1 <== NOT EXECUTED 2029c30: 40 00 dd 32 call 20610f8 <.udiv> <== NOT EXECUTED 2029c34: 90 22 00 12 sub %o0, %l2, %o0 <== NOT EXECUTED /* determine FAT type at least */ if ( vol->data_cls < FAT_FAT12_MAX_CLN) 2029c38: 80 a2 2f f4 cmp %o0, 0xff4 <== NOT EXECUTED 2029c3c: 18 80 00 56 bgu 2029d94 <== NOT EXECUTED 2029c40: d0 24 20 34 st %o0, [ %l0 + 0x34 ] <== NOT EXECUTED { vol->type = FAT_FAT12; 2029c44: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 2029c48: c2 2c 20 0a stb %g1, [ %l0 + 0xa ] <== NOT EXECUTED vol->mask = FAT_FAT12_MASK; 2029c4c: 82 10 2f ff mov 0xfff, %g1 <== NOT EXECUTED 2029c50: c2 24 20 0c st %g1, [ %l0 + 0xc ] <== NOT EXECUTED vol->eoc_val = FAT_FAT12_EOC; 2029c54: 82 10 2f f8 mov 0xff8, %g1 <== NOT EXECUTED 2029c58: c2 24 20 10 st %g1, [ %l0 + 0x10 ] <== NOT EXECUTED else { vol->rdir_cl = 0; vol->mirror = 0; vol->afat = 0; vol->free_cls = 0xFFFFFFFF; 2029c5c: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED } } } else { vol->rdir_cl = 0; 2029c60: c0 24 20 38 clr [ %l0 + 0x38 ] <== NOT EXECUTED vol->mirror = 0; 2029c64: c0 2c 20 48 clrb [ %l0 + 0x48 ] <== NOT EXECUTED vol->afat = 0; 2029c68: c0 2c 20 50 clrb [ %l0 + 0x50 ] <== NOT EXECUTED vol->free_cls = 0xFFFFFFFF; vol->next_cl = 0xFFFFFFFF; 2029c6c: 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; 2029c70: 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); 2029c74: 7f ff fd 42 call 202917c <== NOT EXECUTED 2029c78: 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; 2029c7c: d2 04 20 18 ld [ %l0 + 0x18 ], %o1 <== NOT EXECUTED 2029c80: 7f ff 63 c3 call 2002b8c <.umul> <== NOT EXECUTED 2029c84: d0 0c 20 50 ldub [ %l0 + 0x50 ], %o0 <== NOT EXECUTED 2029c88: 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)); 2029c8c: 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; 2029c90: 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)); 2029c94: 90 10 20 02 mov 2, %o0 <== NOT EXECUTED 2029c98: 7f ff 79 6f call 2008254 <== NOT EXECUTED 2029c9c: c2 24 20 4c st %g1, [ %l0 + 0x4c ] <== NOT EXECUTED if ( fs_info->vhash == NULL ) 2029ca0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029ca4: 02 80 01 1d be 202a118 <== NOT EXECUTED 2029ca8: 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); 2029cac: 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; 2029cb0: c0 22 20 04 clr [ %o0 + 4 ] <== NOT EXECUTED the_chain->last = _Chain_Head(the_chain); 2029cb4: d0 22 20 08 st %o0, [ %o0 + 8 ] <== NOT EXECUTED 2029cb8: 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; 2029cbc: 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); 2029cc0: 82 02 20 04 add %o0, 4, %g1 <== NOT EXECUTED 2029cc4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2029cc8: 82 02 20 10 add %o0, 0x10, %g1 <== NOT EXECUTED fs_info->rhash = calloc(FAT_HASH_SIZE, sizeof(rtems_chain_control)); 2029ccc: 92 10 20 0c mov 0xc, %o1 <== NOT EXECUTED 2029cd0: c2 22 20 0c st %g1, [ %o0 + 0xc ] <== NOT EXECUTED 2029cd4: 7f ff 79 60 call 2008254 <== NOT EXECUTED 2029cd8: 90 10 20 02 mov 2, %o0 <== NOT EXECUTED if ( fs_info->rhash == NULL ) 2029cdc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029ce0: 02 80 01 03 be 202a0ec <== NOT EXECUTED 2029ce4: d0 24 20 6c st %o0, [ %l0 + 0x6c ] <== NOT EXECUTED the_chain->permanent_null = NULL; 2029ce8: c0 22 20 04 clr [ %o0 + 4 ] <== NOT EXECUTED the_chain->last = _Chain_Head(the_chain); 2029cec: 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); 2029cf0: 82 02 20 0c add %o0, 0xc, %g1 <== NOT EXECUTED 2029cf4: 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; 2029cf8: 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); 2029cfc: 82 02 20 04 add %o0, 4, %g1 <== NOT EXECUTED 2029d00: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2029d04: 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; 2029d08: c4 04 20 2c ld [ %l0 + 0x2c ], %g2 <== NOT EXECUTED 2029d0c: c2 22 20 0c st %g1, [ %o0 + 0xc ] <== NOT EXECUTED 2029d10: c2 0c 20 03 ldub [ %l0 + 3 ], %g1 <== NOT EXECUTED fs_info->index = 0; 2029d14: 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; 2029d18: 83 28 80 01 sll %g2, %g1, %g1 <== NOT EXECUTED 2029d1c: 83 28 60 04 sll %g1, 4, %g1 <== NOT EXECUTED 2029d20: 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; 2029d24: 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)); 2029d28: 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; 2029d2c: 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)); 2029d30: 7f ff 79 49 call 2008254 <== NOT EXECUTED 2029d34: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED if ( fs_info->uino == NULL ) 2029d38: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029d3c: 02 80 00 d8 be 202a09c <== NOT EXECUTED 2029d40: d0 24 20 70 st %o0, [ %l0 + 0x70 ] <== NOT EXECUTED rtems_disk_release(vol->dd); free(fs_info->vhash); free(fs_info->rhash); rtems_set_errno_and_return_minus_one( ENOMEM ); } fs_info->sec_buf = (uint8_t *)calloc(vol->bps, sizeof(uint8_t)); 2029d44: d0 14 00 00 lduh [ %l0 ], %o0 <== NOT EXECUTED 2029d48: 7f ff 79 43 call 2008254 <== NOT EXECUTED 2029d4c: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 2029d50: d0 24 20 8c st %o0, [ %l0 + 0x8c ] <== NOT EXECUTED if (fs_info->sec_buf == NULL) 2029d54: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029d58: 02 80 00 a8 be 2029ff8 <== NOT EXECUTED 2029d5c: b0 10 20 00 clr %i0 <== NOT EXECUTED free(fs_info->uino); rtems_set_errno_and_return_minus_one( ENOMEM ); } return RC_OK; } 2029d60: 81 c7 e0 08 ret <== NOT EXECUTED 2029d64: 81 e8 00 00 restore <== NOT EXECUTED } /* Evaluate boot record */ vol->bps = FAT_GET_BR_BYTES_PER_SECTOR(boot_rec); if ( (vol->bps != 512) && 2029d68: 22 bf ff 3a be,a 2029a50 <== NOT EXECUTED 2029d6c: 83 30 60 19 srl %g1, 0x19, %g1 <== NOT EXECUTED 2029d70: 80 a0 a8 00 cmp %g2, 0x800 <== NOT EXECUTED 2029d74: 02 80 00 05 be 2029d88 <== NOT EXECUTED 2029d78: 07 00 00 04 sethi %hi(0x1000), %g3 <== NOT EXECUTED 2029d7c: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED 2029d80: 32 80 00 96 bne,a 2029fd8 <== NOT EXECUTED 2029d84: 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; 2029d88: c0 2c 20 03 clrb [ %l0 + 3 ] <== NOT EXECUTED 2029d8c: 10 bf ff 34 b 2029a5c <== NOT EXECUTED 2029d90: 83 30 60 19 srl %g1, 0x19, %g1 <== NOT EXECUTED vol->mask = FAT_FAT12_MASK; vol->eoc_val = FAT_FAT12_EOC; } else { if ( vol->data_cls < FAT_FAT16_MAX_CLN) 2029d94: 03 00 00 3f sethi %hi(0xfc00), %g1 <== NOT EXECUTED 2029d98: 84 10 63 f4 or %g1, 0x3f4, %g2 ! fff4 <== NOT EXECUTED 2029d9c: 80 a2 00 02 cmp %o0, %g2 <== NOT EXECUTED 2029da0: 08 80 00 7f bleu 2029f9c <== NOT EXECUTED 2029da4: 84 10 63 f8 or %g1, 0x3f8, %g2 <== NOT EXECUTED vol->eoc_val = FAT_FAT16_EOC; } else { vol->type = FAT_FAT32; vol->mask = FAT_FAT32_MASK; 2029da8: 03 03 ff ff sethi %hi(0xffffc00), %g1 <== NOT EXECUTED vol->eoc_val = FAT_FAT32_EOC; 2029dac: 84 10 63 f8 or %g1, 0x3f8, %g2 ! ffffff8 <== NOT EXECUTED vol->eoc_val = FAT_FAT16_EOC; } else { vol->type = FAT_FAT32; vol->mask = FAT_FAT32_MASK; 2029db0: 82 10 63 ff or %g1, 0x3ff, %g1 <== NOT EXECUTED vol->eoc_val = FAT_FAT32_EOC; 2029db4: 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; 2029db8: 84 10 20 04 mov 4, %g2 <== NOT EXECUTED vol->mask = FAT_FAT32_MASK; 2029dbc: c2 24 20 0c st %g1, [ %l0 + 0xc ] <== NOT EXECUTED vol->mask = FAT_FAT16_MASK; vol->eoc_val = FAT_FAT16_EOC; } else { vol->type = FAT_FAT32; 2029dc0: c4 2c 20 0a stb %g2, [ %l0 + 0xa ] <== NOT EXECUTED } } if (vol->type == FAT_FAT32) { vol->rdir_cl = FAT_GET_BR_FAT32_ROOT_CLUSTER(boot_rec); 2029dc4: c8 0f bf 75 ldub [ %fp + -139 ], %g4 <== NOT EXECUTED 2029dc8: c4 0f bf 76 ldub [ %fp + -138 ], %g2 <== NOT EXECUTED 2029dcc: c6 0f bf 74 ldub [ %fp + -140 ], %g3 <== NOT EXECUTED 2029dd0: c2 0f bf 77 ldub [ %fp + -137 ], %g1 <== NOT EXECUTED 2029dd4: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED 2029dd8: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED 2029ddc: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED 2029de0: 84 11 00 02 or %g4, %g2, %g2 <== NOT EXECUTED 2029de4: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED 2029de8: 82 10 80 01 or %g2, %g1, %g1 <== NOT EXECUTED 2029dec: c2 24 20 38 st %g1, [ %l0 + 0x38 ] <== NOT EXECUTED vol->mirror = FAT_GET_BR_EXT_FLAGS(boot_rec) & FAT_BR_EXT_FLAGS_MIRROR; 2029df0: c4 0f bf 71 ldub [ %fp + -143 ], %g2 <== NOT EXECUTED 2029df4: c2 0f bf 70 ldub [ %fp + -144 ], %g1 <== NOT EXECUTED 2029df8: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED 2029dfc: 82 10 80 01 or %g2, %g1, %g1 <== NOT EXECUTED 2029e00: 82 08 7f 80 and %g1, -128, %g1 <== NOT EXECUTED if (vol->mirror) 2029e04: 80 88 60 80 btst 0x80, %g1 <== NOT EXECUTED 2029e08: 02 80 00 6b be 2029fb4 <== NOT EXECUTED 2029e0c: 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; 2029e10: c2 0f bf 70 ldub [ %fp + -144 ], %g1 <== NOT EXECUTED 2029e14: 82 08 60 0f and %g1, 0xf, %g1 <== NOT EXECUTED 2029e18: c2 2c 20 50 stb %g1, [ %l0 + 0x50 ] <== NOT EXECUTED else vol->afat = 0; vol->info_sec = FAT_GET_BR_FAT32_FS_INFO_SECTOR(boot_rec); 2029e1c: c2 0f bf 79 ldub [ %fp + -135 ], %g1 <== NOT EXECUTED 2029e20: c4 0f bf 78 ldub [ %fp + -136 ], %g2 <== NOT EXECUTED 2029e24: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED 2029e28: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED 2029e2c: c2 34 20 3c sth %g1, [ %l0 + 0x3c ] <== NOT EXECUTED if( vol->info_sec == 0 ) 2029e30: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED 2029e34: 93 30 60 10 srl %g1, 0x10, %o1 <== NOT EXECUTED 2029e38: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED 2029e3c: 02 80 00 66 be 2029fd4 <== NOT EXECUTED 2029e40: a4 07 bf f0 add %fp, -16, %l2 <== NOT EXECUTED rtems_disk_release(vol->dd); rtems_set_errno_and_return_minus_one( EINVAL ); } else { ret = _fat_block_read(mt_entry, vol->info_sec , 0, 2029e44: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2029e48: 94 10 20 00 clr %o2 <== NOT EXECUTED 2029e4c: 96 10 20 04 mov 4, %o3 <== NOT EXECUTED 2029e50: 7f ff fe ad call 2029904 <_fat_block_read> <== NOT EXECUTED 2029e54: 98 10 00 12 mov %l2, %o4 <== NOT EXECUTED FAT_FSI_LEADSIG_SIZE, fs_info_sector); if ( ret < 0 ) 2029e58: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029e5c: 06 80 00 b8 bl 202a13c <== NOT EXECUTED 2029e60: c2 0f bf f3 ldub [ %fp + -13 ], %g1 <== NOT EXECUTED { rtems_disk_release(vol->dd); return -1; } if (FAT_GET_FSINFO_LEAD_SIGNATURE(fs_info_sector) != 2029e64: c8 0f bf f1 ldub [ %fp + -15 ], %g4 <== NOT EXECUTED 2029e68: c4 0f bf f2 ldub [ %fp + -14 ], %g2 <== NOT EXECUTED 2029e6c: c6 0f bf f0 ldub [ %fp + -16 ], %g3 <== NOT EXECUTED 2029e70: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED 2029e74: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED 2029e78: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED 2029e7c: 84 11 00 02 or %g4, %g2, %g2 <== NOT EXECUTED 2029e80: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED 2029e84: 84 10 80 01 or %g2, %g1, %g2 <== NOT EXECUTED 2029e88: 03 10 58 54 sethi %hi(0x41615000), %g1 <== NOT EXECUTED 2029e8c: 82 10 62 52 or %g1, 0x252, %g1 ! 41615252 <== NOT EXECUTED 2029e90: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2029e94: 12 80 00 71 bne 202a058 <== NOT EXECUTED 2029e98: 98 10 00 12 mov %l2, %o4 <== NOT EXECUTED rtems_disk_release(vol->dd); rtems_set_errno_and_return_minus_one( EINVAL ); } else { ret = _fat_block_read(mt_entry, vol->info_sec , FAT_FSI_INFO, 2029e9c: d2 14 20 3c lduh [ %l0 + 0x3c ], %o1 <== NOT EXECUTED 2029ea0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2029ea4: 94 10 21 e4 mov 0x1e4, %o2 <== NOT EXECUTED 2029ea8: 7f ff fe 97 call 2029904 <_fat_block_read> <== NOT EXECUTED 2029eac: 96 10 20 0c mov 0xc, %o3 <== NOT EXECUTED FAT_USEFUL_INFO_SIZE, fs_info_sector); if ( ret < 0 ) 2029eb0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029eb4: 06 80 00 87 bl 202a0d0 <== NOT EXECUTED 2029eb8: c6 0f bf f4 ldub [ %fp + -12 ], %g3 <== NOT EXECUTED _fat_block_release(mt_entry); rtems_disk_release(vol->dd); return -1; } vol->free_cls = FAT_GET_FSINFO_FREE_CLUSTER_COUNT(fs_info_sector); 2029ebc: c8 0f bf f5 ldub [ %fp + -11 ], %g4 <== NOT EXECUTED 2029ec0: c4 0f bf f6 ldub [ %fp + -10 ], %g2 <== NOT EXECUTED 2029ec4: c2 0f bf f7 ldub [ %fp + -9 ], %g1 <== NOT EXECUTED 2029ec8: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED 2029ecc: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED 2029ed0: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED 2029ed4: 84 11 00 02 or %g4, %g2, %g2 <== NOT EXECUTED 2029ed8: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED 2029edc: 82 10 80 01 or %g2, %g1, %g1 <== NOT EXECUTED 2029ee0: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED vol->next_cl = FAT_GET_FSINFO_NEXT_FREE_CLUSTER(fs_info_sector); 2029ee4: c8 0f bf f9 ldub [ %fp + -7 ], %g4 <== NOT EXECUTED 2029ee8: c4 0f bf fa ldub [ %fp + -6 ], %g2 <== NOT EXECUTED 2029eec: c6 0f bf f8 ldub [ %fp + -8 ], %g3 <== NOT EXECUTED 2029ef0: c2 0f bf fb ldub [ %fp + -5 ], %g1 <== NOT EXECUTED 2029ef4: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED 2029ef8: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED 2029efc: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED 2029f00: 84 11 00 02 or %g4, %g2, %g2 <== NOT EXECUTED 2029f04: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED 2029f08: 82 10 80 01 or %g2, %g1, %g1 <== NOT EXECUTED rc = fat_fat32_update_fsinfo_sector(mt_entry, 0xFFFFFFFF, 2029f0c: 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); 2029f10: c2 24 20 44 st %g1, [ %l0 + 0x44 ] <== NOT EXECUTED rc = fat_fat32_update_fsinfo_sector(mt_entry, 0xFFFFFFFF, 2029f14: 92 10 3f ff mov -1, %o1 <== NOT EXECUTED 2029f18: 7f ff fd b7 call 20295f4 <== NOT EXECUTED 2029f1c: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED 0xFFFFFFFF); if ( rc != RC_OK ) 2029f20: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 2029f24: 02 bf ff 54 be 2029c74 <== NOT EXECUTED 2029f28: 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); 2029f2c: 7f ff fc 94 call 202917c <== NOT EXECUTED 2029f30: d0 04 60 34 ld [ %l1 + 0x34 ], %o0 <== 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); 2029f34: 7f ff 75 42 call 200743c <== NOT EXECUTED 2029f38: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED return rc; 2029f3c: 81 c7 e0 08 ret <== NOT EXECUTED 2029f40: 81 e8 00 00 restore <== NOT EXECUTED vol->rdir_loc = vol->fat_loc + vol->fats * vol->fat_length; if ( (FAT_GET_BR_TOTAL_SECTORS_NUM16(boot_rec)) != 0) vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM16(boot_rec); else vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM32(boot_rec); 2029f44: c6 0f bf 6a ldub [ %fp + -150 ], %g3 <== NOT EXECUTED 2029f48: c4 0f bf 68 ldub [ %fp + -152 ], %g2 <== NOT EXECUTED 2029f4c: c2 0f bf 6b ldub [ %fp + -149 ], %g1 <== NOT EXECUTED 2029f50: 91 2a 20 08 sll %o0, 8, %o0 <== NOT EXECUTED 2029f54: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED 2029f58: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED 2029f5c: 90 12 00 03 or %o0, %g3, %o0 <== NOT EXECUTED 2029f60: 90 12 00 02 or %o0, %g2, %o0 <== NOT EXECUTED 2029f64: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 2029f68: 10 bf ff 31 b 2029c2c <== NOT EXECUTED 2029f6c: d0 24 20 2c st %o0, [ %l0 + 0x2c ] <== NOT EXECUTED vol->rdir_size = vol->rdir_secs << vol->sec_log2; 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); 2029f70: c8 0f bf 6e ldub [ %fp + -146 ], %g4 <== NOT EXECUTED 2029f74: c6 0f bf 6c ldub [ %fp + -148 ], %g3 <== NOT EXECUTED 2029f78: c4 0f bf 6f ldub [ %fp + -145 ], %g2 <== NOT EXECUTED 2029f7c: 91 2a 20 08 sll %o0, 8, %o0 <== NOT EXECUTED 2029f80: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED 2029f84: 85 28 a0 18 sll %g2, 0x18, %g2 <== NOT EXECUTED 2029f88: 90 12 00 04 or %o0, %g4, %o0 <== NOT EXECUTED 2029f8c: 90 12 00 03 or %o0, %g3, %o0 <== NOT EXECUTED 2029f90: 90 12 00 02 or %o0, %g2, %o0 <== NOT EXECUTED 2029f94: 10 bf ff 0f b 2029bd0 <== NOT EXECUTED 2029f98: d0 24 20 18 st %o0, [ %l0 + 0x18 ] <== NOT EXECUTED else { if ( vol->data_cls < FAT_FAT16_MAX_CLN) { vol->type = FAT_FAT16; vol->mask = FAT_FAT16_MASK; 2029f9c: 82 10 63 ff or %g1, 0x3ff, %g1 <== NOT EXECUTED vol->eoc_val = FAT_FAT16_EOC; 2029fa0: c4 24 20 10 st %g2, [ %l0 + 0x10 ] <== NOT EXECUTED else { if ( vol->data_cls < FAT_FAT16_MAX_CLN) { vol->type = FAT_FAT16; vol->mask = FAT_FAT16_MASK; 2029fa4: c2 24 20 0c st %g1, [ %l0 + 0xc ] <== NOT EXECUTED } else { if ( vol->data_cls < FAT_FAT16_MAX_CLN) { vol->type = FAT_FAT16; 2029fa8: 84 10 20 02 mov 2, %g2 <== NOT EXECUTED 2029fac: 10 bf ff 2c b 2029c5c <== NOT EXECUTED 2029fb0: c4 2c 20 0a stb %g2, [ %l0 + 0xa ] <== NOT EXECUTED vol->mirror = FAT_GET_BR_EXT_FLAGS(boot_rec) & FAT_BR_EXT_FLAGS_MIRROR; if (vol->mirror) vol->afat = FAT_GET_BR_EXT_FLAGS(boot_rec) & FAT_BR_EXT_FLAGS_FAT_NUM; else vol->afat = 0; 2029fb4: 10 bf ff 9a b 2029e1c <== NOT EXECUTED 2029fb8: c0 2c 20 50 clrb [ %l0 + 0x50 ] <== NOT EXECUTED if (rc == -1) return rc; /* Must be a block device. */ if (!S_ISBLK(stat_buf.st_mode)) rtems_set_errno_and_return_minus_one(ENOTTY); 2029fbc: 40 00 7b 22 call 2048c44 <__errno> <== NOT EXECUTED 2029fc0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2029fc4: 82 10 20 19 mov 0x19, %g1 <== NOT EXECUTED 2029fc8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2029fcc: 81 c7 e0 08 ret <== NOT EXECUTED 2029fd0: 81 e8 00 00 restore <== NOT EXECUTED vol->afat = 0; vol->info_sec = FAT_GET_BR_FAT32_FS_INFO_SECTOR(boot_rec); if( vol->info_sec == 0 ) { rtems_disk_release(vol->dd); 2029fd4: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED 2029fd8: 7f ff 75 19 call 200743c <== NOT EXECUTED 2029fdc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); 2029fe0: 40 00 7b 19 call 2048c44 <__errno> <== NOT EXECUTED 2029fe4: 01 00 00 00 nop <== NOT EXECUTED 2029fe8: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED 2029fec: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2029ff0: 81 c7 e0 08 ret <== NOT EXECUTED 2029ff4: 81 e8 00 00 restore <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOMEM ); } fs_info->sec_buf = (uint8_t *)calloc(vol->bps, sizeof(uint8_t)); if (fs_info->sec_buf == NULL) { rtems_disk_release(vol->dd); 2029ff8: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED 2029ffc: 7f ff 75 10 call 200743c <== NOT EXECUTED 202a000: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED free(fs_info->vhash); 202a004: 7f ff 7a 36 call 20088dc <== NOT EXECUTED 202a008: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED free(fs_info->rhash); 202a00c: 7f ff 7a 34 call 20088dc <== NOT EXECUTED 202a010: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED free(fs_info->uino); 202a014: 7f ff 7a 32 call 20088dc <== NOT EXECUTED 202a018: d0 04 20 70 ld [ %l0 + 0x70 ], %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOMEM ); 202a01c: 40 00 7b 0a call 2048c44 <__errno> <== NOT EXECUTED 202a020: 01 00 00 00 nop <== NOT EXECUTED 202a024: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 202a028: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED } return RC_OK; } 202a02c: 81 c7 e0 08 ret <== NOT EXECUTED 202a030: 81 e8 00 00 restore <== NOT EXECUTED memcpy( boot_rec, block->buffer, FAT_MAX_BPB_SIZE); sc = rtems_bdbuf_release( block); if (sc != RTEMS_SUCCESSFUL) { rtems_disk_release(vol->dd); 202a034: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED 202a038: 7f ff 75 01 call 200743c <== NOT EXECUTED 202a03c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EIO ); 202a040: 40 00 7b 01 call 2048c44 <__errno> <== NOT EXECUTED 202a044: 01 00 00 00 nop <== NOT EXECUTED 202a048: 82 10 20 05 mov 5, %g1 ! 5 <== NOT EXECUTED 202a04c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202a050: 81 c7 e0 08 ret <== NOT EXECUTED 202a054: 81 e8 00 00 restore <== 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); 202a058: d0 04 60 34 ld [ %l1 + 0x34 ], %o0 <== NOT EXECUTED 202a05c: 7f ff fc 48 call 202917c <== NOT EXECUTED 202a060: 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); 202a064: 7f ff 74 f6 call 200743c <== NOT EXECUTED 202a068: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); 202a06c: 40 00 7a f6 call 2048c44 <__errno> <== NOT EXECUTED 202a070: 01 00 00 00 nop <== NOT EXECUTED 202a074: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED 202a078: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202a07c: 81 c7 e0 08 ret <== NOT EXECUTED 202a080: 81 e8 00 00 restore <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOTTY); /* 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); 202a084: 40 00 7a f0 call 2048c44 <__errno> <== NOT EXECUTED 202a088: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202a08c: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED 202a090: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202a094: 81 c7 e0 08 ret <== NOT EXECUTED 202a098: 81 e8 00 00 restore <== 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); 202a09c: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED 202a0a0: 7f ff 74 e7 call 200743c <== NOT EXECUTED 202a0a4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED free(fs_info->vhash); 202a0a8: 7f ff 7a 0d call 20088dc <== NOT EXECUTED 202a0ac: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED free(fs_info->rhash); 202a0b0: 7f ff 7a 0b call 20088dc <== NOT EXECUTED 202a0b4: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOMEM ); 202a0b8: 40 00 7a e3 call 2048c44 <__errno> <== NOT EXECUTED 202a0bc: 01 00 00 00 nop <== NOT EXECUTED 202a0c0: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 202a0c4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202a0c8: 81 c7 e0 08 ret <== NOT EXECUTED 202a0cc: 81 e8 00 00 restore <== 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); 202a0d0: d0 04 60 34 ld [ %l1 + 0x34 ], %o0 <== NOT EXECUTED 202a0d4: 7f ff fc 2a call 202917c <== NOT EXECUTED 202a0d8: b0 10 3f ff mov -1, %i0 <== 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); 202a0dc: 7f ff 74 d8 call 200743c <== NOT EXECUTED 202a0e0: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED return -1; 202a0e4: 81 c7 e0 08 ret <== NOT EXECUTED 202a0e8: 81 e8 00 00 restore <== 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); 202a0ec: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED 202a0f0: 7f ff 74 d3 call 200743c <== NOT EXECUTED 202a0f4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED free(fs_info->vhash); 202a0f8: 7f ff 79 f9 call 20088dc <== NOT EXECUTED 202a0fc: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOMEM ); 202a100: 40 00 7a d1 call 2048c44 <__errno> <== NOT EXECUTED 202a104: 01 00 00 00 nop <== NOT EXECUTED 202a108: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 202a10c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202a110: 81 c7 e0 08 ret <== NOT EXECUTED 202a114: 81 e8 00 00 restore <== 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); 202a118: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED 202a11c: 7f ff 74 c8 call 200743c <== NOT EXECUTED 202a120: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOMEM ); 202a124: 40 00 7a c8 call 2048c44 <__errno> <== NOT EXECUTED 202a128: 01 00 00 00 nop <== NOT EXECUTED 202a12c: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 202a130: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202a134: 81 c7 e0 08 ret <== NOT EXECUTED 202a138: 81 e8 00 00 restore <== NOT EXECUTED { ret = _fat_block_read(mt_entry, vol->info_sec , 0, FAT_FSI_LEADSIG_SIZE, fs_info_sector); if ( ret < 0 ) { rtems_disk_release(vol->dd); 202a13c: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED 202a140: 7f ff 74 bf call 200743c <== NOT EXECUTED 202a144: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return -1; 202a148: 81 c7 e0 08 ret <== NOT EXECUTED 202a14c: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02029070 : inline bool fat_ino_is_unique( rtems_filesystem_mount_table_entry_t *mt_entry, uint32_t ino ) { 2029070: c2 02 20 34 ld [ %o0 + 0x34 ], %g1 <== NOT EXECUTED 2029074: c2 00 60 7c ld [ %g1 + 0x7c ], %g1 <== NOT EXECUTED 2029078: 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); } 202907c: 81 c3 e0 08 retl <== NOT EXECUTED 2029080: 90 60 3f ff subx %g0, -1, %o0 <== NOT EXECUTED =============================================================================== 020448dc : uint32_t *chain, uint32_t count, uint32_t *cls_added, uint32_t *last_cl ) { 20448dc: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED int rc = RC_OK; fat_fs_info_t *fs_info = mt_entry->fs_info; 20448e0: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 <== NOT EXECUTED uint32_t cl4find = 2; uint32_t next_cln = 0; 20448e4: 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; 20448e8: e8 04 60 34 ld [ %l1 + 0x34 ], %l4 <== NOT EXECUTED uint32_t i = 2; *cls_added = 0; 20448ec: c0 26 c0 00 clr [ %i3 ] <== NOT EXECUTED uint32_t *chain, uint32_t count, uint32_t *cls_added, uint32_t *last_cl ) { 20448f0: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED uint32_t data_cls_val = fs_info->vol.data_cls + 2; uint32_t i = 2; *cls_added = 0; if (count == 0) 20448f4: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 20448f8: 02 80 00 47 be 2044a14 <== NOT EXECUTED 20448fc: b0 10 20 00 clr %i0 <== NOT EXECUTED return rc; if (fs_info->vol.next_cl != FAT_UNDEFINED_VALUE) 2044900: e4 04 60 44 ld [ %l1 + 0x44 ], %l2 <== NOT EXECUTED 2044904: 80 a4 bf ff cmp %l2, -1 <== NOT EXECUTED 2044908: 22 80 00 02 be,a 2044910 <== NOT EXECUTED 204490c: a4 10 20 02 mov 2, %l2 <== 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; 2044910: a8 05 20 02 add %l4, 2, %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) 2044914: 80 a5 20 02 cmp %l4, 2 <== NOT EXECUTED 2044918: 08 80 00 41 bleu 2044a1c <== NOT EXECUTED 204491c: ac 10 20 00 clr %l6 <== NOT EXECUTED 2044920: a6 10 20 02 mov 2, %l3 <== NOT EXECUTED 2044924: 10 80 00 17 b 2044980 <== NOT EXECUTED 2044928: aa 07 bf fc add %fp, -4, %l5 <== NOT EXECUTED * wouldn't work properly */ if (*cls_added == 0) { *chain = cl4find; rc = fat_set_fat_cluster(mt_entry, cl4find, FAT_GENFAT_EOC); 204492c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2044930: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED 2044934: 7f ff fe 69 call 20442d8 <== NOT EXECUTED 2044938: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED if ( rc != RC_OK ) 204493c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 2044940: 12 80 00 59 bne 2044aa4 <== NOT EXECUTED 2044944: 01 00 00 00 nop <== NOT EXECUTED return rc; } } save_cln = cl4find; (*cls_added)++; 2044948: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED 204494c: 82 00 60 01 inc %g1 <== NOT EXECUTED /* have we satisfied request ? */ if (*cls_added == count) 2044950: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED 2044954: 02 80 00 47 be 2044a70 <== NOT EXECUTED 2044958: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED fs_info->vol.next_cl = save_cln; if (fs_info->vol.free_cls != 0xFFFFFFFF) fs_info->vol.free_cls -= (*cls_added); *last_cl = save_cln; fat_buf_release(fs_info); return rc; 204495c: ac 10 00 12 mov %l2, %l6 <== NOT EXECUTED } } i++; cl4find++; 2044960: a4 04 a0 01 inc %l2 <== NOT EXECUTED if (cl4find >= data_cls_val) 2044964: 80 a5 00 12 cmp %l4, %l2 <== NOT EXECUTED 2044968: 18 80 00 03 bgu 2044974 <== NOT EXECUTED 204496c: a6 04 e0 01 inc %l3 <== NOT EXECUTED 2044970: a4 10 20 02 mov 2, %l2 <== 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) 2044974: 80 a5 00 13 cmp %l4, %l3 <== NOT EXECUTED 2044978: 28 80 00 2a bleu,a 2044a20 <== NOT EXECUTED 204497c: c2 04 60 40 ld [ %l1 + 0x40 ], %g1 <== NOT EXECUTED { rc = fat_get_fat_cluster(mt_entry, cl4find, &next_cln); 2044980: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2044984: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED 2044988: 7f ff ff 19 call 20445ec <== NOT EXECUTED 204498c: 94 10 00 15 mov %l5, %o2 <== NOT EXECUTED if ( rc != RC_OK ) 2044990: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 2044994: 32 80 00 2f bne,a 2044a50 <== NOT EXECUTED 2044998: c4 06 c0 00 ld [ %i3 ], %g2 <== NOT EXECUTED if (*cls_added != 0) fat_free_fat_clusters_chain(mt_entry, (*chain)); return rc; } if (next_cln == FAT_GENFAT_FREE) 204499c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 20449a0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20449a4: 32 bf ff f0 bne,a 2044964 <== NOT EXECUTED 20449a8: 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) 20449ac: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED 20449b0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20449b4: 22 bf ff de be,a 204492c <== NOT EXECUTED 20449b8: e4 26 40 00 st %l2, [ %i1 ] <== NOT EXECUTED } } else { /* set EOC value to new allocated cluster */ rc = fat_set_fat_cluster(mt_entry, cl4find, FAT_GENFAT_EOC); 20449bc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20449c0: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED 20449c4: 7f ff fe 45 call 20442d8 <== NOT EXECUTED 20449c8: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED if ( rc != RC_OK ) 20449cc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 20449d0: 12 80 00 23 bne 2044a5c <== NOT EXECUTED 20449d4: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED /* cleanup activity */ fat_free_fat_clusters_chain(mt_entry, (*chain)); return rc; } rc = fat_set_fat_cluster(mt_entry, save_cln, cl4find); 20449d8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20449dc: 7f ff fe 3f call 20442d8 <== NOT EXECUTED 20449e0: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED if ( rc != RC_OK ) 20449e4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 20449e8: 22 bf ff d9 be,a 204494c <== NOT EXECUTED 20449ec: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED { /* cleanup activity */ fat_free_fat_clusters_chain(mt_entry, (*chain)); 20449f0: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED 20449f4: 7f ff ff 82 call 20447fc <== NOT EXECUTED 20449f8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED /* trying to save last allocated cluster for future use */ fat_set_fat_cluster(mt_entry, cl4find, FAT_GENFAT_FREE); 20449fc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2044a00: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED 2044a04: 7f ff fe 35 call 20442d8 <== NOT EXECUTED 2044a08: 94 10 20 00 clr %o2 <== NOT EXECUTED fat_buf_release(fs_info); 2044a0c: 7f ff 91 dc call 202917c <== NOT EXECUTED 2044a10: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED return rc; 2044a14: 81 c7 e0 08 ret <== NOT EXECUTED 2044a18: 81 e8 00 00 restore <== NOT EXECUTED if (cl4find >= data_cls_val) cl4find = 2; } fs_info->vol.next_cl = save_cln; if (fs_info->vol.free_cls != 0xFFFFFFFF) 2044a1c: c2 04 60 40 ld [ %l1 + 0x40 ], %g1 <== NOT EXECUTED 2044a20: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED 2044a24: 02 80 00 05 be 2044a38 <== NOT EXECUTED 2044a28: ec 24 60 44 st %l6, [ %l1 + 0x44 ] <== NOT EXECUTED fs_info->vol.free_cls -= (*cls_added); 2044a2c: c4 06 c0 00 ld [ %i3 ], %g2 <== NOT EXECUTED 2044a30: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 2044a34: c2 24 60 40 st %g1, [ %l1 + 0x40 ] <== NOT EXECUTED *last_cl = save_cln; 2044a38: ec 27 00 00 st %l6, [ %i4 ] <== NOT EXECUTED fat_buf_release(fs_info); 2044a3c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2044a40: 7f ff 91 cf call 202917c <== NOT EXECUTED 2044a44: b0 10 20 00 clr %i0 <== NOT EXECUTED return RC_OK; } 2044a48: 81 c7 e0 08 ret <== NOT EXECUTED 2044a4c: 81 e8 00 00 restore <== NOT EXECUTED while (i < data_cls_val) { rc = fat_get_fat_cluster(mt_entry, cl4find, &next_cln); if ( rc != RC_OK ) { if (*cls_added != 0) 2044a50: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2044a54: 02 bf ff f0 be 2044a14 <== NOT EXECUTED 2044a58: 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)); 2044a5c: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED 2044a60: 7f ff ff 67 call 20447fc <== NOT EXECUTED 2044a64: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return rc; 2044a68: 81 c7 e0 08 ret <== NOT EXECUTED 2044a6c: 81 e8 00 00 restore <== NOT EXECUTED /* have we satisfied request ? */ if (*cls_added == count) { fs_info->vol.next_cl = save_cln; if (fs_info->vol.free_cls != 0xFFFFFFFF) 2044a70: c2 04 60 40 ld [ %l1 + 0x40 ], %g1 <== NOT EXECUTED 2044a74: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED 2044a78: 02 80 00 05 be 2044a8c <== NOT EXECUTED 2044a7c: e4 24 60 44 st %l2, [ %l1 + 0x44 ] <== NOT EXECUTED fs_info->vol.free_cls -= (*cls_added); 2044a80: c4 06 c0 00 ld [ %i3 ], %g2 <== NOT EXECUTED 2044a84: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 2044a88: c2 24 60 40 st %g1, [ %l1 + 0x40 ] <== NOT EXECUTED *last_cl = save_cln; 2044a8c: e4 27 00 00 st %l2, [ %i4 ] <== NOT EXECUTED fat_buf_release(fs_info); 2044a90: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2044a94: 7f ff 91 ba call 202917c <== NOT EXECUTED 2044a98: b0 10 20 00 clr %i0 <== NOT EXECUTED return rc; 2044a9c: 81 c7 e0 08 ret <== NOT EXECUTED 2044aa0: 81 e8 00 00 restore <== NOT EXECUTED 2044aa4: 81 c7 e0 08 ret <== NOT EXECUTED 2044aa8: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 020442d8 : fat_set_fat_cluster( rtems_filesystem_mount_table_entry_t *mt_entry, uint32_t cln, uint32_t in_val ) { 20442d8: 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; 20442dc: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED /* sanity check */ if ( (cln < 2) || (cln > (fs_info->vol.data_cls + 1)) ) 20442e0: 80 a6 60 01 cmp %i1, 1 <== NOT EXECUTED 20442e4: 08 80 00 93 bleu 2044530 <== NOT EXECUTED 20442e8: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED 20442ec: c2 04 20 34 ld [ %l0 + 0x34 ], %g1 <== NOT EXECUTED 20442f0: 82 00 60 01 inc %g1 <== NOT EXECUTED 20442f4: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 20442f8: 18 80 00 8e bgu 2044530 <== NOT EXECUTED 20442fc: 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) + 2044300: c2 0c 20 0a ldub [ %l0 + 0xa ], %g1 <== NOT EXECUTED 2044304: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 2044308: 12 80 00 24 bne 2044398 <== NOT EXECUTED 204430c: e8 0c 20 02 ldub [ %l0 + 2 ], %l4 <== NOT EXECUTED 2044310: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED 2044314: 02 80 00 27 be 20443b0 <== NOT EXECUTED 2044318: 01 00 00 00 nop <== NOT EXECUTED 204431c: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 <== NOT EXECUTED 2044320: a3 2e 60 01 sll %i1, 1, %l1 <== NOT EXECUTED 2044324: a9 34 40 14 srl %l1, %l4, %l4 <== NOT EXECUTED 2044328: a8 05 00 01 add %l4, %g1, %l4 <== NOT EXECUTED fs_info->vol.afat_loc; ofs = FAT_FAT_OFFSET(fs_info->vol.type, cln) & (fs_info->vol.bps - 1); 204432c: ea 14 00 00 lduh [ %l0 ], %l5 <== NOT EXECUTED rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &block0); 2044330: a6 07 bf fc add %fp, -4, %l3 <== NOT EXECUTED 2044334: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2044338: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED 204433c: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED 2044340: 7f ff 93 f6 call 2029318 <== NOT EXECUTED 2044344: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED if (rc != RC_OK) 2044348: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 204434c: 12 80 00 11 bne 2044390 <== NOT EXECUTED 2044350: ab 2d 60 10 sll %l5, 0x10, %l5 <== NOT EXECUTED return rc; switch ( fs_info->vol.type ) 2044354: e4 0c 20 0a ldub [ %l0 + 0xa ], %l2 <== NOT EXECUTED 2044358: 80 a4 a0 02 cmp %l2, 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); 204435c: ab 35 60 10 srl %l5, 0x10, %l5 <== NOT EXECUTED 2044360: 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 ) 2044364: 02 80 00 18 be 20443c4 <== NOT EXECUTED 2044368: a2 0c 40 15 and %l1, %l5, %l1 <== NOT EXECUTED 204436c: 80 a4 a0 04 cmp %l2, 4 <== NOT EXECUTED 2044370: 02 80 00 3e be 2044468 <== NOT EXECUTED 2044374: 80 a4 a0 01 cmp %l2, 1 <== NOT EXECUTED 2044378: 02 80 00 1e be 20443f0 <== NOT EXECUTED 204437c: 80 8e 60 01 btst 1, %i1 <== NOT EXECUTED fat_buf_mark_modified(fs_info); break; default: rtems_set_errno_and_return_minus_one(EIO); 2044380: 40 00 12 31 call 2048c44 <__errno> <== NOT EXECUTED 2044384: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2044388: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED 204438c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED break; } return RC_OK; } 2044390: 81 c7 e0 08 ret <== NOT EXECUTED 2044394: 81 e8 00 00 restore <== 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) + 2044398: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 <== NOT EXECUTED 204439c: a3 36 60 01 srl %i1, 1, %l1 <== NOT EXECUTED 20443a0: a2 04 40 19 add %l1, %i1, %l1 <== NOT EXECUTED 20443a4: a9 34 40 14 srl %l1, %l4, %l4 <== NOT EXECUTED 20443a8: 10 bf ff e1 b 204432c <== NOT EXECUTED 20443ac: a8 05 00 01 add %l4, %g1, %l4 <== NOT EXECUTED 20443b0: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 <== NOT EXECUTED 20443b4: a3 2e 60 02 sll %i1, 2, %l1 <== NOT EXECUTED 20443b8: a9 34 40 14 srl %l1, %l4, %l4 <== NOT EXECUTED 20443bc: 10 bf ff dc b 204432c <== NOT EXECUTED 20443c0: a8 05 00 01 add %l4, %g1, %l4 <== NOT EXECUTED } } break; case FAT_FAT16: *((uint16_t *)(block0->buffer + ofs)) = 20443c4: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 20443c8: b5 2e a0 10 sll %i2, 0x10, %i2 <== NOT EXECUTED 20443cc: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED 20443d0: 85 36 a0 18 srl %i2, 0x18, %g2 <== NOT EXECUTED 20443d4: b5 36 a0 08 srl %i2, 8, %i2 <== NOT EXECUTED 20443d8: b4 16 80 02 or %i2, %g2, %i2 <== NOT EXECUTED 20443dc: f4 30 40 11 sth %i2, [ %g1 + %l1 ] <== NOT EXECUTED } static inline void fat_buf_mark_modified(fat_fs_info_t *fs_info) { fs_info->c.modified = true; 20443e0: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 20443e4: c2 2c 20 84 stb %g1, [ %l0 + 0x84 ] <== NOT EXECUTED 20443e8: 81 c7 e0 08 ret <== NOT EXECUTED 20443ec: 81 e8 00 00 restore <== NOT EXECUTED return rc; switch ( fs_info->vol.type ) { case FAT_FAT12: if ( FAT_CLUSTER_IS_ODD(cln) ) 20443f0: 02 80 00 35 be 20444c4 <== NOT EXECUTED 20443f4: 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; *((uint8_t *)(block0->buffer + ofs)) = 20443f8: 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)) = (*((uint8_t *)(block0->buffer + ofs))) & 0x0F; 20443fc: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== 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)) = 2044400: c6 08 40 11 ldub [ %g1 + %l1 ], %g3 <== NOT EXECUTED 2044404: 86 08 e0 0f and %g3, 0xf, %g3 <== NOT EXECUTED 2044408: c6 28 40 11 stb %g3, [ %g1 + %l1 ] <== NOT EXECUTED (*((uint8_t *)(block0->buffer + ofs))) & 0x0F; *((uint8_t *)(block0->buffer + ofs)) = (*((uint8_t *)(block0->buffer + ofs))) | 204440c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 2044410: 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)) = 2044414: c6 08 40 11 ldub [ %g1 + %l1 ], %g3 <== NOT EXECUTED 2044418: 84 10 c0 02 or %g3, %g2, %g2 <== NOT EXECUTED 204441c: c4 28 40 11 stb %g2, [ %g1 + %l1 ] <== 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) ) 2044420: c2 14 00 00 lduh [ %l0 ], %g1 <== NOT EXECUTED 2044424: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 2044428: 80 a0 40 11 cmp %g1, %l1 <== NOT EXECUTED 204442c: 02 80 00 5c be 204459c <== NOT EXECUTED 2044430: e4 2c 20 84 stb %l2, [ %l0 + 0x84 ] <== NOT EXECUTED fat_buf_mark_modified(fs_info); } else { *((uint8_t *)(block0->buffer + ofs + 1)) &= 0x00; 2044434: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 2044438: a2 04 60 01 inc %l1 <== NOT EXECUTED 204443c: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED *((uint8_t *)(block0->buffer + ofs + 1)) = 2044440: b5 2e a0 14 sll %i2, 0x14, %i2 <== NOT EXECUTED fat_buf_mark_modified(fs_info); } else { *((uint8_t *)(block0->buffer + ofs + 1)) &= 0x00; 2044444: c0 28 40 11 clrb [ %g1 + %l1 ] <== NOT EXECUTED *((uint8_t *)(block0->buffer + ofs + 1)) = (*((uint8_t *)(block0->buffer + ofs + 1))) | 2044448: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED } else { *((uint8_t *)(block0->buffer + ofs + 1)) &= 0x00; *((uint8_t *)(block0->buffer + ofs + 1)) = 204444c: b5 36 a0 18 srl %i2, 0x18, %i2 <== NOT EXECUTED (*((uint8_t *)(block0->buffer + ofs + 1))) | 2044450: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED } else { *((uint8_t *)(block0->buffer + ofs + 1)) &= 0x00; *((uint8_t *)(block0->buffer + ofs + 1)) = 2044454: c4 08 40 11 ldub [ %g1 + %l1 ], %g2 <== NOT EXECUTED 2044458: 84 10 80 1a or %g2, %i2, %g2 <== NOT EXECUTED 204445c: c4 28 40 11 stb %g2, [ %g1 + %l1 ] <== NOT EXECUTED 2044460: 81 c7 e0 08 ret <== NOT EXECUTED 2044464: 81 e8 00 00 restore <== 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)); 2044468: 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)); 204446c: 05 3c 00 00 sethi %hi(0xf0000000), %g2 <== NOT EXECUTED *((uint32_t *)(block0->buffer + ofs)) = (*((uint32_t *)(block0->buffer + ofs))) & (CT_LE_L(0xF0000000)); 2044470: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED *((uint32_t *)(block0->buffer + ofs)) = 2044474: 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)) = 2044478: c6 00 40 11 ld [ %g1 + %l1 ], %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)); 204447c: b4 2e 80 02 andn %i2, %g2, %i2 <== NOT EXECUTED *((uint32_t *)(block0->buffer + ofs)) = 2044480: 86 08 e0 f0 and %g3, 0xf0, %g3 <== NOT EXECUTED (*((uint32_t *)(block0->buffer + ofs))) & (CT_LE_L(0xF0000000)); *((uint32_t *)(block0->buffer + ofs)) = 2044484: 89 36 a0 10 srl %i2, 0x10, %g4 <== NOT EXECUTED 2044488: 85 36 a0 18 srl %i2, 0x18, %g2 <== NOT EXECUTED 204448c: 88 09 20 ff and %g4, 0xff, %g4 <== NOT EXECUTED 2044490: 84 13 40 02 or %o5, %g2, %g2 <== NOT EXECUTED 2044494: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED 2044498: b5 36 a0 08 srl %i2, 8, %i2 <== NOT EXECUTED 204449c: b4 0e a0 ff and %i2, 0xff, %i2 <== NOT EXECUTED 20444a0: b5 2e a0 10 sll %i2, 0x10, %i2 <== NOT EXECUTED 20444a4: 84 10 80 1a or %g2, %i2, %g2 <== NOT EXECUTED 20444a8: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED 20444ac: 84 10 c0 02 or %g3, %g2, %g2 <== NOT EXECUTED 20444b0: c4 20 40 11 st %g2, [ %g1 + %l1 ] <== NOT EXECUTED 20444b4: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 20444b8: c2 2c 20 84 stb %g1, [ %l0 + 0x84 ] <== NOT EXECUTED 20444bc: 81 c7 e0 08 ret <== NOT EXECUTED 20444c0: 81 e8 00 00 restore <== NOT EXECUTED (uint8_t )((fat16_clv & 0xFF00)>>8); } } else { fat16_clv = ((uint16_t )in_val) & FAT_FAT12_MASK; 20444c4: b4 0e af ff and %i2, 0xfff, %i2 <== NOT EXECUTED *((uint8_t *)(block0->buffer + ofs)) &= 0x00; 20444c8: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED 20444cc: c0 28 40 11 clrb [ %g1 + %l1 ] <== NOT EXECUTED *((uint8_t *)(block0->buffer + ofs)) = (*((uint8_t *)(block0->buffer + ofs))) | 20444d0: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 20444d4: 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)) = 20444d8: c4 08 40 11 ldub [ %g1 + %l1 ], %g2 <== NOT EXECUTED 20444dc: 84 16 80 02 or %i2, %g2, %g2 <== NOT EXECUTED 20444e0: c4 28 40 11 stb %g2, [ %g1 + %l1 ] <== 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) ) 20444e4: c2 14 00 00 lduh [ %l0 ], %g1 <== NOT EXECUTED 20444e8: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 20444ec: 80 a0 40 11 cmp %g1, %l1 <== NOT EXECUTED 20444f0: 02 80 00 16 be 2044548 <== NOT EXECUTED 20444f4: e4 2c 20 84 stb %l2, [ %l0 + 0x84 ] <== NOT EXECUTED fat_buf_mark_modified(fs_info); } else { *((uint8_t *)(block0->buffer + ofs + 1)) = (*((uint8_t *)(block0->buffer + ofs + 1))) & 0xF0; 20444f8: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 20444fc: a2 04 60 01 inc %l1 <== NOT EXECUTED 2044500: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED *((uint8_t *)(block0->buffer + ofs+1)) = 2044504: b5 36 a0 08 srl %i2, 8, %i2 <== NOT EXECUTED fat_buf_mark_modified(fs_info); } else { *((uint8_t *)(block0->buffer + ofs + 1)) = 2044508: c4 08 40 11 ldub [ %g1 + %l1 ], %g2 <== NOT EXECUTED 204450c: 84 08 bf f0 and %g2, -16, %g2 <== NOT EXECUTED 2044510: c4 28 40 11 stb %g2, [ %g1 + %l1 ] <== NOT EXECUTED (*((uint8_t *)(block0->buffer + ofs + 1))) & 0xF0; *((uint8_t *)(block0->buffer + ofs+1)) = (*((uint8_t *)(block0->buffer + ofs+1))) | 2044514: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 2044518: 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)) = 204451c: c4 08 40 11 ldub [ %g1 + %l1 ], %g2 <== NOT EXECUTED 2044520: b4 10 80 1a or %g2, %i2, %i2 <== NOT EXECUTED 2044524: f4 28 40 11 stb %i2, [ %g1 + %l1 ] <== NOT EXECUTED 2044528: 81 c7 e0 08 ret <== NOT EXECUTED 204452c: 81 e8 00 00 restore <== NOT EXECUTED uint32_t fat32_clv = 0; rtems_bdbuf_buffer *block0 = NULL; /* sanity check */ if ( (cln < 2) || (cln > (fs_info->vol.data_cls + 1)) ) rtems_set_errno_and_return_minus_one(EIO); 2044530: 40 00 11 c5 call 2048c44 <__errno> <== NOT EXECUTED 2044534: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2044538: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED 204453c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2044540: 81 c7 e0 08 ret <== NOT EXECUTED 2044544: 81 e8 00 00 restore <== NOT EXECUTED fat_buf_mark_modified(fs_info); if ( ofs == (fs_info->vol.bps - 1) ) { rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ, 2044548: 92 05 20 01 add %l4, 1, %o1 <== NOT EXECUTED 204454c: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED 2044550: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2044554: 7f ff 93 71 call 2029318 <== NOT EXECUTED 2044558: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED &block0); if (rc != RC_OK) 204455c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 2044560: 12 bf ff 8c bne 2044390 <== NOT EXECUTED 2044564: 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)) = 2044568: 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; 204456c: 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)) = 2044570: c4 08 40 00 ldub [ %g1 ], %g2 <== NOT EXECUTED 2044574: 84 08 bf f0 and %g2, -16, %g2 <== NOT EXECUTED 2044578: c4 28 40 00 stb %g2, [ %g1 ] <== NOT EXECUTED (*((uint8_t *)(block0->buffer))) & 0xF0; *((uint8_t *)(block0->buffer)) = (*((uint8_t *)(block0->buffer))) | 204457c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 2044580: 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)) = 2044584: c4 08 40 00 ldub [ %g1 ], %g2 <== NOT EXECUTED 2044588: 84 16 80 02 or %i2, %g2, %g2 <== NOT EXECUTED 204458c: c4 28 40 00 stb %g2, [ %g1 ] <== NOT EXECUTED 2044590: e4 2c 20 84 stb %l2, [ %l0 + 0x84 ] <== NOT EXECUTED 2044594: 81 c7 e0 08 ret <== NOT EXECUTED 2044598: 81 e8 00 00 restore <== NOT EXECUTED fat_buf_mark_modified(fs_info); if ( ofs == (fs_info->vol.bps - 1) ) { rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ, 204459c: 92 05 20 01 add %l4, 1, %o1 <== NOT EXECUTED 20445a0: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED 20445a4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20445a8: 7f ff 93 5c call 2029318 <== NOT EXECUTED 20445ac: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED &block0); if (rc != RC_OK) 20445b0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 20445b4: 12 bf ff 77 bne 2044390 <== NOT EXECUTED 20445b8: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED return rc; *((uint8_t *)(block0->buffer)) &= 0x00; *((uint8_t *)(block0->buffer)) = 20445bc: 87 2e a0 14 sll %i2, 0x14, %g3 <== 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; 20445c0: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED *((uint8_t *)(block0->buffer)) = 20445c4: 87 30 e0 18 srl %g3, 0x18, %g3 <== 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; 20445c8: c0 28 40 00 clrb [ %g1 ] <== NOT EXECUTED *((uint8_t *)(block0->buffer)) = (*((uint8_t *)(block0->buffer))) | 20445cc: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 20445d0: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED if (rc != RC_OK) return rc; *((uint8_t *)(block0->buffer)) &= 0x00; *((uint8_t *)(block0->buffer)) = 20445d4: c4 08 40 00 ldub [ %g1 ], %g2 <== NOT EXECUTED 20445d8: 84 10 c0 02 or %g3, %g2, %g2 <== NOT EXECUTED 20445dc: c4 28 40 00 stb %g2, [ %g1 ] <== NOT EXECUTED 20445e0: e4 2c 20 84 stb %l2, [ %l0 + 0x84 ] <== NOT EXECUTED 20445e4: 81 c7 e0 08 ret <== NOT EXECUTED 20445e8: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 020296b4 : * 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) { 20296b4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED int rc = RC_OK; fat_fs_info_t *fs_info = mt_entry->fs_info; 20296b8: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED int i = 0; if (fs_info->vol.type & FAT_FAT32) 20296bc: c2 0c 20 0a ldub [ %l0 + 0xa ], %g1 <== NOT EXECUTED 20296c0: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED 20296c4: 12 80 00 3a bne 20297ac <== NOT EXECUTED 20296c8: a2 10 20 00 clr %l1 <== NOT EXECUTED fs_info->vol.next_cl); if ( rc != RC_OK ) rc = -1; } fat_buf_release(fs_info); 20296cc: 7f ff fe ac call 202917c <== NOT EXECUTED 20296d0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if (rtems_bdbuf_syncdev(fs_info->vol.dev) != RTEMS_SUCCESSFUL) 20296d4: 7f ff 6a c1 call 20041d8 <== NOT EXECUTED 20296d8: d0 1c 20 58 ldd [ %l0 + 0x58 ], %o0 <== NOT EXECUTED 20296dc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20296e0: 32 80 00 3b bne,a 20297cc <== NOT EXECUTED 20296e4: a2 10 3f ff mov -1, %l1 <== NOT EXECUTED 20296e8: a6 10 20 00 clr %l3 <== 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; 20296ec: e4 04 20 68 ld [ %l0 + 0x68 ], %l2 <== NOT EXECUTED while ( (node = rtems_chain_get(the_chain)) != NULL ) 20296f0: 10 80 00 04 b 2029700 <== NOT EXECUTED 20296f4: a4 04 80 13 add %l2, %l3, %l2 <== NOT EXECUTED free(node); 20296f8: 7f ff 7c 79 call 20088dc <== NOT EXECUTED 20296fc: 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 ); 2029700: 7f ff 93 1c call 200e370 <_Chain_Get> <== NOT EXECUTED 2029704: 90 10 00 12 mov %l2, %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 ) 2029708: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202970c: 12 bf ff fb bne 20296f8 <== NOT EXECUTED 2029710: 01 00 00 00 nop <== NOT EXECUTED 2029714: a6 04 e0 0c add %l3, 0xc, %l3 <== 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++) 2029718: 80 a4 e0 18 cmp %l3, 0x18 <== NOT EXECUTED 202971c: 32 bf ff f5 bne,a 20296f0 <== NOT EXECUTED 2029720: e4 04 20 68 ld [ %l0 + 0x68 ], %l2 <== NOT EXECUTED 2029724: a6 10 20 00 clr %l3 <== NOT EXECUTED } for (i = 0; i < FAT_HASH_SIZE; i++) { rtems_chain_node *node = NULL; rtems_chain_control *the_chain = fs_info->rhash + i; 2029728: e4 04 20 6c ld [ %l0 + 0x6c ], %l2 <== NOT EXECUTED while ( (node = rtems_chain_get(the_chain)) != NULL ) 202972c: 10 80 00 04 b 202973c <== NOT EXECUTED 2029730: a4 04 80 13 add %l2, %l3, %l2 <== NOT EXECUTED free(node); 2029734: 7f ff 7c 6a call 20088dc <== NOT EXECUTED 2029738: 01 00 00 00 nop <== NOT EXECUTED 202973c: 7f ff 93 0d call 200e370 <_Chain_Get> <== NOT EXECUTED 2029740: 90 10 00 12 mov %l2, %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 ) 2029744: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029748: 12 bf ff fb bne 2029734 <== NOT EXECUTED 202974c: 01 00 00 00 nop <== NOT EXECUTED 2029750: a6 04 e0 0c add %l3, 0xc, %l3 <== NOT EXECUTED while ( (node = rtems_chain_get(the_chain)) != NULL ) free(node); } for (i = 0; i < FAT_HASH_SIZE; i++) 2029754: 80 a4 e0 18 cmp %l3, 0x18 <== NOT EXECUTED 2029758: 32 bf ff f5 bne,a 202972c <== NOT EXECUTED 202975c: e4 04 20 6c ld [ %l0 + 0x6c ], %l2 <== NOT EXECUTED while ( (node = rtems_chain_get(the_chain)) != NULL ) free(node); } free(fs_info->vhash); 2029760: 7f ff 7c 5f call 20088dc <== NOT EXECUTED 2029764: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED free(fs_info->rhash); 2029768: 7f ff 7c 5d call 20088dc <== NOT EXECUTED 202976c: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED free(fs_info->uino); 2029770: 7f ff 7c 5b call 20088dc <== NOT EXECUTED 2029774: d0 04 20 70 ld [ %l0 + 0x70 ], %o0 <== NOT EXECUTED free(fs_info->sec_buf); 2029778: 7f ff 7c 59 call 20088dc <== NOT EXECUTED 202977c: d0 04 20 8c ld [ %l0 + 0x8c ], %o0 <== NOT EXECUTED rtems_disk_release(fs_info->vol.dd); 2029780: 7f ff 77 2f call 200743c <== NOT EXECUTED 2029784: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED if (rc) 2029788: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 202978c: 02 80 00 06 be 20297a4 <== NOT EXECUTED 2029790: 01 00 00 00 nop <== NOT EXECUTED errno = EIO; 2029794: 40 00 7d 2c call 2048c44 <__errno> <== NOT EXECUTED 2029798: 01 00 00 00 nop <== NOT EXECUTED 202979c: 82 10 20 05 mov 5, %g1 ! 5 <== NOT EXECUTED 20297a0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return rc; } 20297a4: 81 c7 e0 08 ret <== NOT EXECUTED 20297a8: 91 e8 00 11 restore %g0, %l1, %o0 <== NOT EXECUTED fat_fs_info_t *fs_info = mt_entry->fs_info; int i = 0; if (fs_info->vol.type & FAT_FAT32) { rc = fat_fat32_update_fsinfo_sector(mt_entry, fs_info->vol.free_cls, 20297ac: d2 04 20 40 ld [ %l0 + 0x40 ], %o1 <== NOT EXECUTED 20297b0: d4 04 20 44 ld [ %l0 + 0x44 ], %o2 <== NOT EXECUTED 20297b4: 7f ff ff 90 call 20295f4 <== NOT EXECUTED 20297b8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED fs_info->vol.next_cl); if ( rc != RC_OK ) 20297bc: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED 20297c0: 32 bf ff c3 bne,a 20296cc <== NOT EXECUTED 20297c4: a2 10 3f ff mov -1, %l1 <== NOT EXECUTED 20297c8: 30 bf ff c1 b,a 20296cc <== NOT EXECUTED rc = -1; } fat_buf_release(fs_info); if (rtems_bdbuf_syncdev(fs_info->vol.dev) != RTEMS_SUCCESSFUL) 20297cc: 10 bf ff c8 b 20296ec <== NOT EXECUTED 20297d0: a6 10 20 00 clr %l3 <== NOT EXECUTED =============================================================================== 02044ea8 : #include int fchdir( int fd ) { 2044ea8: 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 ); 2044eac: 03 00 81 bb sethi %hi(0x206ec00), %g1 <== NOT EXECUTED 2044eb0: c2 00 62 f4 ld [ %g1 + 0x2f4 ], %g1 ! 206eef4 <== NOT EXECUTED 2044eb4: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 2044eb8: 1a 80 00 53 bcc 2045004 <== NOT EXECUTED 2044ebc: 03 00 81 cc sethi %hi(0x2073000), %g1 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 2044ec0: c2 00 60 d4 ld [ %g1 + 0xd4 ], %g1 ! 20730d4 <== NOT EXECUTED 2044ec4: 85 2e 20 06 sll %i0, 6, %g2 <== NOT EXECUTED 2044ec8: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED 2044ecc: b0 06 00 02 add %i0, %g2, %i0 <== NOT EXECUTED 2044ed0: b0 00 40 18 add %g1, %i0, %i0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 2044ed4: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 <== NOT EXECUTED 2044ed8: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 2044edc: 02 80 00 4a be 2045004 <== NOT EXECUTED 2044ee0: 01 00 00 00 nop <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !iop->pathinfo.ops ) { 2044ee4: c2 06 20 28 ld [ %i0 + 0x28 ], %g1 <== NOT EXECUTED 2044ee8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2044eec: 02 80 00 59 be 2045050 <== NOT EXECUTED 2044ef0: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { 2044ef4: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 <== NOT EXECUTED 2044ef8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2044efc: 02 80 00 55 be 2045050 <== NOT EXECUTED 2044f00: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != 2044f04: 9f c0 40 00 call %g1 <== NOT EXECUTED 2044f08: 90 06 20 1c add %i0, 0x1c, %o0 <== NOT EXECUTED 2044f0c: 80 a2 20 01 cmp %o0, 1 <== NOT EXECUTED 2044f10: 12 80 00 37 bne 2044fec <== NOT EXECUTED 2044f14: 21 00 81 bc sethi %hi(0x206f000), %l0 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 2044f18: c2 04 23 24 ld [ %l0 + 0x324 ], %g1 ! 206f324 <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 2044f1c: 11 00 81 b5 sethi %hi(0x206d400), %o0 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 2044f20: c4 00 60 04 ld [ %g1 + 4 ], %g2 <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 2044f24: 90 12 20 40 or %o0, 0x40, %o0 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 2044f28: c4 27 bf d8 st %g2, [ %fp + -40 ] <== NOT EXECUTED 2044f2c: c4 00 60 08 ld [ %g1 + 8 ], %g2 <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 2044f30: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 2044f34: c4 27 bf dc st %g2, [ %fp + -36 ] <== NOT EXECUTED 2044f38: c4 00 60 0c ld [ %g1 + 0xc ], %g2 <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 2044f3c: 94 10 20 00 clr %o2 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 2044f40: c4 27 bf e0 st %g2, [ %fp + -32 ] <== NOT EXECUTED 2044f44: c4 00 60 10 ld [ %g1 + 0x10 ], %g2 <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 2044f48: 96 07 bf ec add %fp, -20, %o3 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 2044f4c: c4 27 bf e4 st %g2, [ %fp + -28 ] <== NOT EXECUTED 2044f50: c4 00 60 14 ld [ %g1 + 0x14 ], %g2 <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 2044f54: 98 10 20 00 clr %o4 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 2044f58: c4 27 bf e8 st %g2, [ %fp + -24 ] <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; 2044f5c: c4 06 20 1c ld [ %i0 + 0x1c ], %g2 <== NOT EXECUTED 2044f60: c4 20 60 04 st %g2, [ %g1 + 4 ] <== NOT EXECUTED 2044f64: c4 06 20 20 ld [ %i0 + 0x20 ], %g2 <== NOT EXECUTED 2044f68: c4 20 60 08 st %g2, [ %g1 + 8 ] <== NOT EXECUTED 2044f6c: c4 06 20 24 ld [ %i0 + 0x24 ], %g2 <== NOT EXECUTED 2044f70: c4 20 60 0c st %g2, [ %g1 + 0xc ] <== NOT EXECUTED 2044f74: c4 06 20 28 ld [ %i0 + 0x28 ], %g2 <== NOT EXECUTED 2044f78: c4 20 60 10 st %g2, [ %g1 + 0x10 ] <== NOT EXECUTED 2044f7c: c4 06 20 2c ld [ %i0 + 0x2c ], %g2 <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 2044f80: 7f ff 0e 38 call 2008860 <== NOT EXECUTED 2044f84: c4 20 60 14 st %g2, [ %g1 + 0x14 ] <== NOT EXECUTED 2044f88: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2044f8c: 12 80 00 24 bne 204501c <== NOT EXECUTED 2044f90: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; return -1; } /* release the old one */ rtems_filesystem_freenode( &saved ); 2044f94: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2044f98: 02 80 00 09 be 2044fbc <== NOT EXECUTED 2044f9c: c4 07 bf ec ld [ %fp + -20 ], %g2 <== NOT EXECUTED 2044fa0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2044fa4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2044fa8: 22 80 00 06 be,a 2044fc0 <== NOT EXECUTED 2044fac: c2 04 23 24 ld [ %l0 + 0x324 ], %g1 <== NOT EXECUTED 2044fb0: 9f c0 40 00 call %g1 <== NOT EXECUTED 2044fb4: 90 07 bf d8 add %fp, -40, %o0 <== NOT EXECUTED rtems_filesystem_current = loc; 2044fb8: c4 07 bf ec ld [ %fp + -20 ], %g2 <== NOT EXECUTED 2044fbc: c2 04 23 24 ld [ %l0 + 0x324 ], %g1 <== NOT EXECUTED 2044fc0: c4 20 60 04 st %g2, [ %g1 + 4 ] <== NOT EXECUTED 2044fc4: c4 07 bf f0 ld [ %fp + -16 ], %g2 <== NOT EXECUTED 2044fc8: c4 20 60 08 st %g2, [ %g1 + 8 ] <== NOT EXECUTED 2044fcc: c4 07 bf f4 ld [ %fp + -12 ], %g2 <== NOT EXECUTED 2044fd0: c4 20 60 0c st %g2, [ %g1 + 0xc ] <== NOT EXECUTED 2044fd4: c4 07 bf f8 ld [ %fp + -8 ], %g2 <== NOT EXECUTED 2044fd8: c4 20 60 10 st %g2, [ %g1 + 0x10 ] <== NOT EXECUTED 2044fdc: c4 07 bf fc ld [ %fp + -4 ], %g2 <== NOT EXECUTED 2044fe0: c4 20 60 14 st %g2, [ %g1 + 0x14 ] <== NOT EXECUTED return 0; } 2044fe4: 81 c7 e0 08 ret <== NOT EXECUTED 2044fe8: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != RTEMS_FILESYSTEM_DIRECTORY ) { rtems_set_errno_and_return_minus_one( ENOTDIR ); 2044fec: 40 00 0f 16 call 2048c44 <__errno> <== NOT EXECUTED 2044ff0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2044ff4: 82 10 20 14 mov 0x14, %g1 <== NOT EXECUTED 2044ff8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2044ffc: 81 c7 e0 08 ret <== NOT EXECUTED 2045000: 81 e8 00 00 restore <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 2045004: 40 00 0f 10 call 2048c44 <__errno> <== NOT EXECUTED 2045008: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 204500c: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED 2045010: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2045014: 81 c7 e0 08 ret <== NOT EXECUTED 2045018: 81 e8 00 00 restore <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; 204501c: c4 07 bf d8 ld [ %fp + -40 ], %g2 <== NOT EXECUTED 2045020: c2 04 23 24 ld [ %l0 + 0x324 ], %g1 <== NOT EXECUTED 2045024: c4 20 60 04 st %g2, [ %g1 + 4 ] <== NOT EXECUTED 2045028: c4 07 bf dc ld [ %fp + -36 ], %g2 <== NOT EXECUTED 204502c: c4 20 60 08 st %g2, [ %g1 + 8 ] <== NOT EXECUTED 2045030: c4 07 bf e0 ld [ %fp + -32 ], %g2 <== NOT EXECUTED 2045034: c4 20 60 0c st %g2, [ %g1 + 0xc ] <== NOT EXECUTED 2045038: c4 07 bf e4 ld [ %fp + -28 ], %g2 <== NOT EXECUTED 204503c: c4 20 60 10 st %g2, [ %g1 + 0x10 ] <== NOT EXECUTED 2045040: c4 07 bf e8 ld [ %fp + -24 ], %g2 <== NOT EXECUTED 2045044: c4 20 60 14 st %g2, [ %g1 + 0x14 ] <== NOT EXECUTED return -1; 2045048: 81 c7 e0 08 ret <== NOT EXECUTED 204504c: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED if ( !iop->pathinfo.ops ) { rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { rtems_set_errno_and_return_minus_one( ENOTSUP ); 2045050: 40 00 0e fd call 2048c44 <__errno> <== NOT EXECUTED 2045054: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2045058: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 204505c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2045060: 81 c7 e0 08 ret <== NOT EXECUTED 2045064: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0202c474 : int fchmod( int fd, mode_t mode ) { 202c474: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 202c478: 03 00 81 bb sethi %hi(0x206ec00), %g1 <== NOT EXECUTED 202c47c: c2 00 62 f4 ld [ %g1 + 0x2f4 ], %g1 ! 206eef4 <== NOT EXECUTED 202c480: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 202c484: 1a 80 00 16 bcc 202c4dc <== NOT EXECUTED 202c488: 03 00 81 cc sethi %hi(0x2073000), %g1 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 202c48c: d0 00 60 d4 ld [ %g1 + 0xd4 ], %o0 ! 20730d4 <== NOT EXECUTED 202c490: 83 2e 20 06 sll %i0, 6, %g1 <== NOT EXECUTED 202c494: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED 202c498: b0 06 00 01 add %i0, %g1, %i0 <== NOT EXECUTED 202c49c: 90 02 00 18 add %o0, %i0, %o0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 202c4a0: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 <== NOT EXECUTED 202c4a4: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 202c4a8: 02 80 00 0d be 202c4dc <== NOT EXECUTED 202c4ac: 01 00 00 00 nop <== NOT EXECUTED /* * Now process the fchmod(). */ if ( !iop->handlers->fchmod_h ) 202c4b0: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 <== NOT EXECUTED 202c4b4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 202c4b8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202c4bc: 02 80 00 0e be 202c4f4 <== NOT EXECUTED 202c4c0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); 202c4c4: c2 02 20 24 ld [ %o0 + 0x24 ], %g1 <== NOT EXECUTED 202c4c8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 202c4cc: 9f c0 40 00 call %g1 <== NOT EXECUTED 202c4d0: 90 02 20 1c add %o0, 0x1c, %o0 <== NOT EXECUTED } 202c4d4: 81 c7 e0 08 ret <== NOT EXECUTED 202c4d8: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED { rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 202c4dc: 40 00 71 da call 2048c44 <__errno> <== NOT EXECUTED 202c4e0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202c4e4: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED 202c4e8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202c4ec: 81 c7 e0 08 ret <== NOT EXECUTED 202c4f0: 81 e8 00 00 restore <== NOT EXECUTED /* * Now process the fchmod(). */ if ( !iop->handlers->fchmod_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 202c4f4: 40 00 71 d4 call 2048c44 <__errno> <== NOT EXECUTED 202c4f8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202c4fc: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 202c500: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202c504: 81 c7 e0 08 ret <== NOT EXECUTED 202c508: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0202c50c : int fchown( int fd, uid_t owner, gid_t group ) { 202c50c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 202c510: 03 00 81 bb sethi %hi(0x206ec00), %g1 <== NOT EXECUTED 202c514: c2 00 62 f4 ld [ %g1 + 0x2f4 ], %g1 ! 206eef4 <== NOT EXECUTED 202c518: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 202c51c: 1a 80 00 19 bcc 202c580 <== NOT EXECUTED 202c520: 03 00 81 cc sethi %hi(0x2073000), %g1 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 202c524: d0 00 60 d4 ld [ %g1 + 0xd4 ], %o0 ! 20730d4 <== NOT EXECUTED 202c528: 83 2e 20 06 sll %i0, 6, %g1 <== NOT EXECUTED 202c52c: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED 202c530: b0 06 00 01 add %i0, %g1, %i0 <== NOT EXECUTED 202c534: 90 02 00 18 add %o0, %i0, %o0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 202c538: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 <== NOT EXECUTED 202c53c: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 202c540: 02 80 00 10 be 202c580 <== NOT EXECUTED 202c544: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 202c548: 02 80 00 14 be 202c598 <== NOT EXECUTED 202c54c: 01 00 00 00 nop <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) 202c550: c2 02 20 28 ld [ %o0 + 0x28 ], %g1 <== NOT EXECUTED 202c554: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 202c558: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202c55c: 02 80 00 15 be 202c5b0 <== NOT EXECUTED 202c560: 93 2e 60 10 sll %i1, 0x10, %o1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); 202c564: 95 2e a0 10 sll %i2, 0x10, %o2 <== NOT EXECUTED 202c568: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED 202c56c: 95 32 a0 10 srl %o2, 0x10, %o2 <== NOT EXECUTED 202c570: 9f c0 40 00 call %g1 <== NOT EXECUTED 202c574: 90 02 20 1c add %o0, 0x1c, %o0 <== NOT EXECUTED } 202c578: 81 c7 e0 08 ret <== NOT EXECUTED 202c57c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED { rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 202c580: 40 00 71 b1 call 2048c44 <__errno> <== NOT EXECUTED 202c584: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202c588: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED 202c58c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202c590: 81 c7 e0 08 ret <== NOT EXECUTED 202c594: 81 e8 00 00 restore <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 202c598: 40 00 71 ab call 2048c44 <__errno> <== NOT EXECUTED 202c59c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202c5a0: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 202c5a4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202c5a8: 81 c7 e0 08 ret <== NOT EXECUTED 202c5ac: 81 e8 00 00 restore <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 202c5b0: 40 00 71 a5 call 2048c44 <__errno> <== NOT EXECUTED 202c5b4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202c5b8: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 202c5bc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202c5c0: 81 c7 e0 08 ret <== NOT EXECUTED 202c5c4: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02045090 : int fcntl( int fd, int cmd, ... ) { 2045090: 9d e3 bf 90 save %sp, -112, %sp int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 2045094: 03 00 81 bb sethi %hi(0x206ec00), %g1 2045098: c2 00 62 f4 ld [ %g1 + 0x2f4 ], %g1 ! 206eef4 ... ) { int ret; va_list ap; va_start( ap, cmd ); 204509c: 84 07 a0 4c add %fp, 0x4c, %g2 20450a0: f4 27 a0 4c st %i2, [ %fp + 0x4c ] 20450a4: f6 27 a0 50 st %i3, [ %fp + 0x50 ] 20450a8: f8 27 a0 54 st %i4, [ %fp + 0x54 ] 20450ac: fa 27 a0 58 st %i5, [ %fp + 0x58 ] int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 20450b0: 80 a6 00 01 cmp %i0, %g1 20450b4: 1a 80 00 7a bcc 204529c <== NEVER TAKEN 20450b8: c4 27 bf fc st %g2, [ %fp + -4 ] iop = rtems_libio_iop( fd ); 20450bc: 21 00 81 cc sethi %hi(0x2073000), %l0 20450c0: c6 04 20 d4 ld [ %l0 + 0xd4 ], %g3 ! 20730d4 20450c4: 89 2e 20 06 sll %i0, 6, %g4 20450c8: 93 2e 20 03 sll %i0, 3, %o1 20450cc: 92 02 40 04 add %o1, %g4, %o1 20450d0: 92 00 c0 09 add %g3, %o1, %o1 rtems_libio_check_is_open(iop); 20450d4: d0 02 60 18 ld [ %o1 + 0x18 ], %o0 20450d8: 80 8a 21 00 btst 0x100, %o0 20450dc: 02 80 00 70 be 204529c <== NEVER TAKEN 20450e0: 80 a6 60 09 cmp %i1, 9 /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { 20450e4: 08 80 00 08 bleu 2045104 20450e8: 89 2e 60 02 sll %i1, 2, %g4 errno = ENOTSUP; ret = -1; break; default: errno = EINVAL; 20450ec: 40 00 0e d6 call 2048c44 <__errno> 20450f0: b0 10 3f ff mov -1, %i0 20450f4: 82 10 20 16 mov 0x16, %g1 20450f8: c2 22 00 00 st %g1, [ %o0 ] 20450fc: 81 c7 e0 08 ret 2045100: 81 e8 00 00 restore /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { 2045104: 1b 00 81 14 sethi %hi(0x2045000), %o5 2045108: 9a 13 60 68 or %o5, 0x68, %o5 ! 2045068 204510c: c8 03 40 04 ld [ %o5 + %g4 ], %g4 2045110: 81 c1 00 00 jmp %g4 2045114: 01 00 00 00 nop errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP; 2045118: 40 00 0e cb call 2048c44 <__errno> 204511c: b0 10 3f ff mov -1, %i0 ! ffffffff 2045120: 82 10 20 86 mov 0x86, %g1 2045124: c2 22 00 00 st %g1, [ %o0 ] 2045128: 81 c7 e0 08 ret 204512c: 81 e8 00 00 restore case F_GETFL: /* more flags (cloexec) */ ret = rtems_libio_to_fcntl_flags( iop->flags ); break; case F_SETFL: flags = rtems_libio_fcntl_flags( va_arg( ap, int ) ); 2045130: d0 00 80 00 ld [ %g2 ], %o0 2045134: 7f ff 0f 53 call 2008e80 2045138: d2 27 bf f4 st %o1, [ %fp + -12 ] /* * XXX If we are turning on append, should we seek to the end? */ iop->flags = (iop->flags & ~mask) | (flags & mask); 204513c: d2 07 bf f4 ld [ %fp + -12 ], %o1 2045140: 90 0a 22 01 and %o0, 0x201, %o0 2045144: c2 02 60 18 ld [ %o1 + 0x18 ], %g1 2045148: b0 10 20 00 clr %i0 204514c: 82 08 7d fe and %g1, -514, %g1 2045150: 82 12 00 01 or %o0, %g1, %g1 2045154: c2 22 60 18 st %g1, [ %o1 + 0x18 ] * If we got this far successfully, then we give the optional * filesystem specific handler a chance to process this. */ if (ret >= 0) { if (iop->handlers->fcntl_h) { 2045158: c2 02 60 40 ld [ %o1 + 0x40 ], %g1 204515c: c2 00 60 30 ld [ %g1 + 0x30 ], %g1 2045160: 80 a0 60 00 cmp %g1, 0 2045164: 02 80 00 52 be 20452ac <== NEVER TAKEN 2045168: 01 00 00 00 nop int err = (*iop->handlers->fcntl_h)( cmd, iop ); 204516c: 9f c0 40 00 call %g1 2045170: 90 10 00 19 mov %i1, %o0 if (err) { 2045174: b2 92 20 00 orcc %o0, 0, %i1 2045178: 12 80 00 04 bne 2045188 <== NEVER TAKEN 204517c: 01 00 00 00 nop va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 2045180: 81 c7 e0 08 ret 2045184: 81 e8 00 00 restore if (ret >= 0) { if (iop->handlers->fcntl_h) { int err = (*iop->handlers->fcntl_h)( cmd, iop ); if (err) { errno = err; 2045188: 40 00 0e af call 2048c44 <__errno> <== NOT EXECUTED 204518c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2045190: f2 22 00 00 st %i1, [ %o0 ] <== NOT EXECUTED va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 2045194: 81 c7 e0 08 ret <== NOT EXECUTED 2045198: 81 e8 00 00 restore <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; break; case F_GETFL: /* more flags (cloexec) */ ret = rtems_libio_to_fcntl_flags( iop->flags ); 204519c: 7f ff 0e 89 call 2008bc0 20451a0: d2 27 bf f4 st %o1, [ %fp + -12 ] 20451a4: d2 07 bf f4 ld [ %fp + -12 ], %o1 20451a8: b0 10 00 08 mov %o0, %i0 /* * If we got this far successfully, then we give the optional * filesystem specific handler a chance to process this. */ if (ret >= 0) { 20451ac: 80 a6 20 00 cmp %i0, 0 20451b0: 36 bf ff eb bge,a 204515c <== ALWAYS TAKEN 20451b4: c2 02 60 40 ld [ %o1 + 0x40 ], %g1 va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 20451b8: 81 c7 e0 08 ret <== NOT EXECUTED 20451bc: 81 e8 00 00 restore <== NOT EXECUTED * 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 ) ) 20451c0: c2 00 80 00 ld [ %g2 ], %g1 20451c4: 80 a0 60 00 cmp %g1, 0 20451c8: 22 80 00 2c be,a 2045278 <== NEVER TAKEN 20451cc: 90 0a 37 ff and %o0, -2049, %o0 <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; 20451d0: 90 12 28 00 or %o0, 0x800, %o0 20451d4: b0 10 20 00 clr %i0 20451d8: 10 bf ff e0 b 2045158 20451dc: d0 22 60 18 st %o0, [ %o1 + 0x18 ] diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); break; case F_GETFD: /* get f_flags */ ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0); 20451e0: b1 32 20 0b srl %o0, 0xb, %i0 20451e4: 10 bf ff dd b 2045158 20451e8: b0 0e 20 01 and %i0, 1, %i0 * This switch should contain all the cases from POSIX. */ switch ( cmd ) { case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); 20451ec: c4 00 80 00 ld [ %g2 ], %g2 if ( fd2 ) 20451f0: 80 a0 a0 00 cmp %g2, 0 20451f4: 02 80 00 30 be 20452b4 <== ALWAYS TAKEN 20451f8: 80 a0 40 02 cmp %g1, %g2 diop = rtems_libio_iop( fd2 ); 20451fc: b0 10 20 00 clr %i0 <== NOT EXECUTED 2045200: 18 80 00 21 bgu 2045284 <== NOT EXECUTED 2045204: 82 10 20 00 clr %g1 <== NOT EXECUTED } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 2045208: c4 02 60 1c ld [ %o1 + 0x1c ], %g2 ret = -1; break; } } diop->handlers = iop->handlers; 204520c: da 02 60 40 ld [ %o1 + 0x40 ], %o5 diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 2045210: c4 20 60 1c st %g2, [ %g1 + 0x1c ] 2045214: c4 02 60 20 ld [ %o1 + 0x20 ], %g2 break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; 2045218: c8 02 60 3c ld [ %o1 + 0x3c ], %g4 diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 204521c: c4 20 60 20 st %g2, [ %g1 + 0x20 ] 2045220: c4 02 60 24 ld [ %o1 + 0x24 ], %g2 ret = (int) (diop - rtems_libio_iops); 2045224: 86 26 00 03 sub %i0, %g3, %g3 } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 2045228: c4 20 60 24 st %g2, [ %g1 + 0x24 ] 204522c: c4 02 60 28 ld [ %o1 + 0x28 ], %g2 ret = (int) (diop - rtems_libio_iops); 2045230: 87 38 e0 03 sra %g3, 3, %g3 } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 2045234: c4 20 60 28 st %g2, [ %g1 + 0x28 ] 2045238: c4 02 60 2c ld [ %o1 + 0x2c ], %g2 ret = -1; break; } } diop->handlers = iop->handlers; 204523c: da 20 60 40 st %o5, [ %g1 + 0x40 ] diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 2045240: c4 20 60 2c st %g2, [ %g1 + 0x2c ] ret = (int) (diop - rtems_libio_iops); 2045244: 85 28 e0 06 sll %g3, 6, %g2 break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; 2045248: c8 20 60 3c st %g4, [ %g1 + 0x3c ] diop->flags = iop->flags; 204524c: d0 20 60 18 st %o0, [ %g1 + 0x18 ] diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); 2045250: 83 28 e0 03 sll %g3, 3, %g1 2045254: 82 20 80 01 sub %g2, %g1, %g1 2045258: 85 28 60 06 sll %g1, 6, %g2 204525c: 82 00 40 02 add %g1, %g2, %g1 2045260: 82 00 40 03 add %g1, %g3, %g1 2045264: b1 28 60 0f sll %g1, 0xf, %i0 2045268: b0 26 00 01 sub %i0, %g1, %i0 204526c: b1 2e 20 03 sll %i0, 3, %i0 2045270: 10 bf ff cf b 20451ac 2045274: b0 06 00 03 add %i0, %g3, %i0 */ if ( va_arg( ap, int ) ) iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; 2045278: b0 10 20 00 clr %i0 <== NOT EXECUTED 204527c: 10 bf ff b7 b 2045158 <== NOT EXECUTED 2045280: d0 22 60 18 st %o0, [ %o1 + 0x18 ] <== NOT EXECUTED switch ( cmd ) { case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); if ( fd2 ) diop = rtems_libio_iop( fd2 ); 2045284: 83 28 a0 06 sll %g2, 6, %g1 <== NOT EXECUTED 2045288: 85 28 a0 03 sll %g2, 3, %g2 <== NOT EXECUTED 204528c: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED 2045290: 82 00 c0 01 add %g3, %g1, %g1 <== NOT EXECUTED 2045294: 10 bf ff dd b 2045208 <== NOT EXECUTED 2045298: b0 10 00 01 mov %g1, %i0 <== NOT EXECUTED int mask; int ret = 0; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 204529c: 40 00 0e 6a call 2048c44 <__errno> <== NOT EXECUTED 20452a0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20452a4: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED 20452a8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20452ac: 81 c7 e0 08 ret <== NOT EXECUTED 20452b0: 81 e8 00 00 restore <== NOT EXECUTED fd2 = va_arg( ap, int ); if ( fd2 ) diop = rtems_libio_iop( fd2 ); else { /* allocate a file control block */ diop = rtems_libio_allocate(); 20452b4: 7f ff 0e b2 call 2008d7c 20452b8: d2 27 bf f4 st %o1, [ %fp + -12 ] if ( diop == 0 ) { 20452bc: b0 10 3f ff mov -1, %i0 20452c0: 82 92 20 00 orcc %o0, 0, %g1 20452c4: 02 bf ff 8e be 20450fc <== NEVER TAKEN 20452c8: d2 07 bf f4 ld [ %fp + -12 ], %o1 20452cc: c6 04 20 d4 ld [ %l0 + 0xd4 ], %g3 20452d0: d0 02 60 18 ld [ %o1 + 0x18 ], %o0 20452d4: 10 bf ff cd b 2045208 20452d8: b0 10 00 01 mov %g1, %i0 =============================================================================== 0200399c : #include int fdatasync( int fd ) { 200399c: 9d e3 bf a0 save %sp, -96, %sp rtems_libio_t *iop; rtems_libio_check_fd( fd ); 20039a0: 03 00 80 7c sethi %hi(0x201f000), %g1 20039a4: c2 00 60 84 ld [ %g1 + 0x84 ], %g1 ! 201f084 20039a8: 80 a6 00 01 cmp %i0, %g1 20039ac: 1a 80 00 16 bcc 2003a04 <== NEVER TAKEN 20039b0: 03 00 80 7e sethi %hi(0x201f800), %g1 iop = rtems_libio_iop( fd ); 20039b4: d0 00 62 1c ld [ %g1 + 0x21c ], %o0 ! 201fa1c 20039b8: 83 2e 20 06 sll %i0, 6, %g1 20039bc: b1 2e 20 03 sll %i0, 3, %i0 20039c0: b0 06 00 01 add %i0, %g1, %i0 20039c4: 90 02 00 18 add %o0, %i0, %o0 rtems_libio_check_is_open(iop); 20039c8: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 20039cc: 80 88 61 00 btst 0x100, %g1 20039d0: 02 80 00 0d be 2003a04 <== NEVER TAKEN 20039d4: 80 88 60 04 btst 4, %g1 rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF ); 20039d8: 02 80 00 0b be 2003a04 20039dc: 01 00 00 00 nop /* * Now process the fdatasync(). */ if ( !iop->handlers->fdatasync_h ) 20039e0: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 20039e4: c2 00 60 2c ld [ %g1 + 0x2c ], %g1 20039e8: 80 a0 60 00 cmp %g1, 0 20039ec: 02 80 00 0c be 2003a1c <== ALWAYS TAKEN 20039f0: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fdatasync_h)( iop ); 20039f4: 9f c0 40 00 call %g1 <== NOT EXECUTED 20039f8: 01 00 00 00 nop <== NOT EXECUTED } 20039fc: 81 c7 e0 08 ret <== NOT EXECUTED 2003a00: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF ); 2003a04: 40 00 37 f7 call 20119e0 <__errno> 2003a08: b0 10 3f ff mov -1, %i0 2003a0c: 82 10 20 09 mov 9, %g1 2003a10: c2 22 00 00 st %g1, [ %o0 ] 2003a14: 81 c7 e0 08 ret 2003a18: 81 e8 00 00 restore /* * Now process the fdatasync(). */ if ( !iop->handlers->fdatasync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 2003a1c: 40 00 37 f1 call 20119e0 <__errno> 2003a20: b0 10 3f ff mov -1, %i0 2003a24: 82 10 20 86 mov 0x86, %g1 2003a28: c2 22 00 00 st %g1, [ %o0 ] 2003a2c: 81 c7 e0 08 ret 2003a30: 81 e8 00 00 restore =============================================================================== 0200afac : */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 200afac: 9d e3 bf 98 save %sp, -104, %sp ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 200afb0: 21 00 80 76 sethi %hi(0x201d800), %l0 200afb4: d0 04 20 5c ld [ %l0 + 0x5c ], %o0 ! 201d85c */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 200afb8: a2 10 00 18 mov %i0, %l1 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 200afbc: 92 10 20 00 clr %o1 200afc0: 94 10 20 00 clr %o2 200afc4: 7f ff ee 44 call 20068d4 200afc8: b0 10 3f fc mov -4, %i0 200afcc: 80 a2 20 00 cmp %o0, 0 200afd0: 12 80 00 dd bne 200b344 <== ALWAYS TAKEN 200afd4: 01 00 00 00 nop RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL) return -EINTR; pipe = *pipep; 200afd8: e4 04 40 00 ld [ %l1 ], %l2 <== NOT EXECUTED if (pipe == NULL) { 200afdc: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED 200afe0: 02 80 00 4a be 200b108 <== NOT EXECUTED 200afe4: 01 00 00 00 nop <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 200afe8: d0 04 a0 28 ld [ %l2 + 0x28 ], %o0 <== NOT EXECUTED 200afec: 92 10 20 00 clr %o1 <== NOT EXECUTED 200aff0: 7f ff ee 39 call 20068d4 <== NOT EXECUTED 200aff4: 94 10 20 00 clr %o2 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 200aff8: c2 04 40 00 ld [ %l1 ], %g1 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 200affc: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED 200b000: b0 40 3f ff addx %g0, -1, %i0 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 200b004: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 200b008: b0 0e 20 04 and %i0, 4, %i0 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 200b00c: 02 80 00 bb be 200b2f8 <== NOT EXECUTED 200b010: b0 06 3f fc add %i0, -4, %i0 <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 200b014: 7f ff ee 77 call 20069f0 <== NOT EXECUTED 200b018: d0 04 20 5c ld [ %l0 + 0x5c ], %o0 <== NOT EXECUTED pipe_control_t *pipe; unsigned int prevCounter; int err; err = pipe_new(pipep); if (err) 200b01c: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200b020: 12 80 00 c9 bne 200b344 <== NOT EXECUTED 200b024: 01 00 00 00 nop <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { 200b028: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED 200b02c: 82 08 60 06 and %g1, 6, %g1 <== NOT EXECUTED 200b030: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED 200b034: 02 80 00 8b be 200b260 <== NOT EXECUTED 200b038: e0 04 40 00 ld [ %l1 ], %l0 <== NOT EXECUTED 200b03c: 80 a0 60 06 cmp %g1, 6 <== NOT EXECUTED 200b040: 02 80 00 73 be 200b20c <== NOT EXECUTED 200b044: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 200b048: 22 80 00 07 be,a 200b064 <== NOT EXECUTED 200b04c: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED if (pipe->Writers ++ == 0) PIPE_WAKEUPREADERS(pipe); break; } PIPE_UNLOCK(pipe); 200b050: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED 200b054: 7f ff ee 67 call 20069f0 <== NOT EXECUTED 200b058: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; 200b05c: 81 c7 e0 08 ret <== NOT EXECUTED 200b060: 81 e8 00 00 restore <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; 200b064: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 200b068: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; 200b06c: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 200b070: c6 24 20 10 st %g3, [ %l0 + 0x10 ] <== NOT EXECUTED 200b074: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200b078: 02 80 00 b5 be 200b34c <== NOT EXECUTED 200b07c: c4 24 20 20 st %g2, [ %l0 + 0x20 ] <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); if (pipe->Writers == 0) { 200b080: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED 200b084: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200b088: 32 bf ff f3 bne,a 200b054 <== NOT EXECUTED 200b08c: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED /* Not an error */ if (LIBIO_NODELAY(iop)) 200b090: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED 200b094: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 200b098: 32 bf ff ef bne,a 200b054 <== NOT EXECUTED 200b09c: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED break; prevCounter = pipe->writerCounter; 200b0a0: 10 80 00 0c b 200b0d0 <== NOT EXECUTED 200b0a4: e4 04 20 24 ld [ %l0 + 0x24 ], %l2 <== NOT EXECUTED /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); if (! PIPE_READWAIT(pipe)) goto out_error; if (! PIPE_LOCK(pipe)) 200b0a8: 92 10 20 00 clr %o1 <== NOT EXECUTED 200b0ac: 7f ff ee 0a call 20068d4 <== NOT EXECUTED 200b0b0: 94 10 20 00 clr %o2 <== NOT EXECUTED 200b0b4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200b0b8: 12 80 00 0f bne 200b0f4 <== NOT EXECUTED 200b0bc: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->writerCounter); 200b0c0: c2 04 20 24 ld [ %l0 + 0x24 ], %g1 <== NOT EXECUTED 200b0c4: 80 a0 40 12 cmp %g1, %l2 <== NOT EXECUTED 200b0c8: 32 bf ff e3 bne,a 200b054 <== NOT EXECUTED 200b0cc: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED prevCounter = pipe->writerCounter; err = -EINTR; /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); 200b0d0: 7f ff ee 48 call 20069f0 <== NOT EXECUTED 200b0d4: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 200b0d8: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED 200b0dc: 40 00 08 66 call 200d274 <== NOT EXECUTED 200b0e0: 92 10 20 00 clr %o1 <== NOT EXECUTED 200b0e4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200b0e8: 22 bf ff f0 be,a 200b0a8 <== NOT EXECUTED 200b0ec: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); break; } PIPE_UNLOCK(pipe); return 0; 200b0f0: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED out_error: pipe_release(pipep, iop); 200b0f4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 200b0f8: 7f ff ff 5c call 200ae68 <== NOT EXECUTED 200b0fc: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED return err; } 200b100: 81 c7 e0 08 ret <== NOT EXECUTED 200b104: 81 e8 00 00 restore <== NOT EXECUTED { static char c = 'a'; pipe_control_t *pipe; int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); 200b108: 7f ff df e1 call 200308c <== NOT EXECUTED 200b10c: 90 10 20 34 mov 0x34, %o0 <== NOT EXECUTED if (pipe == NULL) 200b110: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED 200b114: 02 80 00 a9 be 200b3b8 <== NOT EXECUTED 200b118: a8 10 00 12 mov %l2, %l4 <== NOT EXECUTED return err; memset(pipe, 0, sizeof(pipe_control_t)); pipe->Size = PIPE_BUF; 200b11c: 82 10 22 00 mov 0x200, %g1 <== NOT EXECUTED int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); if (pipe == NULL) return err; memset(pipe, 0, sizeof(pipe_control_t)); 200b120: c0 24 80 00 clr [ %l2 ] <== NOT EXECUTED 200b124: c0 24 a0 08 clr [ %l2 + 8 ] <== NOT EXECUTED 200b128: c0 24 a0 0c clr [ %l2 + 0xc ] <== NOT EXECUTED 200b12c: c0 24 a0 10 clr [ %l2 + 0x10 ] <== NOT EXECUTED 200b130: c0 24 a0 14 clr [ %l2 + 0x14 ] <== NOT EXECUTED 200b134: c0 24 a0 18 clr [ %l2 + 0x18 ] <== NOT EXECUTED 200b138: c0 24 a0 1c clr [ %l2 + 0x1c ] <== NOT EXECUTED 200b13c: c0 24 a0 20 clr [ %l2 + 0x20 ] <== NOT EXECUTED 200b140: c0 24 a0 24 clr [ %l2 + 0x24 ] <== NOT EXECUTED 200b144: c0 24 a0 28 clr [ %l2 + 0x28 ] <== NOT EXECUTED 200b148: c0 24 a0 2c clr [ %l2 + 0x2c ] <== NOT EXECUTED 200b14c: c0 24 a0 30 clr [ %l2 + 0x30 ] <== NOT EXECUTED pipe->Size = PIPE_BUF; 200b150: c2 24 a0 04 st %g1, [ %l2 + 4 ] <== NOT EXECUTED pipe->Buffer = malloc(pipe->Size); 200b154: 7f ff df ce call 200308c <== NOT EXECUTED 200b158: 90 10 22 00 mov 0x200, %o0 <== NOT EXECUTED if (! pipe->Buffer) 200b15c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200b160: 02 80 00 94 be 200b3b0 <== NOT EXECUTED 200b164: d0 24 80 00 st %o0, [ %l2 ] <== NOT EXECUTED goto err_buf; err = -ENOMEM; if (rtems_barrier_create( 200b168: 27 00 80 74 sethi %hi(0x201d000), %l3 <== NOT EXECUTED 200b16c: d0 4c e2 14 ldsb [ %l3 + 0x214 ], %o0 ! 201d214 <== NOT EXECUTED 200b170: 2b 14 12 5c sethi %hi(0x50497000), %l5 <== NOT EXECUTED 200b174: 82 15 62 00 or %l5, 0x200, %g1 ! 50497200 <== NOT EXECUTED 200b178: 92 10 20 00 clr %o1 <== NOT EXECUTED 200b17c: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 200b180: 94 10 20 00 clr %o2 <== NOT EXECUTED 200b184: 40 00 07 d3 call 200d0d0 <== NOT EXECUTED 200b188: 96 04 a0 2c add %l2, 0x2c, %o3 <== NOT EXECUTED 200b18c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200b190: 12 80 00 86 bne 200b3a8 <== NOT EXECUTED 200b194: d0 4c e2 14 ldsb [ %l3 + 0x214 ], %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( 200b198: 03 14 12 5d sethi %hi(0x50497400), %g1 <== NOT EXECUTED 200b19c: 82 10 63 00 or %g1, 0x300, %g1 ! 50497700 <== NOT EXECUTED 200b1a0: 92 10 20 00 clr %o1 <== NOT EXECUTED 200b1a4: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 200b1a8: 94 10 20 00 clr %o2 <== NOT EXECUTED 200b1ac: 40 00 07 c9 call 200d0d0 <== NOT EXECUTED 200b1b0: 96 04 a0 30 add %l2, 0x30, %o3 <== NOT EXECUTED 200b1b4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200b1b8: 12 80 00 7a bne 200b3a0 <== NOT EXECUTED 200b1bc: d0 4c e2 14 ldsb [ %l3 + 0x214 ], %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( 200b1c0: aa 15 63 00 or %l5, 0x300, %l5 <== NOT EXECUTED 200b1c4: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 200b1c8: 90 12 00 15 or %o0, %l5, %o0 <== NOT EXECUTED 200b1cc: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 200b1d0: 96 10 20 00 clr %o3 <== NOT EXECUTED 200b1d4: 7f ff ed 1f call 2006650 <== NOT EXECUTED 200b1d8: 98 04 a0 28 add %l2, 0x28, %o4 <== NOT EXECUTED 200b1dc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200b1e0: 12 80 00 6e bne 200b398 <== NOT EXECUTED 200b1e4: c2 0c e2 14 ldub [ %l3 + 0x214 ], %g1 <== NOT EXECUTED #ifdef RTEMS_POSIX_API pipe_interruptible(pipe); #endif *pipep = pipe; if (c ++ == 'z') 200b1e8: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED 200b1ec: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED 200b1f0: 83 38 60 18 sra %g1, 0x18, %g1 <== NOT EXECUTED 200b1f4: 80 a0 60 7a cmp %g1, 0x7a <== NOT EXECUTED 200b1f8: 12 bf ff 7c bne 200afe8 <== NOT EXECUTED 200b1fc: c4 2c e2 14 stb %g2, [ %l3 + 0x214 ] <== NOT EXECUTED c = 'a'; 200b200: 82 10 20 61 mov 0x61, %g1 <== NOT EXECUTED 200b204: 10 bf ff 79 b 200afe8 <== NOT EXECUTED 200b208: c2 2c e2 14 stb %g1, [ %l3 + 0x214 ] <== NOT EXECUTED } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) 200b20c: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; 200b210: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 200b214: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; 200b218: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 200b21c: c6 24 20 10 st %g3, [ %l0 + 0x10 ] <== NOT EXECUTED 200b220: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200b224: 02 80 00 54 be 200b374 <== NOT EXECUTED 200b228: c4 24 20 20 st %g2, [ %l0 + 0x20 ] <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; if (pipe->Writers ++ == 0) 200b22c: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; 200b230: c4 04 20 24 ld [ %l0 + 0x24 ], %g2 <== NOT EXECUTED if (pipe->Writers ++ == 0) 200b234: 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 ++; 200b238: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Writers ++ == 0) 200b23c: c6 24 20 14 st %g3, [ %l0 + 0x14 ] <== NOT EXECUTED 200b240: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200b244: 12 bf ff 83 bne 200b050 <== NOT EXECUTED 200b248: c4 24 20 24 st %g2, [ %l0 + 0x24 ] <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 200b24c: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED 200b250: 40 00 07 f2 call 200d218 <== NOT EXECUTED 200b254: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED break; } PIPE_UNLOCK(pipe); 200b258: 10 bf ff 7f b 200b054 <== NOT EXECUTED 200b25c: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED break; case LIBIO_FLAGS_WRITE: pipe->writerCounter ++; if (pipe->Writers ++ == 0) 200b260: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED } while (prevCounter == pipe->writerCounter); } break; case LIBIO_FLAGS_WRITE: pipe->writerCounter ++; 200b264: c4 04 20 24 ld [ %l0 + 0x24 ], %g2 <== NOT EXECUTED if (pipe->Writers ++ == 0) 200b268: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED } while (prevCounter == pipe->writerCounter); } break; case LIBIO_FLAGS_WRITE: pipe->writerCounter ++; 200b26c: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Writers ++ == 0) 200b270: c6 24 20 14 st %g3, [ %l0 + 0x14 ] <== NOT EXECUTED 200b274: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200b278: 02 80 00 3a be 200b360 <== NOT EXECUTED 200b27c: c4 24 20 24 st %g2, [ %l0 + 0x24 ] <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { 200b280: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 200b284: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200b288: 32 bf ff 73 bne,a 200b054 <== NOT EXECUTED 200b28c: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED 200b290: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED 200b294: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 200b298: 32 80 00 3c bne,a 200b388 <== NOT EXECUTED 200b29c: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED err = -ENXIO; goto out_error; } if (pipe->Readers == 0) { prevCounter = pipe->readerCounter; 200b2a0: 10 80 00 0c b 200b2d0 <== NOT EXECUTED 200b2a4: e4 04 20 20 ld [ %l0 + 0x20 ], %l2 <== NOT EXECUTED err = -EINTR; do { PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) goto out_error; if (! PIPE_LOCK(pipe)) 200b2a8: 92 10 20 00 clr %o1 <== NOT EXECUTED 200b2ac: 7f ff ed 8a call 20068d4 <== NOT EXECUTED 200b2b0: 94 10 20 00 clr %o2 <== NOT EXECUTED 200b2b4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200b2b8: 12 bf ff 8f bne 200b0f4 <== NOT EXECUTED 200b2bc: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->readerCounter); 200b2c0: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED 200b2c4: 80 a0 40 12 cmp %g1, %l2 <== NOT EXECUTED 200b2c8: 32 bf ff 63 bne,a 200b054 <== NOT EXECUTED 200b2cc: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED if (pipe->Readers == 0) { prevCounter = pipe->readerCounter; err = -EINTR; do { PIPE_UNLOCK(pipe); 200b2d0: 7f ff ed c8 call 20069f0 <== NOT EXECUTED 200b2d4: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 200b2d8: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED 200b2dc: 40 00 07 e6 call 200d274 <== NOT EXECUTED 200b2e0: 92 10 20 00 clr %o1 <== NOT EXECUTED 200b2e4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200b2e8: 22 bf ff f0 be,a 200b2a8 <== NOT EXECUTED 200b2ec: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); break; } PIPE_UNLOCK(pipe); return 0; 200b2f0: 10 bf ff 81 b 200b0f4 <== NOT EXECUTED 200b2f4: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) err = -EINTR; if (*pipep == NULL) { if (err) 200b2f8: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200b2fc: 12 80 00 06 bne 200b314 <== NOT EXECUTED 200b300: d0 04 20 5c ld [ %l0 + 0x5c ], %o0 <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 200b304: 7f ff ed bb call 20069f0 <== NOT EXECUTED 200b308: e4 24 40 00 st %l2, [ %l1 ] <== NOT EXECUTED err = pipe_new(pipep); if (err) return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { 200b30c: 10 bf ff 48 b 200b02c <== NOT EXECUTED 200b310: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { rtems_barrier_delete(pipe->readBarrier); 200b314: 40 00 07 a7 call 200d1b0 <== NOT EXECUTED 200b318: d0 04 a0 2c ld [ %l2 + 0x2c ], %o0 <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); 200b31c: 40 00 07 a5 call 200d1b0 <== NOT EXECUTED 200b320: d0 04 a0 30 ld [ %l2 + 0x30 ], %o0 <== NOT EXECUTED rtems_semaphore_delete(pipe->Semaphore); 200b324: 7f ff ed 3f call 2006820 <== NOT EXECUTED 200b328: d0 04 a0 28 ld [ %l2 + 0x28 ], %o0 <== NOT EXECUTED free(pipe->Buffer); 200b32c: 7f ff de 70 call 2002cec <== NOT EXECUTED 200b330: d0 04 80 00 ld [ %l2 ], %o0 <== NOT EXECUTED free(pipe); 200b334: 7f ff de 6e call 2002cec <== NOT EXECUTED 200b338: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 200b33c: 7f ff ed ad call 20069f0 <== NOT EXECUTED 200b340: d0 04 20 5c ld [ %l0 + 0x5c ], %o0 <== NOT EXECUTED 200b344: 81 c7 e0 08 ret 200b348: 81 e8 00 00 restore switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); 200b34c: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED 200b350: 40 00 07 b2 call 200d218 <== NOT EXECUTED 200b354: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED if (pipe->Writers == 0) { 200b358: 10 bf ff 4b b 200b084 <== NOT EXECUTED 200b35c: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED case LIBIO_FLAGS_WRITE: pipe->writerCounter ++; if (pipe->Writers ++ == 0) PIPE_WAKEUPREADERS(pipe); 200b360: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED 200b364: 40 00 07 ad call 200d218 <== NOT EXECUTED 200b368: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { 200b36c: 10 bf ff c6 b 200b284 <== NOT EXECUTED 200b370: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); 200b374: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED 200b378: 40 00 07 a8 call 200d218 <== NOT EXECUTED 200b37c: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED pipe->writerCounter ++; if (pipe->Writers ++ == 0) 200b380: 10 bf ff ac b 200b230 <== NOT EXECUTED 200b384: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED if (pipe->Writers ++ == 0) PIPE_WAKEUPREADERS(pipe); if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { PIPE_UNLOCK(pipe); 200b388: 7f ff ed 9a call 20069f0 <== NOT EXECUTED 200b38c: b0 10 3f fa mov -6, %i0 <== NOT EXECUTED err = -ENXIO; goto out_error; 200b390: 10 bf ff 5a b 200b0f8 <== NOT EXECUTED 200b394: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED if (c ++ == 'z') c = 'a'; return 0; err_sem: rtems_barrier_delete(pipe->writeBarrier); 200b398: 40 00 07 86 call 200d1b0 <== NOT EXECUTED 200b39c: d0 04 a0 30 ld [ %l2 + 0x30 ], %o0 <== NOT EXECUTED err_wbar: rtems_barrier_delete(pipe->readBarrier); 200b3a0: 40 00 07 84 call 200d1b0 <== NOT EXECUTED 200b3a4: d0 05 20 2c ld [ %l4 + 0x2c ], %o0 <== NOT EXECUTED err_rbar: free(pipe->Buffer); 200b3a8: 7f ff de 51 call 2002cec <== NOT EXECUTED 200b3ac: d0 05 00 00 ld [ %l4 ], %o0 <== NOT EXECUTED err_buf: free(pipe); 200b3b0: 7f ff de 4f call 2002cec <== NOT EXECUTED 200b3b4: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED 200b3b8: 10 bf ff e1 b 200b33c <== NOT EXECUTED 200b3bc: b0 10 3f f4 mov -12, %i0 <== NOT EXECUTED =============================================================================== 02003a64 : long fpathconf( int fd, int name ) { 2003a64: 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); 2003a68: 03 00 80 7c sethi %hi(0x201f000), %g1 2003a6c: c2 00 60 84 ld [ %g1 + 0x84 ], %g1 ! 201f084 2003a70: 80 a6 00 01 cmp %i0, %g1 2003a74: 1a 80 00 3d bcc 2003b68 2003a78: 03 00 80 7e sethi %hi(0x201f800), %g1 iop = rtems_libio_iop(fd); 2003a7c: c2 00 62 1c ld [ %g1 + 0x21c ], %g1 ! 201fa1c 2003a80: 85 2e 20 06 sll %i0, 6, %g2 2003a84: b1 2e 20 03 sll %i0, 3, %i0 2003a88: b0 06 00 02 add %i0, %g2, %i0 2003a8c: b0 00 40 18 add %g1, %i0, %i0 rtems_libio_check_is_open(iop); 2003a90: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 2003a94: 80 88 61 00 btst 0x100, %g1 2003a98: 02 80 00 34 be 2003b68 <== NEVER TAKEN 2003a9c: 80 a6 60 0b cmp %i1, 0xb * Now process the information request. */ the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; switch ( name ) { 2003aa0: 08 80 00 08 bleu 2003ac0 2003aa4: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 break; case _PC_SYNC_IO: return_value = the_limits->posix_sync_io; break; default: rtems_set_errno_and_return_minus_one( EINVAL ); 2003aa8: 40 00 37 ce call 20119e0 <__errno> 2003aac: b0 10 3f ff mov -1, %i0 2003ab0: 82 10 20 16 mov 0x16, %g1 2003ab4: c2 22 00 00 st %g1, [ %o0 ] break; } return return_value; } 2003ab8: 81 c7 e0 08 ret 2003abc: 81 e8 00 00 restore * Now process the information request. */ the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; switch ( name ) { 2003ac0: b3 2e 60 02 sll %i1, 2, %i1 2003ac4: 05 00 80 0e sethi %hi(0x2003800), %g2 2003ac8: 84 10 a2 34 or %g2, 0x234, %g2 ! 2003a34 2003acc: c4 00 80 19 ld [ %g2 + %i1 ], %g2 2003ad0: 81 c0 80 00 jmp %g2 2003ad4: 01 00 00 00 nop break; case _PC_ASYNC_IO: return_value = the_limits->posix_async_io; break; case _PC_PRIO_IO: return_value = the_limits->posix_prio_io; 2003ad8: f0 00 60 5c ld [ %g1 + 0x5c ], %i0 break; 2003adc: 81 c7 e0 08 ret 2003ae0: 81 e8 00 00 restore break; case _PC_VDISABLE: return_value = the_limits->posix_vdisable; break; case _PC_ASYNC_IO: return_value = the_limits->posix_async_io; 2003ae4: f0 00 60 50 ld [ %g1 + 0x50 ], %i0 break; 2003ae8: 81 c7 e0 08 ret 2003aec: 81 e8 00 00 restore break; case _PC_NO_TRUNC: return_value = the_limits->posix_no_trunc; break; case _PC_VDISABLE: return_value = the_limits->posix_vdisable; 2003af0: f0 00 60 64 ld [ %g1 + 0x64 ], %i0 break; 2003af4: 81 c7 e0 08 ret 2003af8: 81 e8 00 00 restore break; case _PC_CHOWN_RESTRICTED: return_value = the_limits->posix_chown_restrictions; break; case _PC_NO_TRUNC: return_value = the_limits->posix_no_trunc; 2003afc: f0 00 60 58 ld [ %g1 + 0x58 ], %i0 break; 2003b00: 81 c7 e0 08 ret 2003b04: 81 e8 00 00 restore break; case _PC_PIPE_BUF: return_value = the_limits->pipe_buf; break; case _PC_CHOWN_RESTRICTED: return_value = the_limits->posix_chown_restrictions; 2003b08: f0 00 60 54 ld [ %g1 + 0x54 ], %i0 break; 2003b0c: 81 c7 e0 08 ret 2003b10: 81 e8 00 00 restore break; case _PC_PATH_MAX: return_value = the_limits->path_max; break; case _PC_PIPE_BUF: return_value = the_limits->pipe_buf; 2003b14: f0 00 60 4c ld [ %g1 + 0x4c ], %i0 break; 2003b18: 81 c7 e0 08 ret 2003b1c: 81 e8 00 00 restore break; case _PC_NAME_MAX: return_value = the_limits->name_max; break; case _PC_PATH_MAX: return_value = the_limits->path_max; 2003b20: f0 00 60 48 ld [ %g1 + 0x48 ], %i0 break; 2003b24: 81 c7 e0 08 ret 2003b28: 81 e8 00 00 restore break; case _PC_MAX_INPUT: return_value = the_limits->max_input; break; case _PC_NAME_MAX: return_value = the_limits->name_max; 2003b2c: f0 00 60 44 ld [ %g1 + 0x44 ], %i0 break; 2003b30: 81 c7 e0 08 ret 2003b34: 81 e8 00 00 restore break; case _PC_MAX_CANON: return_value = the_limits->max_canon; break; case _PC_MAX_INPUT: return_value = the_limits->max_input; 2003b38: f0 00 60 40 ld [ %g1 + 0x40 ], %i0 break; 2003b3c: 81 c7 e0 08 ret 2003b40: 81 e8 00 00 restore switch ( name ) { case _PC_LINK_MAX: return_value = the_limits->link_max; break; case _PC_MAX_CANON: return_value = the_limits->max_canon; 2003b44: f0 00 60 3c ld [ %g1 + 0x3c ], %i0 break; 2003b48: 81 c7 e0 08 ret 2003b4c: 81 e8 00 00 restore the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; switch ( name ) { case _PC_LINK_MAX: return_value = the_limits->link_max; 2003b50: f0 00 60 38 ld [ %g1 + 0x38 ], %i0 break; 2003b54: 81 c7 e0 08 ret 2003b58: 81 e8 00 00 restore break; case _PC_PRIO_IO: return_value = the_limits->posix_prio_io; break; case _PC_SYNC_IO: return_value = the_limits->posix_sync_io; 2003b5c: f0 00 60 60 ld [ %g1 + 0x60 ], %i0 break; 2003b60: 81 c7 e0 08 ret 2003b64: 81 e8 00 00 restore rtems_libio_t *iop; rtems_filesystem_limits_and_options_t *the_limits; rtems_libio_check_fd(fd); iop = rtems_libio_iop(fd); rtems_libio_check_is_open(iop); 2003b68: 40 00 37 9e call 20119e0 <__errno> 2003b6c: b0 10 3f ff mov -1, %i0 2003b70: 82 10 20 09 mov 9, %g1 2003b74: c2 22 00 00 st %g1, [ %o0 ] 2003b78: 81 c7 e0 08 ret 2003b7c: 81 e8 00 00 restore =============================================================================== 02002cec : void free( void *ptr ) { MSBUMP(free_calls, 1); 2002cec: 9d e3 bf a0 save %sp, -96, %sp 2002cf0: 03 00 80 76 sethi %hi(0x201d800), %g1 2002cf4: 82 10 61 f0 or %g1, 0x1f0, %g1 ! 201d9f0 2002cf8: c4 00 60 0c ld [ %g1 + 0xc ], %g2 2002cfc: b2 10 00 18 mov %i0, %i1 2002d00: 84 00 a0 01 inc %g2 if ( !ptr ) 2002d04: 80 a6 20 00 cmp %i0, 0 2002d08: 02 80 00 15 be 2002d5c 2002d0c: 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()) && 2002d10: 03 00 80 77 sethi %hi(0x201dc00), %g1 2002d14: c2 00 61 50 ld [ %g1 + 0x150 ], %g1 ! 201dd50 <_System_state_Current> 2002d18: 80 a0 60 03 cmp %g1, 3 2002d1c: 02 80 00 17 be 2002d78 <== ALWAYS TAKEN 2002d20: 03 00 80 75 sethi %hi(0x201d400), %g1 #endif /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 2002d24: c2 00 63 38 ld [ %g1 + 0x338 ], %g1 ! 201d738 2002d28: 80 a0 60 00 cmp %g1, 0 2002d2c: 02 80 00 06 be 2002d44 <== ALWAYS TAKEN 2002d30: 21 00 80 74 sethi %hi(0x201d000), %l0 (*rtems_malloc_statistics_helpers->at_free)(ptr); 2002d34: c2 00 60 08 ld [ %g1 + 8 ], %g1 <== NOT EXECUTED 2002d38: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002d3c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) { 2002d40: 21 00 80 74 sethi %hi(0x201d000), %l0 <== NOT EXECUTED 2002d44: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 ! 201d050 2002d48: 40 00 16 29 call 20085ec <_Protected_heap_Free> 2002d4c: 92 10 00 19 mov %i1, %o1 2002d50: 80 8a 20 ff btst 0xff, %o0 2002d54: 02 80 00 04 be 2002d64 <== NEVER TAKEN 2002d58: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 2002d5c: 81 c7 e0 08 ret 2002d60: 81 e8 00 00 restore printk( "Program heap: free of bad pointer %p -- range %p - %p \n", 2002d64: 31 00 80 6f sethi %hi(0x201bc00), %i0 <== NOT EXECUTED 2002d68: f6 00 60 1c ld [ %g1 + 0x1c ], %i3 <== NOT EXECUTED 2002d6c: f4 00 60 18 ld [ %g1 + 0x18 ], %i2 <== NOT EXECUTED 2002d70: 40 00 03 f2 call 2003d38 <== NOT EXECUTED 2002d74: 91 ee 23 78 restore %i0, 0x378, %o0 <== NOT EXECUTED /* * Do not attempt to free memory if in a critical section or ISR. */ if ( _System_state_Is_up(_System_state_Get()) && 2002d78: 40 00 00 62 call 2002f00 2002d7c: 01 00 00 00 nop 2002d80: 80 8a 20 ff btst 0xff, %o0 2002d84: 12 bf ff e8 bne 2002d24 <== ALWAYS TAKEN 2002d88: 03 00 80 75 sethi %hi(0x201d400), %g1 !malloc_is_system_state_OK() ) { malloc_deferred_free(ptr); 2002d8c: 40 00 00 6f call 2002f48 <== NOT EXECUTED 2002d90: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0202dcc4 : * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { 202dcc4: 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 202dcc8: 03 00 81 cc sethi %hi(0x2073000), %g1 <== NOT EXECUTED 202dccc: 82 10 61 2c or %g1, 0x12c, %g1 ! 207312c <== NOT EXECUTED 202dcd0: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 202dcd4: 02 80 00 18 be 202dd34 <== NOT EXECUTED 202dcd8: 01 00 00 00 nop <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); 202dcdc: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED 202dce0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202dce4: 22 80 00 09 be,a 202dd08 <== NOT EXECUTED 202dce8: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED 202dcec: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 202dcf0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202dcf4: 22 80 00 05 be,a 202dd08 <== NOT EXECUTED 202dcf8: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED 202dcfc: 9f c0 40 00 call %g1 <== NOT EXECUTED 202dd00: 90 06 20 04 add %i0, 4, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); 202dd04: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED 202dd08: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202dd0c: 02 80 00 08 be 202dd2c <== NOT EXECUTED 202dd10: 01 00 00 00 nop <== NOT EXECUTED 202dd14: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 202dd18: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202dd1c: 02 80 00 04 be 202dd2c <== NOT EXECUTED 202dd20: 01 00 00 00 nop <== NOT EXECUTED 202dd24: 9f c0 40 00 call %g1 <== NOT EXECUTED 202dd28: 90 06 20 18 add %i0, 0x18, %o0 <== NOT EXECUTED free(env); 202dd2c: 7f ff 6a ec call 20088dc <== NOT EXECUTED 202dd30: 81 e8 00 00 restore <== NOT EXECUTED 202dd34: 81 c7 e0 08 ret <== NOT EXECUTED 202dd38: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0201adf4 : int fstat( int fd, struct stat *sbuf ) { 201adf4: 9d e3 bf a0 save %sp, -96, %sp /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) 201adf8: 80 a6 60 00 cmp %i1, 0 201adfc: 02 80 00 3b be 201aee8 201ae00: 03 00 80 74 sethi %hi(0x201d000), %g1 /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); 201ae04: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 ! 201d044 201ae08: 80 a6 00 01 cmp %i0, %g1 201ae0c: 1a 80 00 2b bcc 201aeb8 201ae10: 03 00 80 76 sethi %hi(0x201d800), %g1 201ae14: d0 00 61 d8 ld [ %g1 + 0x1d8 ], %o0 ! 201d9d8 201ae18: 83 2e 20 06 sll %i0, 6, %g1 201ae1c: b1 2e 20 03 sll %i0, 3, %i0 201ae20: b0 06 00 01 add %i0, %g1, %i0 201ae24: 90 02 00 18 add %o0, %i0, %o0 rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); 201ae28: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 201ae2c: 80 88 61 00 btst 0x100, %g1 201ae30: 02 80 00 22 be 201aeb8 <== NEVER TAKEN 201ae34: 01 00 00 00 nop if ( !iop->handlers ) 201ae38: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 201ae3c: 80 a0 60 00 cmp %g1, 0 201ae40: 02 80 00 1e be 201aeb8 <== NEVER TAKEN 201ae44: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h ) 201ae48: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 201ae4c: 80 a0 60 00 cmp %g1, 0 201ae50: 02 80 00 20 be 201aed0 <== NEVER TAKEN 201ae54: 92 10 00 19 mov %i1, %o1 /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); 201ae58: c0 26 40 00 clr [ %i1 ] 201ae5c: c0 26 60 04 clr [ %i1 + 4 ] 201ae60: c0 26 60 08 clr [ %i1 + 8 ] 201ae64: c0 26 60 0c clr [ %i1 + 0xc ] 201ae68: c0 26 60 10 clr [ %i1 + 0x10 ] 201ae6c: c0 26 60 14 clr [ %i1 + 0x14 ] 201ae70: c0 26 60 18 clr [ %i1 + 0x18 ] 201ae74: c0 26 60 1c clr [ %i1 + 0x1c ] 201ae78: c0 26 60 20 clr [ %i1 + 0x20 ] 201ae7c: c0 26 60 24 clr [ %i1 + 0x24 ] 201ae80: c0 26 60 28 clr [ %i1 + 0x28 ] 201ae84: c0 26 60 2c clr [ %i1 + 0x2c ] 201ae88: c0 26 60 30 clr [ %i1 + 0x30 ] 201ae8c: c0 26 60 34 clr [ %i1 + 0x34 ] 201ae90: c0 26 60 38 clr [ %i1 + 0x38 ] 201ae94: c0 26 60 3c clr [ %i1 + 0x3c ] 201ae98: c0 26 60 40 clr [ %i1 + 0x40 ] 201ae9c: c0 26 60 44 clr [ %i1 + 0x44 ] return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); 201aea0: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 201aea4: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 201aea8: 9f c0 40 00 call %g1 201aeac: 90 02 20 1c add %o0, 0x1c, %o0 } 201aeb0: 81 c7 e0 08 ret 201aeb4: 91 e8 00 08 restore %g0, %o0, %o0 iop = rtems_libio_iop( fd ); rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 201aeb8: 7f ff d5 66 call 2010450 <__errno> 201aebc: b0 10 3f ff mov -1, %i0 201aec0: 82 10 20 09 mov 9, %g1 201aec4: c2 22 00 00 st %g1, [ %o0 ] 201aec8: 81 c7 e0 08 ret 201aecc: 81 e8 00 00 restore if ( !iop->handlers->fstat_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 201aed0: 7f ff d5 60 call 2010450 <__errno> <== NOT EXECUTED 201aed4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 201aed8: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 201aedc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 201aee0: 81 c7 e0 08 ret <== NOT EXECUTED 201aee4: 81 e8 00 00 restore <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) rtems_set_errno_and_return_minus_one( EFAULT ); 201aee8: 7f ff d5 5a call 2010450 <__errno> 201aeec: b0 10 3f ff mov -1, %i0 201aef0: 82 10 20 0e mov 0xe, %g1 201aef4: c2 22 00 00 st %g1, [ %o0 ] 201aef8: 81 c7 e0 08 ret 201aefc: 81 e8 00 00 restore =============================================================================== 0202c6ec : #include int fsync( int fd ) { 202c6ec: 9d e3 bf a0 save %sp, -96, %sp rtems_libio_t *iop; rtems_libio_check_fd( fd ); 202c6f0: 03 00 81 bb sethi %hi(0x206ec00), %g1 202c6f4: c2 00 62 f4 ld [ %g1 + 0x2f4 ], %g1 ! 206eef4 202c6f8: 80 a6 00 01 cmp %i0, %g1 202c6fc: 1a 80 00 17 bcc 202c758 <== NEVER TAKEN 202c700: 03 00 81 cc sethi %hi(0x2073000), %g1 iop = rtems_libio_iop( fd ); 202c704: d0 00 60 d4 ld [ %g1 + 0xd4 ], %o0 ! 20730d4 202c708: 83 2e 20 06 sll %i0, 6, %g1 202c70c: b1 2e 20 03 sll %i0, 3, %i0 202c710: b0 06 00 01 add %i0, %g1, %i0 202c714: 90 02 00 18 add %o0, %i0, %o0 rtems_libio_check_is_open(iop); 202c718: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 202c71c: 80 88 61 00 btst 0x100, %g1 202c720: 02 80 00 0e be 202c758 <== NEVER TAKEN 202c724: 01 00 00 00 nop /* * Now process the fsync(). */ if ( !iop->handlers ) 202c728: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 202c72c: 80 a0 60 00 cmp %g1, 0 202c730: 02 80 00 0a be 202c758 <== NEVER TAKEN 202c734: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fsync_h ) 202c738: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 202c73c: 80 a0 60 00 cmp %g1, 0 202c740: 02 80 00 0c be 202c770 202c744: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fsync_h)( iop ); 202c748: 9f c0 40 00 call %g1 202c74c: 01 00 00 00 nop } 202c750: 81 c7 e0 08 ret 202c754: 91 e8 00 08 restore %g0, %o0, %o0 /* * Now process the fsync(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 202c758: 40 00 71 3b call 2048c44 <__errno> <== NOT EXECUTED 202c75c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202c760: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED 202c764: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202c768: 81 c7 e0 08 ret <== NOT EXECUTED 202c76c: 81 e8 00 00 restore <== NOT EXECUTED if ( !iop->handlers->fsync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 202c770: 40 00 71 35 call 2048c44 <__errno> 202c774: b0 10 3f ff mov -1, %i0 202c778: 82 10 20 86 mov 0x86, %g1 202c77c: c2 22 00 00 st %g1, [ %o0 ] 202c780: 81 c7 e0 08 ret 202c784: 81 e8 00 00 restore =============================================================================== 0200c7f0 : int ftruncate( int fd, off_t length ) { 200c7f0: 9d e3 bf 88 save %sp, -120, %sp rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 200c7f4: 03 00 80 74 sethi %hi(0x201d000), %g1 200c7f8: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 ! 201d044 200c7fc: 80 a6 00 01 cmp %i0, %g1 200c800: 1a 80 00 2d bcc 200c8b4 <== NEVER TAKEN 200c804: 03 00 80 76 sethi %hi(0x201d800), %g1 iop = rtems_libio_iop( fd ); 200c808: c2 00 61 d8 ld [ %g1 + 0x1d8 ], %g1 ! 201d9d8 200c80c: 85 2e 20 06 sll %i0, 6, %g2 200c810: b1 2e 20 03 sll %i0, 3, %i0 200c814: b0 06 00 02 add %i0, %g2, %i0 200c818: b0 00 40 18 add %g1, %i0, %i0 rtems_libio_check_is_open(iop); 200c81c: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 200c820: 80 88 61 00 btst 0x100, %g1 200c824: 02 80 00 24 be 200c8b4 <== NEVER TAKEN 200c828: 80 88 60 04 btst 4, %g1 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 200c82c: 02 80 00 28 be 200c8cc <== NEVER TAKEN 200c830: 01 00 00 00 nop /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 200c834: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 200c838: c2 27 bf ec st %g1, [ %fp + -20 ] 200c83c: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 200c840: c2 27 bf f0 st %g1, [ %fp + -16 ] 200c844: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 200c848: c2 27 bf f4 st %g1, [ %fp + -12 ] 200c84c: c2 06 20 28 ld [ %i0 + 0x28 ], %g1 200c850: c2 27 bf f8 st %g1, [ %fp + -8 ] 200c854: c4 06 20 2c ld [ %i0 + 0x2c ], %g2 if ( !loc.ops->node_type_h ) 200c858: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 200c85c: 80 a0 60 00 cmp %g1, 0 200c860: 02 80 00 21 be 200c8e4 <== NEVER TAKEN 200c864: c4 27 bf fc st %g2, [ %fp + -4 ] rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) 200c868: 9f c0 40 00 call %g1 200c86c: 90 07 bf ec add %fp, -20, %o0 200c870: 80 a2 20 01 cmp %o0, 1 200c874: 02 80 00 22 be 200c8fc 200c878: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EISDIR ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 200c87c: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 200c880: 80 88 60 04 btst 4, %g1 200c884: 02 80 00 12 be 200c8cc <== NEVER TAKEN 200c888: 01 00 00 00 nop if ( !iop->handlers->ftruncate_h ) 200c88c: c2 06 20 40 ld [ %i0 + 0x40 ], %g1 200c890: c2 00 60 20 ld [ %g1 + 0x20 ], %g1 200c894: 80 a0 60 00 cmp %g1, 0 200c898: 02 80 00 13 be 200c8e4 <== NEVER TAKEN 200c89c: 90 10 00 18 mov %i0, %o0 rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->ftruncate_h)( iop, length ); 200c8a0: 92 10 00 19 mov %i1, %o1 200c8a4: 9f c0 40 00 call %g1 200c8a8: 94 10 00 1a mov %i2, %o2 } 200c8ac: 81 c7 e0 08 ret 200c8b0: 91 e8 00 08 restore %g0, %o0, %o0 rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 200c8b4: 40 00 0e e7 call 2010450 <__errno> <== NOT EXECUTED 200c8b8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200c8bc: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED 200c8c0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200c8c4: 81 c7 e0 08 ret <== NOT EXECUTED 200c8c8: 81 e8 00 00 restore <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) rtems_set_errno_and_return_minus_one( EISDIR ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 200c8cc: 40 00 0e e1 call 2010450 <__errno> <== NOT EXECUTED 200c8d0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200c8d4: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 200c8d8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200c8dc: 81 c7 e0 08 ret <== NOT EXECUTED 200c8e0: 81 e8 00 00 restore <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 200c8e4: 40 00 0e db call 2010450 <__errno> <== NOT EXECUTED 200c8e8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200c8ec: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 200c8f0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200c8f4: 81 c7 e0 08 ret <== NOT EXECUTED 200c8f8: 81 e8 00 00 restore <== NOT EXECUTED loc = iop->pathinfo; if ( !loc.ops->node_type_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) rtems_set_errno_and_return_minus_one( EISDIR ); 200c8fc: 40 00 0e d5 call 2010450 <__errno> 200c900: b0 10 3f ff mov -1, %i0 200c904: 82 10 20 15 mov 0x15, %g1 200c908: c2 22 00 00 st %g1, [ %o0 ] 200c90c: 81 c7 e0 08 ret 200c910: 81 e8 00 00 restore =============================================================================== 020028a0 : 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) { 20028a0: 03 00 80 85 sethi %hi(0x2021400), %g1 20028a4: c2 00 62 a0 ld [ %g1 + 0x2a0 ], %g1 ! 20216a0 20028a8: 80 a0 40 08 cmp %g1, %o0 20028ac: 18 80 00 05 bgu 20028c0 <== ALWAYS TAKEN 20028b0: 03 00 80 85 sethi %hi(0x2021400), %g1 if (minor < dtab->size && dtab->minor != NULL) { rtems_disk_device *dd = dtab->minor [minor]; if (dd != NULL && !lookup_only) { if (!dd->deleted) { ++dd->uses; 20028b4: 90 10 20 00 clr %o0 <== NOT EXECUTED return dd; } } return NULL; } 20028b8: 81 c3 e0 08 retl 20028bc: 01 00 00 00 nop 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) { 20028c0: c2 00 62 9c ld [ %g1 + 0x29c ], %g1 20028c4: 80 a0 60 00 cmp %g1, 0 20028c8: 22 bf ff fc be,a 20028b8 <== NEVER TAKEN 20028cc: 90 10 20 00 clr %o0 <== NOT EXECUTED rtems_disk_device_table *dtab = disktab + major; 20028d0: 91 2a 20 03 sll %o0, 3, %o0 20028d4: 84 00 40 08 add %g1, %o0, %g2 if (minor < dtab->size && dtab->minor != NULL) { 20028d8: c4 00 a0 04 ld [ %g2 + 4 ], %g2 20028dc: 80 a0 80 09 cmp %g2, %o1 20028e0: 28 bf ff f6 bleu,a 20028b8 <== NEVER TAKEN 20028e4: 90 10 20 00 clr %o0 <== NOT EXECUTED 20028e8: c2 00 40 08 ld [ %g1 + %o0 ], %g1 20028ec: 80 a0 60 00 cmp %g1, 0 20028f0: 02 bf ff f2 be 20028b8 <== NEVER TAKEN 20028f4: 90 10 20 00 clr %o0 rtems_disk_device *dd = dtab->minor [minor]; 20028f8: 93 2a 60 02 sll %o1, 2, %o1 20028fc: d0 00 40 09 ld [ %g1 + %o1 ], %o0 if (dd != NULL && !lookup_only) { 2002900: 80 a2 20 00 cmp %o0, 0 2002904: 02 bf ff ed be 20028b8 2002908: 80 8a a0 ff btst 0xff, %o2 200290c: 12 bf ff eb bne 20028b8 2002910: 01 00 00 00 nop if (!dd->deleted) { 2002914: c2 0a 20 30 ldub [ %o0 + 0x30 ], %g1 2002918: 80 a0 60 00 cmp %g1, 0 200291c: 32 bf ff e7 bne,a 20028b8 2002920: 90 10 20 00 clr %o0 ++dd->uses; 2002924: c2 02 20 14 ld [ %o0 + 0x14 ], %g1 2002928: 82 00 60 01 inc %g1 200292c: 81 c3 e0 08 retl 2002930: c2 22 20 14 st %g1, [ %o0 + 0x14 ] =============================================================================== 020626e8 : int getdents( int dd_fd, char *dd_buf, int dd_len ) { 20626e8: 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 ); 20626ec: 03 00 81 bb sethi %hi(0x206ec00), %g1 20626f0: c2 00 62 f4 ld [ %g1 + 0x2f4 ], %g1 ! 206eef4 20626f4: 80 a6 00 01 cmp %i0, %g1 20626f8: 1a 80 00 08 bcc 2062718 <== NEVER TAKEN 20626fc: a0 10 20 00 clr %l0 2062700: 03 00 81 cc sethi %hi(0x2073000), %g1 2062704: e0 00 60 d4 ld [ %g1 + 0xd4 ], %l0 ! 20730d4 2062708: 83 2e 20 06 sll %i0, 6, %g1 206270c: b1 2e 20 03 sll %i0, 3, %i0 2062710: b0 06 00 01 add %i0, %g1, %i0 2062714: a0 04 00 18 add %l0, %i0, %l0 /* * Make sure we are working on a directory */ loc = iop->pathinfo; 2062718: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 206271c: c2 27 bf ec st %g1, [ %fp + -20 ] 2062720: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 2062724: c2 27 bf f0 st %g1, [ %fp + -16 ] 2062728: c2 04 20 24 ld [ %l0 + 0x24 ], %g1 206272c: c2 27 bf f4 st %g1, [ %fp + -12 ] 2062730: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 2062734: c2 27 bf f8 st %g1, [ %fp + -8 ] 2062738: c4 04 20 2c ld [ %l0 + 0x2c ], %g2 if ( !loc.ops->node_type_h ) 206273c: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 2062740: 80 a0 60 00 cmp %g1, 0 2062744: 02 80 00 17 be 20627a0 <== NEVER TAKEN 2062748: c4 27 bf fc st %g2, [ %fp + -4 ] rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) 206274c: 9f c0 40 00 call %g1 2062750: 90 07 bf ec add %fp, -20, %o0 2062754: 80 a2 20 01 cmp %o0, 1 2062758: 12 80 00 0c bne 2062788 206275c: 01 00 00 00 nop /* * Return the number of bytes that were actually transfered as a result * of the read attempt. */ if ( !iop->handlers->read_h ) 2062760: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 2062764: c2 00 60 08 ld [ %g1 + 8 ], %g1 2062768: 80 a0 60 00 cmp %g1, 0 206276c: 02 80 00 0d be 20627a0 <== NEVER TAKEN 2062770: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); 2062774: 92 10 00 19 mov %i1, %o1 2062778: 9f c0 40 00 call %g1 206277c: 94 10 00 1a mov %i2, %o2 } 2062780: 81 c7 e0 08 ret 2062784: 91 e8 00 08 restore %g0, %o0, %o0 loc = iop->pathinfo; if ( !loc.ops->node_type_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 2062788: 7f ff 99 2f call 2048c44 <__errno> 206278c: b0 10 3f ff mov -1, %i0 2062790: 82 10 20 14 mov 0x14, %g1 2062794: c2 22 00 00 st %g1, [ %o0 ] 2062798: 81 c7 e0 08 ret 206279c: 81 e8 00 00 restore * Return the number of bytes that were actually transfered as a result * of the read attempt. */ if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 20627a0: 7f ff 99 29 call 2048c44 <__errno> <== NOT EXECUTED 20627a4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20627a8: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 20627ac: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20627b0: 81 c7 e0 08 ret <== NOT EXECUTED 20627b4: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0202c8cc : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getgid( void ) { 202c8cc: 03 00 81 bc sethi %hi(0x206f000), %g1 <== NOT EXECUTED 202c8d0: c2 00 63 24 ld [ %g1 + 0x324 ], %g1 ! 206f324 <== NOT EXECUTED return _POSIX_types_Gid; } 202c8d4: 81 c3 e0 08 retl <== NOT EXECUTED 202c8d8: d0 10 60 34 lduh [ %g1 + 0x34 ], %o0 <== NOT EXECUTED =============================================================================== 0202cfb8 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 202cfb8: 9d e3 bf a0 save %sp, -96, %sp FILE *fp; int match; init_etc_passwd_group(); 202cfbc: 7f ff ff b3 call 202ce88 202cfc0: 01 00 00 00 nop if ((fp = fopen("/etc/group", "r")) == NULL) { 202cfc4: 11 00 81 a5 sethi %hi(0x2069400), %o0 202cfc8: 13 00 81 a5 sethi %hi(0x2069400), %o1 202cfcc: 90 12 22 10 or %o0, 0x210, %o0 202cfd0: 40 00 71 c5 call 20496e4 202cfd4: 92 12 61 98 or %o1, 0x198, %o1 202cfd8: a0 92 20 00 orcc %o0, 0, %l0 202cfdc: 12 80 00 0b bne 202d008 <== ALWAYS TAKEN 202cfe0: 92 10 00 1a mov %i2, %o1 202cfe4: 30 80 00 27 b,a 202d080 <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(grp->gr_name, name) == 0); 202cfe8: 40 00 88 be call 204f2e0 202cfec: 92 10 00 18 mov %i0, %o1 202cff0: 80 a0 00 08 cmp %g0, %o0 202cff4: 82 60 3f ff subx %g0, -1, %g1 } else { match = (grp->gr_gid == gid); } if (match) { 202cff8: 80 a0 60 00 cmp %g1, 0 202cffc: 12 80 00 14 bne 202d04c 202d000: 90 10 00 10 mov %l0, %o0 if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { 202d004: 92 10 00 1a mov %i2, %o1 202d008: 94 10 00 1b mov %i3, %o2 202d00c: 96 10 00 1c mov %i4, %o3 202d010: 7f ff fe d1 call 202cb54 202d014: 90 10 00 10 mov %l0, %o0 202d018: 80 a2 20 00 cmp %o0, 0 202d01c: 02 80 00 11 be 202d060 <== NEVER TAKEN 202d020: 80 a6 20 00 cmp %i0, 0 errno = EINVAL; fclose(fp); return -1; } if (name) { 202d024: 32 bf ff f1 bne,a 202cfe8 <== ALWAYS TAKEN 202d028: d0 06 80 00 ld [ %i2 ], %o0 match = (strcmp(grp->gr_name, name) == 0); } else { match = (grp->gr_gid == gid); 202d02c: c2 16 a0 08 lduh [ %i2 + 8 ], %g1 <== NOT EXECUTED 202d030: 82 18 40 19 xor %g1, %i1, %g1 <== NOT EXECUTED 202d034: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED 202d038: 82 60 3f ff subx %g0, -1, %g1 <== NOT EXECUTED } if (match) { 202d03c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202d040: 02 bf ff f2 be 202d008 <== NOT EXECUTED 202d044: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED fclose(fp); 202d048: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 202d04c: 40 00 6f 56 call 2048da4 202d050: b0 10 20 00 clr %i0 *result = grp; 202d054: f4 27 40 00 st %i2, [ %i5 ] } } fclose(fp); errno = EINVAL; return -1; } 202d058: 81 c7 e0 08 ret 202d05c: 81 e8 00 00 restore errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { errno = EINVAL; 202d060: 40 00 6e f9 call 2048c44 <__errno> <== NOT EXECUTED 202d064: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202d068: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 202d06c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED fclose(fp); 202d070: 40 00 6f 4d call 2048da4 <== NOT EXECUTED 202d074: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return -1; 202d078: 81 c7 e0 08 ret <== NOT EXECUTED 202d07c: 81 e8 00 00 restore <== NOT EXECUTED int match; init_etc_passwd_group(); if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; 202d080: 40 00 6e f1 call 2048c44 <__errno> <== NOT EXECUTED 202d084: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202d088: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 202d08c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return -1; 202d090: 81 c7 e0 08 ret <== NOT EXECUTED 202d094: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0202ccd4 : return NULL; return p; } struct group *getgrent(void) { 202ccd4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (group_fp == NULL) 202ccd8: 03 00 81 cb sethi %hi(0x2072c00), %g1 <== NOT EXECUTED 202ccdc: d0 00 61 cc ld [ %g1 + 0x1cc ], %o0 ! 2072dcc <== NOT EXECUTED 202cce0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202cce4: 32 80 00 04 bne,a 202ccf4 <== NOT EXECUTED 202cce8: 31 00 81 cb sethi %hi(0x2072c00), %i0 <== NOT EXECUTED return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) return NULL; return &grent; } 202ccec: 81 c7 e0 08 ret <== NOT EXECUTED 202ccf0: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED struct group *getgrent(void) { if (group_fp == NULL) return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) 202ccf4: 15 00 81 cb sethi %hi(0x2072c00), %o2 <== NOT EXECUTED 202ccf8: 92 16 22 98 or %i0, 0x298, %o1 <== NOT EXECUTED 202ccfc: 94 12 a1 d0 or %o2, 0x1d0, %o2 <== NOT EXECUTED 202cd00: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 202cd04: 7f ff ff 94 call 202cb54 <== NOT EXECUTED 202cd08: b0 16 22 98 or %i0, 0x298, %i0 <== NOT EXECUTED 202cd0c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202cd10: 02 bf ff f7 be 202ccec <== NOT EXECUTED 202cd14: 01 00 00 00 nop <== NOT EXECUTED return NULL; return &grent; } 202cd18: 81 c7 e0 08 ret <== NOT EXECUTED 202cd1c: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0202d0cc : } struct group *getgrgid( gid_t gid ) { 202d0cc: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 202d0d0: 13 00 81 cb sethi %hi(0x2072c00), %o1 <== NOT EXECUTED 202d0d4: 91 2e 20 10 sll %i0, 0x10, %o0 <== NOT EXECUTED 202d0d8: 92 12 62 98 or %o1, 0x298, %o1 <== NOT EXECUTED 202d0dc: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED 202d0e0: 15 00 81 cb sethi %hi(0x2072c00), %o2 <== NOT EXECUTED 202d0e4: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 202d0e8: 94 12 a1 d0 or %o2, 0x1d0, %o2 <== NOT EXECUTED 202d0ec: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED 202d0f0: 7f ff ff ea call 202d098 <== NOT EXECUTED 202d0f4: b0 10 20 00 clr %i0 <== NOT EXECUTED 202d0f8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202d0fc: 22 80 00 02 be,a 202d104 <== NOT EXECUTED 202d100: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED return NULL; return p; } 202d104: 81 c7 e0 08 ret <== NOT EXECUTED 202d108: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0202d098 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 202d098: 84 10 00 0a mov %o2, %g2 <== NOT EXECUTED 202d09c: 82 10 00 0b mov %o3, %g1 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 202d0a0: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 202d0a4: 9a 10 00 0c mov %o4, %o5 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 202d0a8: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED 202d0ac: 96 10 00 02 mov %g2, %o3 <== NOT EXECUTED 202d0b0: 93 32 20 10 srl %o0, 0x10, %o1 <== NOT EXECUTED 202d0b4: 98 10 00 01 mov %g1, %o4 <== NOT EXECUTED 202d0b8: 90 10 20 00 clr %o0 <== NOT EXECUTED 202d0bc: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 202d0c0: 7f ff ff be call 202cfb8 <== NOT EXECUTED 202d0c4: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED =============================================================================== 0202d138 : } struct group *getgrnam( const char *name ) { 202d138: 9d e3 bf 98 save %sp, -104, %sp struct group *p; if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p)) 202d13c: 13 00 81 cb sethi %hi(0x2072c00), %o1 202d140: 90 10 00 18 mov %i0, %o0 202d144: 92 12 62 98 or %o1, 0x298, %o1 202d148: 15 00 81 cb sethi %hi(0x2072c00), %o2 202d14c: 96 10 20 c8 mov 0xc8, %o3 202d150: 94 12 a1 d0 or %o2, 0x1d0, %o2 202d154: 98 07 bf fc add %fp, -4, %o4 202d158: 7f ff ff ed call 202d10c 202d15c: b0 10 20 00 clr %i0 202d160: 80 a2 20 00 cmp %o0, 0 202d164: 22 80 00 02 be,a 202d16c <== ALWAYS TAKEN 202d168: f0 07 bf fc ld [ %fp + -4 ], %i0 return NULL; return p; } 202d16c: 81 c7 e0 08 ret 202d170: 81 e8 00 00 restore =============================================================================== 0202393c : */ pid_t getpid( void ) { return _Objects_Local_node; } 202393c: 81 c3 e0 08 retl <== NOT EXECUTED 2023940: 90 10 20 01 mov 1, %o0 ! 1 <== NOT EXECUTED =============================================================================== 0202d1b8 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 202d1b8: 9d e3 bf a0 save %sp, -96, %sp FILE *fp; int match; init_etc_passwd_group(); 202d1bc: 7f ff ff 33 call 202ce88 202d1c0: 01 00 00 00 nop if ((fp = fopen("/etc/passwd", "r")) == NULL) { 202d1c4: 11 00 81 a5 sethi %hi(0x2069400), %o0 202d1c8: 13 00 81 a5 sethi %hi(0x2069400), %o1 202d1cc: 90 12 21 88 or %o0, 0x188, %o0 202d1d0: 40 00 71 45 call 20496e4 202d1d4: 92 12 61 98 or %o1, 0x198, %o1 202d1d8: a0 92 20 00 orcc %o0, 0, %l0 202d1dc: 12 80 00 0b bne 202d208 <== ALWAYS TAKEN 202d1e0: 92 10 00 1a mov %i2, %o1 202d1e4: 30 80 00 27 b,a 202d280 <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(pwd->pw_name, name) == 0); 202d1e8: 40 00 88 3e call 204f2e0 202d1ec: 92 10 00 18 mov %i0, %o1 202d1f0: 80 a0 00 08 cmp %g0, %o0 202d1f4: 82 60 3f ff subx %g0, -1, %g1 } else { match = (pwd->pw_uid == uid); } if (match) { 202d1f8: 80 a0 60 00 cmp %g1, 0 202d1fc: 12 80 00 14 bne 202d24c 202d200: 90 10 00 10 mov %l0, %o0 if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { 202d204: 92 10 00 1a mov %i2, %o1 202d208: 94 10 00 1b mov %i3, %o2 202d20c: 96 10 00 1c mov %i4, %o3 202d210: 7f ff fe c4 call 202cd20 202d214: 90 10 00 10 mov %l0, %o0 202d218: 80 a2 20 00 cmp %o0, 0 202d21c: 02 80 00 11 be 202d260 <== NEVER TAKEN 202d220: 80 a6 20 00 cmp %i0, 0 errno = EINVAL; fclose(fp); return -1; } if (name) { 202d224: 32 bf ff f1 bne,a 202d1e8 <== ALWAYS TAKEN 202d228: d0 06 80 00 ld [ %i2 ], %o0 match = (strcmp(pwd->pw_name, name) == 0); } else { match = (pwd->pw_uid == uid); 202d22c: c2 16 a0 08 lduh [ %i2 + 8 ], %g1 <== NOT EXECUTED 202d230: 82 18 40 19 xor %g1, %i1, %g1 <== NOT EXECUTED 202d234: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED 202d238: 82 60 3f ff subx %g0, -1, %g1 <== NOT EXECUTED } if (match) { 202d23c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202d240: 02 bf ff f2 be 202d208 <== NOT EXECUTED 202d244: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED fclose(fp); 202d248: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 202d24c: 40 00 6e d6 call 2048da4 202d250: b0 10 20 00 clr %i0 *result = pwd; 202d254: f4 27 40 00 st %i2, [ %i5 ] } } fclose(fp); errno = EINVAL; return -1; } 202d258: 81 c7 e0 08 ret 202d25c: 81 e8 00 00 restore errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { errno = EINVAL; 202d260: 40 00 6e 79 call 2048c44 <__errno> <== NOT EXECUTED 202d264: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202d268: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 202d26c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED fclose(fp); 202d270: 40 00 6e cd call 2048da4 <== NOT EXECUTED 202d274: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return -1; 202d278: 81 c7 e0 08 ret <== NOT EXECUTED 202d27c: 81 e8 00 00 restore <== NOT EXECUTED int match; init_etc_passwd_group(); if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; 202d280: 40 00 6e 71 call 2048c44 <__errno> <== NOT EXECUTED 202d284: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202d288: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 202d28c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return -1; 202d290: 81 c7 e0 08 ret <== NOT EXECUTED 202d294: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0202ce3c : return NULL; return p; } struct passwd *getpwent(void) { 202ce3c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (passwd_fp == NULL) 202ce40: 03 00 81 cb sethi %hi(0x2072c00), %g1 <== NOT EXECUTED 202ce44: d0 00 60 e4 ld [ %g1 + 0xe4 ], %o0 ! 2072ce4 <== NOT EXECUTED 202ce48: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202ce4c: 32 80 00 04 bne,a 202ce5c <== NOT EXECUTED 202ce50: 31 00 81 cb sethi %hi(0x2072c00), %i0 <== NOT EXECUTED return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) return NULL; return &pwent; } 202ce54: 81 c7 e0 08 ret <== NOT EXECUTED 202ce58: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED struct passwd *getpwent(void) { if (passwd_fp == NULL) return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) 202ce5c: 15 00 81 cb sethi %hi(0x2072c00), %o2 <== NOT EXECUTED 202ce60: 92 16 21 b0 or %i0, 0x1b0, %o1 <== NOT EXECUTED 202ce64: 94 12 a0 e8 or %o2, 0xe8, %o2 <== NOT EXECUTED 202ce68: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 202ce6c: 7f ff ff ad call 202cd20 <== NOT EXECUTED 202ce70: b0 16 21 b0 or %i0, 0x1b0, %i0 <== NOT EXECUTED 202ce74: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202ce78: 02 bf ff f7 be 202ce54 <== NOT EXECUTED 202ce7c: 01 00 00 00 nop <== NOT EXECUTED return NULL; return &pwent; } 202ce80: 81 c7 e0 08 ret <== NOT EXECUTED 202ce84: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0202d338 : } struct passwd *getpwnam( const char *name ) { 202d338: 9d e3 bf 98 save %sp, -104, %sp struct passwd *p; if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p)) 202d33c: 13 00 81 cb sethi %hi(0x2072c00), %o1 202d340: 90 10 00 18 mov %i0, %o0 202d344: 92 12 61 b0 or %o1, 0x1b0, %o1 202d348: 15 00 81 cb sethi %hi(0x2072c00), %o2 202d34c: 96 10 20 c8 mov 0xc8, %o3 202d350: 94 12 a0 e8 or %o2, 0xe8, %o2 202d354: 98 07 bf fc add %fp, -4, %o4 202d358: 7f ff ff ed call 202d30c 202d35c: b0 10 20 00 clr %i0 202d360: 80 a2 20 00 cmp %o0, 0 202d364: 22 80 00 02 be,a 202d36c <== ALWAYS TAKEN 202d368: f0 07 bf fc ld [ %fp + -4 ], %i0 return NULL; return p; } 202d36c: 81 c7 e0 08 ret 202d370: 81 e8 00 00 restore =============================================================================== 0202d2cc : } struct passwd *getpwuid( uid_t uid ) { 202d2cc: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 202d2d0: 13 00 81 cb sethi %hi(0x2072c00), %o1 <== NOT EXECUTED 202d2d4: 91 2e 20 10 sll %i0, 0x10, %o0 <== NOT EXECUTED 202d2d8: 92 12 61 b0 or %o1, 0x1b0, %o1 <== NOT EXECUTED 202d2dc: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED 202d2e0: 15 00 81 cb sethi %hi(0x2072c00), %o2 <== NOT EXECUTED 202d2e4: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 202d2e8: 94 12 a0 e8 or %o2, 0xe8, %o2 <== NOT EXECUTED 202d2ec: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED 202d2f0: 7f ff ff ea call 202d298 <== NOT EXECUTED 202d2f4: b0 10 20 00 clr %i0 <== NOT EXECUTED 202d2f8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202d2fc: 22 80 00 02 be,a 202d304 <== NOT EXECUTED 202d300: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED return NULL; return p; } 202d304: 81 c7 e0 08 ret <== NOT EXECUTED 202d308: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0202d298 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 202d298: 84 10 00 0a mov %o2, %g2 <== NOT EXECUTED 202d29c: 82 10 00 0b mov %o3, %g1 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 202d2a0: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 202d2a4: 9a 10 00 0c mov %o4, %o5 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 202d2a8: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED 202d2ac: 96 10 00 02 mov %g2, %o3 <== NOT EXECUTED 202d2b0: 93 32 20 10 srl %o0, 0x10, %o1 <== NOT EXECUTED 202d2b4: 98 10 00 01 mov %g1, %o4 <== NOT EXECUTED 202d2b8: 90 10 20 00 clr %o0 <== NOT EXECUTED 202d2bc: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 202d2c0: 7f ff ff be call 202d1b8 <== NOT EXECUTED 202d2c4: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED =============================================================================== 02002d98 : */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) { 2002d98: 9d e3 bf 98 save %sp, -104, %sp /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { 2002d9c: 80 a6 20 00 cmp %i0, 0 2002da0: 02 80 00 11 be 2002de4 <== NEVER TAKEN 2002da4: 01 00 00 00 nop { ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); 2002da8: 7f ff fc bf call 20020a4 2002dac: 01 00 00 00 nop 2002db0: a0 10 00 08 mov %o0, %l0 _TOD_Get( &now ); 2002db4: 40 00 12 72 call 200777c <_TOD_Get> 2002db8: 90 07 bf f8 add %fp, -8, %o0 _ISR_Enable(level); 2002dbc: 7f ff fc be call 20020b4 2002dc0: 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; 2002dc4: 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; 2002dc8: c2 07 bf f8 ld [ %fp + -8 ], %g1 time->tv_usec = useconds; 2002dcc: 92 10 23 e8 mov 0x3e8, %o1 2002dd0: 40 00 5a f5 call 20199a4 <.div> 2002dd4: c2 26 00 00 st %g1, [ %i0 ] 2002dd8: 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; } 2002ddc: 81 c7 e0 08 ret 2002de0: 91 e8 20 00 restore %g0, 0, %o0 void * __tz __attribute__((unused)) ) { /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { errno = EFAULT; 2002de4: 40 00 35 9b call 2010450 <__errno> <== NOT EXECUTED 2002de8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2002dec: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 2002df0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return -1; 2002df4: 81 c7 e0 08 ret <== NOT EXECUTED 2002df8: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02008a14 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t getuid( void ) { 2008a14: 03 00 81 bc sethi %hi(0x206f000), %g1 <== NOT EXECUTED 2008a18: c2 00 63 24 ld [ %g1 + 0x324 ], %g1 ! 206f324 <== NOT EXECUTED return _POSIX_types_Uid; } 2008a1c: 81 c3 e0 08 retl <== NOT EXECUTED 2008a20: d0 10 60 32 lduh [ %g1 + 0x32 ], %o0 <== NOT EXECUTED =============================================================================== 0200f65c : ) { IMFS_jnode_t *the_jnode; /* Is the node a directory ? */ the_jnode = (IMFS_jnode_t *) iop->file_info; 200f65c: c4 02 20 3c ld [ %o0 + 0x3c ], %g2 200f660: c4 00 a0 4c ld [ %g2 + 0x4c ], %g2 200f664: 80 a0 a0 01 cmp %g2, 1 200f668: 12 80 00 05 bne 200f67c <== NEVER TAKEN 200f66c: 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; 200f670: c0 22 20 10 clr [ %o0 + 0x10 ] 200f674: c0 22 20 14 clr [ %o0 + 0x14 ] 200f678: 82 10 20 00 clr %g1 return 0; } 200f67c: 81 c3 e0 08 retl 200f680: 90 10 00 01 mov %g1, %o0 =============================================================================== 0200f8dc : ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { 200f8dc: 9d e3 be 88 save %sp, -376, %sp int current_entry; int first_entry; int last_entry; struct dirent tmp_dirent; the_jnode = (IMFS_jnode_t *)iop->file_info; 200f8e0: e4 06 20 3c ld [ %i0 + 0x3c ], %l2 ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { 200f8e4: 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)); 200f8e8: e2 04 a0 50 ld [ %l2 + 0x50 ], %l1 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 200f8ec: a4 04 a0 54 add %l2, 0x54, %l2 struct dirent tmp_dirent; the_jnode = (IMFS_jnode_t *)iop->file_info; the_chain = &the_jnode->info.directory.Entries; if ( rtems_chain_is_empty( the_chain ) ) 200f8f0: 80 a4 40 12 cmp %l1, %l2 200f8f4: 02 80 00 36 be 200f9cc 200f8f8: b0 10 20 00 clr %i0 /* Move to the first of the desired directory entries */ the_node = the_chain->first; bytes_transferred = 0; first_entry = iop->offset; 200f8fc: ea 04 20 14 ld [ %l0 + 0x14 ], %l5 /* protect against using sizes that are not exact multiples of the */ /* -dirent- size. These could result in unexpected results */ last_entry = first_entry + (count/sizeof(struct dirent)) * sizeof(struct dirent); 200f900: 90 10 00 1a mov %i2, %o0 200f904: 40 00 28 26 call 201999c <.udiv> 200f908: 92 10 21 18 mov 0x118, %o1 200f90c: 85 2a 20 05 sll %o0, 5, %g2 200f910: 83 2a 20 03 sll %o0, 3, %g1 200f914: 82 00 40 02 add %g1, %g2, %g1 200f918: a9 28 60 03 sll %g1, 3, %l4 200f91c: a8 25 00 01 sub %l4, %g1, %l4 200f920: a8 05 00 15 add %l4, %l5, %l4 /* The directory was not empty so try to move to the desired entry in chain*/ for ( 200f924: 80 a5 20 00 cmp %l4, 0 200f928: 04 80 00 29 ble 200f9cc <== NEVER TAKEN 200f92c: a6 10 20 00 clr %l3 } if( current_entry >= first_entry ) { /* Move the entry to the return buffer */ tmp_dirent.d_off = current_entry; tmp_dirent.d_reclen = sizeof( struct dirent ); 200f930: ba 10 21 18 mov 0x118, %i5 the_jnode = (IMFS_jnode_t *) the_node; tmp_dirent.d_ino = the_jnode->st_ino; tmp_dirent.d_namlen = strlen( the_jnode->name ); strcpy( tmp_dirent.d_name, the_jnode->name ); 200f934: ae 07 be e8 add %fp, -280, %l7 200f938: 10 80 00 08 b 200f958 200f93c: ac 07 be fc add %fp, -260, %l6 /* protect against using sizes that are not exact multiples of the */ /* -dirent- size. These could result in unexpected results */ last_entry = first_entry + (count/sizeof(struct dirent)) * sizeof(struct dirent); /* The directory was not empty so try to move to the desired entry in chain*/ for ( 200f940: 80 a4 c0 14 cmp %l3, %l4 200f944: 16 80 00 22 bge 200f9cc <== NEVER TAKEN 200f948: e2 04 40 00 ld [ %l1 ], %l1 current_entry = 0; current_entry < last_entry; current_entry = current_entry + sizeof(struct dirent) ){ if ( rtems_chain_is_tail( the_chain, the_node ) ){ 200f94c: 80 a4 40 12 cmp %l1, %l2 200f950: 02 80 00 21 be 200f9d4 200f954: 01 00 00 00 nop /* entry in the read */ return bytes_transferred; /* Indicate that there are no more */ /* entries to return */ } if( current_entry >= first_entry ) { 200f958: 80 a5 40 13 cmp %l5, %l3 200f95c: 34 bf ff f9 bg,a 200f940 200f960: a6 04 e1 18 add %l3, 0x118, %l3 /* Move the entry to the return buffer */ tmp_dirent.d_off = current_entry; tmp_dirent.d_reclen = sizeof( struct dirent ); the_jnode = (IMFS_jnode_t *) the_node; tmp_dirent.d_ino = the_jnode->st_ino; 200f964: c2 04 60 38 ld [ %l1 + 0x38 ], %g1 tmp_dirent.d_namlen = strlen( the_jnode->name ); 200f968: b8 04 60 0c add %l1, 0xc, %i4 if( current_entry >= first_entry ) { /* Move the entry to the return buffer */ tmp_dirent.d_off = current_entry; tmp_dirent.d_reclen = sizeof( struct dirent ); the_jnode = (IMFS_jnode_t *) the_node; tmp_dirent.d_ino = the_jnode->st_ino; 200f96c: c2 27 be e8 st %g1, [ %fp + -280 ] /* entries to return */ } if( current_entry >= first_entry ) { /* Move the entry to the return buffer */ tmp_dirent.d_off = current_entry; 200f970: 83 3c e0 1f sra %l3, 0x1f, %g1 200f974: e6 27 be f4 st %l3, [ %fp + -268 ] 200f978: c2 27 be f0 st %g1, [ %fp + -272 ] tmp_dirent.d_reclen = sizeof( struct dirent ); 200f97c: fa 37 be f8 sth %i5, [ %fp + -264 ] the_jnode = (IMFS_jnode_t *) the_node; tmp_dirent.d_ino = the_jnode->st_ino; tmp_dirent.d_namlen = strlen( the_jnode->name ); 200f980: 40 00 06 81 call 2011384 200f984: 90 10 00 1c mov %i4, %o0 strcpy( tmp_dirent.d_name, the_jnode->name ); 200f988: 92 10 00 1c mov %i4, %o1 /* Move the entry to the return buffer */ tmp_dirent.d_off = current_entry; tmp_dirent.d_reclen = sizeof( struct dirent ); the_jnode = (IMFS_jnode_t *) the_node; tmp_dirent.d_ino = the_jnode->st_ino; tmp_dirent.d_namlen = strlen( the_jnode->name ); 200f98c: d0 37 be fa sth %o0, [ %fp + -262 ] strcpy( tmp_dirent.d_name, the_jnode->name ); 200f990: 40 00 06 45 call 20112a4 200f994: 90 10 00 16 mov %l6, %o0 memcpy( 200f998: 90 06 40 18 add %i1, %i0, %o0 200f99c: 92 10 00 17 mov %l7, %o1 200f9a0: 40 00 04 e8 call 2010d40 200f9a4: 94 10 21 18 mov 0x118, %o2 buffer + bytes_transferred, (void *)&tmp_dirent, sizeof( struct dirent ) ); iop->offset = iop->offset + sizeof(struct dirent); 200f9a8: c4 1c 20 10 ldd [ %l0 + 0x10 ], %g2 * to the end of the exisiting file, the remaining entries will be placed in * the buffer and the returned value will be equal to -m actual- times the * size of a directory entry. */ ssize_t imfs_dir_read( 200f9ac: a6 04 e1 18 add %l3, 0x118, %l3 memcpy( buffer + bytes_transferred, (void *)&tmp_dirent, sizeof( struct dirent ) ); iop->offset = iop->offset + sizeof(struct dirent); 200f9b0: 86 80 e1 18 addcc %g3, 0x118, %g3 200f9b4: 84 40 a0 00 addx %g2, 0, %g2 200f9b8: c4 3c 20 10 std %g2, [ %l0 + 0x10 ] bytes_transferred = bytes_transferred + sizeof( struct dirent ); 200f9bc: b0 06 21 18 add %i0, 0x118, %i0 /* protect against using sizes that are not exact multiples of the */ /* -dirent- size. These could result in unexpected results */ last_entry = first_entry + (count/sizeof(struct dirent)) * sizeof(struct dirent); /* The directory was not empty so try to move to the desired entry in chain*/ for ( 200f9c0: 80 a4 c0 14 cmp %l3, %l4 200f9c4: 06 bf ff e2 bl 200f94c <== NEVER TAKEN 200f9c8: e2 04 40 00 ld [ %l1 ], %l1 the_node = the_node->next; } /* Success */ return bytes_transferred; } 200f9cc: 81 c7 e0 08 ret 200f9d0: 81 e8 00 00 restore 200f9d4: 81 c7 e0 08 ret 200f9d8: 81 e8 00 00 restore =============================================================================== 0200f7d8 : int imfs_dir_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 200f7d8: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 200f7dc: e0 06 40 00 ld [ %i1 ], %l0 200f7e0: c4 04 20 50 ld [ %l0 + 0x50 ], %g2 200f7e4: 82 04 20 54 add %l0, 0x54, %g1 200f7e8: 80 a0 80 01 cmp %g2, %g1 200f7ec: 12 80 00 30 bne 200f8ac 200f7f0: 01 00 00 00 nop /* * You cannot remove the file system root node. */ if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access ) 200f7f4: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 200f7f8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200f7fc: 80 a4 00 01 cmp %l0, %g1 200f800: 02 80 00 31 be 200f8c4 200f804: 01 00 00 00 nop /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) 200f808: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 200f80c: 80 a0 60 00 cmp %g1, 0 200f810: 12 80 00 2d bne 200f8c4 <== NEVER TAKEN 200f814: 01 00 00 00 nop /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 200f818: c2 04 20 08 ld [ %l0 + 8 ], %g1 200f81c: 80 a0 60 00 cmp %g1, 0 200f820: 22 80 00 06 be,a 200f838 200f824: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 200f828: 7f ff de aa call 20072d0 <_Chain_Extract> 200f82c: 90 10 00 10 mov %l0, %o0 rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 200f830: c0 24 20 08 clr [ %l0 + 8 ] /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 200f834: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 IMFS_update_ctime( the_jnode ); 200f838: 92 10 20 00 clr %o1 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 200f83c: 82 00 7f ff add %g1, -1, %g1 IMFS_update_ctime( the_jnode ); 200f840: 90 07 bf f8 add %fp, -8, %o0 200f844: 7f ff cd 55 call 2002d98 200f848: c2 34 20 34 sth %g1, [ %l0 + 0x34 ] 200f84c: 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) ) { 200f850: 90 10 00 10 mov %l0, %o0 200f854: 7f ff f4 46 call 200c96c 200f858: c2 24 20 48 st %g1, [ %l0 + 0x48 ] 200f85c: 80 a2 20 00 cmp %o0, 0 200f860: 12 80 00 11 bne 200f8a4 200f864: 01 00 00 00 nop 200f868: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 200f86c: 80 a0 60 00 cmp %g1, 0 200f870: 12 80 00 0d bne 200f8a4 200f874: 03 00 80 74 sethi %hi(0x201d000), %g1 /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 200f878: c2 00 62 10 ld [ %g1 + 0x210 ], %g1 ! 201d210 200f87c: c4 06 40 00 ld [ %i1 ], %g2 200f880: c6 00 60 04 ld [ %g1 + 4 ], %g3 200f884: 80 a0 c0 02 cmp %g3, %g2 200f888: 22 80 00 02 be,a 200f890 <== NEVER TAKEN 200f88c: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED /* * Free memory associated with a memory file. */ free( the_jnode ); 200f890: 90 10 00 10 mov %l0, %o0 200f894: 7f ff cd 16 call 2002cec 200f898: b0 10 20 00 clr %i0 200f89c: 81 c7 e0 08 ret 200f8a0: 81 e8 00 00 restore } return 0; } 200f8a4: 81 c7 e0 08 ret 200f8a8: 91 e8 20 00 restore %g0, 0, %o0 /* * 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 ); 200f8ac: 40 00 02 e9 call 2010450 <__errno> 200f8b0: b0 10 3f ff mov -1, %i0 200f8b4: 82 10 20 5a mov 0x5a, %g1 200f8b8: c2 22 00 00 st %g1, [ %o0 ] 200f8bc: 81 c7 e0 08 ret 200f8c0: 81 e8 00 00 restore /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) rtems_set_errno_and_return_minus_one( EBUSY ); 200f8c4: 40 00 02 e3 call 2010450 <__errno> 200f8c8: b0 10 3f ff mov -1, %i0 200f8cc: 82 10 20 10 mov 0x10, %g1 200f8d0: c2 22 00 00 st %g1, [ %o0 ] 200f8d4: 81 c7 e0 08 ret 200f8d8: 81 e8 00 00 restore =============================================================================== 0202ce88 : /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) { 202ce88: 9d e3 bf a0 save %sp, -96, %sp FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) 202ce8c: 03 00 81 cb sethi %hi(0x2072c00), %g1 202ce90: c4 48 60 e0 ldsb [ %g1 + 0xe0 ], %g2 ! 2072ce0 202ce94: 80 a0 a0 00 cmp %g2, 0 202ce98: 02 80 00 04 be 202cea8 202ce9c: 84 10 20 01 mov 1, %g2 202cea0: 81 c7 e0 08 ret 202cea4: 81 e8 00 00 restore return; etc_passwd_initted = 1; mkdir("/etc", 0777); 202cea8: 92 10 21 ff mov 0x1ff, %o1 FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) return; etc_passwd_initted = 1; 202ceac: c4 28 60 e0 stb %g2, [ %g1 + 0xe0 ] mkdir("/etc", 0777); 202ceb0: 11 00 81 a5 sethi %hi(0x2069400), %o0 202ceb4: 7f ff 70 e3 call 2009240 202ceb8: 90 12 21 80 or %o0, 0x180, %o0 ! 2069580 /* * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { 202cebc: 31 00 81 a5 sethi %hi(0x2069400), %i0 202cec0: 21 00 81 a5 sethi %hi(0x2069400), %l0 202cec4: 90 16 21 88 or %i0, 0x188, %o0 202cec8: 40 00 72 07 call 20496e4 202cecc: 92 14 21 98 or %l0, 0x198, %o1 202ced0: 80 a2 20 00 cmp %o0, 0 202ced4: 22 80 00 0d be,a 202cf08 <== ALWAYS TAKEN 202ced8: 90 16 21 88 or %i0, 0x188, %o0 } else if ((fp = fopen("/etc/passwd", "w")) != NULL) { fprintf(fp, "root:*:0:0:root::/:/bin/sh\n" "rtems:*:1:1:RTEMS Application::/:/bin/sh\n" "tty:!:2:2:tty owner::/:/bin/false\n" ); fclose(fp); 202cedc: 40 00 6f b2 call 2048da4 202cee0: 01 00 00 00 nop } /* * Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) { 202cee4: 92 14 21 98 or %l0, 0x198, %o1 202cee8: 21 00 81 a5 sethi %hi(0x2069400), %l0 202ceec: 40 00 71 fe call 20496e4 202cef0: 90 14 22 10 or %l0, 0x210, %o0 ! 2069610 202cef4: 80 a2 20 00 cmp %o0, 0 202cef8: 22 80 00 11 be,a 202cf3c <== ALWAYS TAKEN 202cefc: 90 14 22 10 or %l0, 0x210, %o0 fclose(fp); 202cf00: 40 00 6f a9 call 2048da4 <== NOT EXECUTED 202cf04: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { fclose(fp); } else if ((fp = fopen("/etc/passwd", "w")) != NULL) { 202cf08: 13 00 81 a5 sethi %hi(0x2069400), %o1 202cf0c: 40 00 71 f6 call 20496e4 202cf10: 92 12 61 a0 or %o1, 0x1a0, %o1 ! 20695a0 202cf14: b0 92 20 00 orcc %o0, 0, %i0 202cf18: 02 bf ff f3 be 202cee4 <== NEVER TAKEN 202cf1c: 92 10 20 01 mov 1, %o1 fprintf(fp, "root:*:0:0:root::/:/bin/sh\n" 202cf20: 94 10 20 66 mov 0x66, %o2 202cf24: 96 10 00 18 mov %i0, %o3 202cf28: 11 00 81 a5 sethi %hi(0x2069400), %o0 202cf2c: 40 00 76 ce call 204aa64 202cf30: 90 12 21 a8 or %o0, 0x1a8, %o0 ! 20695a8 "rtems:*:1:1:RTEMS Application::/:/bin/sh\n" "tty:!:2:2:tty owner::/:/bin/false\n" ); fclose(fp); 202cf34: 10 bf ff ea b 202cedc 202cf38: 90 10 00 18 mov %i0, %o0 * Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) { fclose(fp); } else if ((fp = fopen("/etc/group", "w")) != NULL) { 202cf3c: 13 00 81 a5 sethi %hi(0x2069400), %o1 202cf40: 40 00 71 e9 call 20496e4 202cf44: 92 12 61 a0 or %o1, 0x1a0, %o1 ! 20695a0 202cf48: b0 92 20 00 orcc %o0, 0, %i0 202cf4c: 02 bf ff d5 be 202cea0 <== NEVER TAKEN 202cf50: 11 00 81 a5 sethi %hi(0x2069400), %o0 fprintf( fp, "root:x:0:root\n" 202cf54: 92 10 20 01 mov 1, %o1 202cf58: 94 10 20 2a mov 0x2a, %o2 202cf5c: 96 10 00 18 mov %i0, %o3 202cf60: 40 00 76 c1 call 204aa64 202cf64: 90 12 22 20 or %o0, 0x220, %o0 "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); 202cf68: 40 00 6f 8f call 2048da4 202cf6c: 81 e8 00 00 restore =============================================================================== 02006794 : int ioctl( int fd, ioctl_command_t command, ... ) { 2006794: 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 ); 2006798: 03 00 80 85 sethi %hi(0x2021400), %g1 200679c: c2 00 60 04 ld [ %g1 + 4 ], %g1 ! 2021404 iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); va_start(ap, command); 20067a0: f6 27 a0 50 st %i3, [ %fp + 0x50 ] 20067a4: f8 27 a0 54 st %i4, [ %fp + 0x54 ] 20067a8: fa 27 a0 58 st %i5, [ %fp + 0x58 ] va_list ap; rtems_status_code rc; rtems_libio_t *iop; void *buffer; rtems_libio_check_fd( fd ); 20067ac: 80 a6 00 01 cmp %i0, %g1 20067b0: 1a 80 00 18 bcc 2006810 20067b4: f4 27 a0 4c st %i2, [ %fp + 0x4c ] iop = rtems_libio_iop( fd ); 20067b8: 03 00 80 87 sethi %hi(0x2021c00), %g1 20067bc: d0 00 62 70 ld [ %g1 + 0x270 ], %o0 ! 2021e70 20067c0: 83 2e 20 06 sll %i0, 6, %g1 20067c4: b1 2e 20 03 sll %i0, 3, %i0 20067c8: b0 06 00 01 add %i0, %g1, %i0 20067cc: 90 02 00 18 add %o0, %i0, %o0 rtems_libio_check_is_open(iop); 20067d0: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 20067d4: 80 88 61 00 btst 0x100, %g1 20067d8: 02 80 00 0e be 2006810 <== NEVER TAKEN 20067dc: 84 07 a0 50 add %fp, 0x50, %g2 /* * Now process the ioctl(). */ if ( !iop->handlers ) 20067e0: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 20067e4: 80 a0 60 00 cmp %g1, 0 20067e8: 02 80 00 0a be 2006810 <== NEVER TAKEN 20067ec: c4 27 bf fc st %g2, [ %fp + -4 ] rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->ioctl_h ) 20067f0: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 20067f4: 80 a0 60 00 cmp %g1, 0 20067f8: 02 80 00 0c be 2006828 <== NEVER TAKEN 20067fc: 92 10 00 19 mov %i1, %o1 rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); 2006800: 9f c0 40 00 call %g1 2006804: 94 10 00 1a mov %i2, %o2 return rc; } 2006808: 81 c7 e0 08 ret 200680c: 91 e8 00 08 restore %g0, %o0, %o0 /* * Now process the ioctl(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 2006810: 40 00 38 a7 call 2014aac <__errno> 2006814: b0 10 3f ff mov -1, %i0 2006818: 82 10 20 09 mov 9, %g1 200681c: c2 22 00 00 st %g1, [ %o0 ] 2006820: 81 c7 e0 08 ret 2006824: 81 e8 00 00 restore if ( !iop->handlers->ioctl_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 2006828: 40 00 38 a1 call 2014aac <__errno> <== NOT EXECUTED 200682c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2006830: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2006834: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2006838: 81 c7 e0 08 ret <== NOT EXECUTED 200683c: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02004a18 : /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { 2004a18: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) 2004a1c: c2 06 60 30 ld [ %i1 + 0x30 ], %g1 <== NOT EXECUTED 2004a20: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 2004a24: 02 80 00 03 be 2004a30 <== NOT EXECUTED 2004a28: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED c &= 0x7f; 2004a2c: a0 0e 20 7f and %i0, 0x7f, %l0 <== NOT EXECUTED if (tty->termios.c_iflag & IUCLC) 2004a30: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 2004a34: 02 80 00 0c be 2004a64 <== NOT EXECUTED 2004a38: 84 0c 20 ff and %l0, 0xff, %g2 <== NOT EXECUTED c = tolower (c); 2004a3c: 05 00 80 74 sethi %hi(0x201d000), %g2 <== NOT EXECUTED 2004a40: c4 00 a2 78 ld [ %g2 + 0x278 ], %g2 ! 201d278 <__ctype_ptr__><== NOT EXECUTED 2004a44: a0 0c 20 ff and %l0, 0xff, %l0 <== NOT EXECUTED 2004a48: 84 00 80 10 add %g2, %l0, %g2 <== NOT EXECUTED 2004a4c: c4 08 a0 01 ldub [ %g2 + 1 ], %g2 <== NOT EXECUTED 2004a50: 84 08 a0 03 and %g2, 3, %g2 <== NOT EXECUTED 2004a54: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED 2004a58: 22 80 00 02 be,a 2004a60 <== NOT EXECUTED 2004a5c: a0 04 20 20 add %l0, 0x20, %l0 <== NOT EXECUTED if (c == '\r') { 2004a60: 84 0c 20 ff and %l0, 0xff, %g2 <== NOT EXECUTED 2004a64: 80 a0 a0 0d cmp %g2, 0xd <== NOT EXECUTED 2004a68: 02 80 00 16 be 2004ac0 <== NOT EXECUTED 2004a6c: 80 a0 a0 0a cmp %g2, 0xa <== 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)) { 2004a70: 02 80 00 41 be 2004b74 <== NOT EXECUTED 2004a74: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { 2004a78: 32 80 00 1a bne,a 2004ae0 <== NOT EXECUTED 2004a7c: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED } /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { 2004a80: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED 2004a84: 05 00 80 74 sethi %hi(0x201d000), %g2 <== NOT EXECUTED 2004a88: c4 00 a2 00 ld [ %g2 + 0x200 ], %g2 ! 201d200 <== NOT EXECUTED 2004a8c: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED 2004a90: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2004a94: 16 80 00 09 bge 2004ab8 <== NOT EXECUTED 2004a98: b0 10 20 00 clr %i0 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) 2004a9c: c4 06 60 3c ld [ %i1 + 0x3c ], %g2 <== NOT EXECUTED 2004aa0: 80 88 a0 08 btst 8, %g2 <== NOT EXECUTED 2004aa4: 12 80 00 39 bne 2004b88 <== NOT EXECUTED 2004aa8: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED echo (c, tty); tty->cbuf[tty->ccount++] = c; 2004aac: c6 06 60 1c ld [ %i1 + 0x1c ], %g3 <== NOT EXECUTED 2004ab0: e0 28 c0 01 stb %l0, [ %g3 + %g1 ] <== NOT EXECUTED 2004ab4: c4 26 60 20 st %g2, [ %i1 + 0x20 ] <== NOT EXECUTED 2004ab8: 81 c7 e0 08 ret <== NOT EXECUTED 2004abc: 81 e8 00 00 restore <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) c &= 0x7f; if (tty->termios.c_iflag & IUCLC) c = tolower (c); if (c == '\r') { if (tty->termios.c_iflag & IGNCR) 2004ac0: 80 88 60 80 btst 0x80, %g1 <== NOT EXECUTED 2004ac4: 02 80 00 04 be 2004ad4 <== NOT EXECUTED 2004ac8: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) echo (c, tty); tty->cbuf[tty->ccount++] = c; } return 0; } 2004acc: 81 c7 e0 08 ret <== NOT EXECUTED 2004ad0: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED if (tty->termios.c_iflag & IUCLC) c = tolower (c); if (c == '\r') { if (tty->termios.c_iflag & IGNCR) return 0; if (tty->termios.c_iflag & ICRNL) 2004ad4: 32 80 00 02 bne,a 2004adc <== NOT EXECUTED 2004ad8: 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)) { 2004adc: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED 2004ae0: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED 2004ae4: 22 bf ff e8 be,a 2004a84 <== NOT EXECUTED 2004ae8: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED if (c == tty->termios.c_cc[VERASE]) { 2004aec: c4 0e 60 43 ldub [ %i1 + 0x43 ], %g2 <== NOT EXECUTED 2004af0: 90 0c 20 ff and %l0, 0xff, %o0 <== NOT EXECUTED 2004af4: 80 a0 80 08 cmp %g2, %o0 <== NOT EXECUTED 2004af8: 22 80 00 43 be,a 2004c04 <== NOT EXECUTED 2004afc: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED erase (tty, 0); return 0; } else if (c == tty->termios.c_cc[VKILL]) { 2004b00: c4 0e 60 44 ldub [ %i1 + 0x44 ], %g2 <== NOT EXECUTED 2004b04: 80 a0 80 08 cmp %g2, %o0 <== NOT EXECUTED 2004b08: 22 80 00 2e be,a 2004bc0 <== NOT EXECUTED 2004b0c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED erase (tty, 1); return 0; } else if (c == tty->termios.c_cc[VEOF]) { 2004b10: c4 0e 60 45 ldub [ %i1 + 0x45 ], %g2 <== NOT EXECUTED 2004b14: 80 a0 80 08 cmp %g2, %o0 <== NOT EXECUTED 2004b18: 02 bf ff e8 be 2004ab8 <== NOT EXECUTED 2004b1c: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED return 1; } else if (c == '\n') { 2004b20: 80 a2 20 0a cmp %o0, 0xa <== NOT EXECUTED 2004b24: 02 80 00 2c be 2004bd4 <== NOT EXECUTED 2004b28: 80 88 60 48 btst 0x48, %g1 <== NOT EXECUTED if (tty->termios.c_lflag & (ECHO | ECHONL)) echo (c, tty); tty->cbuf[tty->ccount++] = c; return 1; } else if ((c == tty->termios.c_cc[VEOL]) 2004b2c: c4 0e 60 4c ldub [ %i1 + 0x4c ], %g2 <== NOT EXECUTED 2004b30: 80 a0 80 08 cmp %g2, %o0 <== NOT EXECUTED 2004b34: 02 80 00 07 be 2004b50 <== NOT EXECUTED 2004b38: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED || (c == tty->termios.c_cc[VEOL2])) { 2004b3c: c4 0e 60 51 ldub [ %i1 + 0x51 ], %g2 <== NOT EXECUTED 2004b40: 80 a0 80 08 cmp %g2, %o0 <== NOT EXECUTED 2004b44: 32 bf ff d0 bne,a 2004a84 <== NOT EXECUTED 2004b48: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) 2004b4c: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED 2004b50: 12 80 00 18 bne 2004bb0 <== NOT EXECUTED 2004b54: 01 00 00 00 nop <== NOT EXECUTED echo (c, tty); tty->cbuf[tty->ccount++] = c; 2004b58: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED 2004b5c: c6 06 60 1c ld [ %i1 + 0x1c ], %g3 <== NOT EXECUTED 2004b60: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED 2004b64: e0 28 c0 01 stb %l0, [ %g3 + %g1 ] <== NOT EXECUTED 2004b68: c4 26 60 20 st %g2, [ %i1 + 0x20 ] <== NOT EXECUTED return 1; 2004b6c: 81 c7 e0 08 ret <== NOT EXECUTED 2004b70: 91 e8 20 01 restore %g0, 1, %o0 <== 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)) { 2004b74: 80 88 60 40 btst 0x40, %g1 <== NOT EXECUTED 2004b78: 32 bf ff d9 bne,a 2004adc <== NOT EXECUTED 2004b7c: a0 10 20 0d mov 0xd, %l0 <== NOT EXECUTED c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { 2004b80: 10 bf ff d8 b 2004ae0 <== NOT EXECUTED 2004b84: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { if (tty->termios.c_lflag & ECHO) echo (c, tty); 2004b88: 90 0c 20 ff and %l0, 0xff, %o0 <== NOT EXECUTED 2004b8c: 7f ff fe f6 call 2004764 <== NOT EXECUTED 2004b90: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2004b94: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 2004b98: c6 06 60 1c ld [ %i1 + 0x1c ], %g3 <== NOT EXECUTED 2004b9c: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED 2004ba0: e0 28 c0 01 stb %l0, [ %g3 + %g1 ] <== NOT EXECUTED 2004ba4: c4 26 60 20 st %g2, [ %i1 + 0x20 ] <== NOT EXECUTED 2004ba8: 81 c7 e0 08 ret <== NOT EXECUTED 2004bac: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED return 1; } else if ((c == tty->termios.c_cc[VEOL]) || (c == tty->termios.c_cc[VEOL2])) { if (tty->termios.c_lflag & ECHO) echo (c, tty); 2004bb0: 7f ff fe ed call 2004764 <== NOT EXECUTED 2004bb4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 2004bb8: 10 bf ff e9 b 2004b5c <== NOT EXECUTED 2004bbc: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED if (c == tty->termios.c_cc[VERASE]) { erase (tty, 0); return 0; } else if (c == tty->termios.c_cc[VKILL]) { erase (tty, 1); 2004bc0: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 2004bc4: 7f ff ff 08 call 20047e4 <== NOT EXECUTED 2004bc8: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; 2004bcc: 81 c7 e0 08 ret <== NOT EXECUTED 2004bd0: 81 e8 00 00 restore <== NOT EXECUTED } else if (c == tty->termios.c_cc[VEOF]) { return 1; } else if (c == '\n') { if (tty->termios.c_lflag & (ECHO | ECHONL)) 2004bd4: 22 80 00 05 be,a 2004be8 <== NOT EXECUTED 2004bd8: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED echo (c, tty); 2004bdc: 7f ff fe e2 call 2004764 <== NOT EXECUTED 2004be0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 2004be4: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED 2004be8: c4 06 60 1c ld [ %i1 + 0x1c ], %g2 <== NOT EXECUTED 2004bec: 86 10 20 0a mov 0xa, %g3 <== NOT EXECUTED 2004bf0: c6 28 80 01 stb %g3, [ %g2 + %g1 ] <== NOT EXECUTED 2004bf4: 82 00 60 01 inc %g1 <== NOT EXECUTED 2004bf8: c2 26 60 20 st %g1, [ %i1 + 0x20 ] <== NOT EXECUTED return 1; 2004bfc: 81 c7 e0 08 ret <== NOT EXECUTED 2004c00: 91 e8 20 01 restore %g0, 1, %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]) { erase (tty, 0); 2004c04: 92 10 20 00 clr %o1 <== NOT EXECUTED 2004c08: 7f ff fe f7 call 20047e4 <== NOT EXECUTED 2004c0c: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; 2004c10: 81 c7 e0 08 ret <== NOT EXECUTED 2004c14: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 02023960 : #if !defined(RTEMS_POSIX_API) int kill( pid_t pid, int sig ) { return 0; } 2023960: 81 c3 e0 08 retl <== NOT EXECUTED 2023964: 90 10 20 00 clr %o0 ! 0 <== NOT EXECUTED =============================================================================== 0201b0d0 : extern void _wrapup_reent(struct _reent *); extern void _reclaim_reent(struct _reent *); void libc_wrapup(void) { 201b0d0: 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())) 201b0d4: 03 00 80 77 sethi %hi(0x201dc00), %g1 201b0d8: c2 00 61 50 ld [ %g1 + 0x150 ], %g1 ! 201dd50 <_System_state_Current> 201b0dc: 80 a0 60 03 cmp %g1, 3 201b0e0: 02 80 00 04 be 201b0f0 <== ALWAYS TAKEN 201b0e4: 03 00 80 72 sethi %hi(0x201c800), %g1 201b0e8: 81 c7 e0 08 ret <== NOT EXECUTED 201b0ec: 81 e8 00 00 restore <== NOT EXECUTED /* * This was already done if the user called exit() directly . _wrapup_reent(0); */ if (_REENT != _global_impure_ptr) { 201b0f0: 21 00 80 74 sethi %hi(0x201d000), %l0 201b0f4: e2 00 63 60 ld [ %g1 + 0x360 ], %l1 201b0f8: c2 04 22 80 ld [ %l0 + 0x280 ], %g1 201b0fc: 80 a0 40 11 cmp %g1, %l1 201b100: 02 80 00 05 be 201b114 201b104: 01 00 00 00 nop _wrapup_reent(_global_impure_ptr); 201b108: 40 00 01 80 call 201b708 <_wrapup_reent> 201b10c: 90 10 00 11 mov %l1, %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; 201b110: e2 24 22 80 st %l1, [ %l0 + 0x280 ] * * Should this be changed to do *all* file streams? * _fwalk (_REENT, fclose); */ fclose (stdin); 201b114: 7f ff d5 27 call 20105b0 201b118: d0 04 60 04 ld [ %l1 + 4 ], %o0 fclose (stdout); 201b11c: c2 04 22 80 ld [ %l0 + 0x280 ], %g1 201b120: 7f ff d5 24 call 20105b0 201b124: d0 00 60 08 ld [ %g1 + 8 ], %o0 fclose (stderr); 201b128: c2 04 22 80 ld [ %l0 + 0x280 ], %g1 201b12c: f0 00 60 0c ld [ %g1 + 0xc ], %i0 201b130: 7f ff d5 20 call 20105b0 201b134: 81 e8 00 00 restore =============================================================================== 0202d374 : int link( const char *existing, const char *new ) { 202d374: 9d e3 bf 70 save %sp, -144, %sp /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, strlen( existing ), 202d378: 40 00 89 db call 204fae4 202d37c: 90 10 00 18 mov %i0, %o0 202d380: a0 07 bf e4 add %fp, -28, %l0 202d384: 92 10 00 08 mov %o0, %o1 202d388: 94 10 20 00 clr %o2 202d38c: 90 10 00 18 mov %i0, %o0 202d390: 96 10 00 10 mov %l0, %o3 202d394: 98 10 20 01 mov 1, %o4 202d398: 7f ff 6d 32 call 2008860 202d39c: b0 10 3f ff mov -1, %i0 0, &existing_loc, true ); if ( result != 0 ) 202d3a0: 80 a2 20 00 cmp %o0, 0 202d3a4: 12 80 00 31 bne 202d468 202d3a8: 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 ); 202d3ac: 90 10 00 19 mov %i1, %o0 202d3b0: 92 07 bf fc add %fp, -4, %o1 202d3b4: 7f ff 74 4d call 200a4e8 202d3b8: 94 10 00 11 mov %l1, %o2 if ( !parent_loc.ops->evalformake_h ) { 202d3bc: c2 07 bf dc ld [ %fp + -36 ], %g1 202d3c0: c2 00 60 04 ld [ %g1 + 4 ], %g1 202d3c4: 80 a0 60 00 cmp %g1, 0 202d3c8: 02 80 00 53 be 202d514 <== NEVER TAKEN 202d3cc: d0 07 bf fc ld [ %fp + -4 ], %o0 rtems_filesystem_freenode( &existing_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start ); 202d3d0: 92 10 00 11 mov %l1, %o1 202d3d4: 90 06 40 08 add %i1, %o0, %o0 202d3d8: 9f c0 40 00 call %g1 202d3dc: 94 07 bf f8 add %fp, -8, %o2 if ( result != 0 ) { 202d3e0: b2 92 20 00 orcc %o0, 0, %i1 202d3e4: 12 80 00 3d bne 202d4d8 202d3e8: c2 07 bf f4 ld [ %fp + -12 ], %g1 /* * Check to see if the caller is trying to link across file system * boundaries. */ if ( parent_loc.mt_entry != existing_loc.mt_entry ) { 202d3ec: c4 07 bf e0 ld [ %fp + -32 ], %g2 202d3f0: 80 a0 80 01 cmp %g2, %g1 202d3f4: 12 80 00 1f bne 202d470 202d3f8: c4 07 bf dc ld [ %fp + -36 ], %g2 rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !parent_loc.ops->link_h ) { 202d3fc: c2 00 a0 08 ld [ %g2 + 8 ], %g1 202d400: 80 a0 60 00 cmp %g1, 0 202d404: 02 80 00 54 be 202d554 <== NEVER TAKEN 202d408: d4 07 bf f8 ld [ %fp + -8 ], %o2 rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*parent_loc.ops->link_h)( &existing_loc, &parent_loc, name_start ); 202d40c: 90 10 00 10 mov %l0, %o0 202d410: 9f c0 40 00 call %g1 202d414: 92 10 00 11 mov %l1, %o1 rtems_filesystem_freenode( &existing_loc ); 202d418: c2 07 bf f0 ld [ %fp + -16 ], %g1 202d41c: 80 a0 60 00 cmp %g1, 0 202d420: 02 80 00 08 be 202d440 <== NEVER TAKEN 202d424: b0 10 00 08 mov %o0, %i0 202d428: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 202d42c: 80 a0 60 00 cmp %g1, 0 202d430: 22 80 00 05 be,a 202d444 <== NEVER TAKEN 202d434: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED 202d438: 9f c0 40 00 call %g1 202d43c: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &parent_loc ); 202d440: c2 07 bf dc ld [ %fp + -36 ], %g1 202d444: 80 a0 60 00 cmp %g1, 0 202d448: 02 80 00 41 be 202d54c <== NEVER TAKEN 202d44c: 01 00 00 00 nop 202d450: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 202d454: 80 a0 60 00 cmp %g1, 0 202d458: 02 80 00 3d be 202d54c <== NEVER TAKEN 202d45c: 01 00 00 00 nop 202d460: 9f c0 40 00 call %g1 202d464: 90 10 00 11 mov %l1, %o0 return result; } 202d468: 81 c7 e0 08 ret 202d46c: 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 ) { rtems_filesystem_freenode( &existing_loc ); 202d470: c2 07 bf f0 ld [ %fp + -16 ], %g1 202d474: 80 a0 60 00 cmp %g1, 0 202d478: 22 80 00 09 be,a 202d49c <== NEVER TAKEN 202d47c: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED 202d480: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 202d484: 80 a0 60 00 cmp %g1, 0 202d488: 22 80 00 05 be,a 202d49c <== NEVER TAKEN 202d48c: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED 202d490: 9f c0 40 00 call %g1 202d494: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &parent_loc ); 202d498: c2 07 bf dc ld [ %fp + -36 ], %g1 202d49c: 80 a0 60 00 cmp %g1, 0 202d4a0: 02 80 00 08 be 202d4c0 <== NEVER TAKEN 202d4a4: 01 00 00 00 nop 202d4a8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 202d4ac: 80 a0 60 00 cmp %g1, 0 202d4b0: 02 80 00 04 be 202d4c0 <== NEVER TAKEN 202d4b4: 01 00 00 00 nop 202d4b8: 9f c0 40 00 call %g1 202d4bc: 90 10 00 11 mov %l1, %o0 rtems_set_errno_and_return_minus_one( EXDEV ); 202d4c0: 40 00 6d e1 call 2048c44 <__errno> 202d4c4: b0 10 3f ff mov -1, %i0 202d4c8: 82 10 20 12 mov 0x12, %g1 202d4cc: c2 22 00 00 st %g1, [ %o0 ] 202d4d0: 81 c7 e0 08 ret 202d4d4: 81 e8 00 00 restore rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start ); if ( result != 0 ) { rtems_filesystem_freenode( &existing_loc ); 202d4d8: c2 07 bf f0 ld [ %fp + -16 ], %g1 202d4dc: 80 a0 60 00 cmp %g1, 0 202d4e0: 02 80 00 08 be 202d500 <== NEVER TAKEN 202d4e4: 01 00 00 00 nop 202d4e8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 202d4ec: 80 a0 60 00 cmp %g1, 0 202d4f0: 02 80 00 04 be 202d500 <== NEVER TAKEN 202d4f4: 01 00 00 00 nop 202d4f8: 9f c0 40 00 call %g1 202d4fc: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( result ); 202d500: 40 00 6d d1 call 2048c44 <__errno> 202d504: b0 10 3f ff mov -1, %i0 202d508: f2 22 00 00 st %i1, [ %o0 ] 202d50c: 81 c7 e0 08 ret 202d510: 81 e8 00 00 restore */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); if ( !parent_loc.ops->evalformake_h ) { rtems_filesystem_freenode( &existing_loc ); 202d514: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 202d518: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202d51c: 02 80 00 08 be 202d53c <== NOT EXECUTED 202d520: 01 00 00 00 nop <== NOT EXECUTED 202d524: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 202d528: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202d52c: 02 80 00 04 be 202d53c <== NOT EXECUTED 202d530: 01 00 00 00 nop <== NOT EXECUTED 202d534: 9f c0 40 00 call %g1 <== NOT EXECUTED 202d538: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED } if ( !parent_loc.ops->link_h ) { rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 202d53c: 40 00 6d c2 call 2048c44 <__errno> <== NOT EXECUTED 202d540: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202d544: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 202d548: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202d54c: 81 c7 e0 08 ret <== NOT EXECUTED 202d550: 81 e8 00 00 restore <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !parent_loc.ops->link_h ) { rtems_filesystem_freenode( &existing_loc ); 202d554: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 202d558: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202d55c: 02 80 00 0a be 202d584 <== NOT EXECUTED 202d560: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 202d564: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 202d568: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202d56c: 02 80 00 06 be 202d584 <== NOT EXECUTED 202d570: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 202d574: 9f c0 40 00 call %g1 <== NOT EXECUTED 202d578: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 202d57c: c4 07 bf dc ld [ %fp + -36 ], %g2 <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 202d580: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 202d584: 02 bf ff ee be 202d53c <== NOT EXECUTED 202d588: 01 00 00 00 nop <== NOT EXECUTED 202d58c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 202d590: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202d594: 02 bf ff ea be 202d53c <== NOT EXECUTED 202d598: 01 00 00 00 nop <== NOT EXECUTED 202d59c: 9f c0 40 00 call %g1 <== NOT EXECUTED 202d5a0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 202d5a4: 30 bf ff e6 b,a 202d53c <== NOT EXECUTED =============================================================================== 0201af2c : off_t lseek( int fd, off_t offset, int whence ) { 201af2c: 9d e3 bf a0 save %sp, -96, %sp rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 201af30: 03 00 80 74 sethi %hi(0x201d000), %g1 201af34: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 ! 201d044 off_t lseek( int fd, off_t offset, int whence ) { 201af38: 84 10 00 19 mov %i1, %g2 rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 201af3c: 80 a6 00 01 cmp %i0, %g1 201af40: 1a 80 00 46 bcc 201b058 <== NEVER TAKEN 201af44: 86 10 00 1a mov %i2, %g3 iop = rtems_libio_iop( fd ); 201af48: 03 00 80 76 sethi %hi(0x201d800), %g1 201af4c: e0 00 61 d8 ld [ %g1 + 0x1d8 ], %l0 ! 201d9d8 201af50: 83 2e 20 06 sll %i0, 6, %g1 201af54: b1 2e 20 03 sll %i0, 3, %i0 201af58: b0 06 00 01 add %i0, %g1, %i0 201af5c: a0 04 00 18 add %l0, %i0, %l0 rtems_libio_check_is_open(iop); 201af60: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 201af64: 80 88 61 00 btst 0x100, %g1 201af68: 02 80 00 3c be 201b058 <== NEVER TAKEN 201af6c: 01 00 00 00 nop /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) 201af70: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 201af74: c8 00 60 14 ld [ %g1 + 0x14 ], %g4 201af78: 80 a1 20 00 cmp %g4, 0 201af7c: 02 80 00 3f be 201b078 <== NEVER TAKEN 201af80: 80 a6 e0 01 cmp %i3, 1 /* * Now process the lseek(). */ old_offset = iop->offset; switch ( whence ) { 201af84: 02 80 00 31 be 201b048 201af88: e4 1c 20 10 ldd [ %l0 + 0x10 ], %l2 201af8c: 80 a6 e0 02 cmp %i3, 2 201af90: 02 80 00 11 be 201afd4 201af94: 80 a6 e0 00 cmp %i3, 0 201af98: 12 80 00 22 bne 201b020 201af9c: 01 00 00 00 nop case SEEK_SET: iop->offset = offset; 201afa0: c4 3c 20 10 std %g2, [ %l0 + 0x10 ] /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); 201afa4: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 201afa8: 92 10 00 02 mov %g2, %o1 201afac: 94 10 00 03 mov %g3, %o2 201afb0: 96 10 00 1b mov %i3, %o3 201afb4: 9f c0 40 00 call %g1 201afb8: 90 10 00 10 mov %l0, %o0 if ( status == (off_t) -1 ) 201afbc: 80 a2 3f ff cmp %o0, -1 201afc0: 02 80 00 13 be 201b00c <== NEVER TAKEN 201afc4: 80 a2 7f ff cmp %o1, -1 /* * So if the operation failed, we have to restore iop->offset. */ return status; } 201afc8: b2 10 00 09 mov %o1, %i1 201afcc: 81 c7 e0 08 ret 201afd0: 91 e8 00 08 restore %g0, %o0, %o0 case SEEK_CUR: iop->offset += offset; break; case SEEK_END: iop->offset = iop->size + offset; 201afd4: d8 1c 20 08 ldd [ %l0 + 8 ], %o4 /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); 201afd8: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 case SEEK_CUR: iop->offset += offset; break; case SEEK_END: iop->offset = iop->size + offset; 201afdc: 9a 86 80 0d addcc %i2, %o5, %o5 201afe0: 98 46 40 0c addx %i1, %o4, %o4 /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); 201afe4: 92 10 00 02 mov %g2, %o1 case SEEK_CUR: iop->offset += offset; break; case SEEK_END: iop->offset = iop->size + offset; 201afe8: d8 3c 20 10 std %o4, [ %l0 + 0x10 ] /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); 201afec: 94 10 00 03 mov %g3, %o2 201aff0: 96 10 00 1b mov %i3, %o3 201aff4: 9f c0 40 00 call %g1 201aff8: 90 10 00 10 mov %l0, %o0 if ( status == (off_t) -1 ) 201affc: 80 a2 3f ff cmp %o0, -1 201b000: 12 bf ff f3 bne 201afcc 201b004: b2 10 00 09 mov %o1, %i1 201b008: 80 a2 7f ff cmp %o1, -1 201b00c: 12 bf ff f0 bne 201afcc <== NEVER TAKEN 201b010: b2 10 00 09 mov %o1, %i1 iop->offset = old_offset; 201b014: e4 3c 20 10 std %l2, [ %l0 + 0x10 ] /* * So if the operation failed, we have to restore iop->offset. */ return status; } 201b018: 81 c7 e0 08 ret 201b01c: 91 e8 00 08 restore %g0, %o0, %o0 case SEEK_END: iop->offset = iop->size + offset; break; default: rtems_set_errno_and_return_minus_one( EINVAL ); 201b020: 7f ff d5 0c call 2010450 <__errno> 201b024: 01 00 00 00 nop 201b028: 82 10 20 16 mov 0x16, %g1 ! 16 201b02c: c2 22 00 00 st %g1, [ %o0 ] 201b030: 11 3f ff ff sethi %hi(0xfffffc00), %o0 201b034: 90 12 23 ff or %o0, 0x3ff, %o0 ! ffffffff 201b038: 92 10 00 08 mov %o0, %o1 /* * So if the operation failed, we have to restore iop->offset. */ return status; } 201b03c: b0 10 00 08 mov %o0, %i0 201b040: 81 c7 e0 08 ret 201b044: 93 e8 00 09 restore %g0, %o1, %o1 case SEEK_SET: iop->offset = offset; break; case SEEK_CUR: iop->offset += offset; 201b048: 9a 86 80 13 addcc %i2, %l3, %o5 201b04c: 98 46 40 12 addx %i1, %l2, %o4 break; 201b050: 10 bf ff d5 b 201afa4 201b054: d8 3c 20 10 std %o4, [ %l0 + 0x10 ] off_t old_offset; off_t status; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 201b058: 7f ff d4 fe call 2010450 <__errno> <== NOT EXECUTED 201b05c: 01 00 00 00 nop <== NOT EXECUTED 201b060: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED 201b064: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 201b068: 11 3f ff ff sethi %hi(0xfffffc00), %o0 <== NOT EXECUTED 201b06c: 90 12 23 ff or %o0, 0x3ff, %o0 ! ffffffff <== NOT EXECUTED 201b070: 10 bf ff d6 b 201afc8 <== NOT EXECUTED 201b074: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 201b078: 7f ff d4 f6 call 2010450 <__errno> <== NOT EXECUTED 201b07c: 01 00 00 00 nop <== NOT EXECUTED 201b080: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 201b084: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 201b088: 11 3f ff ff sethi %hi(0xfffffc00), %o0 <== NOT EXECUTED 201b08c: 90 12 23 ff or %o0, 0x3ff, %o0 ! ffffffff <== NOT EXECUTED 201b090: 10 bf ff ce b 201afc8 <== NOT EXECUTED 201b094: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED =============================================================================== 0202d750 : int _STAT_NAME( const char *path, struct stat *buf ) { 202d750: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 202d754: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 202d758: 02 80 00 34 be 202d828 <== NOT EXECUTED 202d75c: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); status = rtems_filesystem_evaluate_path( path, strlen( path ), 202d760: 40 00 88 e1 call 204fae4 <== NOT EXECUTED 202d764: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 202d768: a0 07 bf ec add %fp, -20, %l0 <== NOT EXECUTED 202d76c: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 202d770: 94 10 20 00 clr %o2 <== NOT EXECUTED 202d774: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 202d778: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 202d77c: 98 10 20 00 clr %o4 <== NOT EXECUTED 202d780: 7f ff 6c 38 call 2008860 <== NOT EXECUTED 202d784: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 202d788: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202d78c: 12 80 00 25 bne 202d820 <== NOT EXECUTED 202d790: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ 202d794: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 <== NOT EXECUTED 202d798: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 202d79c: 02 80 00 29 be 202d840 <== NOT EXECUTED 202d7a0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 202d7a4: c0 26 40 00 clr [ %i1 ] <== NOT EXECUTED 202d7a8: c0 26 60 04 clr [ %i1 + 4 ] <== NOT EXECUTED 202d7ac: c0 26 60 08 clr [ %i1 + 8 ] <== NOT EXECUTED 202d7b0: c0 26 60 0c clr [ %i1 + 0xc ] <== NOT EXECUTED 202d7b4: c0 26 60 10 clr [ %i1 + 0x10 ] <== NOT EXECUTED 202d7b8: c0 26 60 14 clr [ %i1 + 0x14 ] <== NOT EXECUTED 202d7bc: c0 26 60 18 clr [ %i1 + 0x18 ] <== NOT EXECUTED 202d7c0: c0 26 60 1c clr [ %i1 + 0x1c ] <== NOT EXECUTED 202d7c4: c0 26 60 20 clr [ %i1 + 0x20 ] <== NOT EXECUTED 202d7c8: c0 26 60 24 clr [ %i1 + 0x24 ] <== NOT EXECUTED 202d7cc: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED 202d7d0: c0 26 60 2c clr [ %i1 + 0x2c ] <== NOT EXECUTED 202d7d4: c0 26 60 30 clr [ %i1 + 0x30 ] <== NOT EXECUTED 202d7d8: c0 26 60 34 clr [ %i1 + 0x34 ] <== NOT EXECUTED 202d7dc: c0 26 60 38 clr [ %i1 + 0x38 ] <== NOT EXECUTED 202d7e0: c0 26 60 3c clr [ %i1 + 0x3c ] <== NOT EXECUTED 202d7e4: c0 26 60 40 clr [ %i1 + 0x40 ] <== NOT EXECUTED 202d7e8: c0 26 60 44 clr [ %i1 + 0x44 ] <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); 202d7ec: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 202d7f0: 9f c0 40 00 call %g1 <== NOT EXECUTED 202d7f4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 202d7f8: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 202d7fc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202d800: 02 80 00 08 be 202d820 <== NOT EXECUTED 202d804: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 202d808: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 202d80c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202d810: 02 80 00 1a be 202d878 <== NOT EXECUTED 202d814: 01 00 00 00 nop <== NOT EXECUTED 202d818: 9f c0 40 00 call %g1 <== NOT EXECUTED 202d81c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return status; } 202d820: 81 c7 e0 08 ret <== NOT EXECUTED 202d824: 81 e8 00 00 restore <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) rtems_set_errno_and_return_minus_one( EFAULT ); 202d828: 40 00 6d 07 call 2048c44 <__errno> <== NOT EXECUTED 202d82c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202d830: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 202d834: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202d838: 81 c7 e0 08 ret <== NOT EXECUTED 202d83c: 81 e8 00 00 restore <== NOT EXECUTED 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) return -1; if ( !loc.handlers->fstat_h ){ rtems_filesystem_freenode( &loc ); 202d840: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 202d844: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202d848: 02 80 00 08 be 202d868 <== NOT EXECUTED 202d84c: 01 00 00 00 nop <== NOT EXECUTED 202d850: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 202d854: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202d858: 02 80 00 04 be 202d868 <== NOT EXECUTED 202d85c: 01 00 00 00 nop <== NOT EXECUTED 202d860: 9f c0 40 00 call %g1 <== NOT EXECUTED 202d864: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 202d868: 40 00 6c f7 call 2048c44 <__errno> <== NOT EXECUTED 202d86c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202d870: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 202d874: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202d878: 81 c7 e0 08 ret <== NOT EXECUTED 202d87c: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 0200308c : size_t size ) { void *return_this; MSBUMP(malloc_calls, 1); 200308c: 9d e3 bf a0 save %sp, -96, %sp 2003090: 03 00 80 76 sethi %hi(0x201d800), %g1 2003094: 82 10 61 f0 or %g1, 0x1f0, %g1 ! 201d9f0 2003098: c4 00 60 04 ld [ %g1 + 4 ], %g2 200309c: a0 10 00 18 mov %i0, %l0 20030a0: 84 00 a0 01 inc %g2 /* * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 20030a4: 7f ff ff b0 call 2002f64 20030a8: c4 20 60 04 st %g2, [ %g1 + 4 ] /* * Validate the parameters */ if ( !size ) 20030ac: 80 a6 20 00 cmp %i0, 0 20030b0: 02 80 00 24 be 2003140 <== NEVER TAKEN 20030b4: 03 00 80 77 sethi %hi(0x201dc00), %g1 return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 20030b8: c2 00 61 50 ld [ %g1 + 0x150 ], %g1 ! 201dd50 <_System_state_Current> 20030bc: 80 a0 60 03 cmp %g1, 3 20030c0: 02 80 00 1b be 200312c 20030c4: 03 00 80 74 sethi %hi(0x201d000), %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 ); 20030c8: d0 00 60 50 ld [ %g1 + 0x50 ], %o0 ! 201d050 20030cc: 92 10 00 10 mov %l0, %o1 20030d0: 94 10 20 00 clr %o2 20030d4: 40 00 15 38 call 20085b4 <_Protected_heap_Allocate_aligned_with_boundary> 20030d8: 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 ) { 20030dc: b0 92 20 00 orcc %o0, 0, %i0 20030e0: 02 80 00 1a be 2003148 20030e4: a2 10 00 18 mov %i0, %l1 } /* * If the user wants us to dirty the allocated memory, then do it. */ if ( rtems_malloc_dirty_helper ) 20030e8: 03 00 80 75 sethi %hi(0x201d400), %g1 20030ec: c2 00 63 40 ld [ %g1 + 0x340 ], %g1 ! 201d740 20030f0: 80 a0 60 00 cmp %g1, 0 20030f4: 02 80 00 04 be 2003104 <== ALWAYS TAKEN 20030f8: 92 10 00 10 mov %l0, %o1 (*rtems_malloc_dirty_helper)( return_this, size ); 20030fc: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003100: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 2003104: 03 00 80 75 sethi %hi(0x201d400), %g1 2003108: c2 00 63 38 ld [ %g1 + 0x338 ], %g1 ! 201d738 200310c: 80 a0 60 00 cmp %g1, 0 2003110: 02 80 00 05 be 2003124 2003114: b0 10 00 11 mov %l1, %i0 (*rtems_malloc_statistics_helpers->at_malloc)(return_this); 2003118: c2 00 60 04 ld [ %g1 + 4 ], %g1 200311c: 9f c0 40 00 call %g1 2003120: 90 10 00 11 mov %l1, %o0 2003124: 81 c7 e0 08 ret 2003128: 81 e8 00 00 restore return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 200312c: 7f ff ff 75 call 2002f00 2003130: 01 00 00 00 nop 2003134: 80 8a 20 ff btst 0xff, %o0 2003138: 12 bf ff e4 bne 20030c8 <== ALWAYS TAKEN 200313c: 03 00 80 74 sethi %hi(0x201d000), %g1 if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; } 2003140: 81 c7 e0 08 ret <== NOT EXECUTED 2003144: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED */ return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size ); if ( !return_this ) { if (rtems_malloc_sbrk_helpers) 2003148: 03 00 80 75 sethi %hi(0x201d400), %g1 200314c: c2 00 63 3c ld [ %g1 + 0x33c ], %g1 ! 201d73c 2003150: 80 a0 60 00 cmp %g1, 0 2003154: 02 80 00 08 be 2003174 <== ALWAYS TAKEN 2003158: 01 00 00 00 nop return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); 200315c: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 2003160: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003164: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( !return_this ) { 2003168: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED 200316c: 12 bf ff e0 bne 20030ec <== NOT EXECUTED 2003170: 03 00 80 75 sethi %hi(0x201d400), %g1 <== NOT EXECUTED errno = ENOMEM; 2003174: 40 00 34 b7 call 2010450 <__errno> 2003178: 01 00 00 00 nop 200317c: 82 10 20 0c mov 0xc, %g1 ! c 2003180: c2 22 00 00 st %g1, [ %o0 ] return (void *) 0; 2003184: 81 c7 e0 08 ret 2003188: 81 e8 00 00 restore =============================================================================== 02002f48 : RTEMS_INLINE_ROUTINE void rtems_chain_append( rtems_chain_control *the_chain, rtems_chain_node *the_node ) { _Chain_Append( the_chain, the_node ); 2002f48: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 2002f4c: 11 00 80 76 sethi %hi(0x201d800), %o0 <== NOT EXECUTED 2002f50: 90 12 21 e4 or %o0, 0x1e4, %o0 ! 201d9e4 <== NOT EXECUTED 2002f54: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2002f58: 40 00 10 d2 call 20072a0 <_Chain_Append> <== NOT EXECUTED 2002f5c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED =============================================================================== 02002f64 : void malloc_deferred_frees_process(void) { 2002f64: 9d e3 bf a0 save %sp, -96, %sp 2002f68: 21 00 80 76 sethi %hi(0x201d800), %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) 2002f6c: 10 80 00 04 b 2002f7c 2002f70: a0 14 21 e4 or %l0, 0x1e4, %l0 ! 201d9e4 free(to_be_freed); 2002f74: 7f ff ff 5e call 2002cec <== NOT EXECUTED 2002f78: 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 ); 2002f7c: 40 00 10 df call 20072f8 <_Chain_Get> 2002f80: 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) 2002f84: 80 a2 20 00 cmp %o0, 0 2002f88: 12 bf ff fb bne 2002f74 <== NEVER TAKEN 2002f8c: 01 00 00 00 nop free(to_be_freed); } 2002f90: 81 c7 e0 08 ret 2002f94: 81 e8 00 00 restore =============================================================================== 02002f00 : rtems_chain_control RTEMS_Malloc_GC_list; bool malloc_is_system_state_OK(void) { if ( _Thread_Dispatch_disable_level > 0 ) 2002f00: 03 00 80 76 sethi %hi(0x201d800), %g1 2002f04: c2 00 63 b0 ld [ %g1 + 0x3b0 ], %g1 ! 201dbb0 <_Thread_Dispatch_disable_level> 2002f08: 80 a0 60 00 cmp %g1, 0 2002f0c: 12 80 00 06 bne 2002f24 <== NEVER TAKEN 2002f10: 90 10 20 00 clr %o0 return false; if ( _ISR_Nest_level > 0 ) 2002f14: 03 00 80 77 sethi %hi(0x201dc00), %g1 2002f18: c2 00 60 4c ld [ %g1 + 0x4c ], %g1 ! 201dc4c <_ISR_Nest_level> #include "malloc_p.h" rtems_chain_control RTEMS_Malloc_GC_list; bool malloc_is_system_state_OK(void) 2002f1c: 80 a0 00 01 cmp %g0, %g1 2002f20: 90 60 3f ff subx %g0, -1, %o0 if ( _ISR_Nest_level > 0 ) return false; return true; } 2002f24: 81 c3 e0 08 retl =============================================================================== 0200e220 : */ int memfile_blocks_allocated = 0; void *memfile_alloc_block(void) { 200e220: 9d e3 bf a0 save %sp, -96, %sp void *memory; memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK); 200e224: 03 00 80 75 sethi %hi(0x201d400), %g1 200e228: d2 00 63 4c ld [ %g1 + 0x34c ], %o1 ! 201d74c 200e22c: 7f ff d2 0d call 2002a60 200e230: 90 10 20 01 mov 1, %o0 if ( memory ) 200e234: 80 a2 20 00 cmp %o0, 0 200e238: 02 80 00 05 be 200e24c <== NEVER TAKEN 200e23c: 03 00 80 76 sethi %hi(0x201d800), %g1 memfile_blocks_allocated++; 200e240: c4 00 60 60 ld [ %g1 + 0x60 ], %g2 ! 201d860 200e244: 84 00 a0 01 inc %g2 200e248: c4 20 60 60 st %g2, [ %g1 + 0x60 ] return memory; } 200e24c: 81 c7 e0 08 ret 200e250: 91 e8 00 08 restore %g0, %o0, %o0 =============================================================================== 0200e7c8 : return memfile_check_rmnod( the_jnode ); } int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){ 200e7c8: 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) ) { 200e7cc: 7f ff f8 68 call 200c96c 200e7d0: 90 10 00 18 mov %i0, %o0 200e7d4: 80 a2 20 00 cmp %o0, 0 200e7d8: 12 80 00 13 bne 200e824 200e7dc: 01 00 00 00 nop 200e7e0: c2 16 20 34 lduh [ %i0 + 0x34 ], %g1 200e7e4: 80 a0 60 00 cmp %g1, 0 200e7e8: 12 80 00 0f bne 200e824 <== NEVER TAKEN 200e7ec: 03 00 80 74 sethi %hi(0x201d000), %g1 /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == the_jnode ) 200e7f0: c2 00 62 10 ld [ %g1 + 0x210 ], %g1 ! 201d210 200e7f4: c4 00 60 04 ld [ %g1 + 4 ], %g2 200e7f8: 80 a0 80 18 cmp %g2, %i0 200e7fc: 22 80 00 02 be,a 200e804 <== NEVER TAKEN 200e800: 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) 200e804: c2 06 20 4c ld [ %i0 + 0x4c ], %g1 200e808: 80 a0 60 06 cmp %g1, 6 200e80c: 02 80 00 04 be 200e81c <== NEVER TAKEN 200e810: 01 00 00 00 nop IMFS_memfile_remove( the_jnode ); 200e814: 7f ff ff 7a call 200e5fc 200e818: 90 10 00 18 mov %i0, %o0 free( the_jnode ); 200e81c: 7f ff d1 34 call 2002cec 200e820: 90 10 00 18 mov %i0, %o0 } return 0; } 200e824: 81 c7 e0 08 ret 200e828: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 0200e51c : void memfile_free_blocks_in_table( block_p **block_table, int entries ) { 200e51c: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( block_table ); 200e520: 80 a6 20 00 cmp %i0, 0 200e524: 02 80 00 16 be 200e57c <== NEVER TAKEN 200e528: 80 a6 60 00 cmp %i1, 0 * Now go through all the slots in the table and free the memory. */ b = *block_table; for ( i=0 ; i<== NEVER TAKEN 200e530: d0 06 00 00 ld [ %i0 ], %o0 200e534: a0 10 00 08 mov %o0, %l0 200e538: a2 10 20 00 clr %l1 if ( b[i] ) { 200e53c: d0 04 00 00 ld [ %l0 ], %o0 200e540: 80 a2 20 00 cmp %o0, 0 200e544: 02 80 00 05 be 200e558 200e548: a2 04 60 01 inc %l1 memfile_free_block( b[i] ); 200e54c: 7f ff ff 2c call 200e1fc 200e550: 01 00 00 00 nop b[i] = 0; 200e554: 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 200e560: a0 04 20 04 add %l0, 4, %l0 200e564: d0 06 00 00 ld [ %i0 ], %o0 /* * Now that all the blocks in the block table are free, we can * free the block table itself. */ memfile_free_block( *block_table ); 200e568: 7f ff ff 25 call 200e1fc 200e56c: 01 00 00 00 nop *block_table = 0; 200e570: c0 26 00 00 clr [ %i0 ] } 200e574: 81 c7 e0 08 ret 200e578: 81 e8 00 00 restore /* * Perform internal consistency checks */ assert( block_table ); 200e57c: 11 00 80 71 sethi %hi(0x201c400), %o0 <== NOT EXECUTED 200e580: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED 200e584: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED 200e588: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED 200e58c: 94 12 a3 20 or %o2, 0x320, %o2 <== NOT EXECUTED 200e590: 96 12 e2 38 or %o3, 0x238, %o3 <== NOT EXECUTED 200e594: 7f ff f8 55 call 200c6e8 <__assert_func> <== NOT EXECUTED 200e598: 92 10 21 b3 mov 0x1b3, %o1 <== NOT EXECUTED =============================================================================== 0200eae8 : int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { 200eae8: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 200eaec: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 * 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 ) 200eaf0: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 200eaf4: 80 a0 40 19 cmp %g1, %i1 200eaf8: 06 80 00 13 bl 200eb44 <== NEVER TAKEN 200eafc: 90 10 00 10 mov %l0, %o0 200eb00: 22 80 00 0d be,a 200eb34 <== ALWAYS TAKEN 200eb04: c2 04 20 54 ld [ %l0 + 0x54 ], %g1 * 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; 200eb08: f2 24 20 50 st %i1, [ %l0 + 0x50 ] <== NOT EXECUTED 200eb0c: f4 24 20 54 st %i2, [ %l0 + 0x54 ] iop->size = the_jnode->info.file.size; 200eb10: f4 26 20 0c st %i2, [ %i0 + 0xc ] 200eb14: f2 26 20 08 st %i1, [ %i0 + 8 ] IMFS_update_atime( the_jnode ); 200eb18: 90 07 bf f8 add %fp, -8, %o0 200eb1c: 7f ff d0 9f call 2002d98 200eb20: 92 10 20 00 clr %o1 200eb24: c2 07 bf f8 ld [ %fp + -8 ], %g1 200eb28: c2 24 20 40 st %g1, [ %l0 + 0x40 ] return 0; } 200eb2c: 81 c7 e0 08 ret 200eb30: 91 e8 20 00 restore %g0, 0, %o0 * 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 ) 200eb34: 80 a0 40 1a cmp %g1, %i2 200eb38: 3a bf ff f5 bcc,a 200eb0c <== ALWAYS TAKEN 200eb3c: f2 24 20 50 st %i1, [ %l0 + 0x50 ] return IMFS_memfile_extend( the_jnode, length ); 200eb40: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 200eb44: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200eb48: 7f ff ff 83 call 200e954 <== NOT EXECUTED 200eb4c: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED 200eb50: 81 c7 e0 08 ret <== NOT EXECUTED 200eb54: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED =============================================================================== 0200eb58 : rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 200eb58: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 200eb5c: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 if (the_jnode->type == IMFS_LINEAR_FILE) { 200eb60: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 200eb64: 80 a0 60 06 cmp %g1, 6 200eb68: 02 80 00 0f be 200eba4 <== NEVER TAKEN 200eb6c: 90 10 00 10 mov %l0, %o0 if (iop->offset > the_jnode->info.linearfile.size) iop->offset = the_jnode->info.linearfile.size; } else { /* Must be a block file (IMFS_MEMORY_FILE). */ if (IMFS_memfile_extend( the_jnode, iop->offset )) 200eb70: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 200eb74: 92 10 00 02 mov %g2, %o1 200eb78: 7f ff ff 77 call 200e954 200eb7c: 94 10 00 03 mov %g3, %o2 200eb80: 80 a2 20 00 cmp %o0, 0 200eb84: 12 80 00 1b bne 200ebf0 <== NEVER TAKEN 200eb88: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size; 200eb8c: d8 1c 20 50 ldd [ %l0 + 0x50 ], %o4 200eb90: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 200eb94: d8 3e 20 08 std %o4, [ %i0 + 8 ] } return iop->offset; } 200eb98: b2 10 00 03 mov %g3, %i1 200eb9c: 81 c7 e0 08 ret 200eba0: 91 e8 00 02 restore %g0, %g2, %o0 IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; if (the_jnode->type == IMFS_LINEAR_FILE) { if (iop->offset > the_jnode->info.linearfile.size) 200eba4: c4 1c 20 50 ldd [ %l0 + 0x50 ], %g2 <== NOT EXECUTED 200eba8: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED 200ebac: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 200ebb0: 14 80 00 0c bg 200ebe0 <== NOT EXECUTED 200ebb4: c8 06 20 14 ld [ %i0 + 0x14 ], %g4 <== NOT EXECUTED 200ebb8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 200ebbc: 02 80 00 07 be 200ebd8 <== NOT EXECUTED 200ebc0: 80 a1 00 03 cmp %g4, %g3 <== NOT EXECUTED 200ebc4: 84 10 00 01 mov %g1, %g2 <== NOT EXECUTED 200ebc8: 86 10 00 04 mov %g4, %g3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size; } return iop->offset; } 200ebcc: b0 10 00 02 mov %g2, %i0 <== NOT EXECUTED 200ebd0: 81 c7 e0 08 ret <== NOT EXECUTED 200ebd4: 93 e8 00 03 restore %g0, %g3, %o1 <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; if (the_jnode->type == IMFS_LINEAR_FILE) { if (iop->offset > the_jnode->info.linearfile.size) 200ebd8: 28 bf ff fc bleu,a 200ebc8 <== NOT EXECUTED 200ebdc: 84 10 00 01 mov %g1, %g2 <== NOT EXECUTED iop->offset = the_jnode->info.linearfile.size; 200ebe0: c4 3e 20 10 std %g2, [ %i0 + 0x10 ] <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size; } return iop->offset; } 200ebe4: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED 200ebe8: 81 c7 e0 08 ret <== NOT EXECUTED 200ebec: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED if (iop->offset > the_jnode->info.linearfile.size) iop->offset = the_jnode->info.linearfile.size; } else { /* Must be a block file (IMFS_MEMORY_FILE). */ if (IMFS_memfile_extend( the_jnode, iop->offset )) rtems_set_errno_and_return_minus_one( ENOSPC ); 200ebf0: 40 00 06 18 call 2010450 <__errno> <== NOT EXECUTED 200ebf4: 01 00 00 00 nop <== NOT EXECUTED 200ebf8: 82 10 20 1c mov 0x1c, %g1 ! 1c <== NOT EXECUTED 200ebfc: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED 200ec00: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200ec04: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED 200ec08: 10 bf ff e4 b 200eb98 <== NOT EXECUTED 200ec0c: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED =============================================================================== 0200ef04 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 200ef04: 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)) 200ef08: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 200ef0c: a0 10 00 18 mov %i0, %l0 the_jnode = iop->file_info; /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) 200ef10: 80 88 62 04 btst 0x204, %g1 200ef14: 02 80 00 06 be 200ef2c 200ef18: e2 06 20 3c ld [ %i0 + 0x3c ], %l1 && (the_jnode->type == IMFS_LINEAR_FILE)) { 200ef1c: c4 04 60 4c ld [ %l1 + 0x4c ], %g2 200ef20: 80 a0 a0 06 cmp %g2, 6 200ef24: 22 80 00 0c be,a 200ef54 <== NEVER TAKEN 200ef28: d8 04 60 54 ld [ %l1 + 0x54 ], %o4 <== 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) 200ef2c: c4 1c 60 50 ldd [ %l1 + 0x50 ], %g2 && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) return -1; } if (iop->flags & LIBIO_FLAGS_APPEND) 200ef30: 80 88 62 00 btst 0x200, %g1 200ef34: 22 80 00 05 be,a 200ef48 200ef38: c4 3c 20 08 std %g2, [ %l0 + 8 ] iop->offset = the_jnode->info.file.size; 200ef3c: c4 3c 20 10 std %g2, [ %l0 + 0x10 ] 200ef40: c4 1c 60 50 ldd [ %l1 + 0x50 ], %g2 iop->size = the_jnode->info.file.size; 200ef44: c4 3c 20 08 std %g2, [ %l0 + 8 ] 200ef48: b0 10 20 00 clr %i0 return 0; } 200ef4c: 81 c7 e0 08 ret 200ef50: 81 e8 00 00 restore * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) && (the_jnode->type == IMFS_LINEAR_FILE)) { uint32_t count = the_jnode->info.linearfile.size; const unsigned char *buffer = the_jnode->info.linearfile.direct; 200ef54: d6 04 60 58 ld [ %l1 + 0x58 ], %o3 <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; 200ef58: 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; 200ef5c: c0 24 60 5c clr [ %l1 + 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; 200ef60: c0 24 60 50 clr [ %l1 + 0x50 ] <== NOT EXECUTED 200ef64: c0 24 60 54 clr [ %l1 + 0x54 ] <== NOT EXECUTED the_jnode->info.file.indirect = 0; the_jnode->info.file.doubly_indirect = 0; the_jnode->info.file.triply_indirect = 0; 200ef68: c0 24 60 60 clr [ %l1 + 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; 200ef6c: c0 24 60 58 clr [ %l1 + 0x58 ] <== NOT EXECUTED the_jnode->info.file.doubly_indirect = 0; the_jnode->info.file.triply_indirect = 0; if ((count != 0) 200ef70: 80 a3 20 00 cmp %o4, 0 <== NOT EXECUTED 200ef74: 12 80 00 06 bne 200ef8c <== NOT EXECUTED 200ef78: c2 24 60 4c st %g1, [ %l1 + 0x4c ] <== NOT EXECUTED 200ef7c: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 <== NOT EXECUTED 200ef80: 84 10 20 00 clr %g2 <== NOT EXECUTED 200ef84: 10 bf ff eb b 200ef30 <== NOT EXECUTED 200ef88: 86 10 20 00 clr %g3 <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) 200ef8c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 200ef90: 92 10 20 00 clr %o1 <== NOT EXECUTED 200ef94: 94 10 20 00 clr %o2 <== NOT EXECUTED 200ef98: 7f ff ff 1e call 200ec10 <== NOT EXECUTED 200ef9c: 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) 200efa0: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 200efa4: 02 bf ff ea be 200ef4c <== NOT EXECUTED 200efa8: 01 00 00 00 nop <== NOT EXECUTED 200efac: 10 bf ff e0 b 200ef2c <== NOT EXECUTED 200efb0: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED =============================================================================== 0200e82c : int memfile_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 200e82c: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 200e830: 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 ) { 200e834: c2 04 20 08 ld [ %l0 + 8 ], %g1 200e838: 80 a0 60 00 cmp %g1, 0 200e83c: 22 80 00 06 be,a 200e854 <== NEVER TAKEN 200e840: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 <== NOT EXECUTED 200e844: 7f ff e2 a3 call 20072d0 <_Chain_Extract> 200e848: 90 10 00 10 mov %l0, %o0 rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 200e84c: c0 24 20 08 clr [ %l0 + 8 ] /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 200e850: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 IMFS_update_ctime( the_jnode ); 200e854: 92 10 20 00 clr %o1 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 200e858: 82 00 7f ff add %g1, -1, %g1 IMFS_update_ctime( the_jnode ); 200e85c: 90 07 bf f8 add %fp, -8, %o0 200e860: 7f ff d1 4e call 2002d98 200e864: c2 34 20 34 sth %g1, [ %l0 + 0x34 ] 200e868: c2 07 bf f8 ld [ %fp + -8 ], %g1 return memfile_check_rmnod( the_jnode ); 200e86c: 90 10 00 10 mov %l0, %o0 200e870: 7f ff ff d6 call 200e7c8 200e874: c2 24 20 48 st %g1, [ %l0 + 0x48 ] } 200e878: 81 c7 e0 08 ret 200e87c: 91 e8 00 08 restore %g0, %o0, %o0 =============================================================================== 020031ac : int mknod( const char *pathname, mode_t mode, dev_t dev ) { 20031ac: 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) 20031b0: 03 00 00 3c sethi %hi(0xf000), %g1 20031b4: 05 00 00 10 sethi %hi(0x4000), %g2 20031b8: 82 0e 40 01 and %i1, %g1, %g1 20031bc: 80 a0 40 02 cmp %g1, %g2 20031c0: 02 80 00 18 be 2003220 20031c4: a0 07 bf e4 add %fp, -28, %l0 20031c8: 08 80 00 0f bleu 2003204 20031cc: 05 00 00 04 sethi %hi(0x1000), %g2 20031d0: 05 00 00 18 sethi %hi(0x6000), %g2 20031d4: 80 a0 40 02 cmp %g1, %g2 20031d8: 02 80 00 12 be 2003220 20031dc: 05 00 00 20 sethi %hi(0x8000), %g2 20031e0: 80 a0 40 02 cmp %g1, %g2 20031e4: 02 80 00 10 be 2003224 <== ALWAYS TAKEN 20031e8: 90 10 00 18 mov %i0, %o0 case S_IFBLK: case S_IFREG: case S_IFIFO: break; default: rtems_set_errno_and_return_minus_one( EINVAL ); 20031ec: 40 00 34 99 call 2010450 <__errno> <== NOT EXECUTED 20031f0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20031f4: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 20031f8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20031fc: 81 c7 e0 08 ret 2003200: 81 e8 00 00 restore int result; /* * The file type is field within the mode. Check we have a sane mode set. */ switch (mode & S_IFMT) 2003204: 80 a0 40 02 cmp %g1, %g2 2003208: 02 80 00 05 be 200321c 200320c: 05 00 00 08 sethi %hi(0x2000), %g2 2003210: 80 a0 40 02 cmp %g1, %g2 2003214: 12 bf ff f6 bne 20031ec <== NEVER TAKEN 2003218: 01 00 00 00 nop break; default: rtems_set_errno_and_return_minus_one( EINVAL ); } rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); 200321c: a0 07 bf e4 add %fp, -28, %l0 2003220: 90 10 00 18 mov %i0, %o0 2003224: 92 07 bf fc add %fp, -4, %o1 2003228: 40 00 02 d0 call 2003d68 200322c: 94 10 00 10 mov %l0, %o2 if ( !temp_loc.ops->evalformake_h ) { 2003230: c2 07 bf f0 ld [ %fp + -16 ], %g1 2003234: c2 00 60 04 ld [ %g1 + 4 ], %g1 2003238: 80 a0 60 00 cmp %g1, 0 200323c: 02 80 00 25 be 20032d0 <== NEVER TAKEN 2003240: d0 07 bf fc ld [ %fp + -4 ], %o0 rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->evalformake_h)( 2003244: 92 10 00 10 mov %l0, %o1 2003248: 90 06 00 08 add %i0, %o0, %o0 200324c: 94 07 bf f8 add %fp, -8, %o2 2003250: 9f c0 40 00 call %g1 2003254: b0 10 3f ff mov -1, %i0 &pathname[i], &temp_loc, &name_start ); if ( result != 0 ) 2003258: 80 a2 20 00 cmp %o0, 0 200325c: 12 bf ff e8 bne 20031fc 2003260: c4 07 bf f0 ld [ %fp + -16 ], %g2 return -1; if ( !temp_loc.ops->mknod_h ) { 2003264: c2 00 a0 14 ld [ %g2 + 0x14 ], %g1 2003268: 80 a0 60 00 cmp %g1, 0 200326c: 02 80 00 13 be 20032b8 <== NEVER TAKEN 2003270: d0 07 bf f8 ld [ %fp + -8 ], %o0 rtems_filesystem_freenode( &temp_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc ); 2003274: 92 10 00 19 mov %i1, %o1 2003278: 94 10 00 1a mov %i2, %o2 200327c: 96 10 00 1b mov %i3, %o3 2003280: 9f c0 40 00 call %g1 2003284: 98 10 00 10 mov %l0, %o4 rtems_filesystem_freenode( &temp_loc ); 2003288: c2 07 bf f0 ld [ %fp + -16 ], %g1 200328c: 80 a0 60 00 cmp %g1, 0 2003290: 02 bf ff db be 20031fc <== NEVER TAKEN 2003294: b0 10 00 08 mov %o0, %i0 2003298: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200329c: 80 a0 60 00 cmp %g1, 0 20032a0: 02 80 00 10 be 20032e0 20032a4: 01 00 00 00 nop 20032a8: 9f c0 40 00 call %g1 20032ac: 90 10 00 10 mov %l0, %o0 return result; } 20032b0: 81 c7 e0 08 ret 20032b4: 81 e8 00 00 restore ); if ( result != 0 ) return -1; if ( !temp_loc.ops->mknod_h ) { rtems_filesystem_freenode( &temp_loc ); 20032b8: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 20032bc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20032c0: 02 80 00 04 be 20032d0 <== NOT EXECUTED 20032c4: 01 00 00 00 nop <== NOT EXECUTED 20032c8: 9f c0 40 00 call %g1 <== NOT EXECUTED 20032cc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 20032d0: 40 00 34 60 call 2010450 <__errno> <== NOT EXECUTED 20032d4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20032d8: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 20032dc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20032e0: 81 c7 e0 08 ret 20032e4: 81 e8 00 00 restore =============================================================================== 02003370 : const char *target, const char *filesystemtype, rtems_filesystem_options_t options, const void *data ) { 2003370: 9d e3 bf 88 save %sp, -120, %sp /* * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && 2003374: 80 a6 e0 01 cmp %i3, 1 2003378: 18 80 00 a4 bgu 2003608 200337c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EINVAL ); /* * Get mount handler */ mount_h = rtems_filesystem_get_mount_handler( filesystemtype ); 2003380: 40 00 26 93 call 200cdcc 2003384: 90 10 00 1a mov %i2, %o0 if ( !mount_h ) 2003388: a4 92 20 00 orcc %o0, 0, %l2 200338c: 02 80 00 9f be 2003608 2003390: 80 a0 00 19 cmp %g0, %i1 const char *target_or_null, const char *filesystemtype, size_t *target_length_ptr ) { const char *target = target_or_null != NULL ? target_or_null : "/"; 2003394: a2 40 20 00 addx %g0, 0, %l1 2003398: 80 a4 60 00 cmp %l1, 0 200339c: 02 80 00 97 be 20035f8 20033a0: 90 10 00 19 mov %i1, %o0 * 4) The mount point exists with the proper permissions to allow mounting * 5) The selected mount point already has a file system mounted to it * */ int mount( 20033a4: 40 00 37 f8 call 2011384 20033a8: ac 10 00 19 mov %i1, %l6 20033ac: a6 10 00 08 mov %o0, %l3 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; 20033b0: 40 00 37 f5 call 2011384 20033b4: 90 10 00 1a mov %i2, %o0 size_t source_size = source_or_null != NULL ? strlen( source_or_null ) + 1 : 0; 20033b8: 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; 20033bc: aa 02 20 01 add %o0, 1, %l5 size_t source_size = source_or_null != NULL ? strlen( source_or_null ) + 1 : 0; 20033c0: 02 80 00 05 be 20033d4 20033c4: a8 10 20 00 clr %l4 20033c8: 40 00 37 ef call 2011384 20033cc: 90 10 00 18 mov %i0, %o0 20033d0: a8 02 20 01 add %o0, 1, %l4 size_t target_length = strlen( target ); 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 ); 20033d4: 92 04 e0 75 add %l3, 0x75, %o1 20033d8: 90 10 20 01 mov 1, %o0 20033dc: 92 02 40 15 add %o1, %l5, %o1 20033e0: 7f ff fd a0 call 2002a60 20033e4: 92 02 40 14 add %o1, %l4, %o1 if ( mt_entry != NULL ) { 20033e8: a0 92 20 00 orcc %o0, 0, %l0 20033ec: 02 80 00 7d be 20035e0 <== NEVER TAKEN 20033f0: 92 10 00 1a mov %i2, %o1 char *str = (char *) mt_entry + sizeof( *mt_entry ); 20033f4: b4 04 20 74 add %l0, 0x74, %i2 strcpy( str, filesystemtype ); 20033f8: 40 00 37 ab call 20112a4 20033fc: 90 10 00 1a mov %i2, %o0 mt_entry->type = str; 2003400: f4 24 20 6c st %i2, [ %l0 + 0x6c ] str += filesystemtype_size; if ( source_or_null != NULL ) { 2003404: 80 a6 20 00 cmp %i0, 0 2003408: 02 80 00 07 be 2003424 200340c: b4 06 80 15 add %i2, %l5, %i2 strcpy( str, source_or_null ); 2003410: 90 10 00 1a mov %i2, %o0 2003414: 40 00 37 a4 call 20112a4 2003418: 92 10 00 18 mov %i0, %o1 mt_entry->dev = str; 200341c: f4 24 20 70 st %i2, [ %l0 + 0x70 ] str += source_size; 2003420: b4 06 80 14 add %i2, %l4, %i2 } strcpy( str, target ); 2003424: 92 10 00 16 mov %l6, %o1 2003428: 40 00 37 9f call 20112a4 200342c: 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; 2003430: 13 00 80 6f sethi %hi(0x201bc00), %o1 mt_entry->dev = str; str += source_size; } strcpy( str, target ); mt_entry->target = str; 2003434: 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; 2003438: 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; 200343c: e0 24 20 2c st %l0, [ %l0 + 0x2c ] mt_entry->options = options; mt_entry->pathconf_limits_and_options = rtems_filesystem_default_pathconf; 2003440: 92 12 63 b8 or %o1, 0x3b8, %o1 2003444: 90 04 20 38 add %l0, 0x38, %o0 2003448: 40 00 36 3e call 2010d40 200344c: 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 ) { 2003450: 80 a4 60 00 cmp %l1, 0 2003454: 12 80 00 2b bne 2003500 2003458: 03 00 80 74 sethi %hi(0x201d000), %g1 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 200345c: c4 00 61 f0 ld [ %g1 + 0x1f0 ], %g2 ! 201d1f0 } } else { /* * Do we already have a base file system ? */ if ( !rtems_chain_is_empty( &mount_chain ) ) { 2003460: 82 10 61 f0 or %g1, 0x1f0, %g1 2003464: 82 00 60 04 add %g1, 4, %g1 2003468: 80 a0 80 01 cmp %g2, %g1 200346c: 12 80 00 7b bne 2003658 <== NEVER TAKEN 2003470: a6 10 20 00 clr %l3 * 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 ) ) { 2003474: 92 10 00 1c mov %i4, %o1 2003478: 9f c4 80 00 call %l2 200347c: 90 10 00 10 mov %l0, %o0 2003480: 80 a2 20 00 cmp %o0, 0 2003484: 12 80 00 67 bne 2003620 <== NEVER TAKEN 2003488: 25 00 80 76 sethi %hi(0x201d800), %l2 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 ); 200348c: d0 04 a1 e0 ld [ %l2 + 0x1e0 ], %o0 ! 201d9e0 2003490: 94 10 20 00 clr %o2 2003494: 40 00 0d 10 call 20068d4 2003498: 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 ); 200349c: 92 10 00 10 mov %l0, %o1 20034a0: 11 00 80 74 sethi %hi(0x201d000), %o0 20034a4: 40 00 0f 7f call 20072a0 <_Chain_Append> 20034a8: 90 12 21 f0 or %o0, 0x1f0, %o0 ! 201d1f0 } static inline void rtems_libio_unlock( void ) { rtems_semaphore_release( rtems_libio_semaphore ); 20034ac: d0 04 a1 e0 ld [ %l2 + 0x1e0 ], %o0 20034b0: 40 00 0d 50 call 20069f0 20034b4: b0 10 20 00 clr %i0 */ rtems_libio_lock(); rtems_chain_append( &mount_chain, &mt_entry->Node ); rtems_libio_unlock(); if ( !has_target ) 20034b8: 80 a4 60 00 cmp %l1, 0 20034bc: 22 80 00 04 be,a 20034cc 20034c0: c4 04 20 1c ld [ %l0 + 0x1c ], %g2 if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); return -1; } 20034c4: 81 c7 e0 08 ret 20034c8: 81 e8 00 00 restore rtems_libio_lock(); rtems_chain_append( &mount_chain, &mt_entry->Node ); rtems_libio_unlock(); if ( !has_target ) rtems_filesystem_root = mt_entry->mt_fs_root; 20034cc: 03 00 80 74 sethi %hi(0x201d000), %g1 20034d0: c2 00 62 10 ld [ %g1 + 0x210 ], %g1 ! 201d210 20034d4: c4 20 60 18 st %g2, [ %g1 + 0x18 ] 20034d8: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 20034dc: c4 20 60 1c st %g2, [ %g1 + 0x1c ] 20034e0: c4 04 20 24 ld [ %l0 + 0x24 ], %g2 20034e4: c4 20 60 20 st %g2, [ %g1 + 0x20 ] 20034e8: c4 04 20 28 ld [ %l0 + 0x28 ], %g2 20034ec: c4 20 60 24 st %g2, [ %g1 + 0x24 ] 20034f0: c4 04 20 2c ld [ %l0 + 0x2c ], %g2 20034f4: c4 20 60 28 st %g2, [ %g1 + 0x28 ] 20034f8: 81 c7 e0 08 ret 20034fc: 81 e8 00 00 restore * The mount_point should be a directory with read/write/execute * permissions in the existing tree. */ if ( has_target ) { if ( rtems_filesystem_evaluate_path( 2003500: 90 10 00 19 mov %i1, %o0 2003504: 92 10 00 13 mov %l3, %o1 2003508: b6 07 bf ec add %fp, -20, %i3 200350c: 94 10 20 07 mov 7, %o2 2003510: 96 10 00 1b mov %i3, %o3 2003514: 7f ff fd d7 call 2002c70 2003518: 98 10 20 01 mov 1, %o4 200351c: 80 a2 3f ff cmp %o0, -1 2003520: 02 80 00 52 be 2003668 <== NEVER TAKEN 2003524: c2 07 bf f8 ld [ %fp + -8 ], %g1 /* * Test for node_type_h */ if (!loc.ops->node_type_h) { 2003528: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 200352c: 80 a0 60 00 cmp %g1, 0 2003530: 02 80 00 5d be 20036a4 <== NEVER TAKEN 2003534: 01 00 00 00 nop /* * Test to see if it is a directory */ if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 2003538: 9f c0 40 00 call %g1 200353c: 90 10 00 1b mov %i3, %o0 2003540: 80 a2 20 01 cmp %o0, 1 2003544: 12 80 00 4e bne 200367c 2003548: d2 07 bf ec ld [ %fp + -20 ], %o1 /* * You can only mount one file system onto a single mount point. */ if ( rtems_filesystem_mount_iterate( is_node_fs_root, loc.node_access ) ) { 200354c: 11 00 80 0c sethi %hi(0x2003000), %o0 2003550: 7f ff ff 6b call 20032fc 2003554: 90 12 22 e8 or %o0, 0x2e8, %o0 ! 20032e8 2003558: 80 8a 20 ff btst 0xff, %o0 200355c: 12 80 00 4d bne 2003690 2003560: c6 07 bf ec ld [ %fp + -20 ], %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; 2003564: 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; 2003568: c6 24 20 08 st %g3, [ %l0 + 8 ] mt_entry->mt_point_node.handlers = loc.handlers; 200356c: 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 ){ 2003570: 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; 2003574: 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; 2003578: 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; 200357c: 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 ){ 2003580: 80 a0 60 00 cmp %g1, 0 2003584: 02 80 00 48 be 20036a4 <== NEVER TAKEN 2003588: c6 24 20 18 st %g3, [ %l0 + 0x18 ] errno = ENOTSUP; goto cleanup_and_bail; } if ( loc.ops->mount_h( mt_entry ) ) { 200358c: 90 10 00 10 mov %l0, %o0 2003590: 9f c0 40 00 call %g1 2003594: a6 10 00 1b mov %i3, %l3 2003598: 80 a2 20 00 cmp %o0, 0 200359c: 02 bf ff b7 be 2003478 <== ALWAYS TAKEN 20035a0: 92 10 00 1c mov %i4, %o1 return 0; cleanup_and_bail: free( mt_entry ); 20035a4: 90 10 00 10 mov %l0, %o0 20035a8: 7f ff fd d1 call 2002cec 20035ac: a6 10 00 1b mov %i3, %l3 if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); 20035b0: c2 04 e0 0c ld [ %l3 + 0xc ], %g1 20035b4: 80 a0 60 00 cmp %g1, 0 20035b8: 02 80 00 26 be 2003650 <== NEVER TAKEN 20035bc: 01 00 00 00 nop 20035c0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20035c4: 80 a0 60 00 cmp %g1, 0 20035c8: 02 80 00 22 be 2003650 <== NEVER TAKEN 20035cc: 90 10 00 13 mov %l3, %o0 20035d0: 9f c0 40 00 call %g1 20035d4: b0 10 3f ff mov -1, %i0 20035d8: 81 c7 e0 08 ret 20035dc: 81 e8 00 00 restore target, filesystemtype, &target_length ); if ( !mt_entry ) rtems_set_errno_and_return_minus_one( ENOMEM ); 20035e0: 40 00 33 9c call 2010450 <__errno> <== NOT EXECUTED 20035e4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20035e8: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 20035ec: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20035f0: 81 c7 e0 08 ret <== NOT EXECUTED 20035f4: 81 e8 00 00 restore <== NOT EXECUTED const char *target_or_null, const char *filesystemtype, size_t *target_length_ptr ) { const char *target = target_or_null != NULL ? target_or_null : "/"; 20035f8: 2d 00 80 6f sethi %hi(0x201bc00), %l6 20035fc: a6 10 20 01 mov 1, %l3 2003600: 10 bf ff 6c b 20033b0 2003604: ac 15 a3 b0 or %l6, 0x3b0, %l6 /* * Get mount handler */ mount_h = rtems_filesystem_get_mount_handler( filesystemtype ); if ( !mount_h ) rtems_set_errno_and_return_minus_one( EINVAL ); 2003608: 40 00 33 92 call 2010450 <__errno> 200360c: b0 10 3f ff mov -1, %i0 2003610: 82 10 20 16 mov 0x16, %g1 2003614: c2 22 00 00 st %g1, [ %o0 ] 2003618: 81 c7 e0 08 ret 200361c: 81 e8 00 00 restore if ( (*mount_h)( mt_entry, data ) ) { /* * Try to undo the mount operation */ if ( loc.ops->unmount_h ) { 2003620: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2003624: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 <== NOT EXECUTED 2003628: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200362c: 02 80 00 04 be 200363c <== NOT EXECUTED 2003630: 01 00 00 00 nop <== NOT EXECUTED loc.ops->unmount_h( mt_entry ); 2003634: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003638: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return 0; cleanup_and_bail: free( mt_entry ); 200363c: 7f ff fd ac call 2002cec <== NOT EXECUTED 2003640: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( loc_to_free ) 2003644: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED 2003648: 32 bf ff db bne,a 20035b4 <== NOT EXECUTED 200364c: c2 04 e0 0c ld [ %l3 + 0xc ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( loc_to_free ); return -1; } 2003650: 81 c7 e0 08 ret <== NOT EXECUTED 2003654: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED } else { /* * Do we already have a base file system ? */ if ( !rtems_chain_is_empty( &mount_chain ) ) { errno = EINVAL; 2003658: 40 00 33 7e call 2010450 <__errno> <== NOT EXECUTED 200365c: 01 00 00 00 nop <== NOT EXECUTED 2003660: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED 2003664: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return 0; cleanup_and_bail: free( mt_entry ); 2003668: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 200366c: 7f ff fd a0 call 2002cec <== NOT EXECUTED 2003670: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2003674: 81 c7 e0 08 ret <== NOT EXECUTED 2003678: 81 e8 00 00 restore <== NOT EXECUTED /* * Test to see if it is a directory */ if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { errno = ENOTDIR; 200367c: 40 00 33 75 call 2010450 <__errno> 2003680: 01 00 00 00 nop 2003684: 82 10 20 14 mov 0x14, %g1 ! 14 goto cleanup_and_bail; 2003688: 10 bf ff c7 b 20035a4 200368c: 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 ) ) { errno = EBUSY; 2003690: 40 00 33 70 call 2010450 <__errno> 2003694: 01 00 00 00 nop 2003698: 82 10 20 10 mov 0x10, %g1 ! 10 goto cleanup_and_bail; 200369c: 10 bf ff c2 b 20035a4 20036a0: c2 22 00 00 st %g1, [ %o0 ] * This link to the parent is only done when we are dealing with system * below the base file system */ if ( !loc.ops->mount_h ){ errno = ENOTSUP; 20036a4: 40 00 33 6b call 2010450 <__errno> <== NOT EXECUTED 20036a8: 01 00 00 00 nop <== NOT EXECUTED 20036ac: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED goto cleanup_and_bail; 20036b0: 10 bf ff bd b 20035a4 <== NOT EXECUTED 20036b4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED =============================================================================== 0203ac60 : msdos_node_type_t type, const char *name, int name_len, mode_t mode, const fat_file_fd_t *link_fd) { 203ac60: 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; 203ac64: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED uint32_t byte = 0; 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); 203ac68: a6 07 bf 68 add %fp, -152, %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; 203ac6c: 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; 203ac70: 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); 203ac74: a4 07 bf c8 add %fp, -56, %l2 <== NOT EXECUTED 203ac78: c0 27 bf c8 clr [ %fp + -56 ] <== NOT EXECUTED 203ac7c: c0 27 bf cc clr [ %fp + -52 ] <== NOT EXECUTED memset(dot_dotdot, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE * 2); 203ac80: c0 27 bf 68 clr [ %fp + -152 ] <== NOT EXECUTED 203ac84: c0 27 bf 6c clr [ %fp + -148 ] <== NOT EXECUTED 203ac88: c0 24 e0 08 clr [ %l3 + 8 ] <== NOT EXECUTED 203ac8c: c0 24 e0 0c clr [ %l3 + 0xc ] <== NOT EXECUTED 203ac90: c0 24 e0 10 clr [ %l3 + 0x10 ] <== NOT EXECUTED 203ac94: c0 24 e0 14 clr [ %l3 + 0x14 ] <== NOT EXECUTED 203ac98: c0 24 e0 18 clr [ %l3 + 0x18 ] <== NOT EXECUTED 203ac9c: c0 24 e0 1c clr [ %l3 + 0x1c ] <== NOT EXECUTED 203aca0: c0 24 e0 20 clr [ %l3 + 0x20 ] <== NOT EXECUTED 203aca4: c0 24 e0 24 clr [ %l3 + 0x24 ] <== NOT EXECUTED 203aca8: c0 24 e0 28 clr [ %l3 + 0x28 ] <== NOT EXECUTED 203acac: c0 24 e0 2c clr [ %l3 + 0x2c ] <== NOT EXECUTED 203acb0: c0 24 e0 30 clr [ %l3 + 0x30 ] <== NOT EXECUTED 203acb4: c0 24 e0 34 clr [ %l3 + 0x34 ] <== NOT EXECUTED 203acb8: c0 24 e0 38 clr [ %l3 + 0x38 ] <== NOT EXECUTED 203acbc: c0 24 e0 3c clr [ %l3 + 0x3c ] <== 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); 203acc0: c0 24 a0 08 clr [ %l2 + 8 ] <== NOT EXECUTED 203acc4: c0 24 a0 0c clr [ %l2 + 0xc ] <== NOT EXECUTED 203acc8: c0 24 a0 10 clr [ %l2 + 0x10 ] <== NOT EXECUTED 203accc: c0 24 a0 14 clr [ %l2 + 0x14 ] <== NOT EXECUTED 203acd0: c0 24 a0 18 clr [ %l2 + 0x18 ] <== NOT EXECUTED 203acd4: c0 24 a0 1c clr [ %l2 + 0x1c ] <== NOT EXECUTED dir_pos->lname.ofs = FAT_FILE_SHORT_NAME; 203acd8: 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; 203acdc: c2 27 bf f0 st %g1, [ %fp + -16 ] <== NOT EXECUTED memset(dot_dotdot, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE * 2); name_type = msdos_long_to_short (name, name_len, 203ace0: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED 203ace4: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED 203ace8: 96 10 20 0b mov 0xb, %o3 <== 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; 203acec: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED time_t time_ret = 0; uint16_t time_val = 0; 203acf0: c0 37 bf fe clrh [ %fp + -2 ] <== NOT EXECUTED uint16_t date = 0; 203acf4: 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; 203acf8: c0 27 bf e8 clr [ %fp + -24 ] <== NOT EXECUTED dir_pos->sname.ofs = 0; 203acfc: 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; 203ad00: e8 06 00 00 ld [ %i0 ], %l4 <== 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, 203ad04: 40 00 08 c7 call 203d020 <== NOT EXECUTED 203ad08: 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) { 203ad0c: 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, 203ad10: aa 10 00 08 mov %o0, %l5 <== NOT EXECUTED MSDOS_DIR_NAME(short_node), MSDOS_NAME_MAX); /* fill reserved field */ *MSDOS_DIR_NT_RES(short_node) = MSDOS_RES_NT_VALUE; 203ad14: c0 2c a0 0c clrb [ %l2 + 0xc ] <== NOT EXECUTED /* set up last write date and time */ time_ret = time(NULL); 203ad18: 40 00 68 6d call 2054ecc