From: Hydro Flask <hydroflask@yqxmail.com>
To: musl@lists.openwall.com
Subject: Re: [musl] x86_64/__set_thread_area clobber of rcx and r11
Date: Mon, 09 Nov 2020 13:59:34 -0800 [thread overview]
Message-ID: <c7fc041cc9f112e595ef236882ae1975@yqxmail.com> (raw)
In-Reply-To: <ed5fc497-3225-efb4-4ca9-31142ac3e749@redhat.com>
On 2020-11-09 13:48, Harald Hoyer wrote:
> In src/thread/x86_64/__set_thread_area.s, I don't see any special
> handling of the registers rcx and r11,
> which will be clobbered by the syscall. Is that an oversight, or am I
> missing something?
The x86_64 ABI states that code should assume all caller-saved
registers, which include rcx and r11, are clobbered
after the function call. __set_thread_area itself doesn't use rcx or
r11, so no other special handling is needed.
next prev parent reply other threads:[~2020-11-09 21:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-09 21:48 Harald Hoyer
2020-11-09 21:59 ` Hydro Flask [this message]
2020-11-10 8:20 ` Harald Hoyer
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=c7fc041cc9f112e595ef236882ae1975@yqxmail.com \
--to=hydroflask@yqxmail.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).