Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm32/include Increase the kernel VM area for both ...



details:   https://anonhg.NetBSD.org/src/rev/cf80b3b7f6bf
branches:  trunk
changeset: 480380:cf80b3b7f6bf
user:      mark <mark%NetBSD.org@localhost>
date:      Mon Jan 10 07:44:55 2000 +0000

description:
Increase the kernel VM area for both SHARK and Footbridge systems.

diffstat:

 sys/arch/arm32/include/vmparam.h |  29 ++++++++++++++++++++++++++++-
 1 files changed, 28 insertions(+), 1 deletions(-)

diffs (44 lines):

diff -r 0642eb9ea60b -r cf80b3b7f6bf sys/arch/arm32/include/vmparam.h
--- a/sys/arch/arm32/include/vmparam.h  Mon Jan 10 07:43:07 2000 +0000
+++ b/sys/arch/arm32/include/vmparam.h  Mon Jan 10 07:44:55 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.16 1999/12/04 21:20:12 ragge Exp $       */
+/*     $NetBSD: vmparam.h,v 1.17 2000/01/10 07:44:55 mark Exp $        */
 
 /*
  * Copyright (c) 1988 The Regents of the University of California.
@@ -99,7 +99,34 @@
 #define        KERNEL_TEXT_BASE        KERNEL_BASE
 #define        ALT_PAGE_TBLS_BASE      0xf0c00000
 #define        KERNEL_VM_BASE          0xf1000000
+/*
+ * The Kernel VM Size varies depending on the machine depending on how
+ * much space is needed (and where) for other mappings.
+ * In some cases the chosen value may not be the maximum in order that
+ * we don't waste memory with kernel pages tables as we can't currently
+ * grow the kernel page tables after booting.
+ * You only need to increase these values if you find that the number of
+ * buffers is being limited due to lack of VA space.
+ */
+#if defined(FOOTBRIDGE)
+/*
+ * The range 0xf1000000 - 0xfcffffff is available for kernel VM space
+ * Footbridge registers and I/O mappings occupy 0xfd000000 - 0xffffffff
+ */
+#define KERNEL_VM_SIZE         0x07000000
+#elif defined(SHARK)
+/*
+ * The range 0xf1000000 - 0xf6ffffff is available for kernel VM space
+ * OFW sites at 0xf7000000
+ */
+#define        KERNEL_VM_SIZE          0x04000000
+#else
+/*
+ * The range 0xf1000000 - 0xf3ffffff is available for kernel VM space
+ * Fixed mappings exist from 0xf4000000 - 0xffffffff
+ */
 #define        KERNEL_VM_SIZE          0x03000000
+#endif
 #define        PROCESS_PAGE_TBLS_BASE  PAGE_TABLE_SPACE_START
 
 /*



Home | Main Index | Thread Index | Old Index