lkml.org 
[lkml]   [2008]   [Jul]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] x86: not printout if not finding setup_data
    Date

    Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>

    ---
    arch/x86/kernel/setup.c | 5 +++++
    1 file changed, 5 insertions(+)

    Index: linux-2.6/arch/x86/kernel/setup.c
    ===================================================================
    --- linux-2.6.orig/arch/x86/kernel/setup.c
    +++ linux-2.6/arch/x86/kernel/setup.c
    @@ -399,6 +399,7 @@ static void __init reserve_setup_data(vo
    struct setup_data *data;
    u64 pa_data;
    char buf[32];
    + int found = 0;

    if (boot_params.hdr.version < 0x0209)
    return;
    @@ -409,9 +410,13 @@ static void __init reserve_setup_data(vo
    reserve_early(pa_data, pa_data+sizeof(*data)+data->len, buf);
    e820_update_range(pa_data, sizeof(*data)+data->len,
    E820_RAM, E820_RESERVED_KERN);
    + found = 1;
    pa_data = data->next;
    early_iounmap(data, sizeof(*data));
    }
    + if (!found)
    + return;
    +
    sanitize_e820_map(e820.map, ARRAY_SIZE(e820.map), &e820.nr_map);
    printk(KERN_INFO "extended physical RAM map:\n");
    e820_print_map("reserve setup_data");

    \
     
     \ /
      Last update: 2008-07-02 05:05    [W:0.021 / U:31.816 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site