Update of /cvsroot/linux-vax/kernel-2.4/arch/i386/mm
In directory sc8-pr-cvs1:/tmp/cvs-serv7538/arch/i386/mm
Modified Files:
init.c
Log Message:
DA: sync with Marcelo 2.4.17
Index: init.c
===================================================================
RCS file: /cvsroot/linux-vax/kernel-2.4/arch/i386/mm/init.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- init.c 10 Apr 2002 14:23:22 -0000 1.2
+++ init.c 10 Jun 2003 01:13:14 -0000 1.3
@@ -25,6 +25,7 @@
#include <linux/highmem.h>
#include <linux/pagemap.h>
#include <linux/bootmem.h>
+#include <linux/slab.h>
#include <asm/processor.h>
#include <asm/system.h>
@@ -596,3 +597,17 @@
val->mem_unit = PAGE_SIZE;
return;
}
+
+#if defined(CONFIG_X86_PAE)
+struct kmem_cache_s *pae_pgd_cachep;
+void __init pgtable_cache_init(void)
+{
+ /*
+ * PAE pgds must be 16-byte aligned:
+ */
+ pae_pgd_cachep = kmem_cache_create("pae_pgd", 32, 0,
+ SLAB_HWCACHE_ALIGN | SLAB_MUST_HWCACHE_ALIGN, NULL, NULL);
+ if (!pae_pgd_cachep)
+ panic("init_pae(): Cannot alloc pae_pgd SLAB cache");
+}
+#endif /* CONFIG_X86_PAE */
|