lkml.org 
[lkml]   [2002]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: 2.5.47 bootmem crash
    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 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/

    \
     
     \ /
      Last update: 2005-03-22 13:31    [W:0.026 / U:155.172 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site