From 1695ca6652ff393bfe59030d477f72e2fecb8965 Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Sat, 12 Feb 2022 17:50:21 +0900 Subject: [PATCH] aarch64: traceback: fix incorrect base pointer on manual traceback --- kernel/arch/aarch64/traceback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/arch/aarch64/traceback.c b/kernel/arch/aarch64/traceback.c index c7e25d96..e536180a 100644 --- a/kernel/arch/aarch64/traceback.c +++ b/kernel/arch/aarch64/traceback.c @@ -102,6 +102,6 @@ void aarch64_safe_dump_traceback(uintptr_t elr, struct regs * r) { * @brief Display a traceback from the current call context. */ void arch_dump_traceback(void) { - dump_traceback((uintptr_t)arch_dump_traceback+1, (uintptr_t)__builtin_frame_address(0), (uintptr_t)__builtin_return_address(0)); + dump_traceback((uintptr_t)arch_dump_traceback+1, (uintptr_t)__builtin_frame_address(1), (uintptr_t)__builtin_return_address(0)); }