Source-Changes-HG archive

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

[src/trunk]: src/sys/lkm/compat/svr4 Adjust callers to setgate() to match new...



details:   https://anonhg.NetBSD.org/src/rev/bf8dd39304d9
branches:  trunk
changeset: 537828:bf8dd39304d9
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Sun Oct 06 10:40:04 2002 +0000

description:
Adjust callers to setgate() to match new prototype.

diffstat:

 sys/lkm/compat/svr4/lkminit_emul.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 875bea5026d7 -r bf8dd39304d9 sys/lkm/compat/svr4/lkminit_emul.c
--- a/sys/lkm/compat/svr4/lkminit_emul.c        Sun Oct 06 10:21:50 2002 +0000
+++ b/sys/lkm/compat/svr4/lkminit_emul.c        Sun Oct 06 10:40:04 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lkminit_emul.c,v 1.6 2001/11/12 23:23:05 lukem Exp $ */
+/* $NetBSD: lkminit_emul.c,v 1.7 2002/10/06 10:40:04 fvdl Exp $ */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lkminit_emul.c,v 1.6 2001/11/12 23:23:05 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lkminit_emul.c,v 1.7 2002/10/06 10:40:04 fvdl Exp $");
 
 #include <sys/param.h>
 #include <sys/ioctl.h>
@@ -87,7 +87,7 @@
        extern void IDTVEC(svr4_fasttrap) __P((void));
 
        setgate(&idt[0xd2].gd, &IDTVEC(svr4_fasttrap), 0, SDT_SYS386TGT,
-               SEL_UPL);
+               SEL_UPL, GSEL(GCODE_SEL, SEL_KPL));
 #endif
 
        return (0);
@@ -101,7 +101,7 @@
         * if some userland code would use the gate after the LKM is unloaded?
         */
        setgate(&idt[0xd2].gd, NULL, 0, SDT_SYS386TGT,
-               SEL_UPL);
+               SEL_UPL, GSEL(GCODE_SEL, SEL_KPL));
 #endif
 
        return (0);



Home | Main Index | Thread Index | Old Index