s390: wire up userfaultfd system call
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 9 Sep 2015 07:39:58 +0000 (09:39 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 17 Sep 2015 11:43:43 +0000 (13:43 +0200)
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/uapi/asm/unistd.h
arch/s390/kernel/syscalls.S
tools/testing/selftests/vm/userfaultfd.c

index 59d2bb4e2d0cf0802618d40b88afdaba08c8c963..1f4acec63d0556cbcb61f3922e7b230e1f7999f0 100644 (file)
 #define __NR_s390_pci_mmio_write       352
 #define __NR_s390_pci_mmio_read                353
 #define __NR_execveat          354
-#define NR_syscalls 355
+#define __NR_userfaultfd       355
+#define NR_syscalls 356
 
 /* 
  * There are some system calls that are not present on 64 bit, some
index f3f4a137aef6e9bc1d4e23049cc6592aef86bf29..0c91f37f806595b2c6a4397928dee5c4f28cffda 100644 (file)
@@ -363,3 +363,4 @@ SYSCALL(sys_bpf,compat_sys_bpf)
 SYSCALL(sys_s390_pci_mmio_write,compat_sys_s390_pci_mmio_write)
 SYSCALL(sys_s390_pci_mmio_read,compat_sys_s390_pci_mmio_read)
 SYSCALL(sys_execveat,compat_sys_execveat)
+SYSCALL(sys_userfaultfd,sys_userfaultfd)               /* 355 */
index 2c7cca6f26a45c215b43b44a7f5c9dddceee301c..7c1d958857d2d110c3617b294069fb5ee91b585b 100644 (file)
@@ -72,6 +72,8 @@
 #define __NR_userfaultfd 374
 #elif defined(__powewrpc__)
 #define __NR_userfaultfd 364
+#elif defined(__s390__)
+#define __NR_userfaultfd 355
 #else
 #error "missing __NR_userfaultfd definition"
 #endif