Don't init IDT twice.
This commit is contained in:
parent
65e92349c7
commit
8c56af5cb9
|
@ -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 <sys/cdefs.h>
|
||||
__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;
|
||||
|
|
Loading…
Reference in New Issue