kexec-tools: Use generic /proc/iomem code (ia64) This patch modifies the ia64-specific code to use the new generic code.
Signed-off-by: Magnus Damm <[EMAIL PROTECTED]> --- kexec/arch/ia64/crashdump-ia64.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) --- 0008/kexec/arch/ia64/crashdump-ia64.c +++ work/kexec/arch/ia64/crashdump-ia64.c 2006-11-17 17:03:44.000000000 +0900 @@ -252,11 +252,10 @@ int load_crashdump_segments(struct kexec 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 kexec_iomem_single("Crash kernel\n", &start, &end) == 0 ? + (start != end) : 0; } _______________________________________________ fastboot mailing list fastboot@lists.osdl.org https://lists.osdl.org/mailman/listinfo/fastboot