aarch64: traceback: fix incorrect base pointer on manual traceback

This commit is contained in:
K. Lange 2022-02-12 17:50:21 +09:00
parent 595727be1d
commit 1695ca6652

View File

@ -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));
}