From: Nadav Amit <namit@xxxxxxxxxx> Upon a bad exception, the stack is rather useful for debugging, splat it out. Signed-off-by: Nadav Amit <namit@xxxxxxxxxx> --- lib/arm64/processor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/arm64/processor.c b/lib/arm64/processor.c index 831207c..5bcad67 100644 --- a/lib/arm64/processor.c +++ b/lib/arm64/processor.c @@ -130,6 +130,7 @@ static void bad_exception(enum vector v, struct pt_regs *regs, printf("Vector: %d (%s)\n", v, vector_names[v]); printf("ESR_EL1: %8s%08x, ec=%#x (%s)\n", "", esr, ec, ec_names[ec]); printf("FAR_EL1: %016lx (%svalid)\n", far, far_valid ? "" : "not "); + dump_stack(); printf("Exception frame registers:\n"); show_regs(regs); abort(); -- 2.34.1