From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Re: Custom __set_thread_area for ARM
Date: Tue, 13 Jan 2015 22:09:46 -0500 [thread overview]
Message-ID: <20150114030946.GL4574@brightrain.aerifal.cx> (raw)
In-Reply-To: <CANfjmEDTu+TmiM6yvY_n4pTKRPRCzPftrR_b_bKA7WRc6ciZXw@mail.gmail.com>
On Tue, Jan 13, 2015 at 11:19:44PM +0300, Oleg Ranevskyy wrote:
> Dear community,
>
> Musl has a generic implementation of the __set_thread_area function in
> src/thread/__set_thread_area.c. It is not used for ARM though. There is a
> custom ARM implementation in src/thread/arm/__set_thread_area.s.
>
> Would you be able to clarify the following question please?
> Why musl doesn't define SYS_set_thread_area for ARM to utilize the generic
> function and uses custom __set_thread_area instead?
The ARM kernel does not implement SYS_set_thread_area. Instead it
provides an ARM-specific syscall. The asm file you're looking at uses
that instead.
BTW, this code is replaced in git master and the pending 1.1.6
release. It's part of the ARM atomics/TLS access overhaul.
Rich
next prev parent reply other threads:[~2015-01-14 3:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-13 20:19 Oleg Ranevskyy
2015-01-14 3:09 ` Rich Felker [this message]
2015-01-22 1:45 ` Andy Lutomirski
2015-01-22 5:10 ` Rich Felker
2015-01-27 23:32 ` Andy Lutomirski
2015-01-28 8:59 ` Szabolcs Nagy
2015-01-28 14:47 ` Rich Felker
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=20150114030946.GL4574@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).