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 Implement PMAP_PREFER().



details:   https://anonhg.NetBSD.org/src/rev/7ba60023c968
branches:  trunk
changeset: 480024:7ba60023c968
user:      eeh <eeh%NetBSD.org@localhost>
date:      Thu Dec 30 16:21:25 1999 +0000

description:
Implement PMAP_PREFER().

diffstat:

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

diffs (18 lines):

diff -r e473ea940fc8 -r 7ba60023c968 sys/arch/sparc64/include/pmap.h
--- a/sys/arch/sparc64/include/pmap.h   Thu Dec 30 16:20:43 1999 +0000
+++ b/sys/arch/sparc64/include/pmap.h   Thu Dec 30 16:21:25 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.h,v 1.10 1999/06/07 05:28:04 eeh Exp $    */
+/*     $NetBSD: pmap.h,v 1.11 1999/12/30 16:21:25 eeh Exp $    */
 
 /*-
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -162,6 +162,8 @@
 #define        pmap_phys_address(x)            ((((paddr_t)(x))<<PGSHIFT)|PMAP_NC)
 
 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))))
 
 /* SPARC specific? */
 void           pmap_redzone __P((void));



Home | Main Index | Thread Index | Old Index