diff options
author | David Daney <ddaney@caviumnetworks.com> | 2009-05-27 20:47:43 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2009-06-17 06:06:30 -0400 |
commit | dd7943920b492d9d8a79080fe05e25ecd7e10bc3 (patch) | |
tree | 51c5dd2079819186009e5703c936ddeb3cd845e2 /arch/mips/include/asm/pgtable.h | |
parent | 50a41ff292fafe1e937102be23464b54fed8b78c (diff) |
MIPS: Add hugetlbfs page defines.
Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/pgtable.h')
-rw-r--r-- | arch/mips/include/asm/pgtable.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/mips/include/asm/pgtable.h b/arch/mips/include/asm/pgtable.h index 6a0edf72ffbc..1a9f9b257551 100644 --- a/arch/mips/include/asm/pgtable.h +++ b/arch/mips/include/asm/pgtable.h | |||
@@ -292,6 +292,16 @@ static inline pte_t pte_mkyoung(pte_t pte) | |||
292 | pte_val(pte) |= _PAGE_SILENT_READ; | 292 | pte_val(pte) |= _PAGE_SILENT_READ; |
293 | return pte; | 293 | return pte; |
294 | } | 294 | } |
295 | |||
296 | #ifdef _PAGE_HUGE | ||
297 | static inline int pte_huge(pte_t pte) { return pte_val(pte) & _PAGE_HUGE; } | ||
298 | |||
299 | static inline pte_t pte_mkhuge(pte_t pte) | ||
300 | { | ||
301 | pte_val(pte) |= _PAGE_HUGE; | ||
302 | return pte; | ||
303 | } | ||
304 | #endif /* _PAGE_HUGE */ | ||
295 | #endif | 305 | #endif |
296 | static inline int pte_special(pte_t pte) { return 0; } | 306 | static inline int pte_special(pte_t pte) { return 0; } |
297 | static inline pte_t pte_mkspecial(pte_t pte) { return pte; } | 307 | static inline pte_t pte_mkspecial(pte_t pte) { return pte; } |