diff options
Diffstat (limited to 'include/asm-ppc')
-rw-r--r-- | include/asm-ppc/pgtable.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-ppc/pgtable.h b/include/asm-ppc/pgtable.h index 70435d32129a..55f9d38e3bf8 100644 --- a/include/asm-ppc/pgtable.h +++ b/include/asm-ppc/pgtable.h | |||
@@ -483,6 +483,7 @@ static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_RW; } | |||
483 | static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } | 483 | static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } |
484 | static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } | 484 | static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } |
485 | static inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE; } | 485 | static inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE; } |
486 | static inline int pte_special(pte_t pte) { return 0; } | ||
486 | 487 | ||
487 | static inline void pte_uncache(pte_t pte) { pte_val(pte) |= _PAGE_NO_CACHE; } | 488 | static inline void pte_uncache(pte_t pte) { pte_val(pte) |= _PAGE_NO_CACHE; } |
488 | static inline void pte_cache(pte_t pte) { pte_val(pte) &= ~_PAGE_NO_CACHE; } | 489 | static inline void pte_cache(pte_t pte) { pte_val(pte) &= ~_PAGE_NO_CACHE; } |
@@ -500,6 +501,8 @@ static inline pte_t pte_mkdirty(pte_t pte) { | |||
500 | pte_val(pte) |= _PAGE_DIRTY; return pte; } | 501 | pte_val(pte) |= _PAGE_DIRTY; return pte; } |
501 | static inline pte_t pte_mkyoung(pte_t pte) { | 502 | static inline pte_t pte_mkyoung(pte_t pte) { |
502 | pte_val(pte) |= _PAGE_ACCESSED; return pte; } | 503 | pte_val(pte) |= _PAGE_ACCESSED; return pte; } |
504 | static inline pte_t pte_mkspecial(pte_t pte) { | ||
505 | return pte; } | ||
503 | 506 | ||
504 | static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) | 507 | static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) |
505 | { | 508 | { |