summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
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/sparc64
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/sparc64')
-rw-r--r--sys/arch/sparc64/sparc64/machdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sparc64/sparc64/machdep.c b/sys/arch/sparc64/sparc64/machdep.c
index a856db526ec..79efe3d3a7d 100644
--- a/sys/arch/sparc64/sparc64/machdep.c
+++ b/sys/arch/sparc64/sparc64/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.80 2006/01/02 18:19:41 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.81 2006/03/15 21:03:39 deraadt Exp $ */
/* $NetBSD: machdep.c,v 1.108 2001/07/24 19:30:14 eeh Exp $ */
/*-
@@ -530,8 +530,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));