musl: mips: add vdso support
[openwrt/staging/florian.git] / toolchain / musl / patches / 030-mips-add-vdso-support.patch
1 From c29a29c3334344e0f3cfdec6130a6261514507a0 Mon Sep 17 00:00:00 2001
2 From: Hauke Mehrtens <hauke@hauke-m.de>
3 Date: Sat, 23 Jan 2016 16:23:09 +0100
4 Subject: [PATCH 2/2] mips: add vdso support
5
6 vdso support is available on mips starting with kernel 4.4, see kernel
7 commit a7f4df4e21 "MIPS: VDSO: Add implementations of gettimeofday()
8 and clock_gettime()" for details.
9
10 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 ---
12 arch/mips/syscall_arch.h | 4 ++++
13 1 file changed, 4 insertions(+)
14
15 diff --git a/arch/mips/syscall_arch.h b/arch/mips/syscall_arch.h
16 index e74e0ad..39c0ea3 100644
17 --- a/arch/mips/syscall_arch.h
18 +++ b/arch/mips/syscall_arch.h
19 @@ -161,3 +161,7 @@ static inline long __syscall6(long n, long a, long b, long c, long d, long e, lo
20 if (n == SYS_fstatat) __stat_fix(c);
21 return r2;
22 }
23 +
24 +#define VDSO_USEFUL
25 +#define VDSO_CGT_SYM "__vdso_clock_gettime"
26 +#define VDSO_CGT_VER "LINUX_2.6"
27 --
28 2.7.0.rc3
29