ia64/xen-unstable

changeset 3307:dc2f08429f17 RELEASE-2.0.2

bitkeeper revision 1.1159.187.72 (41c83141bbfSKG8AyntR8TjTKkgRiw)

Fix p.t. init loop to avoid unnecessary iterations.
author kaf24@scramble.cl.cam.ac.uk
date Tue Dec 21 14:20:49 2004 +0000 (2004-12-21)
parents 85cbf3821127
children 2bcd45440fd9 52a19a143c6b
files xen/arch/x86/x86_32/mm.c
line diff
     1.1 --- a/xen/arch/x86/x86_32/mm.c	Tue Dec 21 14:13:51 2004 +0000
     1.2 +++ b/xen/arch/x86/x86_32/mm.c	Tue Dec 21 14:20:49 2004 +0000
     1.3 @@ -62,7 +62,7 @@ void __init paging_init(void)
     1.4      /* Xen heap mappings can be GLOBAL. */
     1.5      if ( cpu_has_pge )
     1.6      {
     1.7 -        for ( i = 0; i < DIRECTMAP_PHYS_END; i++ )
     1.8 +        for ( i = 0; i < DIRECTMAP_PHYS_END; i += (1 << L2_PAGETABLE_SHIFT) )
     1.9              ((unsigned long *)idle_pg_table)
    1.10                  [(i + PAGE_OFFSET) >> L2_PAGETABLE_SHIFT] |= _PAGE_GLOBAL;
    1.11      }