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: Add support for DRHD size reporting 2024-06-28 11:27:27 +00:00
acpi_gic.c acpi_gic: Add helper for platform gicc 2024-10-08 08:58:34 +00:00
acpi_hpet.c acpi: add missing device/device.h include 2023-12-07 13:19:47 +00:00
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 acpi: Add PPTT support 2023-12-02 19:16:26 +00:00
acpigen.c src/acpigen: support 0-initialized buffer in acpigen_write_byte_buffer 2025-03-05 16:44:43 +00:00
acpigen_dptf.c tree: Use <stdio.h> for snprintf 2024-05-29 10:33:54 +00:00
acpigen_dsm.c
acpigen_extern.asl
acpigen_pci.c acpi: Remove acpigen_write_OSC_pci_domain 2024-05-06 10:48:06 +00:00
acpigen_pci_root_resource_producer.c acpi,soc: use is_domain0 function 2024-07-25 22:54:43 +00:00
acpigen_ps2_keybd.c acpigen_ps2_keybd: map insert 2025-11-22 18:55:53 +00:00
acpigen_usb.c tree: Use <stdio.h> for snprintf 2024-05-29 10:33:54 +00:00
device.c tree: Use <stdio.h> for snprintf 2024-05-29 10:33:54 +00:00
dsdt_top.asl acpi: Enable 64bit ECAM resource 2023-11-27 21:10:41 +00:00
fadt_filler.c ACPI: Add helper fill_fadt_extended_pm_io() 2023-08-08 06:51:03 +00:00
gnvs.c acpi: Remove blank lines before '}' and after '{' 2024-03-30 07:42:12 +00:00
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 acpi/soundwire.[ch]: Fix dpn entry array overrun 2023-09-13 15:26:01 +00:00