mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
hurd: Fix computing user stack pointer
Fixes b574ae0a28
"hurd: Implement sigreturn for x86_64"
Checked on x86_64-gnu.
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-Id: <20230515083323.1358039-5-bugaevc@gmail.com>
This commit is contained in:
parent
e333759f77
commit
114f1b7881
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ __sigreturn (struct sigcontext *scp)
|
|||
copy the registers onto the user's stack, switch there, pop and
|
||||
return. */
|
||||
|
||||
uintptr_t *usp = (uintptr_t *) scp->sc_ursp - 128;
|
||||
uintptr_t *usp = (uintptr_t *) (scp->sc_ursp - 128);
|
||||
|
||||
*--usp = scp->sc_rip;
|
||||
*--usp = scp->sc_rfl;
|
||||
|
|
Loading…
Add table
Reference in a new issue