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:
dg 1993-10-29 09:06:56 +00:00
parent b27ac32ea2
commit c19df90af5
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;