summaryrefslogtreecommitdiff
path: root/sys/arch/i386/i386/machdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/i386/i386/machdep.c')
-rw-r--r--sys/arch/i386/i386/machdep.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c
index f52c4133b5d..473c2e4c8ad 100644
--- a/sys/arch/i386/i386/machdep.c
+++ b/sys/arch/i386/i386/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.223 2003/03/28 00:28:22 weingart Exp $ */
+/* $OpenBSD: machdep.c,v 1.224 2003/03/28 00:49:13 miod Exp $ */
/* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */
/*-
@@ -196,6 +196,10 @@ char machine_arch[] = "i386"; /* machine == machine_arch */
int cpu_apmhalt = 0; /* sysctl'd to 1 for halt -p hack */
#endif
+#ifdef USER_LDT
+int user_ldt_enable = 0; /* sysctl'd to 1 to enable */
+#endif
+
#ifdef NBUF
int nbuf = NBUF;
#else
@@ -2621,6 +2625,11 @@ cpu_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
else
return (sysctl_int(oldp, oldlenp, newp, newlen,
&kbd_reset));
+#ifdef USER_LDT
+ case CPU_USERLDT:
+ return (sysctl_int(oldp, oldlenp, newp, newlen,
+ &user_ldt_enable));
+#endif
default:
return EOPNOTSUPP;
}