diff options
author | Raul E Rangel <rrangel@chromium.org> | 2018-08-22 10:03:05 -0600 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-08-23 16:24:44 +0000 |
commit | cf79c8344d007cf05bc45d064ffed87be36f7513 (patch) | |
tree | 08143b418801cf671796f913e7aaa6bd1c847e8d /payloads/libpayload/include/x86 | |
parent | 052b5317dafade3884eb63aacd5960dcce871945 (diff) |
libpayload/x86/exception: Add methods to enable/disable interrupts
Will be used by the APIC.
BUG=b:109749762
TEST=Verified by the other cls in the stack.
Change-Id: Id86f2719d98a90318ac625e09601e5dbb06e3765
Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Reviewed-on: https://review.coreboot.org/28239
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'payloads/libpayload/include/x86')
-rw-r--r-- | payloads/libpayload/include/x86/arch/exception.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/payloads/libpayload/include/x86/arch/exception.h b/payloads/libpayload/include/x86/arch/exception.h index 8acdb09552..a6c2afcf0d 100644 --- a/payloads/libpayload/include/x86/arch/exception.h +++ b/payloads/libpayload/include/x86/arch/exception.h @@ -34,6 +34,10 @@ void exception_init_asm(void); void exception_dispatch(void); +void enable_interrupts(void); +void disable_interrupts(void); +/** Returns 1 if interrupts are enabled. */ +int interrupts_enabled(void); struct exception_state { |