Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2004-09-12 08:08:08 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-09-12 08:08:08 -0700
commit358c65b2f9b92fcc0e93d35f3a52ef054ff206b2 (patch)
tree248bff2c0a08622daebd44c8b7857fc5294286f1
parent582f31c5aeff74274811ea20b409d78a89b854c7 (diff)
[PATCH] ppc64:Fix missing register in altivec context switch
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> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--arch/ppc64/kernel/head.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/ppc64/kernel/head.S b/arch/ppc64/kernel/head.S
index 7849045c7e42..48ccde53a8ac 100644
--- a/arch/ppc64/kernel/head.S
+++ b/arch/ppc64/kernel/head.S
@@ -1588,6 +1588,7 @@ _STATIC(load_up_altivec)
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' */