mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Re: [PATCH] mips: add vdso support
Date: Sat, 23 Jan 2016 18:29:34 -0500	[thread overview]
Message-ID: <20160123232933.GZ238@brightrain.aerifal.cx> (raw)
In-Reply-To: <1453581118-9569-1-git-send-email-hauke@hauke-m.de>

On Sat, Jan 23, 2016 at 09:31:58PM +0100, Hauke Mehrtens wrote:
> 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 <hauke@hauke-m.de>
> ---
>  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

Nice! Have you tested it on some real hardware with vdso support to
confirm that it's working properly?

Rich


  reply	other threads:[~2016-01-23 23:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-23 20:31 Hauke Mehrtens
2016-01-23 23:29 ` Rich Felker [this message]
2016-01-23 23:39   ` Hauke Mehrtens

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160123232933.GZ238@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).