Li, Xin B
2005-Aug-25  13:09 UTC
[Xen-devel] [PATCH] The mpt entry is 4 bytes even on x86_64.
The mpt entry is 4 bytes even on x86_64, so we use 4 when caculating mpt
size.
Signed-off-by: Xin Li <xin.b.li@intel.com>
diff -r d8fd24b43080 xen/arch/x86/x86_64/mm.c
--- a/xen/arch/x86/x86_64/mm.c  Mon Aug 22 10:18:14 2005
+++ b/xen/arch/x86/x86_64/mm.c  Thu Aug 25 14:04:29 2005
@@ -98,7 +98,7 @@
      * Allocate and map the machine-to-phys table.
      * This also ensures L3 is present for fixmaps.
      */
-    for ( i = 0; i < max_page; i += ((1UL << L2_PAGETABLE_SHIFT) / 8)
)
+    for ( i = 0; i < max_page; i += ((1UL << L2_PAGETABLE_SHIFT) / 4)
)
     {
         pg = alloc_domheap_pages(NULL, PAGETABLE_ORDER, 0);
         if ( pg == NULL )
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel