[PATCH] [RFC] sh: kexec: Register crashk_res
horms at verge.net.au
Thu Sep 1 23:47:12 EDT 2011
Register crashk_res so that it can be used by kexec-tools
On x86 the registration occurs using
However that approach seems to result in the boot hanging on SH.
Signed-off-by: Simon Horman <horms at verge.net.au>
arch/sh/kernel/setup.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c
index 58bff45..6d566bb 100644
@@ -211,13 +211,16 @@ void __init __add_active_range(unsigned int nid, unsigned long start_pfn,
- * We don't know which RAM region contains kernel data,
- * so we try it repeatedly and let the resource manager
- * test it.
+ * We don't know which RAM region contains kernel data or
+ * the reserved crashkernel region, so try it repeatedly
+ * and let the resource manager test it.
+ request_resource(res, &crashk_res);
* Also make sure that there is a PMB mapping that covers this
More information about the kexec