diff options
author | dillon <dillon@FreeBSD.org> | 2001-12-09 01:57:09 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2001-12-09 01:57:09 +0000 |
commit | 6fe4980d4399bb62f3fa11609d93e5bf547d8f11 (patch) | |
tree | 984073874a0fe22a637b08b562d194a06c9231ee /sys/powerpc | |
parent | 2d4ab797edceb2f8ae654e137e3d0b2f1f94f8b3 (diff) | |
download | FreeBSD-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/powerpc')
-rw-r--r-- | sys/powerpc/aim/machdep.c | 3 | ||||
-rw-r--r-- | sys/powerpc/conf/GENERIC | 2 | ||||
-rw-r--r-- | sys/powerpc/powerpc/machdep.c | 3 |
3 files changed, 5 insertions, 3 deletions
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 */ |