===== arch/ia64/mm/init.c 1.62 vs edited ===== --- 1.62/arch/ia64/mm/init.c Thu May 27 15:44:02 2004 +++ edited/arch/ia64/mm/init.c Thu Jun 24 09:01:26 2004 @@ -484,9 +484,12 @@ unsigned long num_reserved = 0; unsigned long *count = arg; - for (; start < end; start += PAGE_SIZE) + for (; start < end; start += PAGE_SIZE) { + if (!ia64_pfn_valid(page_to_pfn(virt_to_page(start)))) + continue; if (PageReserved(virt_to_page(start))) ++num_reserved; + } *count += num_reserved; return 0; }