Re: [BK-2.5] [PATCH] bootmem crash fix

David S. Miller (davem@redhat.com)
Fri, 22 Nov 2002 13:12:59 -0800 (PST)


From: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Date: Fri, 22 Nov 2002 19:31:53 +0000

From Roman Zippel. Don't assume that physical memory starts at
physical address zero.

Which would be a nice improvement, however:

- free_area_init_node(0, &contig_page_data, NULL, zones_size, 0, NULL);
+ free_area_init_node(0, &contig_page_data, NULL, zones_size,
+ __pa(PAGE_OFFSET) >> PAGE_SHIFT, NULL);

__pa(PAGE_OFFSET) is not necessarily the first physical address in
the system either.

I've never seen this even implied to be the case :-)
In any event, it isn't well defined and we should make it
so.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/