]> git.pld-linux.org Git - packages/kernel.git/blob - 24_kernel_ia32-and-x86_64-fix-fpu-state.patch
- obsolete
[packages/kernel.git] / 24_kernel_ia32-and-x86_64-fix-fpu-state.patch
1 Respin of the 2.6 version that went into BK head some hours ago.
2
3  - atomt
4
5 diff -Naur linux-2.4.26/include/asm-i386/i387.h linux-2.4.26-1/include/asm-i386/i387.h
6 --- linux-2.4.26/include/asm-i386/i387.h        2002-08-03 02:39:45.000000000 +0200
7 +++ linux-2.4.26-1/include/asm-i386/i387.h      2004-06-13 05:21:51.000000000 +0200
8 @@ -34,7 +34,7 @@
9  
10  #define clear_fpu( tsk ) do { \
11         if ( tsk->flags & PF_USEDFPU ) { \
12 -               asm volatile("fwait"); \
13 +               asm volatile("fnclex ; fwait"); \
14                 tsk->flags &= ~PF_USEDFPU; \
15                 stts(); \
16         } \
17 diff -Naur linux-2.4.26/include/asm-x86_64/i387.h linux-2.4.26-1/include/asm-x86_64/i387.h
18 --- linux-2.4.26/include/asm-x86_64/i387.h      2003-08-25 13:44:44.000000000 +0200
19 +++ linux-2.4.26-1/include/asm-x86_64/i387.h    2004-06-13 05:27:55.000000000 +0200
20 @@ -34,7 +34,7 @@
21  
22  #define clear_fpu( tsk ) do { \
23         if ( tsk->flags & PF_USEDFPU ) { \
24 -               asm volatile("fwait"); \
25 +               asm volatile("fnclex ; fwait"); \
26                 tsk->flags &= ~PF_USEDFPU; \
27                 stts(); \
28         } \
This page took 0.02167 seconds and 3 git commands to generate.