summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2006-03-14 22:42:01 +0000
committerderaadt <deraadt@openbsd.org>2006-03-14 22:42:01 +0000
commit396f696da66d3d3bc755f2ee93263109293a5a05 (patch)
tree306f1f869e1f2c3d5b9ff2213110566da9ee87da
parentinstall these on amd64 (diff)
downloadwireguard-openbsd-396f696da66d3d3bc755f2ee93263109293a5a05.tar.xz
wireguard-openbsd-396f696da66d3d3bc755f2ee93263109293a5a05.zip
no need for an aperture. we are unlikely to ever allow pci video cards
in these machines, because pci video cards contain too much evil. if we do support them later, we add it back. ok miod
-rw-r--r--sys/arch/sgi/sgi/machdep.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/sys/arch/sgi/sgi/machdep.c b/sys/arch/sgi/sgi/machdep.c
index 64af2bc9412..32bdf8259a9 100644
--- a/sys/arch/sgi/sgi/machdep.c
+++ b/sys/arch/sgi/sgi/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.30 2006/03/04 22:02:47 brad Exp $ */
+/* $OpenBSD: machdep.c,v 1.31 2006/03/14 22:42:01 deraadt Exp $ */
/*
* Copyright (c) 2003-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -96,13 +96,6 @@ void dump_tlb(void);
/* the following is used externally (sysctl_hw) */
char machine[] = MACHINE; /* machine "architecture" */
char cpu_model[30];
-#ifdef APERTURE
-#if defined(INSECURE) || defined(DEBUG)
-int allowaperture = 1;
-#else
-int allowaperture = 0;
-#endif
-#endif
/*
* Declare these as initialized data so we can patch them.
@@ -755,15 +748,6 @@ cpu_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
return ENOTDIR; /* overloaded */
switch (name[0]) {
- case CPU_ALLOWAPERTURE:
-#ifdef APERTURE
- if (securelevel > 0)
- return sysctl_rdint(oldp, oldlenp, newp, allowaperture);
- else
- return sysctl_int(oldp, oldlenp, newp, newlen, &allowaperture);
-#else
- return (sysctl_rdint(oldp, oldlenp, newp, 0));
-#endif
default:
return EOPNOTSUPP;
}