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/arch_init.c | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 kexec/arch_init.c (limited to 'kexec/arch_init.c') diff --git a/kexec/arch_init.c b/kexec/arch_init.c new file mode 100644 index 0000000..afce72f --- /dev/null +++ b/kexec/arch_init.c @@ -0,0 +1,4 @@ +int arch_init(void) +{ + return 0; +} -- cgit