X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=toolchain%2Fmusl%2Fpatches%2F030-mips-add-vdso-support.patch;fp=toolchain%2Fmusl%2Fpatches%2F030-mips-add-vdso-support.patch;h=e4a15e323b28bbe247ce82866dc8fda1c8a06322;hb=b5d6256ca885be87cf8e2a69fefc7ac3248c7f72;hp=0000000000000000000000000000000000000000;hpb=9d0703f0161b5231f07f20e9ac6dadfe3c4925d3;p=lede-git%2F.git diff --git a/toolchain/musl/patches/030-mips-add-vdso-support.patch b/toolchain/musl/patches/030-mips-add-vdso-support.patch new file mode 100644 index 0000000000..e4a15e323b --- /dev/null +++ b/toolchain/musl/patches/030-mips-add-vdso-support.patch @@ -0,0 +1,29 @@ +From c29a29c3334344e0f3cfdec6130a6261514507a0 Mon Sep 17 00:00:00 2001 +From: Hauke Mehrtens +Date: Sat, 23 Jan 2016 16:23:09 +0100 +Subject: [PATCH 2/2] mips: add vdso support + +vdso support is available on mips starting with kernel 4.4, see kernel +commit a7f4df4e21 "MIPS: VDSO: Add implementations of gettimeofday() +and clock_gettime()" for details. + +Signed-off-by: Hauke Mehrtens +--- + arch/mips/syscall_arch.h | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/arch/mips/syscall_arch.h b/arch/mips/syscall_arch.h +index e74e0ad..39c0ea3 100644 +--- a/arch/mips/syscall_arch.h ++++ b/arch/mips/syscall_arch.h +@@ -161,3 +161,7 @@ static inline long __syscall6(long n, long a, long b, long c, long d, long e, lo + if (n == SYS_fstatat) __stat_fix(c); + return r2; + } ++ ++#define VDSO_USEFUL ++#define VDSO_CGT_SYM "__vdso_clock_gettime" ++#define VDSO_CGT_VER "LINUX_2.6" +-- +2.7.0.rc3 +