aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xen/arch/x86/x86_32/mm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/x86_32/mm.c b/xen/arch/x86/x86_32/mm.c
index a47e6b63c3..c22d527ac7 100644
--- a/xen/arch/x86/x86_32/mm.c
+++ b/xen/arch/x86/x86_32/mm.c
@@ -62,7 +62,7 @@ void __init paging_init(void)
/* Xen heap mappings can be GLOBAL. */
if ( cpu_has_pge )
{
- for ( i = 0; i < DIRECTMAP_PHYS_END; i++ )
+ for ( i = 0; i < DIRECTMAP_PHYS_END; i += (1 << L2_PAGETABLE_SHIFT) )
((unsigned long *)idle_pg_table)
[(i + PAGE_OFFSET) >> L2_PAGETABLE_SHIFT] |= _PAGE_GLOBAL;
}