Fix broken AcGetApicBase implementation
This commit is contained in:
parent
e62820187d
commit
3472b448c7
@ -185,15 +185,13 @@ XTCDECL
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
AcGetApicBase(OUT PVOID *ApicBase)
|
AcGetApicBase(OUT PVOID *ApicBase)
|
||||||
{
|
{
|
||||||
PCPUID_REGISTERS CpuRegisters = NULL;
|
CPUID_REGISTERS CpuRegisters;
|
||||||
|
|
||||||
/* Get CPU features list */
|
/* Prepare CPUID registers to query for APIC support */
|
||||||
CpuRegisters->Leaf = CPUID_GET_CPU_FEATURES;
|
RtlZeroMemory(&CpuRegisters, sizeof(CPUID_REGISTERS));
|
||||||
CpuRegisters->SubLeaf = 0;
|
CpuRegisters->Leaf = CPUID_GET_STANDARD1_FEATURES;
|
||||||
CpuRegisters->Eax = 0;
|
|
||||||
CpuRegisters->Ebx = 0;
|
/* Query CPUID */
|
||||||
CpuRegisters->Ecx = 0;
|
|
||||||
CpuRegisters->Edx = 0;
|
|
||||||
ArCpuId(CpuRegisters);
|
ArCpuId(CpuRegisters);
|
||||||
|
|
||||||
/* Check if APIC present */
|
/* Check if APIC present */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user