[PATCH 1/2] x86-64/setcontext: Pop the pointer into %rdx after syscall

Florian Weimer fweimer@redhat.com
Sun Apr 29 21:03:00 GMT 2018


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?

Thanks,
Florian



More information about the Libc-alpha mailing list