* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
+#include <linux/config.h>
#include <asm/unistd.h>
@ r8 = syscall table
.type sys_syscall, #function
sys_syscall:
- bic scno, r0, #__NR_OABI_SYSCALL_BASE
+ eor scno, r0, #__NR_OABI_SYSCALL_BASE
cmp scno, #__NR_syscall - __NR_SYSCALL_BASE
cmpne scno, #NR_syscalls @ check range
stmloia sp, {r5, r6} @ shuffle args
streq r5, [sp, #4]
beq do_mmap2
mov r0, #-EINVAL
- mov pc, lr
+ RETINSTR(mov,pc, lr)
#else
str r5, [sp, #4]
b do_mmap2