diff mbox series

[hurd,commited] hurd: Make trampoline fill siginfo ss_sp from sc_uesp

Message ID 20201221023711.3875207-1-samuel.thibault@ens-lyon.org
State New
Headers show
Series [hurd,commited] hurd: Make trampoline fill siginfo ss_sp from sc_uesp | expand

Commit Message

Samuel Thibault Dec. 21, 2020, 2:37 a.m. UTC
Mach actually rather fills the uesp field, not esp.
---
 sysdeps/mach/hurd/i386/trampoline.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/sysdeps/mach/hurd/i386/trampoline.c b/sysdeps/mach/hurd/i386/trampoline.c
index 4a9cab1332..1777d0769d 100644
--- a/sysdeps/mach/hurd/i386/trampoline.c
+++ b/sysdeps/mach/hurd/i386/trampoline.c
@@ -63,7 +63,7 @@  static void fill_ucontext (ucontext_t *uc, const struct sigcontext *sc)
   uc->uc_flags = 0;
   uc->uc_link = NULL;
   uc->uc_sigmask = sc->sc_mask;
-  uc->uc_stack.ss_sp = (__ptr_t) sc->sc_esp;
+  uc->uc_stack.ss_sp = (__ptr_t) sc->sc_uesp;
   uc->uc_stack.ss_size = 0;
   uc->uc_stack.ss_flags = 0;