summaryrefslogtreecommitdiff
path: root/kexec/kexec.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/kexec.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/kexec.c')
-rw-r--r--kexec/kexec.c2
1 files changed, 2 insertions, 0 deletions
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) {