panic: Provide a way to poweroff on panic
For sandbox it normally doesn't make sense to reset when a panic occurs, since presumably it will just happen again. Add an option to power off instead. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -263,6 +263,14 @@ config PANIC_HANG
|
||||
development since you can try to debug the conditions that lead to
|
||||
the situation.
|
||||
|
||||
config PANIC_POWEROFF
|
||||
bool "Power off the system on fatal error"
|
||||
help
|
||||
Define this option to power off the system in case of a fatal error,
|
||||
instead of resetting. This is useful for development and testing to
|
||||
avoid infinite reset loops when debugging issues like stack smashing.
|
||||
The system will power off using sysreset.
|
||||
|
||||
config REGEX
|
||||
bool "Enable regular expression support"
|
||||
default y if NET
|
||||
|
||||
Reference in New Issue
Block a user