diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-06-28 11:53:21 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-06-28 11:53:21 +0000 |
commit | 4762340e0141208fe2d75432153476c32075795d (patch) | |
tree | 9d88694940883637c67367700cb24023de35c579 | |
parent | 4a64cce60ed6b81e1efa9fb59801e1e2fb6a9282 (diff) |
Use std instead of stw to store CR since we use std in sigsetjmp(3) and
we use ld to load it again in longjmp(3).
-rw-r--r-- | lib/libc/arch/powerpc64/gen/setjmp.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/arch/powerpc64/gen/setjmp.S b/lib/libc/arch/powerpc64/gen/setjmp.S index eb370c188f2..7de3cfca4b8 100644 --- a/lib/libc/arch/powerpc64/gen/setjmp.S +++ b/lib/libc/arch/powerpc64/gen/setjmp.S @@ -1,4 +1,4 @@ -/* $OpenBSD: setjmp.S,v 1.1 2020/06/25 02:03:55 drahn Exp $ */ +/* $OpenBSD: setjmp.S,v 1.2 2020/06/28 11:53:20 kettenis Exp $ */ /* * Copyright (c) 2020 Dale Rahn. All rights reserved. * @@ -110,7 +110,7 @@ ENTRY(_setjmp) xor %r7, %r6, %r7 /* use and overwrite the lr xor */ std %r7, JMP_lr(%r5) mfcr %r0 - stw %r0, JMP_cr(3) + std %r0, JMP_cr(3) mfctr %r0 std %r0, JMP_ctr(%r5) mfxer %r0 |