[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
PR/53791 CVS commit: src/sys/arch/mips/mips
The following reply was made to PR port-sgimips/53791; it has been noted by GNATS.
From: "Taylor R Campbell" <riastradh%netbsd.org@localhost>
Subject: PR/53791 CVS commit: src/sys/arch/mips/mips
Date: Wed, 19 Dec 2018 15:10:46 +0000
Module Name: src
Committed By: riastradh
Date: Wed Dec 19 15:10:46 UTC 2018
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.
To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/arch/mips/mips/fp.S
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Main Index |
Thread Index |