Set cnt.v_page_size to PAGE_SIZE rather than DEFAULT_PAGE_SIZE so that

"vmstat -s" reports the correct value on the Alpha.

Submitted by:	Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
This commit is contained in:
Alan Cox 1999-06-20 04:55:29 +00:00
parent 12a7982c45
commit c207703465
2 changed files with 5 additions and 5 deletions

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)vm_page.c 7.4 (Berkeley) 5/7/91
* $Id: vm_page.c,v 1.129 1999/04/05 19:38:29 julian Exp $
* $Id: vm_page.c,v 1.130 1999/05/02 23:57:13 alc Exp $
*/
/*
@ -163,7 +163,7 @@ vm_set_page_size()
{
if (cnt.v_page_size == 0)
cnt.v_page_size = DEFAULT_PAGE_SIZE;
cnt.v_page_size = PAGE_SIZE;
page_mask = cnt.v_page_size - 1;
if ((page_mask & cnt.v_page_size) != 0)
panic("vm_set_page_size: page size not a power of two");

View File

@ -61,7 +61,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
* $Id: vm_param.h,v 1.8 1997/02/22 09:48:37 peter Exp $
* $Id: vm_param.h,v 1.9 1998/07/22 06:21:55 phk Exp $
*/
/*
@ -73,14 +73,14 @@
#include <machine/vmparam.h>
#if 0
/*
* The machine independent pages are refered to as PAGES. A page
* is some number of hardware pages, depending on the target machine.
*/
#define DEFAULT_PAGE_SIZE 4096
#if 0
/*
* All references to the size of a page should be done with PAGE_SIZE
* or PAGE_SHIFT. The fact they are variables is hidden here so that