diff options
Diffstat (limited to 'include/asm-xtensa/pgtable.h')
| -rw-r--r-- | include/asm-xtensa/pgtable.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-xtensa/pgtable.h b/include/asm-xtensa/pgtable.h index c8b024a48b4d..8014d96b21f1 100644 --- a/include/asm-xtensa/pgtable.h +++ b/include/asm-xtensa/pgtable.h | |||
| @@ -210,6 +210,8 @@ static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITABLE; } | |||
| 210 | static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } | 210 | static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } |
| 211 | static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } | 211 | static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } |
| 212 | static inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE; } | 212 | static inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE; } |
| 213 | static inline int pte_special(pte_t pte) { return 0; } | ||
| 214 | |||
| 213 | static inline pte_t pte_wrprotect(pte_t pte) | 215 | static inline pte_t pte_wrprotect(pte_t pte) |
| 214 | { pte_val(pte) &= ~(_PAGE_WRITABLE | _PAGE_HW_WRITE); return pte; } | 216 | { pte_val(pte) &= ~(_PAGE_WRITABLE | _PAGE_HW_WRITE); return pte; } |
| 215 | static inline pte_t pte_mkclean(pte_t pte) | 217 | static inline pte_t pte_mkclean(pte_t pte) |
| @@ -222,6 +224,8 @@ static inline pte_t pte_mkyoung(pte_t pte) | |||
| 222 | { pte_val(pte) |= _PAGE_ACCESSED; return pte; } | 224 | { pte_val(pte) |= _PAGE_ACCESSED; return pte; } |
| 223 | static inline pte_t pte_mkwrite(pte_t pte) | 225 | static inline pte_t pte_mkwrite(pte_t pte) |
| 224 | { pte_val(pte) |= _PAGE_WRITABLE; return pte; } | 226 | { pte_val(pte) |= _PAGE_WRITABLE; return pte; } |
| 227 | static inline pte_t pte_mkspecial(pte_t pte) | ||
| 228 | { return pte; } | ||
| 225 | 229 | ||
| 226 | /* | 230 | /* |
| 227 | * Conversion functions: convert a page and protection to a page entry, | 231 | * Conversion functions: convert a page and protection to a page entry, |
