--- - branch: MAIN date: Wed Dec 19 15:10:46 UTC 2018 files: - new: '1.49' old: '1.48' path: src/sys/arch/mips/mips/fp.S pathrev: src/sys/arch/mips/mips/fp.S@1.49 type: modified id: 20181219T151046Z.b8830d8f55fee1abf82e2057565c57f2e6dcfe93 log: | Load curlwp into a0 to call fpu_save(curlwp), not fpu_save(garbage). The lwp argument to fpu_save was added by chuq in revision 1.14 of mips_fpu.c, but this call was not updated to pass it. This is the correct lwp to pass because we are in the middle of executing a kernel-emulated fp instruction, so curlwp must own the fpu state, and we are trying to write the fp registers to memory so we can adjust them there when ctc1 would fail. Fixes PR port-cobalt/53090, PR port-sgimips/53791. module: src subject: 'CVS commit: src/sys/arch/mips/mips' unixtime: '1545232246' user: riastradh