Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/include We want pages modulo 16K not modulo...



details:   https://anonhg.NetBSD.org/src/rev/c4d2f44a575b
branches:  trunk
changeset: 525760:c4d2f44a575b
user:      eeh <eeh%NetBSD.org@localhost>
date:      Tue Apr 16 23:11:20 2002 +0000

description:
We want pages modulo 16K not modulo 32K.

diffstat:

 sys/arch/sparc64/include/pmap.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 7cd1f2d40631 -r c4d2f44a575b sys/arch/sparc64/include/pmap.h
--- a/sys/arch/sparc64/include/pmap.h   Tue Apr 16 23:09:37 2002 +0000
+++ b/sys/arch/sparc64/include/pmap.h   Tue Apr 16 23:11:20 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.h,v 1.21 2001/09/24 23:49:33 eeh Exp $    */
+/*     $NetBSD: pmap.h,v 1.22 2002/04/16 23:11:20 eeh Exp $    */
 
 /*-
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -166,7 +166,7 @@
 
 void pmap_bootstrap __P((u_long kernelstart, u_long kernelend, u_int numctx));
 /* make sure all page mappings are modulo 16K to prevent d$ aliasing */
-#define        PMAP_PREFER(pa, va)     (*(va)+=(((*(va))^(pa))&(1<<(PGSHIFT+1))))
+#define        PMAP_PREFER(pa, va)     (*(va)+=(((*(va))^(pa))&(1<<(PGSHIFT))))
 
 #define        PMAP_GROWKERNEL         /* turn on pmap_growkernel interface */
 



Home | Main Index | Thread Index | Old Index