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 /include | |
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 'include')
-rw-r--r-- | include/plat/arm/common/aarch64/cci_macros.S | 2 | ||||
-rw-r--r-- | include/plat/arm/css/common/aarch64/css_macros.S | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/plat/arm/common/aarch64/cci_macros.S b/include/plat/arm/common/aarch64/cci_macros.S index 40f9d7e0..902fb159 100644 --- a/include/plat/arm/common/aarch64/cci_macros.S +++ b/include/plat/arm/common/aarch64/cci_macros.S @@ -44,7 +44,7 @@ cci_iface_regs: * Clobbers: x0 - x9, sp * ------------------------------------------------ */ - .macro plat_print_interconnect_regs + .macro print_cci_regs adr x6, cci_iface_regs /* Store in x7 the base address of the first interface */ mov_imm x7, (PLAT_ARM_CCI_BASE + SLAVE_IFACE_OFFSET( \ diff --git a/include/plat/arm/css/common/aarch64/css_macros.S b/include/plat/arm/css/common/aarch64/css_macros.S index 9124fdc7..518867bd 100644 --- a/include/plat/arm/css/common/aarch64/css_macros.S +++ b/include/plat/arm/css/common/aarch64/css_macros.S @@ -40,7 +40,7 @@ * Clobbers: x0 - x10, x16, x17, sp * --------------------------------------------- */ - .macro plat_print_gic_regs + .macro css_print_gic_regs mov_imm x16, PLAT_ARM_GICD_BASE mov_imm x17, PLAT_ARM_GICC_BASE arm_print_gic_regs |