Skip to content
Commit 8b8f32b2 authored by H.J. Lu's avatar H.J. Lu
Browse files

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: default avatarH.J. Lu <hjl.tools@gmail.com>
Reviewed-by: default avatarCarlos 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.
parent d6cc1829
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment