summaryrefslogtreecommitdiff
path: root/sys/arch/i386/isa/pcvt/pcvt_ext.c
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1998-07-19 10:47:54 +0000
committerJason Downs <downsj@cvs.openbsd.org>1998-07-19 10:47:54 +0000
commite58b1580892baa467c640a750d2b1c71dd67f453 (patch)
tree62e3dbbcd7d315525d17976f34daa72363dcb8fc /sys/arch/i386/isa/pcvt/pcvt_ext.c
parent4e8527decc78e1f1de2c7e02d85d2abcfaf4c21f (diff)
COMPAT_LINUX has to have working KDENABIO and KDDISABIO as well.
Diffstat (limited to 'sys/arch/i386/isa/pcvt/pcvt_ext.c')
-rw-r--r--sys/arch/i386/isa/pcvt/pcvt_ext.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/i386/isa/pcvt/pcvt_ext.c b/sys/arch/i386/isa/pcvt/pcvt_ext.c
index eed6cbee866..6730ccd2a3e 100644
--- a/sys/arch/i386/isa/pcvt/pcvt_ext.c
+++ b/sys/arch/i386/isa/pcvt/pcvt_ext.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcvt_ext.c,v 1.15 1998/06/30 20:51:09 millert Exp $ */
+/* $OpenBSD: pcvt_ext.c,v 1.16 1998/07/19 10:47:53 downsj Exp $ */
/*
* Copyright (c) 1992, 1995 Hellmuth Michaelis and Joerg Wunsch.
@@ -2781,14 +2781,14 @@ usl_vt_ioctl(Dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
*/
{
-#if defined(COMPAT_10) || defined(COMPAT_11)
+#if defined(COMPAT_10) || defined(COMPAT_11) || defined(COMPAT_LINUX)
struct trapframe *fp = (struct trapframe *)p->p_md.md_regs;
#endif
if (suser(p->p_ucred, &p->p_acflag) || securelevel > 1)
return (EPERM);
-#if defined(COMPAT_10) || defined(COMPAT_11)
+#if defined(COMPAT_10) || defined(COMPAT_11) || defined(COMPAT_LINUX)
/* This is done by i386_iopl(3) now. */
fp->tf_eflags |= PSL_IOPL;
#endif
@@ -2800,7 +2800,7 @@ usl_vt_ioctl(Dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
/* abandon IO access permission */
{
-#if defined(COMPAT_10) || defined(COMPAT_11)
+#if defined(COMPAT_10) || defined(COMPAT_11) || defined(COMPAT_LINUX)
/* This is done by i386_iopl(3) now. */
struct trapframe *fp = (struct trapframe *)p->p_md.md_regs;
fp->tf_eflags &= ~PSL_IOPL;