powerpc: Wire up sys_userfaultfd()
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 8 Sep 2015 05:16:09 +0000 (15:16 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 9 Sep 2015 02:51:15 +0000 (12:51 +1000)
The selftest passes on 64-bit LE and BE.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/systbl.h
arch/powerpc/include/asm/unistd.h
arch/powerpc/include/uapi/asm/unistd.h

index 71f2b3f..4d65499 100644 (file)
@@ -368,3 +368,4 @@ SYSCALL_SPU(memfd_create)
 SYSCALL_SPU(bpf)
 COMPAT_SYS(execveat)
 PPC64ONLY(switch_endian)
+SYSCALL_SPU(userfaultfd)
index f4f8b66..4a055b6 100644 (file)
@@ -12,7 +12,7 @@
 #include <uapi/asm/unistd.h>
 
 
-#define __NR_syscalls          364
+#define __NR_syscalls          365
 
 #define __NR__exit __NR_exit
 #define NR_syscalls    __NR_syscalls
index e4aa173..6ad58d4 100644 (file)
 #define __NR_bpf               361
 #define __NR_execveat          362
 #define __NR_switch_endian     363
+#define __NR_userfaultfd       364
 
 #endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */