From: Yinghai Lu Date: Thu, 4 Sep 2008 18:59:22 +0000 (+0200) Subject: x86: split e820 reserved entries record to late, v7 X-Git-Tag: v2.6.28-rc1~711^2^2~44^2~5 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=fac8f1e4f99dff7a0c3a929f327d66f46de6fa21;p=linux-2.6-omap-h63xx.git x86: split e820 reserved entries record to late, v7 try to insert_resource second time, by expanding the resource... for case: e820 reserved entry is partially overlapped with bar res... hope it will never happen Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/e820.c b/arch/x86/kernel/e820.c index a7a71339bfb..e24d1bc47b4 100644 --- a/arch/x86/kernel/e820.c +++ b/arch/x86/kernel/e820.c @@ -1320,7 +1320,7 @@ void __init e820_reserve_resources_late(void) res = e820_res; for (i = 0; i < e820.nr_map; i++) { if (!res->parent && res->end) - insert_resource(&iomem_resource, res); + reserve_region_with_split(&iomem_resource, res->start, res->end, res->name); res++; } }