aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2015-11-16 02:53:38 -0500
committerMichal Simek <michal.simek@xilinx.com>2016-05-16 03:18:01 -0400
commitfbce3befd60d40639bf3c6b60f7477b2f988f92d (patch)
tree610f74b079c3c469c9dd1be4b6d96f2224a81e3a
parent2dcd0af568b0cf583645c8a317dd12e344b1c72a (diff)
microblaze: Wire up userfaultfd, membarrier, mlock2 syscalls
Wire up new syscalls userfaultfd, membarrier and mlock2. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
-rw-r--r--arch/microblaze/include/asm/unistd.h2
-rw-r--r--arch/microblaze/include/uapi/asm/unistd.h3
-rw-r--r--arch/microblaze/kernel/syscall_table.S3
3 files changed, 7 insertions, 1 deletions
diff --git a/arch/microblaze/include/asm/unistd.h b/arch/microblaze/include/asm/unistd.h
index 76ed17b56fea..805ae5d712e8 100644
--- a/arch/microblaze/include/asm/unistd.h
+++ b/arch/microblaze/include/asm/unistd.h
@@ -38,6 +38,6 @@
38 38
39#endif /* __ASSEMBLY__ */ 39#endif /* __ASSEMBLY__ */
40 40
41#define __NR_syscalls 389 41#define __NR_syscalls 392
42 42
43#endif /* _ASM_MICROBLAZE_UNISTD_H */ 43#endif /* _ASM_MICROBLAZE_UNISTD_H */
diff --git a/arch/microblaze/include/uapi/asm/unistd.h b/arch/microblaze/include/uapi/asm/unistd.h
index 32850c73be09..a8bd3fa28bc7 100644
--- a/arch/microblaze/include/uapi/asm/unistd.h
+++ b/arch/microblaze/include/uapi/asm/unistd.h
@@ -404,5 +404,8 @@
404#define __NR_memfd_create 386 404#define __NR_memfd_create 386
405#define __NR_bpf 387 405#define __NR_bpf 387
406#define __NR_execveat 388 406#define __NR_execveat 388
407#define __NR_userfaultfd 389
408#define __NR_membarrier 390
409#define __NR_mlock2 391
407 410
408#endif /* _UAPI_ASM_MICROBLAZE_UNISTD_H */ 411#endif /* _UAPI_ASM_MICROBLAZE_UNISTD_H */
diff --git a/arch/microblaze/kernel/syscall_table.S b/arch/microblaze/kernel/syscall_table.S
index 29c8568ec55c..6b3dd99126d7 100644
--- a/arch/microblaze/kernel/syscall_table.S
+++ b/arch/microblaze/kernel/syscall_table.S
@@ -389,3 +389,6 @@ ENTRY(sys_call_table)
389 .long sys_memfd_create 389 .long sys_memfd_create
390 .long sys_bpf 390 .long sys_bpf
391 .long sys_execveat 391 .long sys_execveat
392 .long sys_userfaultfd
393 .long sys_membarrier /* 390 */
394 .long sys_mlock2