From c19df90af541f40f7b4415fd6dbbc4950eec7f6e Mon Sep 17 00:00:00 2001 From: dg Date: Fri, 29 Oct 1993 09:06:56 +0000 Subject: [PATCH] Whoops, the algorithm I last used was messed up - I left off parans, and should have used PGSHIFT instead of PAGE_SHIFT. --- sys/amd64/amd64/machdep.c | 4 ++-- sys/i386/i386/machdep.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index d88c4eaca2ba..144668765ac2 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -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; diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c index d88c4eaca2ba..144668765ac2 100644 --- a/sys/i386/i386/machdep.c +++ b/sys/i386/i386/machdep.c @@ -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;