diff options
author | Wonkyu Kim <wonkyu.kim@intel.com> | 2021-03-22 20:07:15 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-04-15 10:56:26 +0000 |
commit | 0aeedd42eecee0f1d5b658c3441f8efecb0c6473 (patch) | |
tree | fb0bfba5f166129bc15a212ae48d8e9e25385733 /src/soc/intel/common | |
parent | 26ab9bfeb53a5d73ff4fdb01c8a15417a2f76876 (diff) |
src/*acpi: create acpi table for x2apic mode
Create acpi table for x2apic nmi, apic_ids
BUG=None
BRANCH=None
TEST=boot to OS and check apic mode
cat /proc/cpuinfo | grep "apicid"
Signed-off-by: Wonkyu Kim <wonkyu.kim@intel.com>
Change-Id: I9399d30b686b55d86806f5db4110bf4a80fe459b
Reviewed-on: https://review.coreboot.org/c/coreboot/+/51724
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Ravishankar Sarawadi <ravishankar.sarawadi@intel.com>
Reviewed-by: Jamie Ryu <jamie.m.ryu@intel.com>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/soc/intel/common')
-rw-r--r-- | src/soc/intel/common/block/acpi/acpi.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/soc/intel/common/block/acpi/acpi.c b/src/soc/intel/common/block/acpi/acpi.c index cf62cccfa7..d7a0e8e5ec 100644 --- a/src/soc/intel/common/block/acpi/acpi.c +++ b/src/soc/intel/common/block/acpi/acpi.c @@ -19,6 +19,7 @@ #include <soc/gpio.h> #include <soc/iomap.h> #include <soc/pm.h> +#include <cpu/x86/lapic.h> #define CPUID_6_EAX_ISST (1 << 7) @@ -80,6 +81,10 @@ static unsigned long acpi_madt_irq_overrides(unsigned long current) /* NMI */ current += acpi_create_madt_lapic_nmi((acpi_madt_lapic_nmi_t *)current, 0xff, 5, 1); + if (is_x2apic_mode()) + current += acpi_create_madt_lx2apic_nmi((acpi_madt_lx2apic_nmi_t *)current, + 0xff, 0xd, 1); + return current; } |