diff options
author | Soby Mathew <soby.mathew@arm.com> | 2014-06-25 10:07:40 +0100 |
---|---|---|
committer | Soby Mathew <soby.mathew@arm.com> | 2014-07-28 11:03:20 +0100 |
commit | 626ed510f179c905a699f4663ee933c10892b4c3 (patch) | |
tree | a9328fb3d8a00b2f065be0e91ba225e46968247a /include/common/debug.h | |
parent | bc9201289c9ae4ccfc6b11048431d47eba547a44 (diff) |
Rework the crash reporting in BL3-1 to use less stack
This patch reworks the crash reporting mechanism to further
optimise the stack and code size. The reporting makes use
of assembly console functions to avoid calling C Runtime
to report the CPU state. The crash buffer requirement is
reduced to 64 bytes with this implementation. The crash
buffer is now part of per-cpu data which makes retrieving
the crash buffer trivial.
Also now panic() will use crash reporting if
invoked from BL3-1.
Fixes ARM-software/tf-issues#199
Change-Id: I79d27a4524583d723483165dc40801f45e627da5
Diffstat (limited to 'include/common/debug.h')
-rw-r--r-- | include/common/debug.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/include/common/debug.h b/include/common/debug.h index c70109fd..3f5655ba 100644 --- a/include/common/debug.h +++ b/include/common/debug.h @@ -52,22 +52,9 @@ #define ERROR(...) tf_printf("ERROR: " __VA_ARGS__) - -/* For the moment this Panic function is very basic, Report an error and - * spin. This can be expanded in the future to provide more information. - */ -#if DEBUG -void __dead2 do_panic(const char *file, int line); -#define panic() do_panic(__FILE__, __LINE__) - -#else void __dead2 do_panic(void); #define panic() do_panic() -#endif - -void print_string_value(char *s, unsigned long *mem); void tf_printf(const char *fmt, ...); - #endif /* __DEBUG_H__ */ |