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 71f2b3f02cf8848425b26d92e6bd6f650ce726f8..4d65499ee1c115b32193dea7a9015c9e03e82e9c 100644 (file)
@@ -368,3 +368,4 @@ SYSCALL_SPU(memfd_create)
 SYSCALL_SPU(bpf)
 COMPAT_SYS(execveat)
 PPC64ONLY(switch_endian)
+SYSCALL_SPU(userfaultfd)
index f4f8b667d75be5614bd8f706b5573e21cdd9a685..4a055b6c2a64f0f4153a1c2dea557289d2e56941 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 e4aa173dae62361e3823f3eda242b2802cdd5da1..6ad58d4c879bf6a1018420540d73dc2efc5fc7da 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_ */