e PAGE_SIZE rather than NBPG.
This commit is contained in:
parent
bfb4fa0c88
commit
957249ff69
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.23 2003/01/22 21:55:14 kleink Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.24 2003/04/01 22:36:01 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
|
||||
@ -759,7 +759,7 @@ cpu_startup()
|
||||
* "base" pages for the rest.
|
||||
*/
|
||||
curbuf = (vaddr_t)buffers + i * MAXBSIZE;
|
||||
curbufsize = NBPG * (i < residual ? base + 1 : base);
|
||||
curbufsize = PAGE_SIZE * (i < residual ? base + 1 : base);
|
||||
|
||||
while (curbufsize) {
|
||||
pg = uvm_pagealloc(NULL, 0, NULL, 0);
|
||||
@ -796,7 +796,7 @@ cpu_startup()
|
||||
|
||||
format_bytes(pbuf, sizeof(pbuf), ptoa(uvmexp.free));
|
||||
printf("avail memory = %s\n", pbuf);
|
||||
format_bytes(pbuf, sizeof(pbuf), bufpages * NBPG);
|
||||
format_bytes(pbuf, sizeof(pbuf), bufpages * PAGE_SIZE);
|
||||
printf("using %u buffers containing %s of memory\n", nbuf, pbuf);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user