X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=include%2Fasm-frv%2Fpgtable.h;h=7af7485e889eeb488960ae78d51627f2cd7d3c98;hb=877ce7c1b3afd69a9b1caeb1b9964c992641f52a;hp=844666377dcbfc45db86c4b33d5c9ec431fb4907;hpb=78b9c0f91cf908616b8f9f356e1d1220e727ea88;p=powerpc.git 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.