arm64: compat: wire up memfd_create and getrandom syscalls for aarch32 11/32911/1
authorWill Deacon <will.deacon@arm.com>
Mon, 11 Aug 2014 13:23:37 +0000 (14:23 +0100)
committerMaciej Wereski <m.wereski@partner.samsung.com>
Mon, 29 Dec 2014 08:31:36 +0000 (09:31 +0100)
arch/arm/ just grew support for the new memfd_create and getrandom
syscalls, so add them to our compat layer too.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Origin: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=a97a42c47608d0bb6f2dfc2e162cc84a27beb43a
Backported-by: Maciej Wereski <m.wereski@partner.samsung.com>
getrandom isn't wired.

Change-Id: I0bfb09e924d839ede0f998a73a4b9a395359a1b6
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
arch/arm64/include/asm/unistd32.h

index 58125bf..4e95cd3 100644 (file)
@@ -400,8 +400,15 @@ __SYSCALL(375, sys_setns)
 __SYSCALL(376, compat_sys_process_vm_readv)
 __SYSCALL(377, compat_sys_process_vm_writev)
 __SYSCALL(378, sys_ni_syscall)                 /* 378 for kcmp */
+__SYSCALL(379, sys_ni_syscall)                 /* 379 for finit_module */
+__SYSCALL(380, sys_ni_syscall)                 /* 380 for sched_setattr */
+__SYSCALL(381, sys_ni_syscall)                 /* 381 for sched_getattr */
+__SYSCALL(382, sys_ni_syscall)                 /* 382 for renameat2 */
+__SYSCALL(383, sys_ni_syscall)                 /* 383 for seccomp */
+__SYSCALL(384, sys_ni_syscall)                 /* 384 for getrandom */
+__SYSCALL(385, sys_memfd_create)
 
-#define __NR_compat_syscalls           379
+#define __NR_compat_syscalls           386
 
 /*
  * Compat syscall numbers used by the AArch64 kernel.