summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2006-01-05 16:09:40 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2006-01-05 16:09:40 +0000
commit33780e75d8419660aab63365b0d387135e9cf8ac (patch)
treee764e1c8a4b7c1fe69ec36df68ba551fe513b8d0 /lib
parent180dd56d6c1a2fd21e84d33b8ac0c9f68a6d8eec (diff)
Fixup stack, it needs 16 bytes headroom. Help from miod@ and drahn.
ok drahn@
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 */