diff options
author | dg <dg@FreeBSD.org> | 1993-10-29 09:06:56 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1993-10-29 09:06:56 +0000 |
commit | f0b1e94bf1bdaf3cf03ba5ff7c2465bcfe6b0208 (patch) | |
tree | 48f7d84012c1d626a8e3de1122f2c2b2756942a5 /sys/amd64 | |
parent | 1cf0cc74f49ee9a3dca0194fddb100f57d4c789e (diff) | |
download | FreeBSD-src-f0b1e94bf1bdaf3cf03ba5ff7c2465bcfe6b0208.zip FreeBSD-src-f0b1e94bf1bdaf3cf03ba5ff7c2465bcfe6b0208.tar.gz |
Whoops, the algorithm I last used was messed up - I left off parans, and
should have used PGSHIFT instead of PAGE_SHIFT.
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index d88c4ea..1446687 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 @@ again: * 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; |