feat(lib/debug): add backtrace to exception handler
This patch adds backtrace log in RMM exception handler
for Debug builds with LOG_LEVEL >= LOG_LEVEL_INFO.
Change-Id: I11cfdce52dceaccb0ebc4a6ac9faf35f0bf7d7f1
Signed-off-by: AlexeiFedorov <Alexei.Fedorov@arm.com>
diff --git a/runtime/core/handler.c b/runtime/core/handler.c
index 6b85990..a780df7 100644
--- a/runtime/core/handler.c
+++ b/runtime/core/handler.c
@@ -424,6 +424,8 @@
INFO("MDCR_EL2:\t0x%016lx\n", read_mdcr_el2());
INFO("SCTLR_EL2:\t0x%016lx\n", read_sctlr_el2());
+ /* The AArch64 AAPCS mandates the usage of x29 as Frame Pointer */
+ backtrace((uintptr_t)regs->x[29]);
panic();
}