mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 07:01:23 +00:00
[MIPS] Fixup secure computing stuff.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
01754bbc69
commit
293c5bd13f
15 changed files with 98 additions and 47 deletions
|
@ -46,10 +46,12 @@ struct task_struct;
|
|||
|
||||
#define __mips_mt_fpaff_switch_to(prev) \
|
||||
do { \
|
||||
struct thread_info *__prev_ti = task_thread_info(prev); \
|
||||
\
|
||||
if (cpu_has_fpu && \
|
||||
(prev->thread.mflags & MF_FPUBOUND) && \
|
||||
(!(KSTK_STATUS(prev) & ST0_CU1))) { \
|
||||
prev->thread.mflags &= ~MF_FPUBOUND; \
|
||||
test_ti_thread_flag(__prev_ti, TIF_FPUBOUND) && \
|
||||
(!(KSTK_STATUS(prev) & ST0_CU1))) { \
|
||||
clear_ti_thread_flag(__prev_ti, TIF_FPUBOUND); \
|
||||
prev->cpus_allowed = prev->thread.user_cpus_allowed; \
|
||||
} \
|
||||
next->thread.emulated_fp = 0; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue