summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-03-15 21:03:40 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-03-15 21:03:40 +0000
commite08d7a2395baaf134e55c221ae906ed6fd19592e (patch)
treed7bd04e0e105669e86ece26ef4b129889815fe21 /sys/arch/i386
parentc7fe1d17a23f05f50f44565df8171243d28ea4dc (diff)
use sysctl_int_lower() for the aperture variable. This lets root close
the aperture without having to reboot, but does not allow re-opening; ok matthieu
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/machdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c
index acd227a12f7..c874ef52348 100644
--- a/sys/arch/i386/i386/machdep.c
+++ b/sys/arch/i386/i386/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.345 2006/03/14 09:02:29 mickey Exp $ */
+/* $OpenBSD: machdep.c,v 1.346 2006/03/15 21:03:38 deraadt Exp $ */
/* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */
/*-
@@ -3276,8 +3276,8 @@ cpu_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
case CPU_ALLOWAPERTURE:
#ifdef APERTURE
if (securelevel > 0)
- return (sysctl_rdint(oldp, oldlenp, newp,
- allowaperture));
+ return (sysctl_int_lower(oldp, oldlenp, newp, newlen,
+ &allowaperture));
else
return (sysctl_int(oldp, oldlenp, newp, newlen,
&allowaperture));