microblaze: Add missing syscalls
authorMichal Simek <michal.simek@xilinx.com>
Tue, 15 Nov 2016 11:01:38 +0000 (12:01 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 15 Nov 2016 12:58:36 +0000 (13:58 +0100)
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>
arch/microblaze/include/asm/unistd.h
arch/microblaze/include/uapi/asm/unistd.h
arch/microblaze/kernel/syscall_table.S

index 805ae5d712e8baa63095199f1601ce548c26d606..032fed71223f54358a467d5df14d0b5fe176667a 100644 (file)
@@ -38,6 +38,6 @@
 
 #endif /* __ASSEMBLY__ */
 
-#define __NR_syscalls         392
+#define __NR_syscalls         398
 
 #endif /* _ASM_MICROBLAZE_UNISTD_H */
index a8bd3fa28bc7f4e97158fff49d25443524647b0d..d8086159d996dfdec4503fa95cf1638637f8932e 100644 (file)
 #define __NR_userfaultfd       389
 #define __NR_membarrier                390
 #define __NR_mlock2            391
+#define __NR_copy_file_range   392
+#define __NR_preadv2           393
+#define __NR_pwritev2          394
+#define __NR_pkey_mprotect     395
+#define __NR_pkey_alloc                396
+#define __NR_pkey_free         397
 
 #endif /* _UAPI_ASM_MICROBLAZE_UNISTD_H */
index 6b3dd99126d753a22a9ed270ec92761c2f936e27..6841c2df14d9acdfe30133baac0833111bf645d5 100644 (file)
@@ -392,3 +392,9 @@ ENTRY(sys_call_table)
        .long sys_userfaultfd
        .long sys_membarrier            /* 390 */
        .long sys_mlock2
+       .long sys_copy_file_range
+       .long sys_preadv2
+       .long sys_pwritev2
+       .long sys_pkey_mprotect         /* 395 */
+       .long sys_pkey_alloc
+       .long sys_pkey_free