Update of /cvsroot/linux-mips/linux/include/asm-mips
In directory usw-pr-cvs1:/tmp/cvs-serv30998
Modified Files:
pgtable.h
Log Message:
Move MIPS pgprot_noncached() to <asm/pgtable.h>.
Index: pgtable.h
===================================================================
RCS file: /cvsroot/linux-mips/linux/include/asm-mips/pgtable.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** pgtable.h 2001/07/20 17:47:05 1.3
--- pgtable.h 2001/09/06 16:52:13 1.4
***************
*** 398,401 ****
--- 398,418 ----
}
+ /*
+ * Macro to make mark a page protection value as "uncacheable". Note
+ * that "protection" is really a misnomer here as the protection value
+ * contains the memory attribute bits, dirty bits, and various other
+ * bits as well.
+ */
+ #define pgprot_noncached pgprot_noncached
+
+ static inline pgprot_t pgprot_noncached(pgprot_t _prot)
+ {
+ unsigned long prot = pgprot_val(_prot);
+
+ prot = (prot & ~_CACHE_MASK) | _CACHE_UNCACHED;
+
+ return __pgprot(prot);
+ }
+
extern inline pte_t pte_mkyoung(pte_t pte)
{
|