diff -Nru linux-old/include/asm-i386/pgalloc.h linux-new/include/asm-i386/pgalloc.h
--- linux-old/include/asm-i386/pgalloc.h	2002-10-23 20:58:31.000000000 -0400
+++ linux-new/include/asm-i386/pgalloc.h	2002-10-23 22:05:25.000000000 -0400
@@ -150,8 +150,13 @@
 }
 
 #define pte_free(pte)		pte_free_fast(pte)
+#ifdef CONFIG_X86_PAE
+#define pgd_alloc(mm)		get_pgd_slow()
 #define pgd_free(pgd)		free_pgd_slow(pgd)
+#else
 #define pgd_alloc(mm)		get_pgd_fast()
+#define pgd_free(pgd)		free_pgd_fast(pgd)
+#endif
 
 /*
  * allocating and freeing a pmd is trivial: the 1-entry pmd is
