1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Whoops, the algorithm I last used was messed up - I left off parans, and

should have used PGSHIFT instead of PAGE_SHIFT.
This commit is contained in:
David Greenman 1993-10-29 09:06:56 +00:00
parent 03cfe1fd06
commit 97a0085a24
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=683
2 changed files with 4 additions and 4 deletions

View File

@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
* $Id: machdep.c,v 1.12 1993/10/15 10:34:22 rgrimes Exp $
* $Id: machdep.c,v 1.13 1993/10/29 08:58:34 davidg Exp $
*/
#include "npx.h"
@ -203,7 +203,7 @@ cpu_startup()
* We allocate 1/2 as many swap buffer headers as file i/o buffers.
*/
if (bufpages == 0)
bufpages = (physmem << PAGE_SHIFT - 3072*1024) / NBPG / 5;
bufpages = ((physmem << PGSHIFT) - 3072*1024) / NBPG / 5;
if (bufpages < 32)
bufpages = 32;

View File

@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
* $Id: machdep.c,v 1.12 1993/10/15 10:34:22 rgrimes Exp $
* $Id: machdep.c,v 1.13 1993/10/29 08:58:34 davidg Exp $
*/
#include "npx.h"
@ -203,7 +203,7 @@ cpu_startup()
* We allocate 1/2 as many swap buffer headers as file i/o buffers.
*/
if (bufpages == 0)
bufpages = (physmem << PAGE_SHIFT - 3072*1024) / NBPG / 5;
bufpages = ((physmem << PGSHIFT) - 3072*1024) / NBPG / 5;
if (bufpages < 32)
bufpages = 32;