mirror of
https://github.com/xen-project/xen.git
synced 2026-10-30 03:00:05 +01:00
Move misplaced CONFIG_KEXEC code chunk in setup-xen.c to its proper location.
From: Jan Beulich Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
4d9b8db9fc
commit
f0a187ecb7
1 file changed
+5
-5
@@ -1317,6 +1317,11 @@ void __init setup_bootmem_allocator(void)
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#ifdef CONFIG_KEXEC
|
||||
if (crashk_res.start != crashk_res.end)
|
||||
reserve_bootmem(crashk_res.start,
|
||||
crashk_res.end - crashk_res.start + 1);
|
||||
#endif
|
||||
|
||||
if (!xen_feature(XENFEAT_auto_translated_physmap))
|
||||
phys_to_machine_mapping =
|
||||
@@ -1436,11 +1441,6 @@ legacy_init_iomem_resources(struct resource *code_resource, struct resource *dat
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#ifdef CONFIG_KEXEC
|
||||
if (crashk_res.start != crashk_res.end)
|
||||
reserve_bootmem(crashk_res.start,
|
||||
crashk_res.end - crashk_res.start + 1);
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||