From: Nadav Har'El <n...@scylladb.com>
Committer: Nadav Har'El <n...@scylladb.com>
Branch: master

aarch64: add missing __NR_getrandom

Add missing __NR_getrandom definition to unbreak the aarch64 build.
The correct number is 278, because according to experts I found on
the Internet (;-)) in ARM64, unlike ARM, the system call numbers are
the ones from asm-generic.h.

It seems, by the way, that most of the other numbers in
include/api/aarch64/bits/syscall.h are wrong :-(

Signed-off-by: Nadav Har'El <n...@scylladb.com>

---
diff --git a/include/api/aarch64/bits/syscall.h b/include/api/aarch64/bits/syscall.h
--- a/include/api/aarch64/bits/syscall.h
+++ b/include/api/aarch64/bits/syscall.h
@@ -312,6 +312,7 @@
 #define __NR_process_vm_writev                 311
 #define __NR_kcmp                              312
 #define __NR_finit_module                      313
+#define __NR_getrandom                         278

 #undef __NR_fstatat
 #undef __NR_pread

--
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to