summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>1999-06-20 04:55:29 +0000
committeralc <alc@FreeBSD.org>1999-06-20 04:55:29 +0000
commitaa61764b70413d3d4c1c15cc23915b1b8bfcc2eb (patch)
tree5a6901406d68eaebf2505bea82a7d82bba673cc8 /sys/vm
parentded53d5e013ac979d738d3bcbbcc2cde9f480278 (diff)
downloadFreeBSD-src-aa61764b70413d3d4c1c15cc23915b1b8bfcc2eb.zip
FreeBSD-src-aa61764b70413d3d4c1c15cc23915b1b8bfcc2eb.tar.gz
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>
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_page.c4
-rw-r--r--sys/vm/vm_param.h6
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index 0d85a94..bde9c1b 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 f68c824..2f953c6 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 <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
OpenPOWER on IntegriCloud