summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2012-10-07 20:39:16 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2012-10-07 20:39:16 +0000
commit0e33464824ac4966f32d1bce266e8d983032856b (patch)
tree13f56f1564e919c6beb6e0a5c44400f3a4e6975c /sys
parent80cd4ae99c402a93691b861d0ea2f9260db85a7b (diff)
Align the stack on a 64-byte boundary as required by "The 32-bit PA-RISC
Run-time Architecture Document". GCC relies on this to properly align stack variables. ok guenther@, beck@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/hppa/hppa/machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/hppa/hppa/machdep.c b/sys/arch/hppa/hppa/machdep.c
index 2cc1d6ee24d..9deefc6a7e4 100644
--- a/sys/arch/hppa/hppa/machdep.c
+++ b/sys/arch/hppa/hppa/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.206 2012/06/21 00:56:59 guenther Exp $ */
+/* $OpenBSD: machdep.c,v 1.207 2012/10/07 20:39:15 kettenis Exp $ */
/*
* Copyright (c) 1999-2003 Michael Shalayeff
@@ -1169,7 +1169,7 @@ setregs(struct proc *p, struct exec_package *pack, u_long stack,
tf->tf_arg1 = tf->tf_arg2 = 0; /* XXX dynload stuff */
/* setup terminal stack frame */
- setstack(tf, (stack + 0x1f) & ~0x1f, 0);
+ setstack(tf, (stack + 0x3f) & ~0x3f, 0);
/* reset any of the pending FPU exceptions */
fpu_proc_flush(p);