Fix broken AcGetApicBase
This commit is contained in:
parent
d806c8e1f2
commit
eeb5e8d455
@ -189,13 +189,13 @@ AcGetApicBase(OUT PVOID *ApicBase)
|
|||||||
|
|
||||||
/* Prepare CPUID registers to query for APIC support */
|
/* Prepare CPUID registers to query for APIC support */
|
||||||
RtlZeroMemory(&CpuRegisters, sizeof(CPUID_REGISTERS));
|
RtlZeroMemory(&CpuRegisters, sizeof(CPUID_REGISTERS));
|
||||||
CpuRegisters->Leaf = CPUID_GET_STANDARD1_FEATURES;
|
CpuRegisters.Leaf = CPUID_GET_STANDARD1_FEATURES;
|
||||||
|
|
||||||
/* Query CPUID */
|
/* Query CPUID */
|
||||||
ArCpuId(CpuRegisters);
|
ArCpuId(&CpuRegisters);
|
||||||
|
|
||||||
/* Check if APIC present */
|
/* Check if APIC present */
|
||||||
if((CpuRegisters->Edx & CPUID_FEATURES_EDX_APIC) == 0)
|
if((CpuRegisters.Edx & CPUID_FEATURES_EDX_APIC) == 0)
|
||||||
{
|
{
|
||||||
/* APIC is not supported by the CPU */
|
/* APIC is not supported by the CPU */
|
||||||
return STATUS_EFI_UNSUPPORTED;
|
return STATUS_EFI_UNSUPPORTED;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user