direct-io.hg

changeset 6399:85ccfd035658

The mpt entry is 4 bytes even on x86_64, so we use 4 when
calculating mpt size.

Signed-off-by: Xin Li <xin.b.li@intel.com>
author kaf24@firebug.cl.cam.ac.uk
date Thu Aug 25 15:53:03 2005 +0000 (2005-08-25)
parents d61f8afd292c
children b88c5350de57
files xen/arch/x86/x86_64/mm.c
line diff
     1.1 --- a/xen/arch/x86/x86_64/mm.c	Thu Aug 25 15:51:30 2005 +0000
     1.2 +++ b/xen/arch/x86/x86_64/mm.c	Thu Aug 25 15:53:03 2005 +0000
     1.3 @@ -98,7 +98,7 @@ void __init paging_init(void)
     1.4       * Allocate and map the machine-to-phys table.
     1.5       * This also ensures L3 is present for fixmaps.
     1.6       */
     1.7 -    for ( i = 0; i < max_page; i += ((1UL << L2_PAGETABLE_SHIFT) / 8) )
     1.8 +    for ( i = 0; i < max_page; i += ((1UL << L2_PAGETABLE_SHIFT) / 4) )
     1.9      {
    1.10          pg = alloc_domheap_pages(NULL, PAGETABLE_ORDER, 0);
    1.11          if ( pg == NULL )