aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-parisc
diff options
context:
space:
mode:
authorHelge Deller <deller@parisc-linux.org>2006-01-10 20:47:55 -0500
committerKyle McMartin <kyle@duet.int.mcmartin.ca>2006-01-10 21:51:51 -0500
commite8b736c860dd93ba26b391abc91891e03ca99858 (patch)
tree31836892f93fca17999f2d808f16651b1f769e5e /include/asm-parisc
parent4d64c9f58e618b1bdbc91cb071e6c8d90f43d620 (diff)
downloadkernel_samsung_smdk4412-e8b736c860dd93ba26b391abc91891e03ca99858.zip
kernel_samsung_smdk4412-e8b736c860dd93ba26b391abc91891e03ca99858.tar.gz
kernel_samsung_smdk4412-e8b736c860dd93ba26b391abc91891e03ca99858.tar.bz2
[PARISC] Add some defines for HugeTLB pages
Define some constants for HugeTLB pages, not that parisc-linux supports it yet. Signed-off-by: Helge Deller <deller@parisc-linux.org> Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
Diffstat (limited to 'include/asm-parisc')
-rw-r--r--include/asm-parisc/page.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-parisc/page.h b/include/asm-parisc/page.h
index 44eae9f..4a6752b 100644
--- a/include/asm-parisc/page.h
+++ b/include/asm-parisc/page.h
@@ -135,6 +135,13 @@ extern int npmem_ranges;
#define pfn_valid(pfn) ((pfn) < max_mapnr)
#endif /* CONFIG_DISCONTIGMEM */
+#ifdef CONFIG_HUGETLB_PAGE
+#define HPAGE_SHIFT 22 /* 4MB (is this fixed?) */
+#define HPAGE_SIZE ((1UL) << HPAGE_SHIFT)
+#define HPAGE_MASK (~(HPAGE_SIZE - 1))
+#define HUGETLB_PAGE_ORDER (HPAGE_SHIFT - PAGE_SHIFT)
+#endif
+
#define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
#define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT)