feat: Update # of X2Apic Processor Local APIC

Since # of PROCESSOR_LOCAL_APICs are
Madt Local Apic # is 1.
Madt X2 Local Apic # is 9.

Need to update # of structure type of X2Apic.

Signed-off-by: cshur <cs.hur@intel.com>
This commit is contained in:
cshur 2023-09-05 10:18:06 -07:00 committed by Guo Dong
parent 2d18ee3a46
commit 83e3f07c9d
1 changed files with 1 additions and 1 deletions

View File

@ -395,7 +395,7 @@ UpdateMadt (
while (MadtPtr < MadtEnd) {
EntryHeader = (EFI_ACPI_MADT_ENTRY_COMMON_HEADER *)MadtPtr;
Length = EntryHeader->Length;
if (EntryHeader->Type != EFI_ACPI_5_0_PROCESSOR_LOCAL_APIC) {
if ((EntryHeader->Type != EFI_ACPI_5_0_PROCESSOR_LOCAL_APIC) && (EntryHeader->Type != EFI_ACPI_5_0_PROCESSOR_LOCAL_X2APIC)) {
CopyMem ((VOID *)Current, (VOID *)MadtPtr, Length);
Current += Length;
}