# HG changeset patch # User yamahata@xxxxxxxxxxxxx # Node ID 83b6c79544891bb370bf23f05e75a5f6c5bb43e7 # Parent 05dade608696b61d624bea82c20364dfdc6d6174 fix paginig_init() to initialize mpt_table properly. PATCHNAME: fix_paginig_init_to_init_mpt_table Signed-off-by: Isaku Yamahata diff -r 05dade608696 -r 83b6c7954489 xen/arch/ia64/xen/xenmem.c --- a/xen/arch/ia64/xen/xenmem.c Tue Apr 4 19:16:21 2006 +0900 +++ b/xen/arch/ia64/xen/xenmem.c Tue Apr 4 19:16:22 2006 +0900 @@ -47,8 +47,12 @@ paging_init (void) if ((mpt_table = alloc_xenheap_pages(mpt_order)) == NULL) panic("Not enough memory to bootstrap Xen.\n"); - printk("machine to physical table: 0x%lx\n", (u64)mpt_table); - for (i = 0; i < (1UL << mpt_order); i++) { + printk("machine to physical table: 0x%lx mpt_table_size 0x%lx\n" + "mpt_order %u max_page 0x%lx\n", + (u64)mpt_table, mpt_table_size, mpt_order, max_page); + for (i = 0; + i < ((1UL << mpt_order) << PAGE_SHIFT) / sizeof(mpt_table[0]); + i++) { mpt_table[i] = INVALID_M2P_ENTRY; } }