diff options
author | bde <bde@FreeBSD.org> | 1997-07-20 12:33:19 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1997-07-20 12:33:19 +0000 |
commit | adcb62ea36966f3f12590751dd34bcc36baa0eb0 (patch) | |
tree | 739686a96b7cfd2716ed2f151e6e40dfa7462cc3 /sys/i386/isa/pcvt/pcvt_ext.c | |
parent | 36d97e2225e2b6c828d9fbc3c2e9ffee6340573b (diff) | |
download | FreeBSD-src-adcb62ea36966f3f12590751dd34bcc36baa0eb0.zip FreeBSD-src-adcb62ea36966f3f12590751dd34bcc36baa0eb0.tar.gz |
Finished (?) converting md_regs to a `struct trapframe *'. Some bogus casts
are now unnecessary.
Diffstat (limited to 'sys/i386/isa/pcvt/pcvt_ext.c')
-rw-r--r-- | sys/i386/isa/pcvt/pcvt_ext.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |