aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2024-10-22 19:16:42 -0400
committerRich Felker <dalias@aerifal.cx>2024-10-22 19:26:31 -0400
commit9b6a24f9c56caf70289c1fa3470f4841808ef3b7 (patch)
tree5777d32217d2f697632c09c9cbae7d6dbc65086e
parentf2375aacac13848cb407dfa39bd06eef576d5f2a (diff)
downloadmusl-9b6a24f9c56caf70289c1fa3470f4841808ef3b7.zip
musl-9b6a24f9c56caf70289c1fa3470f4841808ef3b7.tar.gz
musl-9b6a24f9c56caf70289c1fa3470f4841808ef3b7.tar.bz2
wire up vdso clock_gettime for riscv32 and riscv64
-rw-r--r--arch/riscv32/syscall_arch.h3
-rw-r--r--arch/riscv64/syscall_arch.h3
2 files changed, 2 insertions, 4 deletions
diff --git a/arch/riscv32/syscall_arch.h b/arch/riscv32/syscall_arch.h
index c507f15..70d2773 100644
--- a/arch/riscv32/syscall_arch.h
+++ b/arch/riscv32/syscall_arch.h
@@ -73,8 +73,7 @@ static inline long __syscall6(long n, long a, long b, long c, long d, long e, lo
}
#define VDSO_USEFUL
-/* We don't have a clock_gettime function.
#define VDSO_CGT_SYM "__vdso_clock_gettime"
-#define VDSO_CGT_VER "LINUX_2.6" */
+#define VDSO_CGT_VER "LINUX_4.15"
#define IPC_64 0
diff --git a/arch/riscv64/syscall_arch.h b/arch/riscv64/syscall_arch.h
index 7fd042c..81993fc 100644
--- a/arch/riscv64/syscall_arch.h
+++ b/arch/riscv64/syscall_arch.h
@@ -71,8 +71,7 @@ static inline long __syscall6(long n, long a, long b, long c, long d, long e, lo
}
#define VDSO_USEFUL
-/* We don't have a clock_gettime function.
#define VDSO_CGT_SYM "__vdso_clock_gettime"
-#define VDSO_CGT_VER "LINUX_2.6" */
+#define VDSO_CGT_VER "LINUX_4.15"
#define IPC_64 0