summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2020-06-28 07:15:31 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2020-06-28 07:15:31 +0000
commit9bb1fd808acea6c92e6d115d3c9328644761b50d (patch)
treefde494db87800c525b6f0d3c707b16ce95410a3d
parent652b7d3f548bf1687f0d8c186f339685170e17e8 (diff)
The 2nd and 3rd argument are pointers, so use the appropriate doubleword
instructions. ok drahn@
-rw-r--r--lib/libc/arch/powerpc64/sys/sigprocmask.S10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/arch/powerpc64/sys/sigprocmask.S b/lib/libc/arch/powerpc64/sys/sigprocmask.S
index 2b8e224767b..edecf31d1be 100644
--- a/lib/libc/arch/powerpc64/sys/sigprocmask.S
+++ b/lib/libc/arch/powerpc64/sys/sigprocmask.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: sigprocmask.S,v 1.2 2020/06/26 10:31:44 kettenis Exp $ */
+/* $OpenBSD: sigprocmask.S,v 1.3 2020/06/28 07:15:30 kettenis Exp $ */
/*
* Copyright (c) 1996 Dale Rahn
@@ -32,11 +32,11 @@
.text
PREFIX_HIDDEN(sigprocmask)
stdu %r1, -32(%r1)
- stw %r5, 16(%r1)
+ std %r5, 16(%r1)
/* check set (new mask value) for null, in which case
fiddle arguments */
- cmpwi %r4, 0
+ cmpdi %r4, 0
bne+ .L_load_set
addi %r3, 0, 1 /* how = SIG_BLOCK, new mask already 0 */
b .L_do_call
@@ -54,8 +54,8 @@ PREFIX_HIDDEN(sigprocmask)
blr
.L_sigprocmask_ok:
- lwz %r5, 16(%r1)
- cmpwi %r5, 0
+ ld %r5, 16(%r1)
+ cmpdi %r5, 0
beq+ .L_sigprocmask_done
stw %r3, 0(%r5)
.L_sigprocmask_done: