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 <rrangel@chromium.org>
Reviewed-on: https://review.coreboot.org/28879
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
Raul E Rangel
2018-10-01 14:34:31 -06:00
committed by Martin Roth
parent 06125ebe87
commit b025de0ddb
3 changed files with 27 additions and 15 deletions

View File

@ -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);