From fcd049da6ac36183e2dc69bd1f479d059e8dd9a7 Mon Sep 17 00:00:00 2001 From: Huang Ying Date: Wed, 26 Nov 2008 14:47:38 +0800 Subject: Fix kexec x86_64 load failed bug Fix a bug of kexec load on x86_64. Kexec fails to do load on x86_64, with error message: Symbol: cmdline_end not found cannot set Because kexec/arch/i386/kexec-bzImage.c accesses cmdline_end symbol in i386 purgatory, but there is no cmdline_end in x86_64 purgatory, and kexec-bzImage.c is used by x86_64 too. cmdline_end is added into x86_64 purgatory to solve the bug, because kexec jump support for x86_64 is planned. Reported-by: Bernhard Walle Signed-off-by: Huang Ying Signed-off-by: Simon Horman --- purgatory/arch/x86_64/purgatory-x86_64.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'purgatory') diff --git a/purgatory/arch/x86_64/purgatory-x86_64.c b/purgatory/arch/x86_64/purgatory-x86_64.c index 374b554..1513508 100644 --- a/purgatory/arch/x86_64/purgatory-x86_64.c +++ b/purgatory/arch/x86_64/purgatory-x86_64.c @@ -1,10 +1,12 @@ #include +#include #include #include "purgatory-x86_64.h" uint8_t reset_vga = 0; uint8_t legacy_pic = 0; uint8_t panic_kernel = 0; +char *cmdline_end = NULL; void setup_arch(void) { -- cgit