diff options
author | Gerald Lejeune <gerald.lejeune@st.com> | 2015-11-26 15:47:53 +0100 |
---|---|---|
committer | Gerald Lejeune <gerald.lejeune@st.com> | 2016-04-14 17:50:22 +0200 |
commit | 9ff67fa6f25c5a0285eec27f3e86362ae535aac3 (patch) | |
tree | ea7726ead69cc1f901dcca11d49ec758717e5879 /plat/xilinx | |
parent | df03c6ed42170b900124d75469dad30b95bd5bd1 (diff) |
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 <gerald.lejeune@st.com>
Diffstat (limited to 'plat/xilinx')
-rw-r--r-- | plat/xilinx/zynqmp/include/plat_macros.S | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/plat/xilinx/zynqmp/include/plat_macros.S b/plat/xilinx/zynqmp/include/plat_macros.S index e6c39bb5..f40beba8 100644 --- a/plat/xilinx/zynqmp/include/plat_macros.S +++ b/plat/xilinx/zynqmp/include/plat_macros.S @@ -36,16 +36,17 @@ /* --------------------------------------------- * The below required platform porting macro - * prints out relevant GIC registers whenever an - * unhandled exception is taken in BL31. - * Clobbers: x0 - x10, x16, sp + * prints out relevant GIC and CCI registers + * whenever an unhandled exception is taken in + * BL31. + * Clobbers: x0 - x10, x16, x17, sp * --------------------------------------------- */ - .macro plat_print_gic_regs + .macro plat_crash_print_regs mov_imm x17, BASE_GICC_BASE mov_imm x16, BASE_GICD_BASE arm_print_gic_regs - mov x0, x1 + print_cci_regs .endm #endif /* __PLAT_MACROS_S__ */ |