diff --git a/src/system/kernel/arch/ppc/arch_debug.cpp b/src/system/kernel/arch/ppc/arch_debug.cpp index d5d945895d..dc7179ab46 100644 --- a/src/system/kernel/arch/ppc/arch_debug.cpp +++ b/src/system/kernel/arch/ppc/arch_debug.cpp @@ -124,7 +124,7 @@ stack_trace(int argc, char **argv) if (argc < 2) { thread = thread_get_current_thread(); - framePointer = (addr_t)get_current_stack_frame(); + framePointer = (addr_t)get_current_stack_frame()->previous; } else { // TODO: Add support for stack traces of other threads. /* thread_id id = strtoul(argv[1], NULL, 0);