summaryrefslogtreecommitdiffstats
path: root/arch/microblaze
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2016-11-15 06:01:38 -0500
committerMichal Simek <michal.simek@xilinx.com>2016-11-15 07:58:36 -0500
commit7181e5590e5ba898804aef3ee6be7f27606e6f8b (patch)
tree45a840d8923f7d868ce397a8cb6059b0ecaba208 /arch/microblaze
parent63b7c83ebea06d23dfd1548391515614b5765ad8 (diff)
microblaze: Add missing syscalls
The patch adds new syscalls copy_file_range, preadv2, pwritev2, pkey_mprotect, pkey_alloc, pkey_free Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/microblaze')
-rw-r--r--arch/microblaze/include/asm/unistd.h2
-rw-r--r--arch/microblaze/include/uapi/asm/unistd.h6
-rw-r--r--arch/microblaze/kernel/syscall_table.S6
3 files changed, 13 insertions, 1 deletions
diff --git a/arch/microblaze/include/asm/unistd.h b/arch/microblaze/include/asm/unistd.h
index 805ae5d712e8..032fed71223f 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 392 41#define __NR_syscalls 398
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 a8bd3fa28bc7..d8086159d996 100644
--- a/arch/microblaze/include/uapi/asm/unistd.h
+++ b/arch/microblaze/include/uapi/asm/unistd.h
@@ -407,5 +407,11 @@
407#define __NR_userfaultfd 389 407#define __NR_userfaultfd 389
408#define __NR_membarrier 390 408#define __NR_membarrier 390
409#define __NR_mlock2 391 409#define __NR_mlock2 391
410#define __NR_copy_file_range 392
411#define __NR_preadv2 393
412#define __NR_pwritev2 394
413#define __NR_pkey_mprotect 395
414#define __NR_pkey_alloc 396
415#define __NR_pkey_free 397
410 416
411#endif /* _UAPI_ASM_MICROBLAZE_UNISTD_H */ 417#endif /* _UAPI_ASM_MICROBLAZE_UNISTD_H */
diff --git a/arch/microblaze/kernel/syscall_table.S b/arch/microblaze/kernel/syscall_table.S
index 6b3dd99126d7..6841c2df14d9 100644
--- a/arch/microblaze/kernel/syscall_table.S
+++ b/arch/microblaze/kernel/syscall_table.S
@@ -392,3 +392,9 @@ ENTRY(sys_call_table)
392 .long sys_userfaultfd 392 .long sys_userfaultfd
393 .long sys_membarrier /* 390 */ 393 .long sys_membarrier /* 390 */
394 .long sys_mlock2 394 .long sys_mlock2
395 .long sys_copy_file_range
396 .long sys_preadv2
397 .long sys_pwritev2
398 .long sys_pkey_mprotect /* 395 */
399 .long sys_pkey_alloc
400 .long sys_pkey_free