summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmerigo Wang <amwang@redhat.com>2011-04-17 16:29:05 +0800
committerSimon Horman <horms@verge.net.au>2011-04-18 15:58:41 +0800
commite3bb6ccd50e483d06bfeaca24c9107c31f1cf5d7 (patch)
tree9be443d18a63ae840c95576cef563a1170409a62
parent699bf1ab10f6a428d7b9fb1442d74f7291a800cd (diff)
kexec: fix the missing i386 part in commit 1100580b05e
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> Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r--kexec/arch/i386/kexec-x86.c4
1 files changed, 4 insertions, 0 deletions
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",