From adcb62ea36966f3f12590751dd34bcc36baa0eb0 Mon Sep 17 00:00:00 2001 From: bde Date: Sun, 20 Jul 1997 12:33:19 +0000 Subject: Finished (?) converting md_regs to a `struct trapframe *'. Some bogus casts are now unnecessary. --- sys/i386/isa/pcvt/pcvt_ext.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/i386/isa/pcvt') diff --git a/sys/i386/isa/pcvt/pcvt_ext.c b/sys/i386/isa/pcvt/pcvt_ext.c index be6a016..da55be0 100644 --- a/sys/i386/isa/pcvt/pcvt_ext.c +++ b/sys/i386/isa/pcvt/pcvt_ext.c @@ -2685,7 +2685,7 @@ usl_vt_ioctl(Dev_t dev, int cmd, caddr_t data, int flag, struct proc *p) { #if PCVT_NETBSD > 9 || PCVT_FREEBSD >= 200 - struct trapframe *fp = (struct trapframe *)p->p_md.md_regs; + struct trapframe *fp = p->p_md.md_regs; #elif PCVT_NETBSD || (PCVT_FREEBSD && PCVT_FREEBSD > 102) struct trapframe *fp = (struct trapframe *)p->p_regs; #else @@ -2712,7 +2712,7 @@ usl_vt_ioctl(Dev_t dev, int cmd, caddr_t data, int flag, struct proc *p) { #if PCVT_NETBSD > 9 || PCVT_FREEBSD >= 200 - struct trapframe *fp = (struct trapframe *)p->p_md.md_regs; + struct trapframe *fp = p->p_md.md_regs; fp->tf_eflags &= ~PSL_IOPL; #elif PCVT_NETBSD || (PCVT_FREEBSD && PCVT_FREEBSD > 102) struct trapframe *fp = (struct trapframe *)p->p_regs; -- cgit v1.1