Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/mips unbork PMAP_NOCACHE vs. PGC_NOCACHE



details:   https://anonhg.NetBSD.org/src/rev/63428a880ef8
branches:  trunk
changeset: 761879:63428a880ef8
user:      macallan <macallan%NetBSD.org@localhost>
date:      Thu Feb 10 06:42:17 2011 +0000

description:
unbork PMAP_NOCACHE vs. PGC_NOCACHE

diffstat:

 sys/arch/mips/mips/pmap.c |  11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (36 lines):

diff -r 03c202d0ef3f -r 63428a880ef8 sys/arch/mips/mips/pmap.c
--- a/sys/arch/mips/mips/pmap.c Thu Feb 10 06:04:54 2011 +0000
+++ b/sys/arch/mips/mips/pmap.c Thu Feb 10 06:42:17 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.193 2011/01/26 01:18:54 pooka Exp $ */
+/*     $NetBSD: pmap.c,v 1.194 2011/02/10 06:42:17 macallan Exp $      */
 
 /*-
  * Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.193 2011/01/26 01:18:54 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.194 2011/02/10 06:42:17 macallan Exp $");
 
 /*
  *     Manages physical address maps.
@@ -1192,14 +1192,13 @@
        if (pa & 0x80000000)    /* this is not error in general. */
                panic("pmap_enter: pa");
 #endif
+       if (flags & PMAP_NOCACHE)
+               cached = 0;
 
 #if defined(_MIPS_PADDR_T_64BIT) || defined(_LP64)
-       if (flags & PMAP_NOCACHE) {
+       if (pa & PGC_NOCACHE) {
                cached = 0;
                pa &= ~PGC_NOCACHE;
-       } else {
-               cached = 1;
-               pa |= PGC_NOCACHE;
        }
 #endif
 



Home | Main Index | Thread Index | Old Index