79c2f03aee
At least ARM allows us to dump the stack, but we currently have no prototype for this. Add a dump_stack prototype and provide a static inline function for architectures without stack dump support. Also, call dump_stack() in panic() to provide more information in the case of a panic. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
9 lines
129 B
C
9 lines
129 B
C
#ifndef _BAREBOX_H_
|
|
#define _BAREBOX_H_ 1
|
|
|
|
#ifdef CONFIG_ARM_UNWIND
|
|
#define ARCH_HAS_STACK_DUMP
|
|
#endif
|
|
|
|
#endif /* _BAREBOX_H_ */
|