From 9ff67fa6f25c5a0285eec27f3e86362ae535aac3 Mon Sep 17 00:00:00 2001 From: Gerald Lejeune Date: Thu, 26 Nov 2015 15:47:53 +0100 Subject: Dump platform-defined regs in crash reporting It is up to the platform to implement the new plat_crash_print_regs macro to report all relevant platform registers helpful for troubleshooting. plat_crash_print_regs merges or calls previously defined plat_print_gic_regs and plat_print_interconnect_regs macros for each existing platforms. NOTE: THIS COMMIT REQUIRES ALL PLATFORMS THAT ENABLE THE `CRASH_REPORTING` BUILD FLAG TO MIGRATE TO USE THE NEW `plat_crash_print_regs()` MACRO. BY DEFAULT, `CRASH_REPORTING` IS ENABLED IN DEBUG BUILDS FOR ALL PLATFORMS. Fixes: arm-software/tf-issues#373 Signed-off-by: Gerald Lejeune --- bl31/aarch64/crash_reporting.S | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'bl31/aarch64') diff --git a/bl31/aarch64/crash_reporting.S b/bl31/aarch64/crash_reporting.S index b22ce71e..7f5a86b0 100644 --- a/bl31/aarch64/crash_reporting.S +++ b/bl31/aarch64/crash_reporting.S @@ -346,11 +346,8 @@ func do_crash_reporting bl do_cpu_reg_dump bl str_in_crash_buf_print - /* Print the gic registers */ - plat_print_gic_regs - - /* Print the interconnect registers */ - plat_print_interconnect_regs + /* Print some platform registers */ + plat_crash_print_regs /* Done reporting */ bl plat_panic_handler -- cgit v1.2.3