summaryrefslogtreecommitdiff
path: root/kexec/arch_init.c
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2010-02-18 11:38:09 +1100
committerSimon Horman <horms@verge.net.au>2010-02-18 11:38:09 +1100
commit0e669a27ec55d2baaf47fdab87da08ed189b5ac6 (patch)
tree967657d98daa302dc58ec33b61dc0c3e4d939855 /kexec/arch_init.c
parent02ad89cdc85606dba57c2bca4f77ff432248d6ac (diff)
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 <anderson@redhat.com> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/arch_init.c')
-rw-r--r--kexec/arch_init.c4
1 files changed, 4 insertions, 0 deletions
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;
+}