[PATCH] ppc64:Fix missing register in altivec context switch

From: Benjamin Herrenschmidt
Date: Sun Sep 12 2004 - 23:29:50 EST


This is a resend of a patch sent in July and that got lost somewhat,
the "VSCR" register wasn't restored properly from the context on
load_up_altivec (typo), please apply the fix:

Signed-off-by: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>

===== arch/ppc64/kernel/head.S 1.76 vs edited =====
--- 1.76/arch/ppc64/kernel/head.S 2004-09-08 16:32:56 +10:00
+++ edited/arch/ppc64/kernel/head.S 2004-09-13 14:15:00 +10:00
@@ -1588,6 +1588,7 @@
li r10,THREAD_VSCR
stw r4,THREAD_USED_VR(r5)
lvx vr0,r10,r5
+ mtvscr vr0
REST_32VRS(0,r4,r5)
#ifndef CONFIG_SMP
/* Update last_task_used_math to 'current' */


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/