ARM: wire up getrandom syscall
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 8 Aug 2014 09:56:34 +0000 (10:56 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 9 Aug 2014 13:07:53 +0000 (14:07 +0100)
Add the new getrandom syscall for ARM.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/unistd.h
arch/arm/include/uapi/asm/unistd.h
arch/arm/kernel/calls.S

index 21ca0cebcab06f7f1ebbb123c425164d88b2f998..32640c431a087f682ff461f971ca0c7c960c737e 100644 (file)
@@ -19,7 +19,7 @@
  * This may need to be greater than __NR_last_syscall+1 in order to
  * 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
index 767ea204334efffdd1966fb595fa90e1b1da24bf..aa9e9262ace43bdc2b8face0ee8ab448b3479746 100644 (file)
 #define __NR_sched_getattr             (__NR_SYSCALL_BASE+381)
 #define __NR_renameat2                 (__NR_SYSCALL_BASE+382)
 #define __NR_seccomp                   (__NR_SYSCALL_BASE+383)
+#define __NR_getrandom                 (__NR_SYSCALL_BASE+384)
 
 /*
  * The following SWIs are ARM private.
index bea85f97f3633b48eb307a154910b563f40187c6..8e95c9ec94945790ee0cedc9ddd9af35854b398f 100644 (file)
                CALL(sys_sched_getattr)
                CALL(sys_renameat2)
                CALL(sys_seccomp)
+               CALL(sys_getrandom)
 #ifndef syscalls_counted
 .equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls
 #define syscalls_counted