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/i386/conf/GENERIC | 2 +- sys/i386/conf/NEWCARD | 2 +- sys/i386/i386/machdep.c | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'sys/i386') 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 */ -- cgit v1.1