diff options
author | Furquan Shaikh <furquan@google.com> | 2014-08-27 21:43:36 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-03-21 13:35:38 +0100 |
commit | 3b1ee0387c70f0b31307f50a5efa5a2b584a3635 (patch) | |
tree | 4f5072c847d94279afdbd35c450e0076736cf4e7 /payloads/libpayload/arch/arm64/gdb.c | |
parent | 02efc9413b076d869da86017eff188741d114991 (diff) |
libpayload arm64: Make exceptions work
BUG=chrome-os-partner:31634
BRANCH=None
TEST=test_exc generates and handles exceptions properly
Change-Id: If3ecab93be6d02942b52960ec97edc687bedf64b
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: bba2caae0bd436ba9e5215f5d8606ce8c4987c98
Original-Change-Id: I4abe8a0e426eab2532852179dbb32505353cd0a1
Original-Signed-off-by: Furquan Shaikh <furquan@google.com>
Original-Reviewed-on: https://chromium-review.googlesource.com/214609
Original-Tested-by: Furquan Shaikh <furquan@chromium.org>
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Original-Commit-Queue: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: http://review.coreboot.org/8783
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'payloads/libpayload/arch/arm64/gdb.c')
-rw-r--r-- | payloads/libpayload/arch/arm64/gdb.c | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/payloads/libpayload/arch/arm64/gdb.c b/payloads/libpayload/arch/arm64/gdb.c index 857272f095..c976483f04 100644 --- a/payloads/libpayload/arch/arm64/gdb.c +++ b/payloads/libpayload/arch/arm64/gdb.c @@ -33,11 +33,22 @@ struct gdb_regs } __attribute__((packed)); static const u8 type_to_signal[] = { - [EXC_INV] = GDB_SIGILL, - [EXC_SYNC] = GDB_SIGTRAP, - [EXC_IRQ] = GDB_SIGSEGV, - [EXC_FIQ] = GDB_SIGSEGV, - [EXC_SERROR] = GDB_SIGSEGV + [EXC_SYNC_SP0] = GDB_SIGTRAP, + [EXC_IRQ_SP0] = GDB_SIGSEGV, + [EXC_FIQ_SP0] = GDB_SIGSEGV, + [EXC_SERROR_SP0] = GDB_SIGSEGV, + [EXC_SYNC_SPX] = GDB_SIGTRAP, + [EXC_IRQ_SPX] = GDB_SIGSEGV, + [EXC_FIQ_SPX] = GDB_SIGSEGV, + [EXC_SERROR_SPX] = GDB_SIGSEGV, + [EXC_SYNC_ELX_64] = GDB_SIGTRAP, + [EXC_IRQ_ELX_64] = GDB_SIGSEGV, + [EXC_FIQ_ELX_64] = GDB_SIGSEGV, + [EXC_SERROR_ELX_64] = GDB_SIGSEGV, + [EXC_SYNC_ELX_32] = GDB_SIGTRAP, + [EXC_IRQ_ELX_32] = GDB_SIGSEGV, + [EXC_FIQ_ELX_32] = GDB_SIGSEGV, + [EXC_SERROR_ELX_32] = GDB_SIGSEGV }; static int gdb_exception_hook(u32 type) |