diff options
author | Tim Yamin <plasmaroo@gentoo.org> | 2004-06-13 20:22:57 +0000 |
---|---|---|
committer | Tim Yamin <plasmaroo@gentoo.org> | 2004-06-13 20:22:57 +0000 |
commit | 5bdf3b8bdebce1417f7dd0380dd62043f54bc7ca (patch) | |
tree | 19059755603de5ec736df480d0885f34bcd8ac34 /sys-kernel/ck-sources/files | |
parent | metadata update (diff) | |
download | historical-5bdf3b8bdebce1417f7dd0380dd62043f54bc7ca.tar.gz historical-5bdf3b8bdebce1417f7dd0380dd62043f54bc7ca.tar.bz2 historical-5bdf3b8bdebce1417f7dd0380dd62043f54bc7ca.zip |
Added patches for the FPU-lockup issues; please see bug #58304 for details.
Diffstat (limited to 'sys-kernel/ck-sources/files')
-rw-r--r-- | sys-kernel/ck-sources/files/ck-sources-2.4.26.FPULockup-53804.patch | 11 | ||||
-rw-r--r-- | sys-kernel/ck-sources/files/ck-sources-2.6.4.FPULockup-53804.patch | 24 |
2 files changed, 35 insertions, 0 deletions
diff --git a/sys-kernel/ck-sources/files/ck-sources-2.4.26.FPULockup-53804.patch b/sys-kernel/ck-sources/files/ck-sources-2.4.26.FPULockup-53804.patch new file mode 100644 index 000000000000..1dd5ed87b520 --- /dev/null +++ b/sys-kernel/ck-sources/files/ck-sources-2.4.26.FPULockup-53804.patch @@ -0,0 +1,11 @@ +--- linux-2.4/include/asm-i386/i387.h 2004-06-13 20:06:05.044881328 +0100 ++++ linux-2.4/include/asm-i386/i387.h 2004-06-13 20:25:42.836829736 +0100 +@@ -34,7 +34,7 @@ + + #define clear_fpu( tsk ) do { \ + if ( tsk->flags & PF_USEDFPU ) { \ +- asm volatile("fwait"); \ ++ asm volatile("fnclex ; fwait"); \ + tsk->flags &= ~PF_USEDFPU; \ + stts(); \ + } \ diff --git a/sys-kernel/ck-sources/files/ck-sources-2.6.4.FPULockup-53804.patch b/sys-kernel/ck-sources/files/ck-sources-2.6.4.FPULockup-53804.patch new file mode 100644 index 000000000000..a813f48ec23b --- /dev/null +++ b/sys-kernel/ck-sources/files/ck-sources-2.6.4.FPULockup-53804.patch @@ -0,0 +1,24 @@ +diff -Nru a/include/asm-i386/i387.h b/include/asm-i386/i387.h +--- a/include/asm-i386/i387.h 2004-05-06 12:26:10 -07:00 ++++ b/include/asm-i386/i387.h 2004-06-12 19:12:23 -07:00 +@@ -51,7 +51,7 @@ + #define __clear_fpu( tsk ) \ + do { \ + if ((tsk)->thread_info->status & TS_USEDFPU) { \ +- asm volatile("fwait"); \ ++ asm volatile("fnclex ; fwait"); \ + (tsk)->thread_info->status &= ~TS_USEDFPU; \ + stts(); \ + } \ +diff -Nru a/include/asm-x86_64/i387.h b/include/asm-x86_64/i387.h +--- a/include/asm-x86_64/i387.h 2004-06-13 20:43:56.742530792 +0100 ++++ a/include/asm-x86_64/i387.h 2004-06-13 20:42:59.200278544 +0100 +@@ -46,7 +46,7 @@ + + #define clear_fpu(tsk) do { \ + if ((tsk)->thread_info->status & TS_USEDFPU) { \ +- asm volatile("fwait"); \ ++ asm volatile("fnclex; fwait"); \ + (tsk)->thread_info->status &= ~TS_USEDFPU; \ + stts(); \ + } \ |