summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/booke
diff options
context:
space:
mode:
authorjhibbits <jhibbits@FreeBSD.org>2015-08-19 06:07:32 +0000
committerjhibbits <jhibbits@FreeBSD.org>2015-08-19 06:07:32 +0000
commit047435c4e064f22faa0101c927cfb13485781753 (patch)
tree8f917184ee1762b0ab90c3d43f576f5ac17e6997 /sys/powerpc/booke
parent9ce140fe915206635bb15390349cbb1c054ecd46 (diff)
downloadFreeBSD-src-047435c4e064f22faa0101c927cfb13485781753.zip
FreeBSD-src-047435c4e064f22faa0101c927cfb13485781753.tar.gz
Save the registers at the correct offsets.
When merging the AIM and BookE trap.c files, the offsets for BookE's setfault inadvertantly got munged.
Diffstat (limited to 'sys/powerpc/booke')
-rw-r--r--sys/powerpc/booke/locore.S5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/powerpc/booke/locore.S b/sys/powerpc/booke/locore.S
index 330a61f..73b6100 100644
--- a/sys/powerpc/booke/locore.S
+++ b/sys/powerpc/booke/locore.S
@@ -723,11 +723,12 @@ setfault:
mfsprg0 %r4
lwz %r4, TD_PCB(%r2)
stw %r3, PCB_ONFAULT(%r4)
- mfcr %r10
+ mfcr %r4
stw %r0, 0(%r3)
stw %r1, 4(%r3)
stw %r2, 8(%r3)
- stmw %r13, 12(%r3) /* store CR, CTR, XER, [r13 .. r31] */
+ stw %r4, 8(%r3)
+ stmw %r13, 16(%r3) /* store CR, CTR, XER, [r13 .. r31] */
li %r3, 0 /* return FALSE */
blr
OpenPOWER on IntegriCloud