X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fasm-frv%2Fpgtable.h;h=7af7485e889eeb488960ae78d51627f2cd7d3c98;hb=47b9c3b1e6afa3c40e3ac1822cd13946567b5955;hp=844666377dcbfc45db86c4b33d5c9ec431fb4907;hpb=2f67bdb23d74a6c6fd4f98f64239c5c34d1833cc;p=linux-2.6 diff --git a/include/asm-frv/pgtable.h b/include/asm-frv/pgtable.h index 844666377d..7af7485e88 100644 --- a/include/asm-frv/pgtable.h +++ b/include/asm-frv/pgtable.h @@ -16,7 +16,6 @@ #ifndef _ASM_PGTABLE_H #define _ASM_PGTABLE_H -#include #include #include #include @@ -420,6 +419,11 @@ static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long addr, asm volatile("dcf %M0" :: "U"(*ptep)); } +/* + * Macro to mark a page protection value as "uncacheable" + */ +#define pgprot_noncached(prot) (__pgprot(pgprot_val(prot) | _PAGE_NOCACHE)) + /* * Conversion functions: convert a page and protection to a page entry, * and a page entry and page directory to the page they refer to.