avail mem is calculated ptoa(uvmexp.free), not ptoa(uvmexp.free - bufpages),

like on other ports.  uvmexp.free is already adjusted by the uvm_pagealloc
calls used to get the buffer pages.  (reported by mrg)
This commit is contained in:
cgd 1998-09-02 00:03:05 +00:00
parent 380e88d4f0
commit 8bbc38a130

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.47 1998/08/30 23:17:44 mark Exp $ */
/* $NetBSD: machdep.c,v 1.48 1998/09/02 00:03:05 cgd Exp $ */
/*
* Copyright (c) 1994-1996 Mark Brinicombe.
@ -550,7 +550,7 @@ cpu_startup()
callout[loop - 1].c_next = &callout[loop];
#if defined(UVM)
printf("avail mem = %ld\n", ptoa(uvmexp.free - bufpages));
printf("avail mem = %ld\n", ptoa(uvmexp.free));
#else
printf("avail mem = %ld\n", ptoa(cnt.v_free_count));
#endif