* [PATCH] ppc64:Fix missing register in altivec context switch
@ 2004-09-13 4:25 Benjamin Herrenschmidt
0 siblings, 0 replies; only message in thread
From: Benjamin Herrenschmidt @ 2004-09-13 4:25 UTC (permalink / raw)
To: Andrew Morton; +Cc: Linus Torvalds, Linux Kernel list
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@kernel.crashing.org>
===== 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' */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-09-13 4:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-13 4:25 [PATCH] ppc64:Fix missing register in altivec context switch Benjamin Herrenschmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®