barebox/arch/arm/include/asm/barebox.h
Sascha Hauer 79c2f03aee Add dump_stack function
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>
2012-01-26 14:12:08 +01:00

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_ */