diff options
author | 2011-07-07 18:18:38 +0000 | |
---|---|---|
committer | 2011-07-07 18:18:38 +0000 | |
commit | 200d138ee0774e7496fbf7aa176d79c5117a3481 (patch) | |
tree | ec2033191755ee55ee7eafb078ced12323ef5ffe | |
parent | Add kerberos startup scripts with backward compatibility goo. (diff) | |
download | wireguard-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.
-rw-r--r-- | sys/arch/hppa64/hppa64/vm_machdep.c | 4 |
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. |