diff options
Diffstat (limited to 'include/asm-parisc/page.h')
-rw-r--r-- | include/asm-parisc/page.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-parisc/page.h b/include/asm-parisc/page.h index 44eae9f8274d..4a6752b0afed 100644 --- a/include/asm-parisc/page.h +++ b/include/asm-parisc/page.h | |||
@@ -135,6 +135,13 @@ extern int npmem_ranges; | |||
135 | #define pfn_valid(pfn) ((pfn) < max_mapnr) | 135 | #define pfn_valid(pfn) ((pfn) < max_mapnr) |
136 | #endif /* CONFIG_DISCONTIGMEM */ | 136 | #endif /* CONFIG_DISCONTIGMEM */ |
137 | 137 | ||
138 | #ifdef CONFIG_HUGETLB_PAGE | ||
139 | #define HPAGE_SHIFT 22 /* 4MB (is this fixed?) */ | ||
140 | #define HPAGE_SIZE ((1UL) << HPAGE_SHIFT) | ||
141 | #define HPAGE_MASK (~(HPAGE_SIZE - 1)) | ||
142 | #define HUGETLB_PAGE_ORDER (HPAGE_SHIFT - PAGE_SHIFT) | ||
143 | #endif | ||
144 | |||
138 | #define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT) | 145 | #define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT) |
139 | 146 | ||
140 | #define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT) | 147 | #define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT) |