From 6fe4980d4399bb62f3fa11609d93e5bf547d8f11 Mon Sep 17 00:00:00 2001 From: dillon Date: Sun, 9 Dec 2001 01:57:09 +0000 Subject: 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 --- sys/powerpc/aim/machdep.c | 3 ++- sys/powerpc/conf/GENERIC | 2 +- sys/powerpc/powerpc/machdep.c | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) (limited to 'sys/powerpc') diff --git a/sys/powerpc/aim/machdep.c b/sys/powerpc/aim/machdep.c index bdd6d43..b564f0e 100644 --- a/sys/powerpc/aim/machdep.c +++ b/sys/powerpc/aim/machdep.c @@ -436,7 +436,8 @@ powerpc_init(u_int startkernel, u_int endkernel, u_int basekernel, char *args) __asm ("mtsprg 0, %0" :: "r"(globalp)); /* Init basic tunables, hz etc */ - init_param(); + init_param1(); + init_param2(physmem); /* setup curproc so the mutexes work */ diff --git a/sys/powerpc/conf/GENERIC b/sys/powerpc/conf/GENERIC index fde9977..d62d516 100644 --- a/sys/powerpc/conf/GENERIC +++ b/sys/powerpc/conf/GENERIC @@ -20,7 +20,7 @@ machine powerpc cpu MPC750 ident GENERIC -maxusers 32 +maxusers 0 #To statically compile in device wiring instead of /boot/device.hints #hints "GENERIC.hints" diff --git a/sys/powerpc/powerpc/machdep.c b/sys/powerpc/powerpc/machdep.c index bdd6d43..b564f0e 100644 --- a/sys/powerpc/powerpc/machdep.c +++ b/sys/powerpc/powerpc/machdep.c @@ -436,7 +436,8 @@ powerpc_init(u_int startkernel, u_int endkernel, u_int basekernel, char *args) __asm ("mtsprg 0, %0" :: "r"(globalp)); /* Init basic tunables, hz etc */ - init_param(); + init_param1(); + init_param2(physmem); /* setup curproc so the mutexes work */ -- cgit v1.1