tree 4c664d8a15dc9dc935cc6e181e727cfdc5d60302 parent 1cff94c6fecdc54d6f022ae5a22888f8272804a1 author David S. Miller <[EMAIL PROTECTED]> Fri, 22 Apr 2005 11:41:33 -0700 committer David S. Miller <[EMAIL PROTECTED]> Fri, 22 Apr 2005 11:41:33 -0700
[SPARC64]: Provide a pgprot_noncached() implementation. Signed-off-by: David S. Miller <[EMAIL PROTECTED]> asm-sparc64/pgtable.h | 5 +++++ 1 files changed, 5 insertions(+) Index: include/asm-sparc64/pgtable.h =================================================================== --- 42fbf4cd2a674d83e2363bab0729ca13b0aeae0a/include/asm-sparc64/pgtable.h (mode:100644 sha1:af9bf175a223cf44310293287d50302e0fd3f9e9) +++ 4c664d8a15dc9dc935cc6e181e727cfdc5d60302/include/asm-sparc64/pgtable.h (mode:100644 sha1:ae2cd5b09a7cc523e96640d805eb97e299da8907) @@ -416,6 +416,11 @@ extern int io_remap_pfn_range(struct vm_ unsigned long pfn, unsigned long size, pgprot_t prot); +/* Clear virtual and physical cachability, set side-effect bit. */ +#define pgprot_noncached(prot) \ + (__pgprot((pgprot_val(prot) & ~(_PAGE_CP | _PAGE_CV)) | \ + _PAGE_E)) + /* * For sparc32&64, the pfn in io_remap_pfn_range() carries <iospace> in * its high 4 bits. These macros/functions put it there or get it from there. - To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html