Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/include/mpc6xx When not using the OLD pmap, ...



details:   https://anonhg.NetBSD.org/src/rev/1c4a5d268b7f
branches:  trunk
changeset: 533257:1c4a5d268b7f
user:      matt <matt%NetBSD.org@localhost>
date:      Wed Jun 26 01:16:22 2002 +0000

description:
When not using the OLD pmap, bump kernel KVA space to 512MB (OLD pmap stays
at 256MB).

diffstat:

 sys/arch/powerpc/include/mpc6xx/vmparam.h |  15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diffs (49 lines):

diff -r 4457c2a23fb3 -r 1c4a5d268b7f sys/arch/powerpc/include/mpc6xx/vmparam.h
--- a/sys/arch/powerpc/include/mpc6xx/vmparam.h Wed Jun 26 01:14:45 2002 +0000
+++ b/sys/arch/powerpc/include/mpc6xx/vmparam.h Wed Jun 26 01:16:22 2002 +0000
@@ -106,23 +106,32 @@
  */
 #if 0
 /*
- * Move the SR# to the top 4 bits to make the lower 19bits entirely random
+ * Move the SR# to the top 4 bits to make the lower 20 bits entirely random
  * so to give better PTE distribution.
  */
 #define        VSID_MAKE(sr, hash)     (((sr) << (ADDR_SR_SHFT-4))|((hash) & 0xfffff))
 #define        VSID_TO_SR(vsid)        (((vsid) >> (ADDR_SR_SHFT-4)) & 0xF)
 #define        VSID_TO_HASH(vsid)      ((vsid) & 0xfffff)
+#define        VSID_SR_INCREMENT       0x00100000
 #else
 #define        VSID_MAKE(sr, hash)     ((sr) | (((hash) & 0xfffff) << 4))
 #define        VSID_TO_SR(vsid)        ((vsid) & 0xF)
 #define        VSID_TO_HASH(vsid)      (((vsid) >> 4) & 0xfffff)
+#define        VSID_SR_INCREMENT       0x00000001
 #endif
 
 /*
  * Fixed segments
  */
+#ifdef OLDPMAP
 #define        USER_SR                 13
 #define        KERNEL_SR               14
+#else
+#define        USER_SR                 12
+#define        KERNEL_SR               13
+#define        KERNEL2_SR              14
+#define        KERNEL2_SEGMENT         VSID_MAKE(KERNEL2_SR, KERNEL_VSIDBITS)
+#endif
 #define        KERNEL_VSIDBITS         0xfffff
 #define        KERNEL_SEGMENT          VSID_MAKE(KERNEL_SR, KERNEL_VSIDBITS)
 #define        EMPTY_SEGMENT           VSID_MAKE(0, KERNEL_VSIDBITS)
@@ -144,7 +153,11 @@
 #define        VM_MAXUSER_ADDRESS      ((vaddr_t) 0x7ffff000)
 #define        VM_MAX_ADDRESS          VM_MAXUSER_ADDRESS
 #define        VM_MIN_KERNEL_ADDRESS   ((vaddr_t) (KERNEL_SR << ADDR_SR_SHFT))
+#ifndef OLDPMAP
+#define        VM_MAX_KERNEL_ADDRESS   (VM_MIN_KERNEL_ADDRESS + 2*SEGMENT_LENGTH)
+#else
 #define        VM_MAX_KERNEL_ADDRESS   (VM_MIN_KERNEL_ADDRESS + SEGMENT_LENGTH)
+#endif
 
 #ifndef VM_PHYSSEG_MAX
 #define        VM_PHYSSEG_MAX          16



Home | Main Index | Thread Index | Old Index