summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Yamin <plasmaroo@gentoo.org>2004-06-13 20:22:57 +0000
committerTim Yamin <plasmaroo@gentoo.org>2004-06-13 20:22:57 +0000
commit9760cae5828243326be8715dae254ee396e665f4 (patch)
treedcf46192cf93f6eb48fa66a3155d2596506a1270 /sys-kernel/ck-sources
parentmetadata update (Manifest recommit) (diff)
downloadgentoo-2-9760cae5828243326be8715dae254ee396e665f4.tar.gz
gentoo-2-9760cae5828243326be8715dae254ee396e665f4.tar.bz2
gentoo-2-9760cae5828243326be8715dae254ee396e665f4.zip
Added patches for the FPU-lockup issues; please see bug #58304 for details.
Diffstat (limited to 'sys-kernel/ck-sources')
-rw-r--r--sys-kernel/ck-sources/ChangeLog7
-rw-r--r--sys-kernel/ck-sources/ck-sources-2.4.26-r1.ebuild3
-rw-r--r--sys-kernel/ck-sources/ck-sources-2.6.4-r2.ebuild4
-rw-r--r--sys-kernel/ck-sources/files/ck-sources-2.4.26.FPULockup-53804.patch11
-rw-r--r--sys-kernel/ck-sources/files/ck-sources-2.6.4.FPULockup-53804.patch24
5 files changed, 45 insertions, 4 deletions
diff --git a/sys-kernel/ck-sources/ChangeLog b/sys-kernel/ck-sources/ChangeLog
index f6e8103833af..52b88535a9aa 100644
--- a/sys-kernel/ck-sources/ChangeLog
+++ b/sys-kernel/ck-sources/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-kernel/ck-sources
# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/ck-sources/ChangeLog,v 1.35 2004/05/30 23:53:41 pvdabeel Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/ck-sources/ChangeLog,v 1.36 2004/06/13 20:22:57 plasmaroo Exp $
+
+ 13 Jun 2004; <plasmaroo@gentoo.org> ck-sources-2.4.26-r1.ebuild,
+ ck-sources-2.6.4-r2.ebuild, +files/ck-sources-2.4.26.FPULockup-53804.patch,
+ +files/ck-sources-2.6.5.FPULockup-53804.patch:
+ Added patches for the FPU-lockup issues; please see bug #58304 for details.
31 May 2004; Pieter Van den Abeele <pvdabeel@gentoo.org>
ck-sources-2.6.4-r2.ebuild:
diff --git a/sys-kernel/ck-sources/ck-sources-2.4.26-r1.ebuild b/sys-kernel/ck-sources/ck-sources-2.4.26-r1.ebuild
index 78532d5dd2d9..83cdeaee5fd1 100644
--- a/sys-kernel/ck-sources/ck-sources-2.4.26-r1.ebuild
+++ b/sys-kernel/ck-sources/ck-sources-2.4.26-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/ck-sources/ck-sources-2.4.26-r1.ebuild,v 1.1 2004/05/28 22:20:39 plasmaroo Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/ck-sources/ck-sources-2.4.26-r1.ebuild,v 1.2 2004/06/13 20:22:57 plasmaroo Exp $
IUSE=""
@@ -59,5 +59,6 @@ src_unpack() {
bzcat ${DISTDIR}/patch-${KV}.bz2|patch -p1 || die "-lck patch failed!"
epatch ${FILESDIR}/${P}.CAN-2004-0394.patch || die "Failed to add the CAN-2004-0394 patch!"
+ epatch ${FILESDIR}/${P}.FPULockup-53804.patch || die "Failed to apply FPU-lockup patch!"
kernel_universal_unpack
}
diff --git a/sys-kernel/ck-sources/ck-sources-2.6.4-r2.ebuild b/sys-kernel/ck-sources/ck-sources-2.6.4-r2.ebuild
index 07b218286b4b..2ada4d50a840 100644
--- a/sys-kernel/ck-sources/ck-sources-2.6.4-r2.ebuild
+++ b/sys-kernel/ck-sources/ck-sources-2.6.4-r2.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/ck-sources/ck-sources-2.6.4-r2.ebuild,v 1.5 2004/05/30 23:53:41 pvdabeel Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/ck-sources/ck-sources-2.6.4-r2.ebuild,v 1.6 2004/06/13 20:22:57 plasmaroo Exp $
-UNIPATCH_LIST="${DISTDIR}/patch-${KV}.bz2 ${FILESDIR}/${P}.CAN-2004-0075.patch ${FILESDIR}/${P}.CAN-2004-0109.patch ${FILESDIR}/${P}.CAN-2004-0181.patch ${FILESDIR}/${P}.CAN-2004-0228.patch ${FILESDIR}/${P}.CAN-2004-0229.patch ${FILESDIR}/${P}.CAN-2004-0427.patch"
+UNIPATCH_LIST="${DISTDIR}/patch-${KV}.bz2 ${FILESDIR}/${P}.CAN-2004-0075.patch ${FILESDIR}/${P}.CAN-2004-0109.patch ${FILESDIR}/${P}.CAN-2004-0181.patch ${FILESDIR}/${P}.CAN-2004-0228.patch ${FILESDIR}/${P}.CAN-2004-0229.patch ${FILESDIR}/${P}.CAN-2004-0427.patch ${FILESDIR}/${P}.FPULockup-53804.patch"
K_PREPATCHED="yes"
UNIPATCH_STRICTORDER="yes"
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(); \
+ } \