Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/i386 One more change resulting from my GDT rea...
details: https://anonhg.NetBSD.org/src/rev/181064cac892
branches: trunk
changeset: 521122:181064cac892
user: rafal <rafal%NetBSD.org@localhost>
date: Thu Jan 24 03:20:28 2002 +0000
description:
One more change resulting from my GDT rearrangement... Since GMACHCALLS_SEL
is always defined now, don't use that to test if we should install the MACH
compat gate; test COMPAT_MACH instead.
diffstat:
sys/arch/i386/i386/machdep.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (40 lines):
diff -r da1b49590d24 -r 181064cac892 sys/arch/i386/i386/machdep.c
--- a/sys/arch/i386/i386/machdep.c Thu Jan 24 03:20:11 2002 +0000
+++ b/sys/arch/i386/i386/machdep.c Thu Jan 24 03:20:28 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.465 2002/01/15 13:34:52 drochner Exp $ */
+/* $NetBSD: machdep.c,v 1.466 2002/01/24 03:20:28 rafal 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.465 2002/01/15 13:34:52 drochner Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.466 2002/01/24 03:20:28 rafal Exp $");
#include "opt_cputype.h"
#include "opt_ddb.h"
@@ -3051,6 +3051,10 @@
SDT_MEMERA, SEL_UPL, 1, 1);
setsegment(&gdt[GUDATA_SEL].sd, 0, i386_btop(VM_MAXUSER_ADDRESS) - 1,
SDT_MEMRWA, SEL_UPL, 1, 1);
+#ifdef COMPAT_MACH
+ setgate(&gdt[GMACHCALLS_SEL].gd, &IDTVEC(mach_trap), 1,
+ SDT_SYS386CGT, SEL_UPL);
+#endif
#if NBIOSCALL > 0
/* bios trampoline GDT entries */
setsegment(&gdt[GBIOSCODE_SEL].sd, 0, 0xfffff, SDT_MEMERA, SEL_KPL, 0,
@@ -3058,10 +3062,6 @@
setsegment(&gdt[GBIOSDATA_SEL].sd, 0, 0xfffff, SDT_MEMRWA, SEL_KPL, 0,
0);
#endif
-#ifdef GMACHCALLS_SEL
- setgate(&gdt[GMACHCALLS_SEL].gd, &IDTVEC(mach_trap), 1,
- SDT_SYS386CGT, SEL_UPL);
-#endif
/* make ldt gates and memory segments */
setgate(&ldt[LSYS5CALLS_SEL].gd, &IDTVEC(osyscall), 1,
Home |
Main Index |
Thread Index |
Old Index