diff options
Diffstat (limited to 'include/asm-x86/pgtable.h')
-rw-r--r-- | include/asm-x86/pgtable.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asm-x86/pgtable.h b/include/asm-x86/pgtable.h index a496d6335d3b..801b31f71452 100644 --- a/include/asm-x86/pgtable.h +++ b/include/asm-x86/pgtable.h | |||
@@ -195,6 +195,11 @@ static inline int pte_exec(pte_t pte) | |||
195 | return !(pte_val(pte) & _PAGE_NX); | 195 | return !(pte_val(pte) & _PAGE_NX); |
196 | } | 196 | } |
197 | 197 | ||
198 | static inline int pte_special(pte_t pte) | ||
199 | { | ||
200 | return 0; | ||
201 | } | ||
202 | |||
198 | static inline int pmd_large(pmd_t pte) | 203 | static inline int pmd_large(pmd_t pte) |
199 | { | 204 | { |
200 | return (pmd_val(pte) & (_PAGE_PSE | _PAGE_PRESENT)) == | 205 | return (pmd_val(pte) & (_PAGE_PSE | _PAGE_PRESENT)) == |
@@ -256,6 +261,11 @@ static inline pte_t pte_clrglobal(pte_t pte) | |||
256 | return __pte(pte_val(pte) & ~(pteval_t)_PAGE_GLOBAL); | 261 | return __pte(pte_val(pte) & ~(pteval_t)_PAGE_GLOBAL); |
257 | } | 262 | } |
258 | 263 | ||
264 | static inline pte_t pte_mkspecial(pte_t pte) | ||
265 | { | ||
266 | return pte; | ||
267 | } | ||
268 | |||
259 | extern pteval_t __supported_pte_mask; | 269 | extern pteval_t __supported_pte_mask; |
260 | 270 | ||
261 | static inline pte_t pfn_pte(unsigned long page_nr, pgprot_t pgprot) | 271 | static inline pte_t pfn_pte(unsigned long page_nr, pgprot_t pgprot) |