public inbox for kexec@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] kexec jump: SuperH vmlinux support
@ 2009-03-18  6:07 Magnus Damm
  2009-03-18  8:44 ` Simon Horman
  0 siblings, 1 reply; 2+ messages in thread
From: Magnus Damm @ 2009-03-18  6:07 UTC (permalink / raw)
  To: kexec; +Cc: horms, Magnus Damm

From: Magnus Damm <damm@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@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;

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] kexec jump: SuperH vmlinux support
  2009-03-18  6:07 [PATCH] kexec jump: SuperH vmlinux support Magnus Damm
@ 2009-03-18  8:44 ` Simon Horman
  0 siblings, 0 replies; 2+ messages in thread
From: Simon Horman @ 2009-03-18  8:44 UTC (permalink / raw)
  To: Magnus Damm; +Cc: kexec

On Wed, Mar 18, 2009 at 03:07:46PM +0900, Magnus Damm wrote:
> From: Magnus Damm <damm@igel.co.jp>
> 
> Create elf header and modify the kernel command line
> when loading a crash kernel or a kexec jump kernel.

Thanks, applied this one too.

-- 
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
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-03-18  8:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-18  6:07 [PATCH] kexec jump: SuperH vmlinux support Magnus Damm
2009-03-18  8:44 ` Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox