summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2019-11-10 12:57:03 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2019-11-10 12:57:03 +0100
commit5a5ab8ff921d7e9e45e37a5ef8058d8dff1e76f2 (patch)
tree3531fb6864a91abc2bf335192945756304a27972
parentc69f7f3b5cdc6cf9367507478578dc5c875c2b74 (diff)
Xen: fix boot
Xen seems to want a whole page for the PAE pdp. * i386/intel/pmap.c (pmap_init): Make pdpt cache use page-size allocation.
-rw-r--r--i386/intel/pmap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/i386/intel/pmap.c b/i386/intel/pmap.c
index 63a061e5..2a1d79a5 100644
--- a/i386/intel/pmap.c
+++ b/i386/intel/pmap.c
@@ -1006,8 +1006,7 @@ void pmap_init(void)
KMEM_CACHE_PHYSMEM);
#if PAE
kmem_cache_init(&pdpt_cache, "pdpt",
- PDPNUM * sizeof(pt_entry_t),
- PDPNUM * sizeof(pt_entry_t), NULL,
+ INTEL_PGBYTES, INTEL_PGBYTES, NULL,
KMEM_CACHE_PHYSMEM);
#endif
s = (vm_size_t) sizeof(struct pv_entry);