Skip to content

Commit eb64525

Browse files
author
Russell King
committed
ARM: wire up getrandom syscall
Add the new getrandom syscall for ARM. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent 7fb00c2 commit eb64525

3 files changed

Lines changed: 3 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 (384)
22+
#define __NR_syscalls (388)
2323

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@
410410
#define __NR_sched_getattr (__NR_SYSCALL_BASE+381)
411411
#define __NR_renameat2 (__NR_SYSCALL_BASE+382)
412412
#define __NR_seccomp (__NR_SYSCALL_BASE+383)
413+
#define __NR_getrandom (__NR_SYSCALL_BASE+384)
413414

414415
/*
415416
* The following SWIs are ARM private.

arch/arm/kernel/calls.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@
393393
CALL(sys_sched_getattr)
394394
CALL(sys_renameat2)
395395
CALL(sys_seccomp)
396+
CALL(sys_getrandom)
396397
#ifndef syscalls_counted
397398
.equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls
398399
#define syscalls_counted

0 commit comments

Comments
 (0)