summaryrefslogtreecommitdiffstats
path: root/sys/sparc64
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>2001-12-09 01:57:09 +0000
committerdillon <dillon@FreeBSD.org>2001-12-09 01:57:09 +0000
commit6fe4980d4399bb62f3fa11609d93e5bf547d8f11 (patch)
tree984073874a0fe22a637b08b562d194a06c9231ee /sys/sparc64
parent2d4ab797edceb2f8ae654e137e3d0b2f1f94f8b3 (diff)
downloadFreeBSD-src-6fe4980d4399bb62f3fa11609d93e5bf547d8f11.zip
FreeBSD-src-6fe4980d4399bb62f3fa11609d93e5bf547d8f11.tar.gz
Allow maxusers to be specified as 0 in the kernel config, which will
cause the system to auto-size to between 32 and 512 depending on the amount of memory. MFC after: 1 week
Diffstat (limited to 'sys/sparc64')
-rw-r--r--sys/sparc64/conf/GENERIC2
-rw-r--r--sys/sparc64/sparc64/machdep.c7
2 files changed, 7 insertions, 2 deletions
diff --git a/sys/sparc64/conf/GENERIC b/sys/sparc64/conf/GENERIC
index 9f072a4..4550883 100644
--- a/sys/sparc64/conf/GENERIC
+++ b/sys/sparc64/conf/GENERIC
@@ -24,7 +24,7 @@
machine sparc64
cpu SUN4U
ident GENERIC
-maxusers 32
+maxusers 0
#To statically compile in device wiring instead of /boot/device.hints
#hints "GENERIC.hints" #Default places to look for devices.
diff --git a/sys/sparc64/sparc64/machdep.c b/sys/sparc64/sparc64/machdep.c
index 842ce5b..88ce9a0 100644
--- a/sys/sparc64/sparc64/machdep.c
+++ b/sys/sparc64/sparc64/machdep.c
@@ -250,9 +250,14 @@ sparc64_init(caddr_t mdp, ofw_vec_t *vec)
}
/*
+ * XXX calculate physmem
+ */
+
+ /*
* Initialize tunables.
*/
- init_param();
+ init_param1();
+ init_param2(physmem);
#ifdef DDB
kdb_init();
OpenPOWER on IntegriCloud