aboutsummaryrefslogtreecommitdiff
path: root/asm
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2017-05-08 14:40:28 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-05-08 14:40:28 +1000
commitd55194c5d9ada77eee2c9a69814708304f34d334 (patch)
tree62f069d1d01b482ad19bf17585ae46751ab701f5 /asm
parenta805a4c438acee585c40c4a1e9be989600a1f67d (diff)
downloadskiboot-d55194c5d9ada77eee2c9a69814708304f34d334.zip
skiboot-d55194c5d9ada77eee2c9a69814708304f34d334.tar.gz
skiboot-d55194c5d9ada77eee2c9a69814708304f34d334.tar.bz2
head.S: store LR rather than CTR when trying to store LR
Long existing typo of r5 rather than r6, meaning we were storing CTR instead of LR. Reported-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'asm')
-rw-r--r--asm/head.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/asm/head.S b/asm/head.S
index b10fbb5..a2dcb8c 100644
--- a/asm/head.S
+++ b/asm/head.S
@@ -199,7 +199,7 @@ _exception:
stw %r3,STACK_CR(%r1)
stw %r4,STACK_XER(%r1)
std %r5,STACK_CTR(%r1)
- std %r5,STACK_LR(%r1)
+ std %r6,STACK_LR(%r1)
mfspr %r3,SPR_SRR0
mfspr %r4,SPR_SRR1
mfspr %r5,SPR_HSRR0