diff options
| author | simonb <simonb@NetBSD.org> | 2004-07-03 05:10:06 +0000 |
|---|---|---|
| committer | simonb <simonb@NetBSD.org> | 2004-07-03 05:10:06 +0000 |
| commit | b4f0be566a5ee8680ce7e8a44fb0f179607a0fd6 (patch) | |
| tree | 3809bfd45916f904fc0d665ba77c0569eff2c05d /lib/libpthread | |
| parent | 7f2fc41e2f407d1a7dd1c7e49848c72fe6586e3d (diff) | |
Catch up with changes to __fpregset_t.
In __longjmp14(), copy the FP CSR from the correct array and array slot.
Completes fix for PR port-mips/25942.
Diffstat (limited to 'lib/libpthread')
| -rw-r--r-- | lib/libpthread/arch/mips/pthread_md.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libpthread/arch/mips/pthread_md.h b/lib/libpthread/arch/mips/pthread_md.h index c7409e838fe..239535967a4 100644 --- a/lib/libpthread/arch/mips/pthread_md.h +++ b/lib/libpthread/arch/mips/pthread_md.h @@ -1,4 +1,4 @@ -/* $NetBSD: pthread_md.h,v 1.4 2003/11/26 08:36:49 he Exp $ */ +/* $NetBSD: pthread_md.h,v 1.5 2004/07/03 05:10:06 simonb Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -94,16 +94,16 @@ do { \ #define PTHREAD_UCONTEXT_TO_FPREG(freg, uc) \ do { \ - memcpy((freg), &(uc)->uc_mcontext.__fpregs.__fp_r.__fp_regs32, \ - sizeof((uc)->uc_mcontext.__fpregs.__fp_r.__fp_regs32)); \ + memcpy((freg), &(uc)->uc_mcontext.__fpregs.__fp_r.__fp_regs, \ + sizeof((uc)->uc_mcontext.__fpregs.__fp_r.__fp_regs)); \ (freg)->r_regs[_R_FSR - _FPBASE] = \ (uc)->uc_mcontext.__fpregs.__fp_csr; \ } while (/*CONSTCOND*/0) #define PTHREAD_FPREG_TO_UCONTEXT(uc, freg) \ do { \ - memcpy(&(uc)->uc_mcontext.__fpregs.__fp_r.__fp_regs32, (freg), \ - sizeof((uc)->uc_mcontext.__fpregs.__fp_r.__fp_regs32)); \ + memcpy(&(uc)->uc_mcontext.__fpregs.__fp_r.__fp_regs, (freg), \ + sizeof((uc)->uc_mcontext.__fpregs.__fp_r.__fp_regs)); \ (uc)->uc_mcontext.__fpregs.__fp_csr = \ (freg)->r_regs[_R_FSR - _FPBASE]; \ \ |
