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 --- bl31/cpu_data_array.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'bl31/cpu_data_array.c') diff --git a/bl31/cpu_data_array.c b/bl31/cpu_data_array.c index b0042a16..4cba1184 100644 --- a/bl31/cpu_data_array.c +++ b/bl31/cpu_data_array.c @@ -32,13 +32,5 @@ #include #include -/* verify assembler offsets match data structures */ -CASSERT(CPU_DATA_CRASH_STACK_OFFSET == __builtin_offsetof - (cpu_data_t, crash_stack), - assert_cpu_data_crash_stack_offset_mismatch); - -CASSERT((1 << CPU_DATA_LOG2SIZE) == sizeof(cpu_data_t), - assert_cpu_data_log2size_mismatch); - /* The per_cpu_ptr_cache_t space allocation */ cpu_data_t percpu_data[PLATFORM_CORE_COUNT]; -- cgit v1.2.3