Skip to content

Commit

Permalink
avr32: wire up pkey syscalls
Browse files Browse the repository at this point in the history
This patch wires up the new pkey_mprotect, pkey_alloc and pkey_free syscalls on
AVR32.
  • Loading branch information
egtvedt committed Dec 12, 2016
1 parent 79ba181 commit 8712a5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/avr32/include/uapi/asm/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -340,5 +340,8 @@
#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 */
3 changes: 3 additions & 0 deletions arch/avr32/kernel/syscall_table.S
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 8712a5b

Please sign in to comment.