Initialize APIC.
66{
68 PHYSICAL_ADDRESS PaApicBase;
69
70 ApicBaseMSR = __readmsr(0x1B);
71 if (!(ApicBaseMSR & (1 << 11)))
73
74 if (ApicBaseMSR & (1 << 10))
75 {
78 }
79 else
80 {
81 PaApicBase.QuadPart = ApicBaseMSR & 0xFFFFFF000;
82 g_ApicBase = MmMapIoSpace(PaApicBase, 0x1000, MmNonCached);
83
86
88 }
90}
#define TRUE
Definition BasicTypes.h:55
#define FALSE
Definition BasicTypes.h:54
unsigned __int64 UINT64
Definition BasicTypes.h:21
COMPATIBILITY_CHECKS_STATUS g_CompatibilityCheck
Different attributes and compatibility checks of the current processor.
Definition GlobalVariables.h:26
VOID * g_ApicBase
APIC Base.
Definition GlobalVariables.h:81
BOOLEAN IsX2Apic
Definition CompatibilityChecks.h:25