r2520 - in trunk/kernel-2.4/source/kernel-source-2.4.27-2.4.27/debian: . patches patches/series

Joshua Kwan joshk@costa.debian.org
Fri, 18 Feb 2005 07:46:35 +0100


Author: joshk
Date: 2005-02-18 07:46:34 +0100 (Fri, 18 Feb 2005)
New Revision: 2520

Added:
   trunk/kernel-2.4/source/kernel-source-2.4.27-2.4.27/debian/patches/139_sparc_context_switch.diff
Modified:
   trunk/kernel-2.4/source/kernel-source-2.4.27-2.4.27/debian/changelog
   trunk/kernel-2.4/source/kernel-source-2.4.27-2.4.27/debian/patches/series/2.4.27-9
Log:
add 139_sparc_context_switch.diff

Modified: trunk/kernel-2.4/source/kernel-source-2.4.27-2.4.27/debian/changelog
===================================================================
--- trunk/kernel-2.4/source/kernel-source-2.4.27-2.4.27/debian/changelog	2005-02-18 06:45:00 UTC (rev 2519)
+++ trunk/kernel-2.4/source/kernel-source-2.4.27-2.4.27/debian/changelog	2005-02-18 06:46:34 UTC (rev 2520)
@@ -23,8 +23,11 @@
 
   * 138_amd64_syscall_vuln.diff: [CAN-2004--1144] fix the "int 0x80 hole"
     that allowed overflow of the system call table. (Joshua Kwan)
+  
+  * 139_sparc_context_switch.diff: fix FPU context switching dirtiness on
+    sparc32 SMP. (Joshua Kwan)
 
- -- Joshua Kwan <joshk@triplehelix.org>  Thu, 17 Feb 2005 13:47:09 -0800
+ -- Joshua Kwan <joshk@triplehelix.org>  Thu, 17 Feb 2005 22:46:04 -0800
 
 kernel-source-2.4.27 (2.4.27-8) unstable; urgency=high
 

Added: trunk/kernel-2.4/source/kernel-source-2.4.27-2.4.27/debian/patches/139_sparc_context_switch.diff
===================================================================
--- trunk/kernel-2.4/source/kernel-source-2.4.27-2.4.27/debian/patches/139_sparc_context_switch.diff	2005-02-18 06:45:00 UTC (rev 2519)
+++ trunk/kernel-2.4/source/kernel-source-2.4.27-2.4.27/debian/patches/139_sparc_context_switch.diff	2005-02-18 06:46:34 UTC (rev 2520)
@@ -0,0 +1,33 @@
+# origin: bk
+# key: 42122dc1OjDDmJElUeNmQd6-UNV_eA (linux-2.4)
+# description: fix FPU context switch on sparc32 SMP
+# inclusion: 2.4.30?
+# revision date: 2005-02-17
+
+# This is a BitKeeper generated diff -Nru style patch.
+#
+# ChangeSet
+#   2005/02/15 09:13:37-08:00 krzysztof.h1@wp.pl 
+#   [SPARC32]: Need to clear PSR_EF in psr of childregs on fork() on SMP.
+#   
+#   Signed-off-by: David S. Miller <davem@davemloft.net>
+# 
+# arch/sparc/kernel/process.c
+#   2005/02/15 09:13:27-08:00 krzysztof.h1@wp.pl +5 -0
+#   [SPARC32]: Need to clear PSR_EF in psr of childregs on fork() on SMP.
+# 
+diff -Nru a/arch/sparc/kernel/process.c b/arch/sparc/kernel/process.c
+--- a/arch/sparc/kernel/process.c	2005-02-17 22:44:21 -08:00
++++ b/arch/sparc/kernel/process.c	2005-02-17 22:44:21 -08:00
+@@ -512,6 +512,11 @@
+ 		}
+ 	}
+ 
++#ifdef CONFIG_SMP
++	/* FPU must be disabled on SMP. */
++	childregs->psr &= ~PSR_EF;
++#endif
++
+ 	/* Set the return value for the child. */
+ 	childregs->u_regs[UREG_I0] = current->pid;
+ 	childregs->u_regs[UREG_I1] = 1;

Modified: trunk/kernel-2.4/source/kernel-source-2.4.27-2.4.27/debian/patches/series/2.4.27-9
===================================================================
--- trunk/kernel-2.4/source/kernel-source-2.4.27-2.4.27/debian/patches/series/2.4.27-9	2005-02-18 06:45:00 UTC (rev 2519)
+++ trunk/kernel-2.4/source/kernel-source-2.4.27-2.4.27/debian/patches/series/2.4.27-9	2005-02-18 06:46:34 UTC (rev 2520)
@@ -3,3 +3,4 @@
 + 136_vc_resizing_overflow.diff
 + 137_io_edgeport_overflow.diff
 + 138_amd64_syscall_vuln.diff
++ 139_sparc_context_switch.diff