提交 eb645253 编写于 作者: R Russell King

ARM: wire up getrandom syscall

Add the new getrandom syscall for ARM.
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 7fb00c2f
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
* This may need to be greater than __NR_last_syscall+1 in order to * This may need to be greater than __NR_last_syscall+1 in order to
* account for the padding in the syscall table * account for the padding in the syscall table
*/ */
#define __NR_syscalls (384) #define __NR_syscalls (388)
/* /*
* *NOTE*: This is a ghost syscall private to the kernel. Only the * *NOTE*: This is a ghost syscall private to the kernel. Only the
......
...@@ -410,6 +410,7 @@ ...@@ -410,6 +410,7 @@
#define __NR_sched_getattr (__NR_SYSCALL_BASE+381) #define __NR_sched_getattr (__NR_SYSCALL_BASE+381)
#define __NR_renameat2 (__NR_SYSCALL_BASE+382) #define __NR_renameat2 (__NR_SYSCALL_BASE+382)
#define __NR_seccomp (__NR_SYSCALL_BASE+383) #define __NR_seccomp (__NR_SYSCALL_BASE+383)
#define __NR_getrandom (__NR_SYSCALL_BASE+384)
/* /*
* The following SWIs are ARM private. * The following SWIs are ARM private.
......
...@@ -393,6 +393,7 @@ ...@@ -393,6 +393,7 @@
CALL(sys_sched_getattr) CALL(sys_sched_getattr)
CALL(sys_renameat2) CALL(sys_renameat2)
CALL(sys_seccomp) CALL(sys_seccomp)
CALL(sys_getrandom)
#ifndef syscalls_counted #ifndef syscalls_counted
.equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls .equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls
#define syscalls_counted #define syscalls_counted
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册