Skip to content

Commit 208473c

Browse files
author
Russell King
committed
ARM: wire up new syscalls
Wire up the new userfaultfd and membarrier syscalls for ARM. Signed-off-by: Russell King <[email protected]>
1 parent 1f93e4a commit 208473c

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

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 (388)
22+
#define __NR_syscalls (392)
2323

2424
/*
2525
* *NOTE*: This is a ghost syscall private to the kernel. Only the

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,8 @@
414414
#define __NR_memfd_create (__NR_SYSCALL_BASE+385)
415415
#define __NR_bpf (__NR_SYSCALL_BASE+386)
416416
#define __NR_execveat (__NR_SYSCALL_BASE+387)
417+
#define __NR_userfaultfd (__NR_SYSCALL_BASE+388)
418+
#define __NR_membarrier (__NR_SYSCALL_BASE+389)
417419

418420
/*
419421
* The following SWIs are ARM private.

arch/arm/kernel/calls.S

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,8 @@
397397
/* 385 */ CALL(sys_memfd_create)
398398
CALL(sys_bpf)
399399
CALL(sys_execveat)
400+
CALL(sys_userfaultfd)
401+
CALL(sys_membarrier)
400402
#ifndef syscalls_counted
401403
.equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls
402404
#define syscalls_counted

0 commit comments

Comments
 (0)