x86-64/swapcontext: Restore the pointer into %rdx after syscall
commit15c19147a8361b7281519b9784b3b823c447cf7a
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 26 Apr 2018 12:01:20 +0000 (26 05:01 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 2 May 2018 13:26:19 +0000 (2 06:26 -0700)
treeb58c6146268ffd5f7b6dc5897dad0871f24518b6
parent556f5c46c78f094d03b5e3e48900b7e4f312cc5e
x86-64/swapcontext: Restore the pointer into %rdx after syscall

To prepare for shadow stack support, restore the pointer into %rdx after
syscall and use %rdx, instead of %rsi, to restore context.  There is no
functional change.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
* sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
Restore the pointer into %rdx, after syscall and use %rdx,
instead of %rsi, to restore context.
sysdeps/unix/sysv/linux/x86_64/swapcontext.S