Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 4th, 2012  |  syntax: None  |  size: 1.05 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. fixed fgrlx compilation error on 32-bit x86 arch with kernel 3.3-rc4 due to com$
  2. https://github.com/torvalds/linux/commit/f94edacf998516ac9d849f7bc6949a703977a7$
  3. later modified (in 3.3-rc5) by commit:
  4. https://github.com/torvalds/linux/commit/7e16838d94b566a17b65231073d179bc04d590$
  5. and finally backported to kernel 3.2.8.
  6.  
  7. Signed-off-by: Gianluca Gennari <gennarone@gmail.com>
  8. ---
  9.  firegl_public.c |    6 ++++++
  10.  1 files changed, 6 insertions(+), 0 deletions(-)
  11.  
  12. diff --git a/firegl_public.c b/firegl_public.c
  13. index 6e0aa82..cb9e217 100644
  14. --- a/firegl_public.c
  15. +++ b/firegl_public.c
  16. @@ -5797,10 +5797,16 @@ void ATI_API_CALL KCL_fpu_begin(void)
  17.  #ifdef CONFIG_X86_64
  18.      kernel_fpu_begin();
  19.  #else
  20. +#ifndef TS_USEDFPU
  21. +    preempt_disable();
  22. +    if (__thread_has_fpu(current))
  23. +        __save_init_fpu(current);
  24. +#else
  25.      struct thread_info *cur_task = current_thread_info();
  26.      preempt_disable();
  27.      if (cur_task->status & TS_USEDFPU)
  28.          __save_init_fpu(cur_task->task);
  29. +#endif
  30.      else
  31.          clts();
  32.  #endif
  33. --
  34. 1.7.5.4