diff options
Diffstat (limited to 'include/asm-powerpc/pgtable-ppc64.h')
-rw-r--r-- | include/asm-powerpc/pgtable-ppc64.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/asm-powerpc/pgtable-ppc64.h b/include/asm-powerpc/pgtable-ppc64.h index 4ea99922a75c..7ca8b5c10019 100644 --- a/include/asm-powerpc/pgtable-ppc64.h +++ b/include/asm-powerpc/pgtable-ppc64.h | |||
@@ -227,9 +227,7 @@ static inline pte_t pfn_pte(unsigned long pfn, pgprot_t pgprot) | |||
227 | * The following only work if pte_present() is true. | 227 | * The following only work if pte_present() is true. |
228 | * Undefined behaviour if not.. | 228 | * Undefined behaviour if not.. |
229 | */ | 229 | */ |
230 | static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_USER;} | ||
231 | static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_RW;} | 230 | static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_RW;} |
232 | static inline int pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC;} | ||
233 | static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY;} | 231 | static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY;} |
234 | static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED;} | 232 | static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED;} |
235 | static inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE;} | 233 | static inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE;} |
@@ -237,20 +235,12 @@ static inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE;} | |||
237 | static inline void pte_uncache(pte_t pte) { pte_val(pte) |= _PAGE_NO_CACHE; } | 235 | static inline void pte_uncache(pte_t pte) { pte_val(pte) |= _PAGE_NO_CACHE; } |
238 | static inline void pte_cache(pte_t pte) { pte_val(pte) &= ~_PAGE_NO_CACHE; } | 236 | static inline void pte_cache(pte_t pte) { pte_val(pte) &= ~_PAGE_NO_CACHE; } |
239 | 237 | ||
240 | static inline pte_t pte_rdprotect(pte_t pte) { | ||
241 | pte_val(pte) &= ~_PAGE_USER; return pte; } | ||
242 | static inline pte_t pte_exprotect(pte_t pte) { | ||
243 | pte_val(pte) &= ~_PAGE_EXEC; return pte; } | ||
244 | static inline pte_t pte_wrprotect(pte_t pte) { | 238 | static inline pte_t pte_wrprotect(pte_t pte) { |
245 | pte_val(pte) &= ~(_PAGE_RW); return pte; } | 239 | pte_val(pte) &= ~(_PAGE_RW); return pte; } |
246 | static inline pte_t pte_mkclean(pte_t pte) { | 240 | static inline pte_t pte_mkclean(pte_t pte) { |
247 | pte_val(pte) &= ~(_PAGE_DIRTY); return pte; } | 241 | pte_val(pte) &= ~(_PAGE_DIRTY); return pte; } |
248 | static inline pte_t pte_mkold(pte_t pte) { | 242 | static inline pte_t pte_mkold(pte_t pte) { |
249 | pte_val(pte) &= ~_PAGE_ACCESSED; return pte; } | 243 | pte_val(pte) &= ~_PAGE_ACCESSED; return pte; } |
250 | static inline pte_t pte_mkread(pte_t pte) { | ||
251 | pte_val(pte) |= _PAGE_USER; return pte; } | ||
252 | static inline pte_t pte_mkexec(pte_t pte) { | ||
253 | pte_val(pte) |= _PAGE_USER | _PAGE_EXEC; return pte; } | ||
254 | static inline pte_t pte_mkwrite(pte_t pte) { | 244 | static inline pte_t pte_mkwrite(pte_t pte) { |
255 | pte_val(pte) |= _PAGE_RW; return pte; } | 245 | pte_val(pte) |= _PAGE_RW; return pte; } |
256 | static inline pte_t pte_mkdirty(pte_t pte) { | 246 | static inline pte_t pte_mkdirty(pte_t pte) { |