diff options
author | kaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk> | 2004-12-21 14:20:49 +0000 |
---|---|---|
committer | kaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk> | 2004-12-21 14:20:49 +0000 |
commit | 24e3e9fbb586808252e59a3f9a22f31db035f5cb (patch) | |
tree | 2a5cb6e822548e923711a029bb1d1a072a4ae352 | |
parent | b743fad98e89f1bae29b8f5eb150dbb142bc5109 (diff) | |
download | xen-RELEASE-2.0.2.tar.gz xen-RELEASE-2.0.2.tar.bz2 xen-RELEASE-2.0.2.zip |
bitkeeper revision 1.1159.187.72 (41c83141bbfSKG8AyntR8TjTKkgRiw)RELEASE-2.0.2
Fix p.t. init loop to avoid unnecessary iterations.
-rw-r--r-- | xen/arch/x86/x86_32/mm.c | 2 |
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; } |