summaryrefslogtreecommitdiffstats
path: root/include/asm-mips
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-11-18 13:28:13 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-11-18 13:28:13 +0000
commitd523832cf12007b3242e50bb77d0c9e63e0b6518 (patch)
tree98f631b4b85767378d1d7f61bf157f43b3f21075 /include/asm-mips
parent32cc38229ac7538f2346918a09e75413e8861f87 (diff)
Missing from last commit.
Diffstat (limited to 'include/asm-mips')
-rw-r--r--include/asm-mips/pgtable.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/include/asm-mips/pgtable.h b/include/asm-mips/pgtable.h
index c6d2a2e31..5556de9d9 100644
--- a/include/asm-mips/pgtable.h
+++ b/include/asm-mips/pgtable.h
@@ -152,17 +152,23 @@ extern void add_wired_entry(unsigned long entrylo0, unsigned long entrylo1,
#define _PAGE_CHG_MASK (PAGE_MASK | _PAGE_ACCESSED | _PAGE_MODIFIED | _CACHE_MASK)
+#ifdef CONFIG_MIPS_UNCACHED
+#define PAGE_CACHABLE_DEFAULT _CACHE_UNCACHED
+#else
+#define PAGE_CACHABLE_DEFAULT _CACHE_CACHABLE_NONCOHERENT
+#endif
+
#define PAGE_NONE __pgprot(_PAGE_PRESENT | _CACHE_CACHABLE_NONCOHERENT)
#define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \
- _CACHE_CACHABLE_NONCOHERENT)
+ PAGE_CACHABLE_DEFAULT)
#define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_READ | \
- _CACHE_CACHABLE_NONCOHERENT)
+ PAGE_CACHABLE_DEFAULT)
#define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_READ | \
- _CACHE_CACHABLE_NONCOHERENT)
+ PAGE_CACHABLE_DEFAULT)
#define PAGE_KERNEL __pgprot(_PAGE_PRESENT | __READABLE | __WRITEABLE | \
- _CACHE_CACHABLE_NONCOHERENT)
+ PAGE_CACHABLE_DEFAULT)
#define PAGE_USERIO __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \
- _CACHE_UNCACHED)
+ PAGE_CACHABLE_DEFAULT)
#define PAGE_KERNEL_UNCACHED __pgprot(_PAGE_PRESENT | __READABLE | __WRITEABLE | \
_CACHE_UNCACHED)