sandbox: add handler for exceptions
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 11 Nov 2020 23:29:56 +0000 (00:29 +0100)
committerSimon Glass <sjg@chromium.org>
Sun, 13 Dec 2020 14:58:17 +0000 (07:58 -0700)
commitb46f30a378673a5c789d145c1d8d0d76312714d8
tree2065881150fea2870cbda7f5e2634cd68d2498dd
parent21f9075def91ccbed3620c187cc2e15c0a94bac4
sandbox: add handler for exceptions

Add a handler for SIGILL, SIGBUS, SIGSEGV.

When an exception occurs print the program counter and the loaded
UEFI binaries and reset the system if CONFIG_SANDBOX_CRASH_RESET=y
or exit to the OS otherwise.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/sandbox/Kconfig
arch/sandbox/cpu/os.c
arch/sandbox/cpu/start.c
arch/sandbox/lib/interrupts.c
include/os.h