ia64/xen-unstable

changeset 3632:5f3b5a2eb615

bitkeeper revision 1.1159.223.62 (4202591aKU7cGiiCesn0hIfz1J0vUQ)

Fix bootmem allocator.
Signed-off-by: keir.fraser@cl.cam.ac.uk
author kaf24@scramble.cl.cam.ac.uk
date Thu Feb 03 17:02:18 2005 +0000 (2005-02-03)
parents 30412c1eb41d
children 1c43dbcfc46f fb875591fd72
files xen/common/page_alloc.c
line diff
     1.1 --- a/xen/common/page_alloc.c	Thu Feb 03 08:38:03 2005 +0000
     1.2 +++ b/xen/common/page_alloc.c	Thu Feb 03 17:02:18 2005 +0000
     1.3 @@ -176,7 +176,7 @@ unsigned long alloc_boot_pages(unsigned 
     1.4      size  = round_pgup(size) >> PAGE_SHIFT;
     1.5      align = round_pgup(align) >> PAGE_SHIFT;
     1.6  
     1.7 -    for ( pg = 0; (pg + size) < (bitmap_size*PAGES_PER_MAPWORD); pg += align )
     1.8 +    for ( pg = 0; (pg + size) < (bitmap_size*8); pg += align )
     1.9      {
    1.10          for ( i = 0; i < size; i++ )
    1.11              if ( allocated_in_map(pg + i) )