With CONFIG_DISCONTIGMEM enabled /proc/iomem_machine isn't
initialized properly so that kexec failes because kexec-tools wrongly
tries to use ia64 boot mem (or efi memmap area).
This patch fixes /proc/iomem_machine.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
#include <linux/acpi.h>
#include <linux/efi.h>
#include <linux/nodemask.h>
+#if defined(CONFIG_XEN) && defined(CONFIG_KEXEC)
+#include <linux/kexec.h>
+#endif
#include <asm/pgalloc.h>
#include <asm/tlb.h>
#include <asm/meminit.h>
reserve_pernode_space();
memory_less_nodes();
initialize_pernode_data();
+#if defined(CONFIG_XEN) && defined(CONFIG_KEXEC)
+ xen_machine_kexec_setup_resources();
+#endif
max_pfn = max_low_pfn;