This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 1/2] x86-64/setcontext: Pop the pointer into %rdx after syscall
On Sun, Apr 29, 2018 at 2:03 PM, Florian Weimer <fweimer@redhat.com> wrote:
> On 04/26/2018 02:17 PM, H.J. Lu wrote:
>>
>> + /* Pop the pointer into RDX which is preserved by the syscall. */
>> + popq %rdx
>
>
> Sorry, the comment is a bit unclear. Why do you need to restore %rdx if it
> is preserved by the system call? Maybe it becomes clearer with a future
> change?
>
Here is the patch to use it:
https://github.com/hjl-tools/glibc/commit/182ce0987aada98b2d606276d4aa4fbd2527031b
--
H.J.