]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commitf3a567e9d1369f458984c7f823f798912a1744a9
tree2065881150fea2870cbda7f5e2634cd68d2498dd
parent4cb8a207ca476c151bb2f42a109afadea1446662
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