coreboot/src/acpi
Michał Żygowski 5bb7a83a7a acpi/acpi_apic.c: Generate MADT LAPIC entries based on current mode
Depending on the Kconfig, LAPIC may be in either xAPIC or x2APIC mode.
However, coreboot generates MADT LAPIC entries based on APIC ID rather
than currently enabled LAPIC mode. This resulted in LAPICs enabled in
x2APIC mode being described as xAPICs in MADT.

Create appropriate MADT LAPIC entries based on currently enabled mode
by calling is_x2apic_mode.

TEST=MADT describes LAPICs in x2APIC mode on Gigabyte MZ33-AR1, matching
the actually enabled LAPIC mode.

Change-Id: Iebbbca415f0b775339cbfab5c24848940d92878d
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/89475
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-by: Alicja Michalska <ahplka19@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2025-12-18 15:45:18 +00:00
..
acpi.c include/acpi/acpi_apei.h: Update APEI structs for better readability 2025-12-16 15:48:17 +00:00
acpi_apic.c acpi/acpi_apic.c: Generate MADT LAPIC entries based on current mode 2025-12-18 15:45:18 +00:00
acpi_dmar.c
acpi_gic.c acpi_gic: Add helper for platform gicc 2024-10-08 08:58:34 +00:00
acpi_hpet.c
acpi_iort.c acpi: Add IORT helper functions 2024-10-03 20:50:25 +00:00
acpi_pm.c acpi/acpi_pm: Fix compilation without SMBIOS 2025-09-22 15:52:32 +00:00
acpi_pptt.c
acpigen.c src/acpigen: support 0-initialized buffer in acpigen_write_byte_buffer 2025-03-05 16:44:43 +00:00
acpigen_dptf.c
acpigen_dsm.c
acpigen_extern.asl
acpigen_pci.c
acpigen_pci_root_resource_producer.c
acpigen_ps2_keybd.c acpigen_ps2_keybd: map insert 2025-11-22 18:55:53 +00:00
acpigen_usb.c
device.c
dsdt_top.asl
fadt_filler.c
gnvs.c
Kconfig acpi: Move most of HEST ACPI table to common code 2025-09-30 23:52:09 +00:00
Makefile.mk acpi: Add IORT helper functions 2024-10-03 20:50:25 +00:00
pld.c
sata.c acpi/sata.c: Fix Wunterminated-string-initialization error on port_name 2024-09-01 05:34:38 +00:00
soundwire.c