[PATCH] kexec jump: SuperH vmlinux support
Magnus Damm
magnus.damm at gmail.com
Wed Mar 18 02:07:46 EDT 2009
From: Magnus Damm <damm at igel.co.jp>
Create elf header and modify the kernel command line
when loading a crash kernel or a kexec jump kernel.
Signed-off-by: Magnus Damm <damm at igel.co.jp>
---
kexec/arch/sh/kexec-elf-sh.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- 0001/kexec/arch/sh/kexec-elf-sh.c
+++ work/kexec/arch/sh/kexec-elf-sh.c 2009-03-18 13:44:29.000000000 +0900
@@ -104,7 +104,7 @@ int elf_sh_load(int argc, char **argv, c
/* Need to append some command line parameters internally in case of
* taking crash dumps.
*/
- if (info->kexec_flags & KEXEC_ON_CRASH) {
+ if (info->kexec_flags & (KEXEC_ON_CRASH | KEXEC_PRESERVE_CONTEXT)) {
modified_cmdline = xmalloc(COMMAND_LINE_SIZE);
memset((void *)modified_cmdline, 0, COMMAND_LINE_SIZE);
if (command_line) {
@@ -120,7 +120,7 @@ int elf_sh_load(int argc, char **argv, c
/* If panic kernel is being loaded, additional segments need
* to be created. */
- if (info->kexec_flags & KEXEC_ON_CRASH) {
+ if (info->kexec_flags & (KEXEC_ON_CRASH | KEXEC_PRESERVE_CONTEXT)) {
rc = load_crashdump_segments(info, modified_cmdline);
if (rc < 0)
return -1;
More information about the kexec
mailing list