summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2020-06-19 17:29:34 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2020-06-19 17:29:34 +0000
commit90c07df5adb84212272b5d7f99c1dbf7b260d62d (patch)
treef84d216fe2e2f4e827a5505e6e43384d742f78d0 /sys
parent44faacdbfeaefea07689eaeb9feeeeb8e84a79ef (diff)
Set %r13 with a pointer to our per-CPU info struct when setting up a
trapframe.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/powerpc64/powerpc64/trap_subr.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/powerpc64/powerpc64/trap_subr.S b/sys/arch/powerpc64/powerpc64/trap_subr.S
index c667a2cfc8b..b0aa85464f3 100644
--- a/sys/arch/powerpc64/powerpc64/trap_subr.S
+++ b/sys/arch/powerpc64/powerpc64/trap_subr.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap_subr.S,v 1.9 2020/06/18 22:51:38 kettenis Exp $ */
+/* $OpenBSD: trap_subr.S,v 1.10 2020/06/19 17:29:33 kettenis Exp $ */
/* $NetBSD: trap_subr.S,v 1.20 2002/04/22 23:20:08 kleink Exp $ */
/*-
@@ -150,6 +150,7 @@ restore_kernsrs:
ld %r29, (savearea+CPUSAVE_DSISR)(%r2);/* saved DSISR */ \
ld %r30, (savearea+CPUSAVE_SRR0)(%r2); /* saved SRR0 */ \
ld %r31, (savearea+CPUSAVE_SRR1)(%r2); /* saved SRR1 */ \
+ mr %r13, %r2; \
mfxer %r3; \
mfctr %r4; \
mfsprg3 %r5; \