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 the cached/not cached stuff doesn't build...
details: https://anonhg.NetBSD.org/src/rev/913e6047e3ab
branches: trunk
changeset: 769802:913e6047e3ab
user: macallan <macallan%NetBSD.org@localhost>
date: Fri Sep 23 23:02:23 2011 +0000
description:
the cached/not cached stuff doesn't build when both MIPS1 and MIPS3 are
defined so put it back to #if defined(_MIPS_PADDR_T_64BIT) || defined(_LP64)
there is no good reason why it can't work on MIPS1 though.
diffstat:
sys/arch/mips/mips/pmap.c | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diffs (60 lines):
diff -r 04632902c708 -r 913e6047e3ab sys/arch/mips/mips/pmap.c
--- a/sys/arch/mips/mips/pmap.c Fri Sep 23 21:13:14 2011 +0000
+++ b/sys/arch/mips/mips/pmap.c Fri Sep 23 23:02:23 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.204 2011/09/22 05:08:52 macallan Exp $ */
+/* $NetBSD: pmap.c,v 1.205 2011/09/23 23:02:23 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.204 2011/09/22 05:08:52 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.205 2011/09/23 23:02:23 macallan Exp $");
/*
* Manages physical address maps.
@@ -1372,9 +1372,9 @@
pt_entry_t *pte;
u_int npte;
struct vm_page *pg;
- bool cached = true;
bool wired = (flags & PMAP_WIRED) != 0;
#if defined(_MIPS_PADDR_T_64BIT) || defined(_LP64)
+ bool cached = true;
bool prefetch = false;
#endif
@@ -1411,10 +1411,10 @@
panic("pmap_enter: prot");
#endif
+#if defined(_MIPS_PADDR_T_64BIT) || defined(_LP64)
if (flags & PMAP_NOCACHE)
cached = 0;
-#if defined(_MIPS_PADDR_T_64BIT) || defined(_LP64)
if (pa & PGC_NOCACHE) {
cached = false;
pa &= ~PGC_NOCACHE;
@@ -1444,6 +1444,7 @@
*/
npte = mips_pg_ropage_bit();
else {
+#if defined(_MIPS_PADDR_T_64BIT) || defined(_LP64)
if (cached == false) {
if (PG_MD_MODIFIED_P(md)) {
npte = mips_pg_rwncpage_bit();
@@ -1451,7 +1452,9 @@
npte = mips_pg_cwncpage_bit();
}
PMAP_COUNT(uncached_mappings);
- } else {
+ } else
+#endif
+ {
if (PG_MD_MODIFIED_P(md)) {
npte = mips_pg_rwpage_bit();
} else {
Home |
Main Index |
Thread Index |
Old Index