|  |  | 
  
    |  |  | 
 
  |   |  | 
  
    |  |  | 
  
    |  |  | 
  
    |   xen-ia64-devel
[Xen-ia64-devel] [patch] PAGE_ALIGN mpt_table 
| Hi,
This seems like a reasonable thing to do to me, and also means Xen
doesn't MCA on the first attempt to access the mpt_table here.
Cheers,
Jes
 Page-align mpt_table - without this patch, Xen MCA's on the first attempt
to try and touch the mpt_table as it was aligned at some crazy address.
Signed-off-by: Jes Sorensen <jes@xxxxxxx>
diff -r 3e4fa8b5b245 xen/arch/ia64/xen/xenmem.c
--- a/xen/arch/ia64/xen/xenmem.c        Tue Sep 12 11:43:22 2006 -0600
+++ b/xen/arch/ia64/xen/xenmem.c        Wed Sep 20 17:14:01 2006 +0200
@@ -184,7 +184,8 @@ void init_virtual_frametable(void)
 
        /* Allocate virtual mpt_table */
        table_size = 0;
-       mpt_table = (unsigned long *)VIRT_FRAME_TABLE_END - max_page;
+       mpt_table = (unsigned long *)
+               PAGE_ALIGN(VIRT_FRAME_TABLE_END - max_page);
        efi_memmap_walk(create_mpttable_page_table, NULL);
 
        printk("virtual machine to physical table: %p size: %lukB\n"
_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel | 
 
| <Prev in Thread] | Current Thread | [Next in Thread> |  | 
[Xen-ia64-devel] [patch] PAGE_ALIGN mpt_table,
Jes Sorensen <=
 |  |  | 
  
    |  |  |