Changeset 96912 in vbox for trunk/src/VBox/ValidationKit
- Timestamp:
- Sep 28, 2022 9:03:23 AM (2 years ago)
- Location:
- trunk/src/VBox/ValidationKit/bootsectors
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/bootsectors/Makefile.kmk
r96407 r96912 249 249 bs3kit/bs3-first-rm.asm \ 250 250 bs3-apic-1.c \ 251 bs3-apic-1-32.c32 251 252 252 253 -
trunk/src/VBox/ValidationKit/bootsectors/bs3-apic-1.c
r96407 r96912 44 44 45 45 46 /********************************************************************************************************************************* 47 * Internal Functions * 48 *********************************************************************************************************************************/ 49 BS3_DECL_CALLBACK(void) ProtModeApicTests(void); 50 51 46 52 BS3_DECL(void) Main_rm() 47 53 { … … 49 55 Bs3TestInit("bs3-apic-1"); 50 56 Bs3TestPrintf("g_uBs3CpuDetected=%#x\n", g_uBs3CpuDetected); 57 Bs3TestSub("real-mode"); 51 58 52 59 /* … … 66 73 uApicBase, 67 74 uApicBase & MSR_IA32_APICBASE_EN ? "enabled" : "disabled", 68 uApicBase & MSR_IA32_APICBASE_ EXTD? "bootstrap" : "slave",75 uApicBase & MSR_IA32_APICBASE_BSP ? "bootstrap" : "slave", 69 76 uApicBase & MSR_IA32_APICBASE_EXTD ? ", x2apic" : "", 70 77 (uApicBase & X86_PAGE_4K_BASE_MASK) == MSR_IA32_APICBASE_ADDR ? ", !non-default address!" : ""); … … 83 90 uApicBase2 = ASMRdMsr(MSR_IA32_APICBASE); 84 91 if (uApicBase2 == (uApicBase | MSR_IA32_APICBASE_EN)) 92 { 85 93 Bs3TestPrintf("Enabling worked.\n"); 94 95 /* 96 * Do the rest of the testing in protected mode since we cannot 97 * (easily) access the APIC address from real mode. 98 */ 99 Bs3SwitchTo32BitAndCallC_rm(ProtModeApicTests, 0); 100 } 86 101 else 87 102 Bs3TestFailedF("Enabling the APIC did not work (%#RX64)", uApicBase2);
Note:
See TracChangeset
for help on using the changeset viewer.