[ARM] 4870/1: fix signal return code when enable CONFIG_OABI_COMPAT
authorjanboe <janboe.ye@gmail.com>
Wed, 19 Mar 2008 02:34:23 +0000 (03:34 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 20 Mar 2008 15:59:31 +0000 (15:59 +0000)
fix signal return code when enable CONFIG_OABI_COMPAT

Signed-off-by: Janboe Ye <janboe.ye@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/signal.c

index 54cdf1aeefc3df83458d83f1b5ff7dc9c41b5c10..ef2f86a5e78a2965e0de4c9b9815c23a8e0baf63 100644 (file)
@@ -26,8 +26,8 @@
 /*
  * For ARM syscalls, we encode the syscall number into the instruction.
  */
-#define SWI_SYS_SIGRETURN      (0xef000000|(__NR_sigreturn))
-#define SWI_SYS_RT_SIGRETURN   (0xef000000|(__NR_rt_sigreturn))
+#define SWI_SYS_SIGRETURN      (0xef000000|(__NR_sigreturn)|(__NR_OABI_SYSCALL_BASE))
+#define SWI_SYS_RT_SIGRETURN   (0xef000000|(__NR_rt_sigreturn)|(__NR_OABI_SYSCALL_BASE))
 
 /*
  * With EABI, the syscall number has to be loaded into r7.