From 0e669a27ec55d2baaf47fdab87da08ed189b5ac6 Mon Sep 17 00:00:00 2001 From: Simon Horman Date: Thu, 18 Feb 2010 11:38:09 +1100 Subject: x86_64: use correct PAGE_OFFSET This fixes a bug when using gdb with vmcore as explained by Dave Anderson: The kexec/arch/x86_64/crashdump-x86_64.h file contains a stale PAGE_OFFSET value. In 2.6.27 it was changed from 0xffff810000000000UL to 0xffff880000000000UL. This is only a problem when using gdb with the vmlinux/vmcore pair, because gdb relies upon the PT_LOAD segment's p_vaddr values in the ELF header to be correct. Cc: Dave Anderson Signed-off-by: Simon Horman --- kexec/kexec.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'kexec/kexec.c') diff --git a/kexec/kexec.c b/kexec/kexec.c index c4eb254..d282ade 100644 --- a/kexec/kexec.c +++ b/kexec/kexec.c @@ -1041,6 +1041,8 @@ int main(int argc, char *argv[]) }; static const char short_options[] = KEXEC_OPT_STR; + arch_init(); + opterr = 0; /* Don't complain about unrecognized options here */ while ((opt = getopt_long(argc, argv, short_options, options, 0)) != -1) { -- cgit