- Timestamp:
- Mar 7, 2016 8:13:01 AM (9 years ago)
- Location:
- trunk/src/VBox/ValidationKit/bootsectors
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/bootsectors/Config.kmk
r59937 r59938 421 421 $(PATH_OBJ)/bs3kit-rm/bs3kit-rm.lib \ 422 422 $(PATH_OBJ)/bs3kit-pe16/bs3kit-pe16.lib \ 423 $(PATH_OBJ)/bs3kit-pe16_32/bs3kit-pe16_32.lib \ 424 $(PATH_OBJ)/bs3kit-pe16_v86/bs3kit-pe16_v86.lib \ 423 425 $(PATH_OBJ)/bs3kit-pe32/bs3kit-pe32.lib \ 426 $(PATH_OBJ)/bs3kit-pe32_16/bs3kit-pe32_16.lib \ 424 427 $(PATH_OBJ)/bs3kit-pev86/bs3kit-pev86.lib \ 425 428 $(PATH_OBJ)/bs3kit-pp16/bs3kit-pp16.lib \ 429 $(PATH_OBJ)/bs3kit-pp16_32/bs3kit-pp16_32.lib \ 430 $(PATH_OBJ)/bs3kit-pp16_v86/bs3kit-pp16_v86.lib \ 426 431 $(PATH_OBJ)/bs3kit-pp32/bs3kit-pp32.lib \ 432 $(PATH_OBJ)/bs3kit-pp32_16/bs3kit-pp32_16.lib \ 427 433 $(PATH_OBJ)/bs3kit-ppv86/bs3kit-ppv86.lib \ 428 434 $(PATH_OBJ)/bs3kit-pae16/bs3kit-pae16.lib \ 435 $(PATH_OBJ)/bs3kit-pae16_32/bs3kit-pae16_32.lib \ 436 $(PATH_OBJ)/bs3kit-pae16_v86/bs3kit-pae16_v86.lib \ 429 437 $(PATH_OBJ)/bs3kit-pae32/bs3kit-pae32.lib \ 438 $(PATH_OBJ)/bs3kit-pae32_16/bs3kit-pae32_16.lib \ 430 439 $(PATH_OBJ)/bs3kit-paev86/bs3kit-paev86.lib \ 431 440 $(PATH_OBJ)/bs3kit-lm16/bs3kit-lm16.lib \ -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-PerCpuData.c
r59863 r59938 41 41 #if ARCH_BITS == 16 42 42 43 uint8_t BS3_DATA_NM(g_bBs3CurrentMode) = BS3_MODE_ INVALID;43 uint8_t BS3_DATA_NM(g_bBs3CurrentMode) = BS3_MODE_RM; 44 44 45 45 #endif /* ARCH_BITS == 16 */ -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-mode-CpuDetect.asm
r59878 r59938 254 254 pop xBP 255 255 ret 256 BS3_PROC_END_MODE Bs3 EnteredMode257 256 BS3_PROC_END_MODE Bs3CpuDetect 257 -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-mode-Name.asm
r59880 r59938 29 29 30 30 BS3_BEGIN_DATA16 31 BS3_GLOBAL_ DATA TMPL_NM(g_szBs3ModeName), %strlen(TMPL_MODE_STR)31 BS3_GLOBAL_NAME_EX RT_CONCAT3(_g_szBs3ModeName, _, TMPL_MODE_LNAME), , %strlen(TMPL_MODE_STR) 32 32 db TMPL_MODE_STR, 0 33 33 -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-mode-PagingGetRootForLM64.asm
r59287 r59938 5 5 6 6 ; 7 ; Copyright (C) 2007-201 5Oracle Corporation7 ; Copyright (C) 2007-2016 Oracle Corporation 8 8 ; 9 9 ; This file is part of VirtualBox Open Source Edition (OSE), as … … 33 33 %elifdef TMPL_CMN_V86 34 34 extern TMPL_NM(Bs3SwitchToRing0) 35 extern TMPL_NM(Bs3SwitchTo V86)35 extern TMPL_NM(Bs3SwitchTo16BitV86) 36 36 %endif 37 37 … … 81 81 call TMPL_NM(Bs3SwitchToRing0) 82 82 call Bs3PagingInitRootForLM 83 call TMPL_NM(Bs3SwitchTo V86)83 call TMPL_NM(Bs3SwitchTo16BitV86) 84 84 %else 85 85 ; -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-mode-PagingGetRootForPAE32.asm
r59287 r59938 33 33 %elifdef TMPL_CMN_V86 34 34 extern TMPL_NM(Bs3SwitchToRing0) 35 extern TMPL_NM(Bs3SwitchTo V86)35 extern TMPL_NM(Bs3SwitchTo16BitV86) 36 36 %endif 37 37 … … 81 81 call TMPL_NM(Bs3SwitchToRing0) 82 82 call Bs3PagingInitRootForPAE 83 call TMPL_NM(Bs3SwitchTo V86)83 call TMPL_NM(Bs3SwitchTo16BitV86) 84 84 %else 85 85 ; -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-mode-PagingGetRootForPP32.asm
r59287 r59938 33 33 %elifdef TMPL_CMN_V86 34 34 extern TMPL_NM(Bs3SwitchToRing0) 35 extern TMPL_NM(Bs3SwitchTo V86)35 extern TMPL_NM(Bs3SwitchTo16BitV86) 36 36 %endif 37 37 … … 81 81 call TMPL_NM(Bs3SwitchToRing0) 82 82 call Bs3PagingInitRootForPP 83 call TMPL_NM(Bs3SwitchTo V86)83 call TMPL_NM(Bs3SwitchTo16BitV86) 84 84 %else 85 85 ; -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-mode-SwitchToPAE16_V86.asm
r59934 r59938 67 67 ; Switch to v8086 mode (return address is already 16-bit). 68 68 ; 69 extern _Bs3SwitchTo V86_pae1670 jmp _Bs3SwitchTo V86_pae1669 extern _Bs3SwitchTo16BitV86_c16 70 jmp _Bs3SwitchTo16BitV86_c16 71 71 %endif 72 72 BS3_PROC_END_MODE Bs3SwitchToPAE16_V86 -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-mode-SwitchToPAEV86.asm
r59934 r59938 67 67 ; Switch to v8086 mode (return address is already 16-bit). 68 68 ; 69 extern _Bs3SwitchTo V86_pae3270 jmp _Bs3SwitchTo V86_pae3269 extern _Bs3SwitchTo16BitV86_c32 70 jmp _Bs3SwitchTo16BitV86_c32 71 71 %endif 72 72 BS3_PROC_END_MODE Bs3SwitchToPAEV86 -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-mode-SwitchToPE16_V86.asm
r59934 r59938 67 67 ; Switch to v8086 mode (return address is already 16-bit). 68 68 ; 69 extern _Bs3SwitchTo V86_pe1670 jmp _Bs3SwitchTo V86_pe1669 extern _Bs3SwitchTo16BitV86_c16 70 jmp _Bs3SwitchTo16BitV86_c16 71 71 %endif 72 72 BS3_PROC_END_MODE Bs3SwitchToPE16_V86 -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-mode-SwitchToPEV86.asm
r59934 r59938 67 67 ; Switch to v8086 mode (return address is already 16-bit). 68 68 ; 69 extern _Bs3SwitchTo V86_pe3270 jmp _Bs3SwitchTo V86_pe3269 extern _Bs3SwitchTo16BitV86_c32 70 jmp _Bs3SwitchTo16BitV86_c32 71 71 %endif 72 72 BS3_PROC_END_MODE Bs3SwitchToPEV86 -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-mode-SwitchToPP16_V86.asm
r59934 r59938 67 67 ; Switch to v8086 mode (return address is already 16-bit). 68 68 ; 69 extern _Bs3SwitchTo V86_pp1670 jmp _Bs3SwitchTo V86_pp1669 extern _Bs3SwitchTo16BitV86_c16 70 jmp _Bs3SwitchTo16BitV86_c16 71 71 %endif 72 72 BS3_PROC_END_MODE Bs3SwitchToPP16_V86 -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-mode-SwitchToPPV86.asm
r59934 r59938 67 67 ; Switch to v8086 mode (return address is already 16-bit). 68 68 ; 69 extern _Bs3SwitchTo V86_pp3270 jmp _Bs3SwitchTo V86_pp3269 extern _Bs3SwitchTo16BitV86_c32 70 jmp _Bs3SwitchTo16BitV86_c32 71 71 %endif 72 72 BS3_PROC_END_MODE Bs3SwitchToPPV86 -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-mode-TestDoModes.c
r59881 r59938 5 5 6 6 /* 7 * Copyright (C) 2007-201 5Oracle Corporation7 * Copyright (C) 2007-2016 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 58 58 BS3_DECL(uint8_t) TMPL_NM(Bs3TestCallDoerInRM)(uint16_t offCallback); 59 59 BS3_DECL(uint8_t) TMPL_NM(Bs3TestCallDoerInPE16)(uint16_t offCallback); 60 BS3_DECL(uint8_t) TMPL_NM(Bs3TestCallDoerInPE16_32)(uint32_t offCallback);60 BS3_DECL(uint8_t) TMPL_NM(Bs3TestCallDoerInPE16_32)(uint32_t uFlatAddrCallback); 61 61 BS3_DECL(uint8_t) TMPL_NM(Bs3TestCallDoerInPE16_V86)(uint16_t offCallback); 62 BS3_DECL(uint8_t) TMPL_NM(Bs3TestCallDoerInPE32)(uint32_t offCallback);62 BS3_DECL(uint8_t) TMPL_NM(Bs3TestCallDoerInPE32)(uint32_t uFlatAddrCallback); 63 63 BS3_DECL(uint8_t) TMPL_NM(Bs3TestCallDoerInPE32_16)(uint16_t offCallback); 64 64 BS3_DECL(uint8_t) TMPL_NM(Bs3TestCallDoerInPEV86)(uint16_t offCallback); 65 65 BS3_DECL(uint8_t) TMPL_NM(Bs3TestCallDoerInPP16)(uint16_t offCallback); 66 BS3_DECL(uint8_t) TMPL_NM(Bs3TestCallDoerInPP16_32)(uint32_t offCallback);66 BS3_DECL(uint8_t) TMPL_NM(Bs3TestCallDoerInPP16_32)(uint32_t uFlatAddrCallback); 67 67 BS3_DECL(uint8_t) TMPL_NM(Bs3TestCallDoerInPP16_V86)(uint16_t offCallback); 68 BS3_DECL(uint8_t) TMPL_NM(Bs3TestCallDoerInPP32)(uint32_t offCallback);68 BS3_DECL(uint8_t) TMPL_NM(Bs3TestCallDoerInPP32)(uint32_t uFlatAddrCallback); 69 69 BS3_DECL(uint8_t) TMPL_NM(Bs3TestCallDoerInPP32_16)(uint16_t offCallback); 70 70 BS3_DECL(uint8_t) TMPL_NM(Bs3TestCallDoerInPPV86)(uint16_t offCallback); 71 71 BS3_DECL(uint8_t) TMPL_NM(Bs3TestCallDoerInPAE16)(uint16_t offCallback); 72 BS3_DECL(uint8_t) TMPL_NM(Bs3TestCallDoerInPAE16_32)(uint32_t offCallback);72 BS3_DECL(uint8_t) TMPL_NM(Bs3TestCallDoerInPAE16_32)(uint32_t uFlatAddrCallback); 73 73 BS3_DECL(uint8_t) TMPL_NM(Bs3TestCallDoerInPAE16_V86)(uint16_t offCallback); 74 BS3_DECL(uint8_t) TMPL_NM(Bs3TestCallDoerInPAE32)(uint32_t offCallback);74 BS3_DECL(uint8_t) TMPL_NM(Bs3TestCallDoerInPAE32)(uint32_t uFlatAddrCallback); 75 75 BS3_DECL(uint8_t) TMPL_NM(Bs3TestCallDoerInPAE32_16)(uint16_t offCallback); 76 76 BS3_DECL(uint8_t) TMPL_NM(Bs3TestCallDoerInPAEV86)(uint16_t offCallback); 77 77 BS3_DECL(uint8_t) TMPL_NM(Bs3TestCallDoerInLM16)(uint16_t offCallback); 78 BS3_DECL(uint8_t) TMPL_NM(Bs3TestCallDoerInLM32)(uint32_t offCallback);79 BS3_DECL(uint8_t) TMPL_NM(Bs3TestCallDoerInLM64)(uint32_t offCallback);78 BS3_DECL(uint8_t) TMPL_NM(Bs3TestCallDoerInLM32)(uint32_t uFlatAddrCallback); 79 BS3_DECL(uint8_t) TMPL_NM(Bs3TestCallDoerInLM64)(uint32_t uFlatAddrCallback); 80 80 81 81 … … 169 169 } 170 170 171 172 BS3_DECL(void) TMPL_NM(Bs3TestDoModeTests)(PCBS3TESTMODEENTRY paEntries, unsigned cEntries) 171 BS3_DECL(void) TMPL_NM(Bs3TestDoModes)(PCBS3TESTMODEENTRY paEntries, size_t cEntries) 173 172 { 174 173 uint8_t const bCpuType = BS3_DATA_NM(g_uBs3CpuDetected) & BS3CPU_TYPE_MASK; -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-mode-TestDoModesHlp.asm
r59935 r59938 74 74 extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_lm16) 75 75 extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_lm32) 76 extern RT_CONCAT3( _Bs3SwitchTo,TMPL_MODE_UNAME,_lm64)76 extern RT_CONCAT3(Bs3SwitchTo,TMPL_MODE_UNAME,_lm64) 77 77 78 78 … … 602 602 BS3_SET_BITS 64 603 603 call rax 604 call RT_CONCAT3( _Bs3SwitchTo,TMPL_MODE_UNAME,_lm64)604 call RT_CONCAT3(Bs3SwitchTo,TMPL_MODE_UNAME,_lm64) 605 605 BS3_SET_BITS TMPL_BITS 606 606 jmp TMPL_NM(bs3TestCallDoerEpilogue) -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit.h
r59932 r59938 778 778 779 779 /** The current mode (BS3_MODE_XXX) of CPU \#0. */ 780 extern uint8_t BS3_ FAR_DATA BS3_DATA_NM(g_bBs3CurrentMode);780 extern uint8_t BS3_DATA_NM(g_bBs3CurrentMode); 781 781 782 782 … … 2230 2230 * @param cEntries The number of sub-test entries. 2231 2231 */ 2232 BS3_MODE_EXPAND_PROTOTYPES(void, Bs3TestDoModes, ( BS3TESTMODEENTRY paEntries, unsignedcEntries));2232 BS3_MODE_EXPAND_PROTOTYPES(void, Bs3TestDoModes, (PCBS3TESTMODEENTRY paEntries, size_t cEntries)); 2233 2233 2234 2234 /** @} */
Note:
See TracChangeset
for help on using the changeset viewer.