[PATCH] x86: not printout if not finding setup_data

From: Yinghai Lu
Date: Tue Jul 01 2008 - 23:03:37 EST



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

---
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");
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/