diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2022-11-12 21:13:45 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2022-11-25 15:01:49 +0000 |
commit | 66b5e1b32ddac58b6d4c7679a0ea274041225a24 (patch) | |
tree | bb9f21608536b719d7b8dc2aba421dc9f0ce5ddd /src/include/acpi | |
parent | da1a58a50333d3a9b370a7e18ed4c3b69b17d2ba (diff) |
ACPI: Use common code for MADT LAPIC NMIs
Use the broadcast ID to deliver LINT1 as NMI to all CPUs,
instead of listing individual LAPIC IDs.
Change-Id: Iaf714d8c2aabd16c59c3bcebc4a207406fc85ca9
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69527
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/include/acpi')
-rw-r--r-- | src/include/acpi/acpi.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/acpi/acpi.h b/src/include/acpi/acpi.h index fa216aab59..57dbc65160 100644 --- a/src/include/acpi/acpi.h +++ b/src/include/acpi/acpi.h @@ -678,7 +678,8 @@ typedef struct acpi_madt_lapic_nmi { u8 lint; /* Local APIC LINT# */ } __packed acpi_madt_lapic_nmi_t; -#define ACPI_MADT_LAPIC_NMI_ALL_PROCESSORS 0xff +#define ACPI_MADT_LAPIC_NMI_ALL_PROCESSORS 0xff +#define ACPI_MADT_LX2APIC_NMI_ALL_PROCESSORS ((u32)-1) /* MADT: I/O APIC Structure */ typedef struct acpi_madt_ioapic { @@ -1333,6 +1334,7 @@ int acpi_create_madt_lapic_nmi(acpi_madt_lapic_nmi_t *lapic_nmi, u8 cpu, u16 flags, u8 lint); void acpi_create_madt(acpi_madt_t *madt); unsigned long acpi_create_madt_lapics(unsigned long current); +unsigned long acpi_create_madt_lapics_with_nmis(unsigned long current); int acpi_create_madt_lx2apic(acpi_madt_lx2apic_t *lapic, u32 cpu, u32 apic); int acpi_create_madt_lx2apic_nmi(acpi_madt_lx2apic_nmi_t *lapic_nmi, u32 cpu, u16 flags, u8 lint); |