summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2007-09-24 20:49:39 +0000
committerjhb <jhb@FreeBSD.org>2007-09-24 20:49:39 +0000
commit0cf1ea80ad9e646132f68063065d2be64708ebd2 (patch)
tree39b770bd91480096a7b537cf73515e4175d74d23
parent18e70fea3e78dcdc73e361725353986b492d0736 (diff)
downloadFreeBSD-src-0cf1ea80ad9e646132f68063065d2be64708ebd2.zip
FreeBSD-src-0cf1ea80ad9e646132f68063065d2be64708ebd2.tar.gz
Allow the ia32 resource limits (compat.ia32.max{dsiz,ssiz,vmem} to be
set via loader tunables. They are already tunable via sysctl. MFC after: 1 week Approved by: re (kensmith)
-rw-r--r--sys/compat/ia32/ia32_sysvec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/compat/ia32/ia32_sysvec.c b/sys/compat/ia32/ia32_sysvec.c
index 6277926..1c29352 100644
--- a/sys/compat/ia32/ia32_sysvec.c
+++ b/sys/compat/ia32/ia32_sysvec.c
@@ -102,10 +102,13 @@ SYSCTL_NODE(_compat, OID_AUTO, ia32, CTLFLAG_RW, 0, "ia32 mode");
static u_long ia32_maxdsiz = IA32_MAXDSIZ;
SYSCTL_ULONG(_compat_ia32, OID_AUTO, maxdsiz, CTLFLAG_RW, &ia32_maxdsiz, 0, "");
+TUNABLE_ULONG("compat.ia32.maxdsiz", &ia32_maxdsiz);
static u_long ia32_maxssiz = IA32_MAXSSIZ;
SYSCTL_ULONG(_compat_ia32, OID_AUTO, maxssiz, CTLFLAG_RW, &ia32_maxssiz, 0, "");
+TUNABLE_ULONG("compat.ia32.maxssiz", &ia32_maxssiz);
static u_long ia32_maxvmem = IA32_MAXVMEM;
SYSCTL_ULONG(_compat_ia32, OID_AUTO, maxvmem, CTLFLAG_RW, &ia32_maxvmem, 0, "");
+TUNABLE_ULONG("compat.ia32.maxvmem", &ia32_maxvmem);
struct sysentvec ia32_freebsd_sysvec = {
FREEBSD32_SYS_MAXSYSCALL,
OpenPOWER on IntegriCloud