diff options
author | Magnus Damm <damm@igel.co.jp> | 2008-08-27 11:15:43 +0200 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-08-28 07:52:58 +0200 |
commit | 34894c7843e00972d88b3592027703d4e05a06a7 (patch) | |
tree | f82e827a4e061894012b0bac3ed714890186eeac /arch/sh/kernel/setup.c | |
parent | sh: fix ptrace_64.c:user_disable_single_step() (diff) | |
download | linux-34894c7843e00972d88b3592027703d4e05a06a7.tar.xz linux-34894c7843e00972d88b3592027703d4e05a06a7.zip |
sh: crash kernel resource fix
The reserved crash kernel memory range is currently missing from
/proc/iomem. crashk_res is mistakenly setup after __add_active_range().
Reorder things to make sure the resource shows up in /proc/iomem.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/setup.c')
-rw-r--r-- | arch/sh/kernel/setup.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c index a35207655e7b..de832056bf1b 100644 --- a/arch/sh/kernel/setup.c +++ b/arch/sh/kernel/setup.c @@ -171,6 +171,7 @@ static void __init reserve_crashkernel(void) (unsigned long)(free_mem >> 20)); crashk_res.start = crash_base; crashk_res.end = crash_base + crash_size - 1; + insert_resource(&iomem_resource, &crashk_res); } } #else @@ -204,11 +205,6 @@ void __init __add_active_range(unsigned int nid, unsigned long start_pfn, request_resource(res, &data_resource); request_resource(res, &bss_resource); -#ifdef CONFIG_KEXEC - if (crashk_res.start != crashk_res.end) - request_resource(res, &crashk_res); -#endif - add_active_range(nid, start_pfn, end_pfn); } |