Skip to content

Commit 6127d12

Browse files
author
Russell King
committed
ARM: wire up new pkey syscalls
Wire up the new pkey syscalls for ARM. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
1 parent 04946fb commit 6127d12

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

arch/arm/include/asm/unistd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* This may need to be greater than __NR_last_syscall+1 in order to
2020
* account for the padding in the syscall table
2121
*/
22-
#define __NR_syscalls (396)
22+
#define __NR_syscalls (400)
2323

2424
#define __ARCH_WANT_STAT64
2525
#define __ARCH_WANT_SYS_GETHOSTNAME

arch/arm/include/uapi/asm/unistd.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,9 @@
420420
#define __NR_copy_file_range (__NR_SYSCALL_BASE+391)
421421
#define __NR_preadv2 (__NR_SYSCALL_BASE+392)
422422
#define __NR_pwritev2 (__NR_SYSCALL_BASE+393)
423+
#define __NR_pkey_mprotect (__NR_SYSCALL_BASE+394)
424+
#define __NR_pkey_alloc (__NR_SYSCALL_BASE+395)
425+
#define __NR_pkey_free (__NR_SYSCALL_BASE+396)
423426

424427
/*
425428
* The following SWIs are ARM private.

arch/arm/kernel/calls.S

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,9 @@
403403
CALL(sys_copy_file_range)
404404
CALL(sys_preadv2)
405405
CALL(sys_pwritev2)
406+
CALL(sys_pkey_mprotect)
407+
/* 395 */ CALL(sys_pkey_alloc)
408+
CALL(sys_pkey_free)
406409
#ifndef syscalls_counted
407410
.equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls
408411
#define syscalls_counted

0 commit comments

Comments
 (0)