mips: add vdso support
authorHauke Mehrtens <hauke@hauke-m.de>
Tue, 26 Jan 2016 20:26:34 +0000 (21:26 +0100)
committerRich Felker <dalias@aerifal.cx>
Wed, 27 Jan 2016 17:40:24 +0000 (12:40 -0500)
commitb0bf52f3e9fd246762958821fdc2851add05d423
tree981d8556be59ecb30f5b2ce468651e40e0a2fd8f
parenta5ba2d7507eb6b4388c47f7893e025185496ff90
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.

In Linux kernel 4.4.0 the mips code returns -ENOSYS in case it can not
handle the vdso call and assumes the libc will call the original
syscall in this case. Handle this case in musl. Currently Linux kernel
4.4.0 handles the following types: CLOCK_REALTIME_COARSE,
CLOCK_MONOTONIC_COARSE, CLOCK_REALTIME and CLOCK_MONOTONIC.
arch/mips/syscall_arch.h