Skip to contentSkip to conversation

fix signal return code when enable CONFIG_OABI_COMPAT

PATCH In review ye janboe 2 participants 4 messages Mar 6, 2008 – Mar 17, 2008 Arm (32-bit)

lore
Share & tools
lore

ye janboe

author
#0 lore raw

PATCH 1/1 fix signal return code when enable CONFIG_OABI_COMPAT

commit b4e8bde513a9a477c30c8769073ced7b59676d48

Author: janboe <[email protected]>
Date:   Thu Mar 6 23:00:23 2008 +0800

fix signal return code when enable CONFIG_OABI_COMPAT. because this will make kernel report this syscall obsolete.

arch/arm/kernel/signal.c +5 -0
index 54cdf1a..b863255 100644
@@ -26,8 +26,13 @@
 /*
  * For ARM syscalls, we encode the syscall number into the instruction.
  */
+#ifndef CONFIG_AEABI
 #define SWI_SYS_SIGRETURN      (0xef000000|(__NR_sigreturn))
 #define SWI_SYS_RT_SIGRETURN   (0xef000000|(__NR_rt_sigreturn))
+#else
+#define SWI_SYS_SIGRETURN       (0xef000000)
+#define SWI_SYS_RT_SIGRETURN    (0xef000000)
+#endif
 
 /*
  * With EABI, the syscall number has to be loaded into r7.
#1 lore raw
Quoted 7 lines · ye janboe

commit b4e8bde513a9a477c30c8769073ced7b59676d48

Author: janboe <[email protected]>
Date:   Thu Mar 6 23:00:23 2008 +0800

fix signal return code when enable CONFIG_OABI_COMPAT. because this will make kernel report this syscall obsolete.

This is all horribly broken for OABI compat anyway (because __NR_* don't contain the right prefix). So this patch doesn't actually fix the real problem.

author
#2 lore raw

Russell

I resubmit my patch, please review it.
Thanks

commit 31644e57359644d3f376f293f1a45b7c181175b6

Author: janboe <[email protected]>
Date:   Thu Mar 6 23:00:23 2008 +0800

fix signal return code when enable CONFIG_OABI_COMPAT

arch/arm/kernel/signal.c +1 -2
index 54cdf1a..ef2f86a 100644
@@ -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.

2008/3/6, Russell King - ARM Linux <[email protected]>:

Quoted 14 lines · ye janboe
Quoted 7 lines

commit b4e8bde513a9a477c30c8769073ced7b59676d48

Author: janboe <[email protected]>
Date:   Thu Mar 6 23:00:23 2008 +0800

fix signal return code when enable CONFIG_OABI_COMPAT. because this will make kernel report this syscall obsolete.

This is all horribly broken for OABI compat anyway (because __NR_* don't
contain the right prefix). So this patch doesn't actually fix the real problem.

#3 lore raw
Quoted 3 lines · ye janboe

Russell

I resubmit my patch, please review it.

Having thought about this, yes, this fix will do. Please submit to the patch system. Thanks.

Quoted 43 lines

Thanks

commit 31644e57359644d3f376f293f1a45b7c181175b6

Author: janboe <[email protected]>
Date:   Thu Mar 6 23:00:23 2008 +0800

fix signal return code when enable CONFIG_OABI_COMPAT

arch/arm/kernel/signal.c +2 -2
index 54cdf1a..ef2f86a 100644
@@ -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.

2008/3/6, Russell King - ARM Linux <[email protected]>:

Quoted 14 lines · ye janboe
Quoted 7 lines

commit b4e8bde513a9a477c30c8769073ced7b59676d48

Author: janboe <[email protected]>
Date:   Thu Mar 6 23:00:23 2008 +0800

fix signal return code when enable CONFIG_OABI_COMPAT. because this will make kernel report this syscall obsolete.

This is all horribly broken for OABI compat anyway (because __NR_* don't
contain the right prefix). So this patch doesn't actually fix the real problem.