mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
MIPS: Avoid FCSR sanitization when CONFIG_MIPS_FP_SUPPORT=n
When CONFIG_MIPS_FP_SUPPORT=n we don't support floating point, so we don't need to worry about floating point exceptions pending in the Floating point Control & Status Register (FCSR) during switch_to(). Stub out the __sanitize_fcr31() macro in this case. Signed-off-by: Paul Burton <paul.burton@mips.com> Patchwork: https://patchwork.linux-mips.org/patch/21010/ Cc: linux-mips@linux-mips.org
This commit is contained in:
parent
ea6a37373f
commit
36a498035b
@ -84,6 +84,7 @@ do { \
|
|||||||
* Check FCSR for any unmasked exceptions pending set with `ptrace',
|
* Check FCSR for any unmasked exceptions pending set with `ptrace',
|
||||||
* clear them and send a signal.
|
* clear them and send a signal.
|
||||||
*/
|
*/
|
||||||
|
#ifdef CONFIG_MIPS_FP_SUPPORT
|
||||||
# define __sanitize_fcr31(next) \
|
# define __sanitize_fcr31(next) \
|
||||||
do { \
|
do { \
|
||||||
unsigned long fcr31 = mask_fcr31_x(next->thread.fpu.fcr31); \
|
unsigned long fcr31 = mask_fcr31_x(next->thread.fpu.fcr31); \
|
||||||
@ -95,6 +96,9 @@ do { \
|
|||||||
force_fcr31_sig(fcr31, pc, next); \
|
force_fcr31_sig(fcr31, pc, next); \
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
#else
|
||||||
|
# define __sanitize_fcr31(next)
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* For newly created kernel threads switch_to() will return to
|
* For newly created kernel threads switch_to() will return to
|
||||||
|
Loading…
Reference in New Issue
Block a user