]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/mips/mm/init.c
MIPS: Implement Read Inhibit/eXecute Inhibit
[net-next-2.6.git] / arch / mips / mm / init.c
index 3c5b7de10af50bb276886062e2e848ae8255feb1..f34c26439a32057e21139635aee58b11691de46f 100644 (file)
@@ -143,7 +143,7 @@ void *kmap_coherent(struct page *page, unsigned long addr)
 #if defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_CPU_MIPS32)
        entrylo = pte.pte_high;
 #else
-       entrylo = pte_val(pte) >> 6;
+       entrylo = pte_to_entrylo(pte_val(pte));
 #endif
 
        ENTER_CRITICAL(flags);