summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2006-01-05 16:09:39 +0000
committerotto <otto@openbsd.org>2006-01-05 16:09:39 +0000
commit1517bfbaceb8203580070fabca13c9e2c6d18b1c (patch)
tree57f53f9a2720e328b2adf5afaee0b8d0c2a87728
parentShow attribute cache total reference count. (diff)
downloadwireguard-openbsd-1517bfbaceb8203580070fabca13c9e2c6d18b1c.tar.xz
wireguard-openbsd-1517bfbaceb8203580070fabca13c9e2c6d18b1c.zip
Fixup stack, it needs 16 bytes headroom. Help from miod@ and drahn.
ok drahn@
-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 */