summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/head_32.S
diff options
context:
space:
mode:
authorAlan Curry2006-02-22 07:42:37 +0100
committerPaul Mackerras2006-02-24 01:36:23 +0100
commitf1434a4854407a262d194411245eb9ee66221f90 (patch)
tree8a4cb8b766a372519041c8601bfedd96faf2e1ba /arch/powerpc/kernel/head_32.S
parent[PATCH] powerpc: Trivial fix to set the proper timeout value for kdump (diff)
downloadkernel-qcow2-linux-f1434a4854407a262d194411245eb9ee66221f90.tar.gz
kernel-qcow2-linux-f1434a4854407a262d194411245eb9ee66221f90.tar.xz
kernel-qcow2-linux-f1434a4854407a262d194411245eb9ee66221f90.zip
[PATCH] powerpc: fix altivec_unavailable_exception Oopses
altivec_unavailable_exception is called without setting r3... it looks like the r3 that actually gets passed in as struct pt_regs *regs is the undisturbed value of r3 at the time the altivec instruction was encountered. The user actually gets to choose the pt_regs printed in the Oops! This fixes the oops by passing the correct pt_regs pointer to altivec_unavailable_exception. Signed-off-by: Alan Curry <pacman@TheWorld.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/head_32.S')
-rw-r--r--arch/powerpc/kernel/head_32.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/head_32.S b/arch/powerpc/kernel/head_32.S
index 03b25f9359f8..a0579e859b21 100644
--- a/arch/powerpc/kernel/head_32.S
+++ b/arch/powerpc/kernel/head_32.S
@@ -714,6 +714,7 @@ AltiVecUnavailable:
#ifdef CONFIG_ALTIVEC
bne load_up_altivec /* if from user, just load it up */
#endif /* CONFIG_ALTIVEC */
+ addi r3,r1,STACK_FRAME_OVERHEAD
EXC_XFER_EE_LITE(0xf20, altivec_unavailable_exception)
PerformanceMonitor: