[IA64] Wire up getrandom() system call
authorTony Luck <tony.luck@intel.com>
Wed, 30 Jul 2014 21:05:15 +0000 (14:05 -0700)
committerTony Luck <tony.luck@intel.com>
Wed, 6 Aug 2014 21:37:12 +0000 (14:37 -0700)
See commit c6e9d6f38894798696f23c8084ca7edbf16ee895
    random: introduce getrandom(2) system call

for all the details (and even a manual page!)

Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/include/asm/unistd.h
arch/ia64/include/uapi/asm/unistd.h
arch/ia64/kernel/entry.S

index fb13dc5e8f8c7c34079664761f6fab1bf802a1c7..4254f5d3218c7ed4dc72c9ec2e966b331f3af3c0 100644 (file)
@@ -11,7 +11,7 @@
 
 
 
-#define NR_syscalls                    315 /* length of syscall table */
+#define NR_syscalls                    316 /* length of syscall table */
 
 /*
  * The following defines stop scripts/checksyscalls.sh from complaining about
index 7de0a2d65da42a09b6d8b34f75f175c326b329e9..99801c3be914afda7f30ccd7fe89306186ad1602 100644 (file)
 #define __NR_sched_setattr             1336
 #define __NR_sched_getattr             1337
 #define __NR_renameat2                 1338
+#define __NR_getrandom                 1339
 
 #endif /* _UAPI_ASM_IA64_UNISTD_H */
index ba3d03503e84fde7f714fda777acf254356b78e8..4c13837a9269faecf350be25c9bfd10053d86936 100644 (file)
@@ -1776,6 +1776,7 @@ sys_call_table:
        data8 sys_sched_setattr
        data8 sys_sched_getattr
        data8 sys_renameat2
+       data8 sys_getrandom
 
        .org sys_call_table + 8*NR_syscalls     // guard against failures to increase NR_syscalls
 #endif /* __IA64_ASM_PARAVIRTUALIZED_NATIVE */