From b025de0ddbe6d39f035b3ca01fb682bfe11cf497 Mon Sep 17 00:00:00 2001 From: Raul E Rangel Date: Mon, 1 Oct 2018 14:34:31 -0600 Subject: libpayload/apic: Only ACK interrupts triggered by the APIC Only set end of interrupt (EOI) when the APIC In-Service vector matches the interrupt vector. This makes it so we don't EOI a non APIC interrupt. BUG=b:116777191 TEST=Booted grunt with APIC enabled and verified depthcharge still works. Change-Id: I00bd1e7a0fcf2fc004feadc40d22ebfefe68b384 Signed-off-by: Raul E Rangel Reviewed-on: https://review.coreboot.org/28879 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- payloads/libpayload/include/x86/arch/apic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'payloads/libpayload/include/x86') diff --git a/payloads/libpayload/include/x86/arch/apic.h b/payloads/libpayload/include/x86/arch/apic.h index c28fc0f5d1..1eb35089bd 100644 --- a/payloads/libpayload/include/x86/arch/apic.h +++ b/payloads/libpayload/include/x86/arch/apic.h @@ -38,7 +38,7 @@ void apic_init(void); uint8_t apic_id(void); /** Signal the end of the interrupt handler. */ -void apic_eoi(void); +void apic_eoi(uint8_t vector); void apic_delay(unsigned int usec); -- cgit v1.2.3