Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386/isa Adjust callers to setgate() to match new e...



details:   https://anonhg.NetBSD.org/src/rev/4182ce5e7de3
branches:  trunk
changeset: 537798:4182ce5e7de3
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Sat Oct 05 21:28:34 2002 +0000

description:
Adjust callers to setgate() to match new extra parameter.

diffstat:

 sys/arch/i386/isa/isa_machdep.c |   6 +++---
 sys/arch/i386/isa/npx.c         |  10 ++++++----
 2 files changed, 9 insertions(+), 7 deletions(-)

diffs (58 lines):

diff -r 0093af41cdb7 -r 4182ce5e7de3 sys/arch/i386/isa/isa_machdep.c
--- a/sys/arch/i386/isa/isa_machdep.c   Sat Oct 05 21:27:52 2002 +0000
+++ b/sys/arch/i386/isa/isa_machdep.c   Sat Oct 05 21:28:34 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: isa_machdep.c,v 1.56 2002/10/03 15:58:56 fvdl Exp $    */
+/*     $NetBSD: isa_machdep.c,v 1.57 2002/10/05 21:28:34 fvdl Exp $    */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -76,7 +76,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: isa_machdep.c,v 1.56 2002/10/03 15:58:56 fvdl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: isa_machdep.c,v 1.57 2002/10/05 21:28:34 fvdl Exp $");
 
 #define ISA_DMA_STATS
 
@@ -226,7 +226,7 @@
        /* icu vectors */
        for (i = 0; i < ICU_LEN; i++)
                setgate(&idt[ICU_OFFSET + i].gd, IDTVEC(intr)[i], 0,
-                   SDT_SYS386IGT, SEL_KPL);
+                   SDT_SYS386IGT, SEL_KPL, GSEL(GCODE_SEL, SEL_KPL));
        init_i8259();
 }
 
diff -r 0093af41cdb7 -r 4182ce5e7de3 sys/arch/i386/isa/npx.c
--- a/sys/arch/i386/isa/npx.c   Sat Oct 05 21:27:52 2002 +0000
+++ b/sys/arch/i386/isa/npx.c   Sat Oct 05 21:28:34 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: npx.c,v 1.86 2002/10/01 12:57:12 fvdl Exp $    */
+/*     $NetBSD: npx.c,v 1.87 2002/10/05 21:28:34 fvdl Exp $    */
 
 /*-
  * Copyright (c) 1994, 1995, 1998 Charles M. Hannum.  All rights reserved.
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: npx.c,v 1.86 2002/10/01 12:57:12 fvdl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: npx.c,v 1.87 2002/10/05 21:28:34 fvdl Exp $");
 
 #if 0
 #define IPRINTF(x)     printf x
@@ -177,8 +177,10 @@
        disable_intr();
        save_idt_npxintr = idt[NRSVIDT + irq].gd;
        save_idt_npxtrap = idt[16].gd;
-       setgate(&idt[NRSVIDT + irq].gd, probeintr, 0, SDT_SYS386IGT, SEL_KPL);
-       setgate(&idt[16].gd, probetrap, 0, SDT_SYS386TGT, SEL_KPL);
+       setgate(&idt[NRSVIDT + irq].gd, probeintr, 0, SDT_SYS386IGT, SEL_KPL,
+           GSEL(GCODE_SEL, SEL_KPL));
+       setgate(&idt[16].gd, probetrap, 0, SDT_SYS386TGT, SEL_KPL,
+           GSEL(GCODE_SEL, SEL_KPL));
        save_imen = imen;
        imen = ~((1 << IRQ_SLAVE) | (1 << irq));
        SET_ICUS();



Home | Main Index | Thread Index | Old Index