summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2001-11-30 00:32:47 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2001-11-30 00:32:47 +0000
commita2c8b5977ff11b8f875fcff248cd04bfd37e6778 (patch)
treeec24578e409c6ddaa341ee11cd23c6fbc04ec9d1 /sys
parent215bc1378c04e21bcd9107cad887938931179faa (diff)
Only m68k-based architectures need to include <machine/psl.h> here.
Diffstat (limited to 'sys')
-rw-r--r--sys/compat/common/kern_exit_43.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/common/kern_exit_43.c b/sys/compat/common/kern_exit_43.c
index 586d96584af..7528253ed78 100644
--- a/sys/compat/common/kern_exit_43.c
+++ b/sys/compat/common/kern_exit_43.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_exit_43.c,v 1.4 2001/11/06 19:53:17 miod Exp $ */
+/* $OpenBSD: kern_exit_43.c,v 1.5 2001/11/30 00:32:46 miod Exp $ */
/* $NetBSD: kern_exit_43.c,v 1.3 1995/10/07 06:26:20 mycroft Exp $ */
/*
@@ -66,12 +66,12 @@
#include <machine/cpu.h>
#include <machine/reg.h>
-#include <machine/psl.h>
#include <compat/common/compat_util.h>
#include <uvm/uvm_extern.h>
#ifdef m68k
#include <machine/frame.h>
+#include <machine/psl.h>
#define GETPS(rp) ((struct frame *)(rp))->f_sr
#else
#define GETPS(rp) (rp)[PS]
@@ -93,7 +93,7 @@ compat_43_sys_wait(p, v, retval)
syscallarg(struct rusage *) rusage;
} */ a;
-#ifdef PSL_ALLCC
+#ifdef m68k
if ((GETPS(p->p_md.md_regs) & PSL_ALLCC) != PSL_ALLCC) {
SCARG(&a, options) = 0;
SCARG(&a, rusage) = NULL;