WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [IA64] fix paging_init()

# HG changeset patch
# User awilliam@xxxxxxxxxxx
# Node ID 2d28f31aae8bbad257f30adeae3a7313792aeb74
# Parent  55e8f512fed5bef36d1acb32d1f280154bf116b0
[IA64] fix paging_init()

fix paginig_init() to initialize mpt_table properly.

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>

G: manifest hash ca7d4ed1b47fcd1f85fbf0005c810796b1f0c6cb

diff -r 55e8f512fed5 -r 2d28f31aae8b xen/arch/ia64/xen/xenmem.c
--- a/xen/arch/ia64/xen/xenmem.c        Wed Apr 05 12:15:10 2006 -0600
+++ b/xen/arch/ia64/xen/xenmem.c        Wed Apr 05 12:17:44 2006 -0600
@@ -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;
        }
 }

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [IA64] fix paging_init(), Xen patchbot -unstable <=