summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2011-07-07 18:18:38 +0000
committerkettenis <kettenis@openbsd.org>2011-07-07 18:18:38 +0000
commit200d138ee0774e7496fbf7aa176d79c5117a3481 (patch)
treeec2033191755ee55ee7eafb078ced12323ef5ffe /sys
parentAdd kerberos startup scripts with backward compatibility goo. (diff)
downloadwireguard-openbsd-200d138ee0774e7496fbf7aa176d79c5117a3481.tar.xz
wireguard-openbsd-200d138ee0774e7496fbf7aa176d79c5117a3481.zip
Set PSL_W bit for forked processes such that they execute in 64-bit mode
instead of 32-bit mode.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/hppa64/hppa64/vm_machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/hppa64/hppa64/vm_machdep.c b/sys/arch/hppa64/hppa64/vm_machdep.c
index 98b93bfd9d5..4cc3dccfc31 100644
--- a/sys/arch/hppa64/hppa64/vm_machdep.c
+++ b/sys/arch/hppa64/hppa64/vm_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm_machdep.c,v 1.13 2011/07/04 17:07:27 kettenis Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.14 2011/07/07 18:18:38 kettenis Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
@@ -136,7 +136,7 @@ cpu_fork(p1, p2, stack, stacksize, func, arg)
*/
tf->tf_sr7 = HPPA_SID_KERNEL;
tf->tf_eiem = mfctl(CR_EIEM);
- tf->tf_ipsw = PSL_C | PSL_Q | PSL_P | PSL_D | PSL_I /* | PSL_L */;
+ tf->tf_ipsw = PSL_W | PSL_C | PSL_Q | PSL_P | PSL_D | PSL_I /* | PSL_L */;
/*
* If specified, give the child a different stack.