Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys allow ports to override PAGER_MAP_SIZE in machine/vmpara...



details:   https://anonhg.NetBSD.org/src/rev/5d6a28543384
branches:  trunk
changeset: 499697:5d6a28543384
user:      chs <chs%NetBSD.org@localhost>
date:      Mon Nov 27 08:19:50 2000 +0000

description:
allow ports to override PAGER_MAP_SIZE in machine/vmparam.h.
some ports (such as arm32) don't have enough KVA for the
increased default size once the UBC mapping is also present.

diffstat:

 sys/arch/arm32/include/vmparam.h |  7 ++++++-
 sys/uvm/uvm_pager.h              |  4 +++-
 2 files changed, 9 insertions(+), 2 deletions(-)

diffs (40 lines):

diff -r 73f32d754bf9 -r 5d6a28543384 sys/arch/arm32/include/vmparam.h
--- a/sys/arch/arm32/include/vmparam.h  Mon Nov 27 07:47:42 2000 +0000
+++ b/sys/arch/arm32/include/vmparam.h  Mon Nov 27 08:19:50 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.18 2000/02/11 19:25:14 thorpej Exp $     */
+/*     $NetBSD: vmparam.h,v 1.19 2000/11/27 08:19:50 chs Exp $ */
 
 /*
  * Copyright (c) 1988 The Regents of the University of California.
@@ -130,6 +130,11 @@
 #define        PROCESS_PAGE_TBLS_BASE  PAGE_TABLE_SPACE_START
 
 /*
+ * Override the default pager_map size, there's not enough KVA.
+ */
+#define PAGER_MAP_SIZE         (4 * 1024 * 1024)
+
+/*
  * Mach derived constants
  */
 
diff -r 73f32d754bf9 -r 5d6a28543384 sys/uvm/uvm_pager.h
--- a/sys/uvm/uvm_pager.h       Mon Nov 27 07:47:42 2000 +0000
+++ b/sys/uvm/uvm_pager.h       Mon Nov 27 08:19:50 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_pager.h,v 1.18 2000/11/24 22:41:39 chs Exp $       */
+/*     $NetBSD: uvm_pager.h,v 1.19 2000/11/27 08:19:51 chs Exp $       */
 
 /*
  *
@@ -214,7 +214,9 @@
  * is changed to do physically-addressed i/o.
  */
 
+#ifndef PAGER_MAP_SIZE
 #define PAGER_MAP_SIZE       (16 * 1024 * 1024)
+#endif
 
 #endif /* _KERNEL */
 



Home | Main Index | Thread Index | Old Index