Commit d9a81b44 authored by Yinghai Lu's avatar Yinghai Lu Committed by Ingo Molnar

x86: do not printout if we do not find setup_data

Signed-off-by: default avatarYinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 4fcc545a
...@@ -399,6 +399,7 @@ static void __init reserve_setup_data(void) ...@@ -399,6 +399,7 @@ static void __init reserve_setup_data(void)
struct setup_data *data; struct setup_data *data;
u64 pa_data; u64 pa_data;
char buf[32]; char buf[32];
int found = 0;
if (boot_params.hdr.version < 0x0209) if (boot_params.hdr.version < 0x0209)
return; return;
...@@ -409,9 +410,13 @@ static void __init reserve_setup_data(void) ...@@ -409,9 +410,13 @@ static void __init reserve_setup_data(void)
reserve_early(pa_data, pa_data+sizeof(*data)+data->len, buf); reserve_early(pa_data, pa_data+sizeof(*data)+data->len, buf);
e820_update_range(pa_data, sizeof(*data)+data->len, e820_update_range(pa_data, sizeof(*data)+data->len,
E820_RAM, E820_RESERVED_KERN); E820_RAM, E820_RESERVED_KERN);
found = 1;
pa_data = data->next; pa_data = data->next;
early_iounmap(data, sizeof(*data)); early_iounmap(data, sizeof(*data));
} }
if (!found)
return;
sanitize_e820_map(e820.map, ARRAY_SIZE(e820.map), &e820.nr_map); sanitize_e820_map(e820.map, ARRAY_SIZE(e820.map), &e820.nr_map);
printk(KERN_INFO "extended physical RAM map:\n"); printk(KERN_INFO "extended physical RAM map:\n");
e820_print_map("reserve setup_data"); e820_print_map("reserve setup_data");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment