Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Signed-off-by: Gianluca Gennari <gennarone@gmail.com>
- ---
- --- firegl_public.c
- +++ firegl_public.c
- @@ -5797,10 +5797,16 @@ void ATI_API_CALL KCL_fpu_begin(void)
- #ifdef CONFIG_X86_64
- kernel_fpu_begin();
- #else
- +#ifndef TS_USEDFPU
- + preempt_disable();
- + if (__thread_has_fpu(current))
- + __save_init_fpu(current);
- +#else
- struct thread_info *cur_task = current_thread_info();
- preempt_disable();
- if (cur_task->status & TS_USEDFPU)
- __save_init_fpu(cur_task->task);
- +#endif
- else
- clts();
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement