summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/librthread/arch/powerpc/rfork_thread.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/librthread/arch/powerpc/rfork_thread.S b/lib/librthread/arch/powerpc/rfork_thread.S
index 6c8abd7c153..15e0667e12f 100644
--- a/lib/librthread/arch/powerpc/rfork_thread.S
+++ b/lib/librthread/arch/powerpc/rfork_thread.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: rfork_thread.S,v 1.2 2005/12/25 00:46:08 tedu Exp $ */
+/* $OpenBSD: rfork_thread.S,v 1.3 2006/01/05 16:09:39 otto Exp $ */
/*
* Copyright (c) 2005 Tim Wiess <tim@nop.cx>
@@ -41,7 +41,7 @@ ENTRY(rfork_thread)
/* child */
mtlr %r5 /* fp */
mr %r3, %r6 /* arg */
- mr %r1, %r7 /* new sp */
+ subi %r1, %r7, 16 /* fixup sp to get headroom */
blrl
/* child returned, call _exit */