aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/mach/hurd/x86/trampoline.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mach/hurd/x86/trampoline.c')
-rw-r--r--sysdeps/mach/hurd/x86/trampoline.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/mach/hurd/x86/trampoline.c b/sysdeps/mach/hurd/x86/trampoline.c
index 6318c9528a..bc3f15e1e0 100644
--- a/sysdeps/mach/hurd/x86/trampoline.c
+++ b/sysdeps/mach/hurd/x86/trampoline.c
@@ -79,8 +79,8 @@ static void fill_ucontext (ucontext_t *uc, const struct sigcontext *sc)
/* Registers. */
#ifdef __x86_64__
- memcpy (&uc->uc_mcontext.gregs[REG_GSFS], &sc->sc_gs,
- (REG_ERR - REG_GSFS) * sizeof (long));
+ memcpy (&uc->uc_mcontext.gregs[REG_R8], &sc->sc_r8,
+ (REG_ERR - REG_R8) * sizeof (long));
#else
memcpy (&uc->uc_mcontext.gregs[REG_GS], &sc->sc_gs,
(REG_TRAPNO - REG_GS) * sizeof (int));