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/i386 | |
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/i386')
-rw-r--r-- | sys/i386/conf/GENERIC | 2 | ||||
-rw-r--r-- | sys/i386/conf/NEWCARD | 2 | ||||
-rw-r--r-- | sys/i386/i386/machdep.c | 3 |
3 files changed, 4 insertions, 3 deletions
diff --git a/sys/i386/conf/GENERIC b/sys/i386/conf/GENERIC index 03a8c96..269b210 100644 --- a/sys/i386/conf/GENERIC +++ b/sys/i386/conf/GENERIC @@ -22,7 +22,7 @@ cpu I486_CPU cpu I586_CPU cpu I686_CPU 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/i386/conf/NEWCARD b/sys/i386/conf/NEWCARD index 440ee7f..2d4569a 100644 --- a/sys/i386/conf/NEWCARD +++ b/sys/i386/conf/NEWCARD @@ -26,7 +26,7 @@ cpu I486_CPU cpu I586_CPU cpu I686_CPU ident NEWCARD -maxusers 32 +maxusers 0 #To statically compile in device wiring instead of /boot/device.hints #hints "NEWCARD.hints" #Default places to look for devices. diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c index 64a91f7..bdc0980 100644 --- a/sys/i386/i386/machdep.c +++ b/sys/i386/i386/machdep.c @@ -1692,7 +1692,7 @@ init386(first) kern_envp = (caddr_t)bootinfo.bi_envp + KERNBASE; /* Init basic tunables, hz etc */ - init_param(); + init_param1(); /* * make gdt memory segments, the code segment goes up to end of the @@ -1869,6 +1869,7 @@ init386(first) vm86_initialize(); getmemsize(first); + init_param2(physmem); /* now running on new page tables, configured,and u/iom is accessible */ |