diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-09-28 00:07:18 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-09-28 00:10:13 +0200 |
commit | 29d4591b07a4da53320e949557c6946c62c26bde (patch) | |
tree | ae703bab73f6185724e06996ee0c292dacb66d22 /sysdeps/mach/hurd/x86 | |
parent | 964d15a007d7fb1258f2ad7c8cf4afcfb9a65719 (diff) | |
download | glibc-29d4591b07a4da53320e949557c6946c62c26bde.zip glibc-29d4591b07a4da53320e949557c6946c62c26bde.tar.gz glibc-29d4591b07a4da53320e949557c6946c62c26bde.tar.bz2 |
hurd: Drop REG_GSFS and REG_ESDS from x86_64's ucontext
These are useless on x86_64, and __NGREG was actually wrong with them.
Diffstat (limited to 'sysdeps/mach/hurd/x86')
-rw-r--r-- | sysdeps/mach/hurd/x86/trampoline.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/mach/hurd/x86/trampoline.c b/sysdeps/mach/hurd/x86/trampoline.c index 6318c95..bc3f15e 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)); |