Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/ofppc/include Define VM_MAX_KERNEL_BUF and PAGER_MA...



details:   https://anonhg.NetBSD.org/src/rev/aff362aecbf7
branches:  trunk
changeset: 513606:aff362aecbf7
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sun Aug 05 06:55:02 2001 +0000

description:
Define VM_MAX_KERNEL_BUF and PAGER_MAP_SIZE to save KVA space.

diffstat:

 sys/arch/ofppc/include/vmparam.h |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 7a712f397e34 -r aff362aecbf7 sys/arch/ofppc/include/vmparam.h
--- a/sys/arch/ofppc/include/vmparam.h  Sun Aug 05 06:14:22 2001 +0000
+++ b/sys/arch/ofppc/include/vmparam.h  Sun Aug 05 06:55:02 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.13 2001/05/01 02:19:18 thorpej Exp $     */
+/*     $NetBSD: vmparam.h,v 1.14 2001/08/05 06:55:02 tsutsui Exp $     */
 
 /*-
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -89,6 +89,16 @@
 #define        VM_MIN_KERNEL_ADDRESS   ((vaddr_t)(KERNEL_SR << ADDR_SR_SHFT))
 #define        VM_MAX_KERNEL_ADDRESS   (VM_MIN_KERNEL_ADDRESS + SEGMENT_LENGTH - 1)
 
+/* XXX max. amount of KVM to be used by buffers. */
+#ifndef VM_MAX_KERNEL_BUF
+#define VM_MAX_KERNEL_BUF      (SEGMENT_LENGTH / 2)
+#endif
+
+/*
+ * Override the default pager_map size, there's not enough KVA.
+ */
+#define PAGER_MAP_SIZE         (4 * 1024 * 1024)
+
 #define        VM_PHYS_SIZE            (USRIOSIZE * NBPG)
 
 #define        __HAVE_PMAP_PHYSSEG



Home | Main Index | Thread Index | Old Index