Update of /cvsroot/linux-mips/linux/include/asm-mips64
In directory usw-pr-cvs1:/tmp/cvs-serv31625
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-mips64/pgtable.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** pgtable.h 2001/09/04 16:16:34 1.3
--- pgtable.h 2001/09/06 16:54:14 1.4
***************
*** 462,465 ****
--- 462,482 ----
/*
+ * 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);
+ }
+
+ /*
* Conversion functions: convert a page and protection to a page entry,
* and a page entry and page directory to the page they refer to.
|