summaryrefslogtreecommitdiff
path: root/sys/arch/i386/isa/pcvt/pcvt_ext.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/i386/isa/pcvt/pcvt_ext.c')
-rw-r--r--sys/arch/i386/isa/pcvt/pcvt_ext.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/sys/arch/i386/isa/pcvt/pcvt_ext.c b/sys/arch/i386/isa/pcvt/pcvt_ext.c
index 4b031d60b2b..1d47179b38e 100644
--- a/sys/arch/i386/isa/pcvt/pcvt_ext.c
+++ b/sys/arch/i386/isa/pcvt/pcvt_ext.c
@@ -1,3 +1,5 @@
+/* $OpenBSD: pcvt_ext.c,v 1.3 1996/04/18 17:48:29 niklas Exp $ */
+
/*
* Copyright (c) 1992, 1995 Hellmuth Michaelis and Joerg Wunsch.
*
@@ -2196,8 +2198,6 @@ switch_screen(int n, int oldgrafx, int newgrafx)
if((saved_scrnsv_tmo = scrnsv_timeout))
pcvt_set_scrnsv_tmo(0); /* screensaver off */
#endif /* PCVT_SCREENSAVER */
-
- async_update(UPDATE_STOP); /* status display off */
}
if(!oldgrafx)
@@ -2265,9 +2265,6 @@ switch_screen(int n, int oldgrafx, int newgrafx)
outb(addr_6845, CRTC_CUREND); /* select low register */
outb(addr_6845+1, vsp->cursor_end);
}
-
- /* make status display happy */
- async_update(UPDATE_START);
}
if(!newgrafx)
@@ -2759,11 +2756,14 @@ usl_vt_ioctl(Dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
if(suser(p->p_ucred, &p->p_acflag) != 0)
return (EPERM);
+#if (PCVT_NETBSD <= 100) || defined(COMPAT_10) || defined(COMPAT_11)
+ /* This is done by i386_iopl(3) now. */
#if PCVT_NETBSD || (PCVT_FREEBSD && PCVT_FREEBSD > 102)
fp->tf_eflags |= PSL_IOPL;
#else
fp->sf_eflags |= PSL_IOPL;
#endif
+#endif
return 0;
}
@@ -2772,6 +2772,8 @@ usl_vt_ioctl(Dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
/* abandon IO access permission */
{
+#if (PCVT_NETBSD <= 100) || defined(COMPAT_10) || defined(COMPAT_11)
+ /* This is done by i386_iopl(3) now. */
#if PCVT_NETBSD > 9 || PCVT_FREEBSD >= 200
struct trapframe *fp = (struct trapframe *)p->p_md.md_regs;
fp->tf_eflags &= ~PSL_IOPL;
@@ -2782,7 +2784,7 @@ usl_vt_ioctl(Dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
struct syscframe *fp = (struct syscframe *)p->p_regs;
fp->sf_eflags &= ~PSL_IOPL;
#endif
-
+#endif
return 0;
}