The mpt entry is 4 bytes even on x86_64, so we use 4 when
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 25 Aug 2005 15:53:03 +0000 (15:53 +0000)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 25 Aug 2005 15:53:03 +0000 (15:53 +0000)
calculating mpt size.

Signed-off-by: Xin Li <xin.b.li@intel.com>
xen/arch/x86/x86_64/mm.c

index 438bff4754829e952ad08557b1930b769fbef46a..10ee07b2d76bfb449d9dc60cb0f8b5326d34ba03 100644 (file)
@@ -98,7 +98,7 @@ void __init paging_init(void)
      * 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 )