From c2077034654a87e5a0517430c4d0c7d10721e484 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sun, 20 Jun 1999 04:55:29 +0000 Subject: [PATCH] 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 --- sys/vm/vm_page.c | 4 ++-- sys/vm/vm_param.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index 0d85a946757c..bde9c1b7e1f3 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -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"); diff --git a/sys/vm/vm_param.h b/sys/vm/vm_param.h index f68c82428753..2f953c69e197 100644 --- a/sys/vm/vm_param.h +++ b/sys/vm/vm_param.h @@ -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 +#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