diff --git a/sys/i386/i386/mem.c b/sys/i386/i386/mem.c index c129febc2cbb..379b59c88919 100644 --- a/sys/i386/i386/mem.c +++ b/sys/i386/i386/mem.c @@ -98,7 +98,6 @@ mmclose(struct cdev *dev, int flags, int fmt, struct thread *td) { switch (minor(dev)) { case 14: - td->td_proc->p_md.md_iopl = 0; td->td_frame->tf_eflags &= ~PSL_IOPL; } return (0); @@ -126,7 +125,6 @@ mmopen(struct cdev *dev, int flags, int fmt, struct thread *td) if (error != 0) return (error); td->td_frame->tf_eflags |= PSL_IOPL; - td->td_proc->p_md.md_iopl = PSL_IOPL; break; } return (0); diff --git a/sys/i386/include/proc.h b/sys/i386/include/proc.h index 810a8e5821de..5b2c286c4e4e 100644 --- a/sys/i386/include/proc.h +++ b/sys/i386/include/proc.h @@ -52,7 +52,6 @@ struct mdthread { struct mdproc { struct proc_ldt *md_ldt; /* (j) per-process ldt */ - uint32_t md_iopl; /* process' iopl level */ }; #ifdef _KERNEL