coreboot-kgpe-d16/payloads/libpayload/arch
Raul E Rangel 80d5c19590 libpayload/x86/exception: Add ability to handle user defined interrupts
I need to setup the APIC timer to fire interrupts. I would like to reuse
the existing interrupt table. So I extended it to support user defined
interrupts. I just added all 255 vectors so there wouldn't need to be
any additional build time configuration.

I'm going to deprecate exception_install_hook and remove it in a follow
up. It will be replaced with set_interrupt_handler. This way the
exception lookup does not have to manage a list of callbacks, or have to
worry about the order they are processed.

BUG=b:109749762
TEST=Wrote an interrupt handler and fired an APIC timer interrupt and
verified that vector 32 was returned.

Change-Id: Id9c2583c7c3d9be4a06a25e546e64399f2b0620c
Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Reviewed-on: https://review.coreboot.org/28100
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
2018-09-10 15:01:04 +00:00
..
arm Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
arm64 libpayload/arm64: Drop unused static array 2018-07-20 11:06:36 +00:00
mips libpayload: head.S: Avoid clearing BSS (and heap) again 2016-08-13 02:46:19 +02:00
x86 libpayload/x86/exception: Add ability to handle user defined interrupts 2018-09-10 15:01:04 +00:00