patch-2.4.25 linux-2.4.25/include/asm-ia64/pgtable.h
Next file: linux-2.4.25/include/asm-ia64/processor.h
Previous file: linux-2.4.25/include/asm-ia64/param.h
Back to the patch index
Back to the overall index
-  Lines: 13
-  Date:
2004-02-18 05:36:32.000000000 -0800
-  Orig file: 
linux-2.4.24/include/asm-ia64/pgtable.h
-  Orig date: 
2003-11-28 10:26:21.000000000 -0800
diff -urN linux-2.4.24/include/asm-ia64/pgtable.h linux-2.4.25/include/asm-ia64/pgtable.h
@@ -431,6 +431,12 @@
 /* We provide our own get_unmapped_area to cope with VA holes for userland */
 #define HAVE_ARCH_UNMAPPED_AREA
 
+#ifdef CONFIG_HUGETLB_PAGE
+#define HUGETLB_PGDIR_SHIFT	(HPAGE_SHIFT + 2*(PAGE_SHIFT-3))
+#define HUGETLB_PGDIR_SIZE	(__IA64_UL(1) << HUGETLB_PGDIR_SHIFT)
+#define HUGETLB_PGDIR_MASK	(~(HUGETLB_PGDIR_SIZE-1))
+#endif
+
 /*
  * No page table caches to initialise
  */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)