summaryrefslogtreecommitdiff
path: root/kexec/kexec-syscall.h
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2008-02-04 21:24:03 +0000
committerSimon Horman <horms@verge.net.au>2008-02-19 15:11:56 +0900
commit83a9d171329ce791d734117e6894cccc244893a2 (patch)
tree9ccfb3f45b2dc7cee66ffc2d545767f81a8b9901 /kexec/kexec-syscall.h
parentb5ee3392dc71c53f93716cb387abacb544d9cf9c (diff)
downloadkexec-tools-83a9d171329ce791d734117e6894cccc244893a2.tar.gz
Add ARM support to kexec
Add ARM support to kexec including commandline support through ATAGs. The kernel syscall support has already been merged and kernel ATAG exporting is queued for 2.6.25 (its optional for kexec). Based on work by various people, notably Uli Luckas <u.luckas@road.de> for adding ATAG support. Signed-off-by: Richard Purdie <rpurdie@rpsys.net> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/kexec-syscall.h')
-rw-r--r--kexec/kexec-syscall.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/kexec/kexec-syscall.h b/kexec/kexec-syscall.h
index 0ca3984..8d93047 100644
--- a/kexec/kexec-syscall.h
+++ b/kexec/kexec-syscall.h
@@ -46,6 +46,9 @@
#ifdef __s390__
#define __NR_kexec_load 277
#endif
+#ifdef __arm__
+#define __NR_kexec_load __NR_SYSCALL_BASE + 347
+#endif
#ifndef __NR_kexec_load
#error Unknown processor architecture. Needs a kexec_load syscall number.
#endif
@@ -77,6 +80,7 @@ static inline long kexec_reboot(void)
#define KEXEC_ARCH_PPC64 (21 << 16)
#define KEXEC_ARCH_IA_64 (50 << 16)
#define KEXEC_ARCH_S390 (22 << 16)
+#define KEXEC_ARCH_ARM (40 << 16)
#define KEXEC_MAX_SEGMENTS 16