summaryrefslogtreecommitdiffstats
path: root/purgatory
diff options
context:
space:
mode:
authorHuang Ying <ying.huang@intel.com>2008-11-26 14:47:38 +0800
committerSimon Horman <horms@verge.net.au>2008-11-26 16:47:38 +0900
commitfcd049da6ac36183e2dc69bd1f479d059e8dd9a7 (patch)
tree11440010b8a7f3dc956b5a71cf9d1d1c6bf6d0de /purgatory
parent9bf8dee9bab15d7f6de8a4cd332e77a1559083e3 (diff)
downloadkexec-tools-fcd049da6ac36183e2dc69bd1f479d059e8dd9a7.tar.gz
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 <bwalle@suse.de> Signed-off-by: Huang Ying <ying.huang@intel.com> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'purgatory')
-rw-r--r--purgatory/arch/x86_64/purgatory-x86_64.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/purgatory/arch/x86_64/purgatory-x86_64.c b/purgatory/arch/x86_64/purgatory-x86_64.c
index 374b5544..15135085 100644
--- a/purgatory/arch/x86_64/purgatory-x86_64.c
+++ b/purgatory/arch/x86_64/purgatory-x86_64.c
@@ -1,10 +1,12 @@
#include <stdint.h>
+#include <stddef.h>
#include <purgatory.h>
#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)
{