Commit-ID:  53c489e1dfeb6092b9fb14eb73c2cbcb07224798
Gitweb:     https://git.kernel.org/tip/53c489e1dfeb6092b9fb14eb73c2cbcb07224798
Author:     Vincenzo Frascino <[email protected]>
AuthorDate: Fri, 21 Jun 2019 10:52:33 +0100
Committer:  Thomas Gleixner <[email protected]>
CommitDate: Sat, 22 Jun 2019 21:21:07 +0200

arm64: compat: Add missing syscall numbers

vDSO requires gettimeofday() and clock_gettime() syscalls to implement the
fallback mechanism.

Add the missing syscall numbers to unistd.h for arm64.

Signed-off-by: Vincenzo Frascino <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Tested-by: Shijith Thotton <[email protected]>
Tested-by: Andre Przywara <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: Catalin Marinas <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: Russell King <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: Paul Burton <[email protected]>
Cc: Daniel Lezcano <[email protected]>
Cc: Mark Salyzyn <[email protected]>
Cc: Peter Collingbourne <[email protected]>
Cc: Shuah Khan <[email protected]>
Cc: Dmitry Safonov <[email protected]>
Cc: Rasmus Villemoes <[email protected]>
Cc: Huw Davies <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]

---
 arch/arm64/include/asm/unistd.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm64/include/asm/unistd.h b/arch/arm64/include/asm/unistd.h
index c9f8dd421c5f..2a23614198f1 100644
--- a/arch/arm64/include/asm/unistd.h
+++ b/arch/arm64/include/asm/unistd.h
@@ -22,8 +22,13 @@
 #define __NR_compat_exit               1
 #define __NR_compat_read               3
 #define __NR_compat_write              4
+#define __NR_compat_gettimeofday       78
 #define __NR_compat_sigreturn          119
 #define __NR_compat_rt_sigreturn       173
+#define __NR_compat_clock_getres       247
+#define __NR_compat_clock_gettime      263
+#define __NR_compat_clock_gettime64    403
+#define __NR_compat_clock_getres_time64        406
 
 /*
  * The following SVCs are ARM private.

Reply via email to