From ccd1325bd5bdf9cccae2e8c10d2f756a02d3d777 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 5 Dec 1994 17:57:43 +0000 Subject: [PATCH] Use ENV[0].__jmpbuf[0]. --- sysdeps/mach/hurd/alpha/longjmp-ts.c | 16 ++++++++-------- sysdeps/mach/hurd/mips/longjmp-ts.c | 24 ++++++++++++------------ 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/sysdeps/mach/hurd/alpha/longjmp-ts.c b/sysdeps/mach/hurd/alpha/longjmp-ts.c index 8ee2b9a814..ad6f80cdb0 100644 --- a/sysdeps/mach/hurd/alpha/longjmp-ts.c +++ b/sysdeps/mach/hurd/alpha/longjmp-ts.c @@ -29,13 +29,13 @@ _hurd_longjmp_thread_state (void *state, jmp_buf env, int val) { struct alpha_thread_state *ts = state; - ts->r9 = env[0].__9; - ts->r11 = env[0].__11; - ts->r12 = env[0].__12; - ts->r13 = env[0].__13; - ts->r14 = env[0].__14; - ts->r15 = (long int) env[0].__fp; - ts->r30 = (long int) env[0].__sp; - ts->pc = (long int) env[0].__pc; + ts->r9 = env[0].__jmpbuf[0].__9; + ts->r11 = env[0].__jmpbuf[0].__11; + ts->r12 = env[0].__jmpbuf[0].__12; + ts->r13 = env[0].__jmpbuf[0].__13; + ts->r14 = env[0].__jmpbuf[0].__14; + ts->r15 = (long int) env[0].__jmpbuf[0].__fp; + ts->r30 = (long int) env[0].__jmpbuf[0].__sp; + ts->pc = (long int) env[0].__jmpbuf[0].__pc; ts->r0 = val ?: 1; } diff --git a/sysdeps/mach/hurd/mips/longjmp-ts.c b/sysdeps/mach/hurd/mips/longjmp-ts.c index ebf56bdb1c..980a2ceb94 100644 --- a/sysdeps/mach/hurd/mips/longjmp-ts.c +++ b/sysdeps/mach/hurd/mips/longjmp-ts.c @@ -29,17 +29,17 @@ _hurd_longjmp_thread_state (void *state, jmp_buf env, int val) { struct mips_thread_state *ts = state; - ts->r16 = env[0].__jmpbuf.__regs[0]; - ts->r17 = env[0].__jmpbuf.__regs[1]; - ts->r18 = env[0].__jmpbuf.__regs[2]; - ts->r19 = env[0].__jmpbuf.__regs[3]; - ts->r20 = env[0].__jmpbuf.__regs[4]; - ts->r21 = env[0].__jmpbuf.__regs[5]; - ts->r22 = env[0].__jmpbuf.__regs[6]; - ts->r23 = env[0].__jmpbuf.__regs[7]; - ts->r28 = (int) env[0].__jmpbuf.__gp; - ts->r29 = (int) env[0].__jmpbuf.__sp; - ts->r30 = (int) env[0].__jmpbuf.__fp; - ts->pc = (int) env[0].__jmpbuf.__pc; + ts->r16 = env[0].__jmpbuf[0].__regs[0]; + ts->r17 = env[0].__jmpbuf[0].__regs[1]; + ts->r18 = env[0].__jmpbuf[0].__regs[2]; + ts->r19 = env[0].__jmpbuf[0].__regs[3]; + ts->r20 = env[0].__jmpbuf[0].__regs[4]; + ts->r21 = env[0].__jmpbuf[0].__regs[5]; + ts->r22 = env[0].__jmpbuf[0].__regs[6]; + ts->r23 = env[0].__jmpbuf[0].__regs[7]; + ts->r28 = (int) env[0].__jmpbuf[0].__gp; + ts->r29 = (int) env[0].__jmpbuf[0].__sp; + ts->r30 = (int) env[0].__jmpbuf[0].__fp; + ts->pc = (int) env[0].__jmpbuf[0].__pc; ts->r2 = val ?: 1; }