* Re: 2.5.47 bootmem crash
[not found] ` <Pine.LNX.4.44.0211182345421.2113-100000@serv>
@ 2002-11-18 23:13 ` William Lee Irwin III
0 siblings, 0 replies; 2+ messages in thread
From: William Lee Irwin III @ 2002-11-18 23:13 UTC (permalink / raw)
To: Roman Zippel; +Cc: Geert Uytterhoeven, Linux/m68k, linux-kernel, linux-mm, akpm
On Mon, Nov 18, 2002 at 11:47:15PM +0100, Roman Zippel wrote:
Index: mm/page_alloc.c
===================================================================
RCS file: /home/linux-m68k/cvsroot/linux/mm/page_alloc.c,v
retrieving revision 1.1.1.36
diff -u -p -r1.1.1.36 page_alloc.c
--- mm/page_alloc.c 11 Nov 2002 19:12:51 -0000 1.1.1.36
+++ mm/page_alloc.c 18 Nov 2002 22:45:34 -0000
@@ -1181,7 +1181,7 @@ struct pglist_data contig_page_data = {
void __init free_area_init(unsigned long *zones_size)
{
- 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);
mem_map = contig_page_data.node_mem_map;
}
#endif
---------- Roman Zippel's patch ends here ------------
This is a valid core fix for "memory doesn't start at zero", and will work
properly on all "memory starts at zero" machines without any overhead.
Thanks,
Bill
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: 2.5.47 bootmem crash
@ 2002-11-18 23:13 ` William Lee Irwin III
0 siblings, 0 replies; 2+ messages in thread
From: William Lee Irwin III @ 2002-11-18 23:13 UTC (permalink / raw)
To: Roman Zippel; +Cc: Geert Uytterhoeven, Linux/m68k, linux-kernel, linux-mm, akpm
On Mon, Nov 18, 2002 at 11:47:15PM +0100, Roman Zippel wrote:
Index: mm/page_alloc.c
===================================================================
RCS file: /home/linux-m68k/cvsroot/linux/mm/page_alloc.c,v
retrieving revision 1.1.1.36
diff -u -p -r1.1.1.36 page_alloc.c
--- mm/page_alloc.c 11 Nov 2002 19:12:51 -0000 1.1.1.36
+++ mm/page_alloc.c 18 Nov 2002 22:45:34 -0000
@@ -1181,7 +1181,7 @@ struct pglist_data contig_page_data = {
void __init free_area_init(unsigned long *zones_size)
{
- 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);
mem_map = contig_page_data.node_mem_map;
}
#endif
---------- Roman Zippel's patch ends here ------------
This is a valid core fix for "memory doesn't start at zero", and will work
properly on all "memory starts at zero" machines without any overhead.
Thanks,
Bill
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-11-18 23:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <Pine.GSO.4.21.0211182324570.16079-100000@vervain.sonytel.be>
[not found] ` <Pine.LNX.4.44.0211182345421.2113-100000@serv>
2002-11-18 23:13 ` 2.5.47 bootmem crash William Lee Irwin III
2002-11-18 23:13 ` William Lee Irwin III
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.