Index: lib/libc/arch/mips/sys/getcontext.S =================================================================== RCS file: /cvsroot/src/lib/libc/arch/mips/sys/getcontext.S,v retrieving revision 1.4 diff -u -p -r1.4 getcontext.S --- lib/libc/arch/mips/sys/getcontext.S 14 Dec 2009 01:07:42 -0000 1.4 +++ lib/libc/arch/mips/sys/getcontext.S 10 Aug 2016 08:34:35 -0000 @@ -48,6 +48,9 @@ LEAF(_getcontext) bne a3, zero, 1f REG_PROLOGUE REG_S zero, (_OFFSETOF_UC_GREGS + _REG_V0 * SZREG)(a0) +#if defined(__mips_n32) || defined(__mips_n64) + REG_S t3, (_OFFSETOF_UC_GREGS + _REG_GP * SZREG)(a0) +#endif REG_S ra, (_OFFSETOF_UC_GREGS + _REG_EPC * SZREG)(a0) REG_EPILOGUE PIC_RETURN()