diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2015-04-03 18:25:14 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-04-07 19:09:20 -0400 |
commit | 1f6d2c29b08bbd29a3d3b8476e9a26546e03104e (patch) | |
tree | 5ad47f59ed30972d70b1dcaf5a7a4b89454462ae /arch/mips/kernel | |
parent | 27e28e8ec47a5ce335ebf25d34ca356c80635908 (diff) |
MIPS: Use `FPU_CSR_ALL_X' in `__build_clear_fpe'
Replace a hardcoded numeric bitmask for FCSR cause bits with
`FPU_CSR_ALL_X' in `__build_clear_fpe'.
Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/9684/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel')
-rw-r--r-- | arch/mips/kernel/genex.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kernel/genex.S b/arch/mips/kernel/genex.S index 2ebaabe3af15..07c4a25b16ea 100644 --- a/arch/mips/kernel/genex.S +++ b/arch/mips/kernel/genex.S | |||
@@ -360,7 +360,7 @@ NESTED(nmi_handler, PT_SIZE, sp) | |||
360 | .set mips1 | 360 | .set mips1 |
361 | SET_HARDFLOAT | 361 | SET_HARDFLOAT |
362 | cfc1 a1, fcr31 | 362 | cfc1 a1, fcr31 |
363 | li a2, ~(0x3f << 12) | 363 | li a2, ~FPU_CSR_ALL_X |
364 | and a2, a1 | 364 | and a2, a1 |
365 | ctc1 a2, fcr31 | 365 | ctc1 a2, fcr31 |
366 | .set pop | 366 | .set pop |