public inbox for kexec@lists.infradead.org
 help / color / mirror / Atom feed
* [Patch] kexec: fix the missing i386 part in commit 1100580b05e
@ 2011-04-17  8:29 Amerigo Wang
  2011-04-18  7:59 ` Simon Horman
  2011-04-18 12:58 ` Vivek Goyal
  0 siblings, 2 replies; 7+ messages in thread
From: Amerigo Wang @ 2011-04-17  8:29 UTC (permalink / raw)
  To: kexec; +Cc: Simon Horman, Amerigo Wang, Vivek Goyal

Vivek pointed out that I missed the i386 part in this commit,

	commit 1100580b05e3fdfe648d9be8617d962b11f4b88b
	Author: Amerigo Wang <amwang@redhat.com>
	Date:   Thu Mar 3 00:10:43 2011 +0800

	    get the backup area dynamically

Yes. The customer who reported that bug definitely only
tested it on x86_64. Now make it complete.

Signed-off-by: Amerigo Wang <amwang@redhat.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Cc: Simon Horman <horms@verge.net.au>

---
diff --git a/kexec/arch/i386/kexec-x86.c b/kexec/arch/i386/kexec-x86.c
index 5c701aa..014ecd5 100644
--- a/kexec/arch/i386/kexec-x86.c
+++ b/kexec/arch/i386/kexec-x86.c
@@ -184,6 +184,10 @@ void arch_update_purgatory(struct kexec_info *info)
 		&arch_options.console_vga, sizeof(arch_options.console_vga));
 	elf_rel_set_symbol(&info->rhdr, "console_serial",
 		&arch_options.console_serial, sizeof(arch_options.console_serial));
+	elf_rel_set_symbol(&info->rhdr, "backup_src_start",
+		&info->backup_src_start, sizeof(info->backup_src_start));
+	elf_rel_set_symbol(&info->rhdr, "backup_src_size",
+		&info->backup_src_size, sizeof(info->backup_src_size));
 	if (info->kexec_flags & KEXEC_ON_CRASH) {
 		panic_kernel = 1;
 		elf_rel_set_symbol(&info->rhdr, "backup_start",

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

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

end of thread, other threads:[~2011-04-20 10:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-17  8:29 [Patch] kexec: fix the missing i386 part in commit 1100580b05e Amerigo Wang
2011-04-18  7:59 ` Simon Horman
2011-04-18 12:58 ` Vivek Goyal
2011-04-19 12:47   ` Cong Wang
2011-04-19 16:20     ` Cong Wang
2011-04-19 16:53       ` Vivek Goyal
2011-04-20 10:52         ` Cong Wang

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