From 8c56af5cb94b7fb8885d2b39dbbfbc092dfec983 Mon Sep 17 00:00:00 2001 From: junyoung Date: Fri, 4 Oct 2002 19:27:05 +0000 Subject: [PATCH] Don't init IDT twice. --- sys/arch/i386/i386/machdep.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c index acca1045e162..53eca7e16427 100644 --- a/sys/arch/i386/i386/machdep.c +++ b/sys/arch/i386/i386/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.487 2002/10/04 18:42:34 junyoung Exp $ */ +/* $NetBSD: machdep.c,v 1.488 2002/10/04 19:27:05 junyoung Exp $ */ /*- * Copyright (c) 1996, 1997, 1998, 2000 The NetBSD Foundation, Inc. @@ -76,7 +76,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.487 2002/10/04 18:42:34 junyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.488 2002/10/04 19:27:05 junyoung Exp $"); #include "opt_cputype.h" #include "opt_ddb.h" @@ -3335,13 +3335,6 @@ init386(first_avail) cpu_init_idt(); -#ifdef I586_CPU - setregion(®ion, pentium_idt, NIDT * sizeof(idt[0]) - 1); -#else - setregion(®ion, idt, NIDT * sizeof(idt[0]) - 1); -#endif - lidt(®ion); - #ifdef DDB { extern int end;