From 626ed510f179c905a699f4663ee933c10892b4c3 Mon Sep 17 00:00:00 2001 From: Soby Mathew Date: Wed, 25 Jun 2014 10:07:40 +0100 Subject: 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 --- include/common/debug.h | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'include/common/debug.h') 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__ */ -- cgit v1.2.3