From: Masanori Ogino <masanori.ogino@gmail.com>
To: musl@lists.openwall.com
Subject: Re: musl without atomic instructions?
Date: Mon, 14 Mar 2016 11:55:15 +0900 [thread overview]
Message-ID: <CAA-4+jcTvve0EBxHrSuQXmHcRP3KvsUggrs9A_40BAFqLDkOyw@mail.gmail.com> (raw)
In-Reply-To: <20160314021357.GJ9349@brightrain.aerifal.cx>
2016-03-14 11:13 GMT+09:00 Rich Felker <dalias@libc.org>:
> IMO a vdso function should be added that makes the syscall, rather
> than having libc call the syscall directly; this would allow the
> kernel to automatically provide a better implementation in the future
> without the need to rebuild applications. Using a syscall for this is
> very slow. Working with kernel people to propose such a thing (or even
> implementing it and submitting kernel patches) is certainly one option
> for something to add to a GSoC project proposal to make it more
> substantial.
Well, it seems that I don't really understand vDSO.
My current understanding is, vDSO make it possible that:
1. programs targeting without-A processors use syscalls on without-A
processors, and
2. the programs use atomic instructions on with-A processors. (no
interruption, no context switching!)
(3. programs targeting with-A processors runs normally, without
calling such vDSO function)
Is it correct? If so, it would be really nice.
--
Masanori Ogino
next prev parent reply other threads:[~2016-03-14 2:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-12 23:47 Masanori Ogino
2016-03-13 0:21 ` Rich Felker
2016-03-13 0:54 ` Masanori Ogino
2016-03-14 1:34 ` Masanori Ogino
2016-03-14 2:13 ` Rich Felker
2016-03-14 2:55 ` Masanori Ogino [this message]
2016-03-14 3:43 ` Rich Felker
2016-03-14 4:24 ` Masanori Ogino
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=CAA-4+jcTvve0EBxHrSuQXmHcRP3KvsUggrs9A_40BAFqLDkOyw@mail.gmail.com \
--to=masanori.ogino@gmail.com \
--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).