aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/pgtable.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/include/asm/pgtable.h')
-rw-r--r--arch/x86/include/asm/pgtable.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h
index 7dcd94c29044..6968d4f6be3e 100644
--- a/arch/x86/include/asm/pgtable.h
+++ b/arch/x86/include/asm/pgtable.h
@@ -158,6 +158,14 @@
158#define PGD_IDENT_ATTR 0x001 /* PRESENT (no other attributes) */ 158#define PGD_IDENT_ATTR 0x001 /* PRESENT (no other attributes) */
159#endif 159#endif
160 160
161/*
162 * Macro to mark a page protection value as UC-
163 */
164#define pgprot_noncached(prot) \
165 ((boot_cpu_data.x86 > 3) \
166 ? (__pgprot(pgprot_val(prot) | _PAGE_CACHE_UC_MINUS)) \
167 : (prot))
168
161#ifndef __ASSEMBLY__ 169#ifndef __ASSEMBLY__
162 170
163/* 171/*