summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZou Nan hai <nanhai.zou@intel.com>2006-09-21 13:01:04 +0800
committerSimon Horman <horms@verge.net.au>2006-10-06 12:46:15 +0900
commitad691d700dd06b80adab8cc404ce8113ccdd1622 (patch)
treeff4d7b8a9b8480dfd337f9453202228f60f84489
parent6256940a039cde5641e469d2e129c95d5196b7d3 (diff)
kexec-tools: Fix physcal address value in vmcore ELF segment header
I used fixed 64M as physical offset in vmcore ELF segment header. This gives trouble to crash utility to analyze vmcore on platform that load kernel to a different address. This patch will fix it. Signed-off-by: Zou Nan hai <nanhai.zou@intel.com> Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r--kexec/arch/ia64/crashdump-ia64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kexec/arch/ia64/crashdump-ia64.c b/kexec/arch/ia64/crashdump-ia64.c
index 6ab8686..d2d20af 100644
--- a/kexec/arch/ia64/crashdump-ia64.c
+++ b/kexec/arch/ia64/crashdump-ia64.c
@@ -28,7 +28,7 @@
#include "crashdump-ia64.h"
int memory_ranges = 0;
-#define LOAD_OFFSET (0xa000000000000000UL + 0x100000000UL - (1UL<<26))
+#define LOAD_OFFSET (0xa000000000000000UL + 0x100000000UL - kernel_code_start)
#define MAX_LINE 160
/* Stores a sorted list of RAM memory ranges for which to create elf headers.
* A separate program header is created for backup region */