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)
commit85f718f64d65390f385111e57cfa017abd12879d
tree060f095a5023d318577ebf074b7c6c288a3ef58e
parent1311dd37ecf476be041d0452d4ee38619aadd5de
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