Changeset 60556 in vbox for trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-mode-CpuDetect.asm
- Timestamp:
- Apr 18, 2016 7:26:35 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.