Advertisement
Guest User

Untitled

a guest
Oct 24th, 2012
596
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.55 KB | None | 0 0
  1. Signed-off-by: Gianluca Gennari <gennarone@gmail.com>
  2. ---
  3. --- firegl_public.c
  4. +++ firegl_public.c
  5. @@ -5797,10 +5797,16 @@ void ATI_API_CALL KCL_fpu_begin(void)
  6.  #ifdef CONFIG_X86_64
  7.      kernel_fpu_begin();
  8.  #else
  9. +#ifndef TS_USEDFPU
  10. +    preempt_disable();
  11. +    if (__thread_has_fpu(current))
  12. +        __save_init_fpu(current);
  13. +#else
  14.      struct thread_info *cur_task = current_thread_info();
  15.      preempt_disable();
  16.      if (cur_task->status & TS_USEDFPU)
  17.          __save_init_fpu(cur_task->task);
  18. +#endif
  19.      else
  20.          clts();
  21.  #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement