summaryrefslogtreecommitdiffstats
path: root/package/kexec/kexec-tools-002-add-arch-arm.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/kexec/kexec-tools-002-add-arch-arm.patch')
-rw-r--r--package/kexec/kexec-tools-002-add-arch-arm.patch15
1 files changed, 13 insertions, 2 deletions
diff --git a/package/kexec/kexec-tools-002-add-arch-arm.patch b/package/kexec/kexec-tools-002-add-arch-arm.patch
index 8b1388d16..be78bbeb6 100644
--- a/package/kexec/kexec-tools-002-add-arch-arm.patch
+++ b/package/kexec/kexec-tools-002-add-arch-arm.patch
@@ -5,7 +5,7 @@ diff -rduNp kexec-tools-1.101.orig/configure kexec-tools-1.101/configure
i?86 )
host_cpu="i386"
;;
-+ arm )
++ arm* )
+ host_cpu="arm"
+ ;;
powerpc )
@@ -76,7 +76,7 @@ diff -rduNp kexec-tools-1.101.orig/kexec/arch/arm/kexec-arm.c kexec-tools-1.101/
+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)
+{
+ const char iomem[]= "/proc/iomem";
+ int memory_ranges = 0;
@@ -385,3 +385,14 @@ diff -rduNp kexec-tools-1.101.orig/purgatory/arch/arm/include/stdint.h kexec-too
+typedef signed long long int64_t;
+
+#endif /* STDINT_H */
+--- kexec-tools-1.101/kexec/kexec-syscall.h.orig 2007-10-18 14:28:44.000000000 +1000
++++ kexec-tools-1.101/kexec/kexec-syscall.h 2007-10-18 14:28:57.000000000 +1000
+@@ -44,7 +44,7 @@
+ #define __NR_kexec_load 277
+ #endif
+ #ifdef __arm__
+-#define __NR_kexec_load __NR_SYSCALL_BASE + 189
++#define __NR_kexec_load __NR_SYSCALL_BASE + 347
+ #endif
+ #ifndef __NR_kexec_load
+ #error Unknown processor architecture. Needs a kexec_load syscall number.