diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-08-09 03:43:11 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-08-09 09:07:59 -0400 |
commit | e57e41931134e09fc6c03c8d4eb19d516cc6e59b (patch) | |
tree | d6362cee01fc106146ea1d9c892fa3c7a057c51e | |
parent | eb6452537b280652eee66801ec97cc369e27e5d8 (diff) |
ARM: wire up memfd_create syscall
Add the memfd_create syscall to ARM.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r-- | arch/arm/include/uapi/asm/unistd.h | 1 | ||||
-rw-r--r-- | arch/arm/kernel/calls.S | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/uapi/asm/unistd.h b/arch/arm/include/uapi/asm/unistd.h index aa9e9262ace4..3aaa75cae90c 100644 --- a/arch/arm/include/uapi/asm/unistd.h +++ b/arch/arm/include/uapi/asm/unistd.h | |||
@@ -411,6 +411,7 @@ | |||
411 | #define __NR_renameat2 (__NR_SYSCALL_BASE+382) | 411 | #define __NR_renameat2 (__NR_SYSCALL_BASE+382) |
412 | #define __NR_seccomp (__NR_SYSCALL_BASE+383) | 412 | #define __NR_seccomp (__NR_SYSCALL_BASE+383) |
413 | #define __NR_getrandom (__NR_SYSCALL_BASE+384) | 413 | #define __NR_getrandom (__NR_SYSCALL_BASE+384) |
414 | #define __NR_memfd_create (__NR_SYSCALL_BASE+385) | ||
414 | 415 | ||
415 | /* | 416 | /* |
416 | * The following SWIs are ARM private. | 417 | * The following SWIs are ARM private. |
diff --git a/arch/arm/kernel/calls.S b/arch/arm/kernel/calls.S index 8e95c9ec9494..9f899d8fdcca 100644 --- a/arch/arm/kernel/calls.S +++ b/arch/arm/kernel/calls.S | |||
@@ -394,6 +394,7 @@ | |||
394 | CALL(sys_renameat2) | 394 | CALL(sys_renameat2) |
395 | CALL(sys_seccomp) | 395 | CALL(sys_seccomp) |
396 | CALL(sys_getrandom) | 396 | CALL(sys_getrandom) |
397 | /* 385 */ CALL(sys_memfd_create) | ||
397 | #ifndef syscalls_counted | 398 | #ifndef syscalls_counted |
398 | .equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls | 399 | .equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls |
399 | #define syscalls_counted | 400 | #define syscalls_counted |