diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-06-19 17:29:34 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-06-19 17:29:34 +0000 |
commit | 90c07df5adb84212272b5d7f99c1dbf7b260d62d (patch) | |
tree | f84d216fe2e2f4e827a5505e6e43384d742f78d0 /sys | |
parent | 44faacdbfeaefea07689eaeb9feeeeb8e84a79ef (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.S | 3 |
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; \ |