From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 18 Nov 2002 15:13:53 -0800 From: William Lee Irwin III Subject: Re: 2.5.47 bootmem crash Message-ID: <20021118231353.GS11776@holomorphy.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org Return-Path: To: Roman Zippel Cc: Geert Uytterhoeven , Linux/m68k , linux-kernel@vger.kernel.org, linux-mm@kvack.org, akpm@zip.com.au List-ID: 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/