diff options
Diffstat (limited to 'include/asm-x86/pgtable.h')
-rw-r--r-- | include/asm-x86/pgtable.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-x86/pgtable.h b/include/asm-x86/pgtable.h index 75a656e6b3f8..2f3d90807efb 100644 --- a/include/asm-x86/pgtable.h +++ b/include/asm-x86/pgtable.h | |||
@@ -139,6 +139,7 @@ static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; | |||
139 | static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_RW; } | 139 | static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_RW; } |
140 | static inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE; } | 140 | static inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE; } |
141 | static inline int pte_huge(pte_t pte) { return pte_val(pte) & _PAGE_PSE; } | 141 | static inline int pte_huge(pte_t pte) { return pte_val(pte) & _PAGE_PSE; } |
142 | static inline int pte_exec(pte_t pte) { return !(pte_val(pte) & _PAGE_NX); } | ||
142 | 143 | ||
143 | static inline int pmd_large(pmd_t pte) { | 144 | static inline int pmd_large(pmd_t pte) { |
144 | return (pmd_val(pte) & (_PAGE_PSE|_PAGE_PRESENT)) == | 145 | return (pmd_val(pte) & (_PAGE_PSE|_PAGE_PRESENT)) == |