From: Jeremy Fitzhardinge Date: Mon, 16 Jun 2008 21:54:49 +0000 (-0700) Subject: xen: reserve ISA space in e820 map X-Git-Tag: v2.6.27-rc1~1106^2~224 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b792c755907cffceab393585b626ef2553c38538;p=linux-2.6-omap-h63xx.git xen: reserve ISA space in e820 map [ TODO: release the underlying memory back to Xen. ] Signed-off-by: Jeremy Fitzhardinge Cc: Yinghai Lu Cc: the arch/x86 maintainers Signed-off-by: Ingo Molnar Cc: Yinghai Lu Cc: Ian Campbell Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/xen/setup.c b/arch/x86/xen/setup.c index dc2ca8ad360..e0a39595bde 100644 --- a/arch/x86/xen/setup.c +++ b/arch/x86/xen/setup.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include @@ -41,8 +42,15 @@ char * __init xen_memory_setup(void) e820.nr_map = 0; - e820_add_region(0, LOWMEMSIZE(), E820_RAM); - e820_add_region(HIGH_MEMORY, PFN_PHYS(max_pfn)-HIGH_MEMORY, E820_RAM); + e820_add_region(0, PFN_PHYS(max_pfn), E820_RAM); + + /* + * Even though this is normal, usable memory under Xen, reserve + * ISA memory anyway because too many things think they can poke + * about in there. + */ + e820_add_region(ISA_START_ADDRESS, ISA_END_ADDRESS - ISA_START_ADDRESS, + E820_RESERVED); /* * Reserve Xen bits: