]> sourceware.org Git - glibc.git/commit
x86-64/setcontext: Pop the pointer into %rdx after syscall
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 2 May 2018 13:21:09 +0000 (06:21 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 2 May 2018 13:21:24 +0000 (06:21 -0700)
commit8b8f32b2800a132b4d95053fad7c9b44309f1d6e
treeaf54b6e0201e547f58dbeb460b9aa2a48b782e38
parentd6cc1829aa31b6fb060f24dffd28aa6705cdd33a
x86-64/setcontext: Pop the pointer into %rdx after syscall

To prepare for shadow stack support, pop 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/setcontext.S (__setcontext):
Pop the pointer into %rdx after syscall and use %rdx, instead
of %rsi, to restore context.
ChangeLog
sysdeps/unix/sysv/linux/x86_64/setcontext.S
This page took 0.041133 seconds and 5 git commands to generate.