From bf7df4cf6af9291302cc580f27d330cb61084836 Mon Sep 17 00:00:00 2001 From: KATO Takenori Date: Thu, 8 May 1997 09:22:32 +0000 Subject: [PATCH] Synchronize with sys/i386/isa/syscons.c revision 1.215. --- sys/pc98/pc98/syscons.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/sys/pc98/pc98/syscons.c b/sys/pc98/pc98/syscons.c index 752d6eef96fd..3b6ebf711b40 100644 --- a/sys/pc98/pc98/syscons.c +++ b/sys/pc98/pc98/syscons.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: syscons.c,v 1.37 1997/05/01 11:28:49 kato Exp $ + * $Id: syscons.c,v 1.38 1997/05/07 14:17:38 kato Exp $ */ #include "sc.h" @@ -851,7 +851,6 @@ scioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p) int error; u_int i; struct tty *tp; - struct trapframe *fp; scr_stat *scp; tp = scdevtotty(dev); @@ -1342,13 +1341,11 @@ scioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p) return error; if (securelevel > 0) return EPERM; - fp = (struct trapframe *)p->p_md.md_regs; - fp->tf_eflags |= PSL_IOPL; + p->p_md.md_regs->tf_eflags |= PSL_IOPL; return 0; case KDDISABIO: /* disallow io operations (default) */ - fp = (struct trapframe *)p->p_md.md_regs; - fp->tf_eflags &= ~PSL_IOPL; + p->p_md.md_regs->tf_eflags &= ~PSL_IOPL; return 0; case KDSETMODE: /* set current mode of this (virtual) console */