]> git.baikalelectronics.ru Git - uboot.git/commit
sandbox: Support signal handling only when requested
authorSimon Glass <sjg@chromium.org>
Mon, 22 Mar 2021 05:21:01 +0000 (18:21 +1300)
committerSimon Glass <sjg@chromium.org>
Tue, 6 Jul 2021 16:38:03 +0000 (10:38 -0600)
commitd9ec47f904b1ff66d8d69ed2160fdadd742babfe
tree060f095a5023d318577ebf074b7c6c288a3ef58e
parent2e9420317d807f22d5e468530fb5b667ee533369
sandbox: Support signal handling only when requested

At present if sandbox crashes it prints a message and tries to exit. But
with the recently introduced signal handler, it often seems to get stuck
in a loop until the stack overflows:

Segmentation violation

Segmentation violation

Segmentation violation

Segmentation violation

Segmentation violation

Segmentation violation

Segmentation violation
...

The signal handler is only useful for a few tests, as I understand it.
Make it optional.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/start.c
arch/sandbox/include/asm/state.h