diff options
author | Magnus Damm <magnus@valinux.co.jp> | 2006-11-22 00:02:41 +0900 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2006-11-27 12:25:13 +0900 |
commit | 5ce4f874087d0981479e841e9c366cf55e67d985 (patch) | |
tree | 570328df13caafdd875ab2fbce6bf2ff6d9bc22b /kexec | |
parent | e56c336fc291bec6031f806a4302f17d5dfd8f0d (diff) |
kexec-tools: Use generic /proc/iomem code (ia64) V2
kexec-tools: Use generic /proc/iomem code (ia64) V2
This patch modifies the ia64-specific code to use the new generic code.
Version 2 of this patch uses the newly renamed parse_iomem_single() function.
Signed-off-by: Magnus Damm <magnus@valinux.co.jp>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec')
-rw-r--r-- | kexec/arch/ia64/crashdump-ia64.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/kexec/arch/ia64/crashdump-ia64.c b/kexec/arch/ia64/crashdump-ia64.c index 01600d5..edac7f1 100644 --- a/kexec/arch/ia64/crashdump-ia64.c +++ b/kexec/arch/ia64/crashdump-ia64.c @@ -250,11 +250,10 @@ int load_crashdump_segments(struct kexec_info *info, struct mem_ehdr *ehdr, return 0; } -/* - * Adding a dummy function, so that build on IA64 will not break. - * Need to implement the actual checking code - */ int is_crashkernel_mem_reserved(void) { - return 1; + uint64_t start, end; + + return parse_iomem_single("Crash kernel\n", &start, &end) == 0 ? + (start != end) : 0; } |