From 1cf0c3b3f272fafff0e90009f9cb310ea656a43d Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Tue, 10 Jan 2006 00:49:31 +0000 Subject: [PATCH] Clear the back pointer in the root kernel stack frame, so stack traces will end there. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15888 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../boot/platform/openfirmware/arch/ppc/arch_start_kernel.S | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/system/boot/platform/openfirmware/arch/ppc/arch_start_kernel.S b/src/system/boot/platform/openfirmware/arch/ppc/arch_start_kernel.S index 89400d2e57..c0c082231c 100644 --- a/src/system/boot/platform/openfirmware/arch/ppc/arch_start_kernel.S +++ b/src/system/boot/platform/openfirmware/arch/ppc/arch_start_kernel.S @@ -25,6 +25,10 @@ FUNCTION(arch_start_kernel): // set up the kernel stack subi %r1, %r5, 16 + // clear the pointer to the previous frame + li %r0, 0 + stw %r0, 0(%r1) + // enter the kernel mtlr %r4 blrl