Some minor changes needed for sh support to compile
Signed-off-by: Simon Horman <[EMAIL PROTECTED]>
Index: kexec-tools-sh/kexec/arch/sh/kexec-sh.c
===================================================================
--- kexec-tools-sh.orig/kexec/arch/sh/kexec-sh.c 2007-02-01
16:45:00.000000000 +0900
+++ kexec-tools-sh/kexec/arch/sh/kexec-sh.c 2007-02-01 16:48:51.000000000
+0900
@@ -25,7 +25,8 @@
static struct memory_range memory_range[MAX_MEMORY_RANGES];
/* Return a sorted list of available memory ranges. */
-int get_memory_ranges(struct memory_range **range, int *ranges)
+int get_memory_ranges(struct memory_range **range, int *ranges,
+ unsigned long kexec_flags)
{
int memory_ranges;
@@ -102,7 +103,7 @@
return 0;
}
-int arch_compat_trampoline(struct kexec_info *info, unsigned long *flags)
+int arch_compat_trampoline(struct kexec_info *info)
{
int result;
struct utsname utsname;
@@ -114,12 +115,11 @@
}
if ( (strcmp(utsname.machine, "sh3") == 0) ||
(strcmp(utsname.machine, "sh4") == 0))
-
{
/* For compatibility with older patches
* use KEXEC_ARCH_DEFAULT instead of KEXEC_ARCH_IA64 here.
*/
- *flags |= KEXEC_ARCH_DEFAULT;
+ info->kexec_flags |= KEXEC_ARCH_DEFAULT;
}
else {
fprintf(stderr, "Unsupported machine type: %s\n",
@@ -164,3 +164,13 @@
fclose(fp);
return append_buf;
}
+
+
+int is_crashkernel_mem_reserved(void)
+{
+ uint64_t start, end;
+
+ return parse_iomem_single("Crash kernel\n", &start, &end) == 0 ?
+ (start != end) : 0;
+}
+
--
--
Horms
H: http://www.vergenet.net/~horms/
W: http://www.valinux.co.jp/en/
_______________________________________________
fastboot mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/fastboot