9
0
Fork 0

resurrect CONFIG_PANIC_HANG option

The CONFIG_PANIC_HANG a part of the U-Boot heritage.
It is used in the barebox code, but there is no mention
of this option in Kconfig files.

Sometimes this option is very helpful, so
let's resurrect it.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Antony Pavlov 2013-08-04 12:46:01 +04:00 committed by Sascha Hauer
parent e49d260ba7
commit e3399d713f
1 changed files with 11 additions and 0 deletions

View File

@ -256,6 +256,17 @@ config RELOCATABLE
allowing it to relocate to the end of the available RAM. This
way you have the whole memory in a single piece.
config PANIC_HANG
bool "hang the system in case of a fatal error"
help
This option enables stop of the system in case of a
fatal error, so that you have to reset it manually.
This is probably NOT a good idea for an embedded
system where you want the system to reboot
automatically as fast as possible, but it may be
useful during development since you can try to debug
the conditions that lead to the situation.
config PROMPT
string
prompt "barebox command prompt"