Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86_64/x86_64 Enable the iopl syscall.



details:   https://anonhg.NetBSD.org/src/rev/01468ae0022f
branches:  trunk
changeset: 533566:01468ae0022f
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Thu Jul 04 10:44:00 2002 +0000

description:
Enable the iopl syscall.

diffstat:

 sys/arch/x86_64/x86_64/sys_machdep.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (51 lines):

diff -r 222ad2a57a2e -r 01468ae0022f sys/arch/x86_64/x86_64/sys_machdep.c
--- a/sys/arch/x86_64/x86_64/sys_machdep.c      Thu Jul 04 10:42:00 2002 +0000
+++ b/sys/arch/x86_64/x86_64/sys_machdep.c      Thu Jul 04 10:44:00 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sys_machdep.c,v 1.4 2002/06/18 08:35:14 fvdl Exp $     */
+/*     $NetBSD: sys_machdep.c,v 1.5 2002/07/04 10:44:00 fvdl Exp $     */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -77,10 +77,10 @@
 extern struct vm_map *kernel_map;
 
 #if 0
-int x86_64_iopl __P((struct proc *, void *, register_t *));
 int x86_64_get_ioperm __P((struct proc *, void *, register_t *));
 int x86_64_set_ioperm __P((struct proc *, void *, register_t *));
 #endif
+int x86_64_iopl __P((struct proc *, void *, register_t *));
 int x86_64_get_mtrr __P((struct proc *, void *, register_t *));
 int x86_64_set_mtrr __P((struct proc *, void *, register_t *));
 
@@ -285,7 +285,6 @@
 }
 #endif /* USER_LDT */
 
-#if 0
 int
 x86_64_iopl(p, args, retval)
        struct proc *p;
@@ -313,6 +312,8 @@
        return 0;
 }
 
+#if 0
+
 int
 x86_64_get_ioperm(p, args, retval)
        struct proc *p;
@@ -429,11 +430,11 @@
                error = x86_64_set_ldt(p, SCARG(uap, parms), retval);
                break;
 #endif
-#if 0
        case X86_64_IOPL: 
                error = x86_64_iopl(p, SCARG(uap, parms), retval);
                break;
 
+#if 0
        case X86_64_GET_IOPERM: 
                error = x86_64_get_ioperm(p, SCARG(uap, parms), retval);
                break;



Home | Main Index | Thread Index | Old Index