diff --git a/src/system/kernel/arch/ppc/arch_debug.cpp b/src/system/kernel/arch/ppc/arch_debug.cpp index f62ac294b2..d5d945895d 100644 --- a/src/system/kernel/arch/ppc/arch_debug.cpp +++ b/src/system/kernel/arch/ppc/arch_debug.cpp @@ -279,8 +279,8 @@ arch_debug_contains_call(struct thread *thread, const char *symbol, void * arch_debug_get_caller(void) { - // TODO: implement me - return (void *)&arch_debug_get_caller; + struct stack_frame *frame = get_current_stack_frame()->previous; + return (void *)frame->previous->return_address; }