Changeset 60556 in vbox for trunk/src/VBox/ValidationKit/bootsectors
- Timestamp:
- Apr 18, 2016 7:26:35 PM (9 years ago)
- Location:
- trunk/src/VBox/ValidationKit/bootsectors/bs3kit
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-first-pe16.asm
r60539 r60556 50 50 extern Bs3TestInit_c64 51 51 52 BS3_BEGIN_RMTEXT16 53 EXTERN Bs3InitMemory_rm_far 54 52 55 BS3_BEGIN_TEXT16 53 EXTERN Bs3InitMemory_rm54 55 56 %if 0 56 57 EXTERN Main_pe16 … … 86 87 ; We need to enter 16-bit protected mode before we can call Main_pe16. 87 88 ; 88 call NAME(Bs3InitMemory_rm); Initialize the memory (must be done from real mode).89 call far NAME(Bs3InitMemory_rm_far) ; Initialize the memory (must be done from real mode). 89 90 call Bs3Trap32Init 90 91 sub xSP, 20h ; for 64-bit calls. -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-mode-CpuDetect.asm
r60554 r60556 28 28 29 29 BS3_EXTERN_DATA16 g_uBs3CpuDetected 30 TMPL_BEGIN_TEXT 30 31 31 32 32 ;; … … 42 42 ; @remarks ASSUMES we're in ring-0 when not in some kind of real mode. 43 43 ; 44 BS3_PROC_BEGIN_MODE Bs3CpuDetect, BS3_PBC_HYBRID_0_ARGS 44 ; @note We put the real mode version of this code in the RMTEXT16 segment 45 ; to save space elsewhere. We generate a far call stub that goes 46 ; to the right segment. 47 ; 48 %if TMPL_MODE == BS3_MODE_RM 49 BS3_BEGIN_RMTEXT16 50 BS3_PROC_BEGIN_MODE Bs3CpuDetect, BS3_PBC_FAR 51 %else 52 TMPL_BEGIN_TEXT 53 BS3_PROC_BEGIN_MODE Bs3CpuDetect, BS3_PBC_HYBRID 54 %endif 45 55 CPU 8086 46 56 push xBP … … 297 307 BS3_PROC_END_MODE Bs3CpuDetect 298 308 309 310 %if TMPL_MODE == BS3_MODE_RM 311 BS3_BEGIN_TEXT16_NEARSTUBS 312 BS3_PROC_BEGIN_MODE Bs3CpuDetect, BS3_PBC_NEAR 313 call far TMPL_FAR_NM(Bs3CpuDetect) 314 ret 315 BS3_PROC_END_MODE Bs3CpuDetect 316 %endif 317 -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-rm-InitAll.c
r60539 r60556 41 41 BS3_DECL(void) Bs3InitAll_rm(void) 42 42 { 43 Bs3CpuDetect_rm ();44 Bs3InitMemory_rm ();45 Bs3InitGdt_rm ();43 Bs3CpuDetect_rm_far(); 44 Bs3InitMemory_rm_far(); 45 Bs3InitGdt_rm_far(); 46 46 47 47 ASMIntDisable(); -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-rm-InitGdt.c
r60539 r60556 42 42 43 43 44 BS3_DECL_FAR(void) Bs3InitGdt_rm (void)44 BS3_DECL_FAR(void) Bs3InitGdt_rm_far(void) 45 45 { 46 46 Bs3Gdte_X0TEXT16_CS.Gen.u16LimitLow = Bs3X0Text16_Size - 1; … … 52 52 } 53 53 54 -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-rm-InitMemory.c
r60527 r60556 239 239 240 240 241 BS3_DECL(void) BS3_FAR_CODE Bs3InitMemory_rm (void)241 BS3_DECL(void) BS3_FAR_CODE Bs3InitMemory_rm_far(void) 242 242 { 243 243 uint16_t i; -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit.h
r60554 r60556 2508 2508 * For proper operation on OLDer CPUs, call #Bs3CpuDetect_mmm first. 2509 2509 */ 2510 BS3_DECL_FAR(void) Bs3InitMemory_rm (void);2510 BS3_DECL_FAR(void) Bs3InitMemory_rm_far(void); 2511 2511 2512 2512 /** 2513 2513 * Initialized the X0TEXT16 and X1TEXT16 GDT entries. 2514 2514 */ 2515 BS3_DECL_FAR(void) Bs3InitGdt_rm (void);2515 BS3_DECL_FAR(void) Bs3InitGdt_rm_far(void); 2516 2516 2517 2517
Note:
See TracChangeset
for help on using the changeset viewer.