about summary refs log tree commit diff
path: root/sysdeps/riscv/jmpbuf-unwind.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2018-04-26 05:01:20 -0700
committerH.J. Lu <hjl.tools@gmail.com>2018-05-02 06:26:19 -0700
commit15c19147a8361b7281519b9784b3b823c447cf7a (patch)
treeb58c6146268ffd5f7b6dc5897dad0871f24518b6 /sysdeps/riscv/jmpbuf-unwind.h
parent556f5c46c78f094d03b5e3e48900b7e4f312cc5e (diff)
downloadglibc-15c19147a8361b7281519b9784b3b823c447cf7a.tar.gz
glibc-15c19147a8361b7281519b9784b3b823c447cf7a.tar.xz
glibc-15c19147a8361b7281519b9784b3b823c447cf7a.zip
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.
Diffstat (limited to 'sysdeps/riscv/jmpbuf-unwind.h')
0 files changed, 0 insertions, 0 deletions