- Timestamp:
- Feb 29, 2016 10:27:53 AM (9 years ago)
- Location:
- trunk/src/VBox/ValidationKit/bootsectors
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/bootsectors/Makefile.kmk
r59863 r59866 230 230 bs3-cpu-basic-2_SOURCES = \ 231 231 bs3kit/bs3-first-rm.asm \ 232 bs3-cpu-basic-2-c.c 233 #bs3-cpu-basic-2.asm232 bs3-cpu-basic-2-c.c \ 233 bs3-cpu-basic-2.asm 234 234 endif 235 235 -
trunk/src/VBox/ValidationKit/bootsectors/bs3-cpu-basic-2-c.c
r59863 r59866 32 32 33 33 34 FNBS3TESTDOMODE bs3CpuBasic2_iret_c16; 35 FNBS3TESTDOMODE BS3_FAR_CODE bs3CpuBasic2_iret_c32; 36 FNBS3TESTDOMODE BS3_FAR_CODE bs3CpuBasic2_iret_c64; 37 38 39 static const BS3TESTMODEENTRY g_aModeTest[] = 40 { 41 { "iret", bs3CpuBasic2_iret_c16, 42 bs3CpuBasic2_iret_c16, bs3CpuBasic2_iret_c32, bs3CpuBasic2_iret_c16, 43 bs3CpuBasic2_iret_c32, bs3CpuBasic2_iret_c16, bs3CpuBasic2_iret_c16 } 44 }; 45 34 46 35 47 BS3_DECL(void) Main_rm() … … 38 50 Bs3TestInit("bs3-cpu-basic-2"); 39 51 52 //Bs3TestDoModes(g_aModeTest, RT_ELEMENTS(g_aModeTest)); 53 40 54 Bs3TestTerm(); 41 42 55 } 43 56 -
trunk/src/VBox/ValidationKit/bootsectors/bs3-cpu-basic-2-template.mac
r59863 r59866 1 %include "bs3kit-template-header.mac" ; setup environment2 1 3 2 … … 7 6 8 7 8 9 %include "bs3kit-template-header.mac" ; setup environment 10 11 12 13 14 BS3_PROC_BEGIN_CMN bs3CpuBasic2_iret 15 hlt 16 xor al, al 17 ret 18 BS3_PROC_END_CMN bs3CpuBasic2_iret 19 20 21 22 23 9 24 %include "bs3kit-template-footer.mac" ; reset environment 10 25 -
trunk/src/VBox/ValidationKit/bootsectors/bs3-cpu-basic-2.asm
r59863 r59866 31 31 %include "bs3kit.mac" 32 32 33 ;34 ; Segment defs, grouping and related variables.35 ; Defines the entry point 'start' as well, leaving us in BS3TEXT16.36 ;37 %include "bs3-first-common.mac"38 33 34 BS3_INSTANTIATE_COMMON_TEMPLATE "bs3-cpu-basic-2-template.mac" 39 35 40 ;41 ; We start in real mode.42 ;43 %define TMPL_RM44 %include "bs3kit-template-header.mac"45 46 BS3_EXTERN_DATA16 g_uBs3CpuDetected47 BS3_BEGIN_TEXT1648 BS3_EXTERN_CMN Bs3Shutdown49 extern _Bs3InitAll_rm50 51 52 BS3_BEGIN_TEXT1653 BS3_PROC_BEGIN Bs3CpuBasic2_Main54 push word 0 ; zero return address.55 push word 0 ; zero caller BP56 mov bp, sp57 sub sp, 20h ; reserve 20h for 64-bit calls (we're doing them MSC style, remember).58 59 call _Bs3InitAll_rm60 61 ;62 ; Start testing.63 ;64 65 66 67 ;68 ; Done.69 ;70 .shutdown:71 call Bs3Shutdown72 jmp .shutdown73 BS3_PROC_END Bs3CpuBasic2_Main74 75 76 ;77 ; Instantiate the test template code.78 ;79 %include "bs3kit-template-footer.mac" ; reset the initial environemnt.80 81 82 BS3_INSTANTIATE_TEMPLATE_WITH_WEIRD_ONES "bs3-cpu-basic-2-template.mac"83
Note:
See TracChangeset
for help on using the changeset viewer.