ia64/xen-unstable

changeset 124:b591e70eec1d

bitkeeper revision 1.22.2.2 (3e428b66IcFnVEMviXFx1CPmUS9q0Q)
author kaf24@labyrinth.cl.cam.ac.uk
date Thu Feb 06 16:20:54 2003 +0000 (2003-02-06)
parents 946e29624b77
children 25df5d63ff28
files xen-2.4.16/common/memory.c
line diff
     1.1 --- a/xen-2.4.16/common/memory.c	Thu Feb 06 16:18:06 2003 +0000
     1.2 +++ b/xen-2.4.16/common/memory.c	Thu Feb 06 16:20:54 2003 +0000
     1.3 @@ -231,9 +231,9 @@ void __init init_frametable(unsigned lon
     1.4  
     1.5      /* Put all domain-allocatable memory on a free list. */
     1.6      INIT_LIST_HEAD(&free_list);
     1.7 -    for( page_index = nr_pages - 1;
     1.8 -         page_index >= (__pa(frame_table) + frame_table_size) >> PAGE_SHIFT; 
     1.9 -         page_index -= 2 )      
    1.10 +    for( page_index = (__pa(frame_table) + frame_table_size) >> PAGE_SHIFT; 
    1.11 +         page_index < nr_pages;
    1.12 +         page_index++ )      
    1.13      {
    1.14          pf = list_entry(&frame_table[page_index].list, struct pfn_info, list);
    1.15          list_add_tail(&pf->list, &free_list);