aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/xen
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2008-06-16 17:54:49 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-08 06:48:29 -0400
commitb792c755907cffceab393585b626ef2553c38538 (patch)
tree217524706bd543ecb35c43c388bddd282bf436b0 /arch/x86/xen
parentbe5bf9fa1c327fa6fd6e7ba44665437dd558dfe3 (diff)
xen: reserve ISA space in e820 map
[ TODO: release the underlying memory back to Xen. ] Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Cc: Yinghai Lu <yhlu.kernel@gmail.com> Cc: the arch/x86 maintainers <x86@kernel.org> Signed-off-by: Ingo Molnar <mingo@elte.hu> Cc: Yinghai Lu <yhlu.kernel@gmail.com> Cc: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/xen')
-rw-r--r--arch/x86/xen/setup.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/arch/x86/xen/setup.c b/arch/x86/xen/setup.c
index dc2ca8ad3603..e0a39595bde3 100644
--- a/arch/x86/xen/setup.c
+++ b/arch/x86/xen/setup.c
@@ -13,6 +13,7 @@
13#include <asm/vdso.h> 13#include <asm/vdso.h>
14#include <asm/e820.h> 14#include <asm/e820.h>
15#include <asm/setup.h> 15#include <asm/setup.h>
16#include <asm/acpi.h>
16#include <asm/xen/hypervisor.h> 17#include <asm/xen/hypervisor.h>
17#include <asm/xen/hypercall.h> 18#include <asm/xen/hypercall.h>
18 19
@@ -41,8 +42,15 @@ char * __init xen_memory_setup(void)
41 42
42 e820.nr_map = 0; 43 e820.nr_map = 0;
43 44
44 e820_add_region(0, LOWMEMSIZE(), E820_RAM); 45 e820_add_region(0, PFN_PHYS(max_pfn), E820_RAM);
45 e820_add_region(HIGH_MEMORY, PFN_PHYS(max_pfn)-HIGH_MEMORY, E820_RAM); 46
47 /*
48 * Even though this is normal, usable memory under Xen, reserve
49 * ISA memory anyway because too many things think they can poke
50 * about in there.
51 */
52 e820_add_region(ISA_START_ADDRESS, ISA_END_ADDRESS - ISA_START_ADDRESS,
53 E820_RESERVED);
46 54
47 /* 55 /*
48 * Reserve Xen bits: 56 * Reserve Xen bits: