kexec jump: SuperH vmlinux support
Subsystems (2)
PATCH 1/1 kexec jump: SuperH vmlinux support
From: Magnus Damm <[email protected]>
Create elf header and modify the kernel command line when loading a crash kernel or a kexec jump kernel.
Signed-off-by Magnus Damm <[email protected]>
---
kexec/arch/sh/kexec-elf-sh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
kexec/arch/sh/kexec-elf-sh.c +2 -2
@@ -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 ;
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Simon Horman
AppliedQuoted 4 lines · Magnus Damm
From: Magnus Damm <[email protected]>
Create elf header and modify the kernel command line when loading a crash kernel or a kexec jump kernel.
Thanks, applied this one too.
Signature · 9 lines
Simon Horman VA Linux Systems Japan K.K., Sydney, Australia Satellite Office H: www.vergenet.net/~horms/ W: www.valinux.co.jp/en _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec