diff options
author | Raul E Rangel <rrangel@chromium.org> | 2018-10-01 16:46:13 -0600 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2018-10-04 15:24:54 +0000 |
commit | 44d89f526de96322e9dac7b1212f20be10806384 (patch) | |
tree | 6d52bfddc3f0f75532e8388af6019bcdecb7a090 /payloads | |
parent | ad37763a5f313b5d1a4bb746b2f0d1a3095371dd (diff) | |
download | coreboot-44d89f526de96322e9dac7b1212f20be10806384.tar.xz |
libpayload/x86/exception.c: Remove exception_install_hook
Not used by x86 code anymore.
BUG=b:116777191
TEST=Validated that depthcharge can be built.
Change-Id: I25ad3903989a5433ce73d657cfdb93dd1f34f7b5
Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Reviewed-on: https://review.coreboot.org/28881
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'payloads')
-rw-r--r-- | payloads/libpayload/arch/x86/exception.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/payloads/libpayload/arch/x86/exception.c b/payloads/libpayload/arch/x86/exception.c index 3cd95bbde2..1fa1304f62 100644 --- a/payloads/libpayload/arch/x86/exception.c +++ b/payloads/libpayload/arch/x86/exception.c @@ -37,8 +37,6 @@ u32 exception_stack[0x400] __attribute__((aligned(8))); -static exception_hook hook; - static interrupt_handler handlers[256]; static const char *names[EXC_COUNT] = { @@ -181,9 +179,6 @@ void exception_dispatch(void) die_if(vec >= EXC_COUNT || !names[vec], "Bad exception vector %u\n", vec); - if (hook && hook(vec)) - return; - dump_exception_state(); dump_stack(exception_state->regs.esp, 512); halt(); @@ -195,12 +190,6 @@ void exception_init(void) exception_init_asm(); } -void exception_install_hook(exception_hook h) -{ - die_if(hook, "Implement support for a list of hooks if you need it."); - hook = h; -} - void set_interrupt_handler(u8 vector, interrupt_handler handler) { handlers[vector] = handler; |