]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
avr32: wire up pkey syscalls
authorHans-Christian Noren Egtvedt <egtvedt@samfundet.no>
Mon, 12 Dec 2016 08:23:09 +0000 (09:23 +0100)
committerHans-Christian Noren Egtvedt <egtvedt@samfundet.no>
Mon, 12 Dec 2016 08:24:13 +0000 (09:24 +0100)
This patch wires up the new pkey_mprotect, pkey_alloc and pkey_free syscalls on
AVR32.

arch/avr32/include/uapi/asm/unistd.h
arch/avr32/kernel/syscall_table.S

index 2c8a0d2b6c30b54fed09f3d363de235e45959ec3..236505d889d097f309f0051b1700cf831d1dd498 100644 (file)
 #define __NR_copy_file_range    325
 #define __NR_preadv2            326
 #define __NR_pwritev2           327
+#define __NR_pkey_mprotect      328
+#define __NR_pkey_alloc         329
+#define __NR_pkey_free          330
 
 #endif /* _UAPI__ASM_AVR32_UNISTD_H */
index 7b348ba70e41d2e0f1816f56732e72368a435e2c..774ce57f49482dfc3ea5e5ebad0216cae04def0d 100644 (file)
@@ -341,4 +341,7 @@ sys_call_table:
        .long __sys_copy_file_range
        .long __sys_preadv2
        .long __sys_pwritev2
+       .long sys_pkey_mprotect
+       .long sys_pkey_alloc
+       .long sys_pkey_free /* 330 */
        .long sys_ni_syscall /* r8 is saturated at nr_syscalls */