summaryrefslogtreecommitdiff
path: root/lib/libc/arch
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-02-09 21:27:22 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-02-09 21:27:22 +0000
commitc8ab9aefe725cade4bf24a8178be5cf9dc66400f (patch)
treed6c78b428b116034329e530028667b31a5443653 /lib/libc/arch
parent59ffd19da50459e4863139e82c5501aae49c6442 (diff)
masks are only 32 bits on openbsd
Diffstat (limited to 'lib/libc/arch')
-rw-r--r--lib/libc/arch/amd64/sys/sigprocmask.S4
-rw-r--r--lib/libc/arch/x86_64/sys/sigprocmask.S4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/arch/amd64/sys/sigprocmask.S b/lib/libc/arch/amd64/sys/sigprocmask.S
index 3718f8de3ae..c5a999582cf 100644
--- a/lib/libc/arch/amd64/sys/sigprocmask.S
+++ b/lib/libc/arch/amd64/sys/sigprocmask.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: sigprocmask.S,v 1.1 2004/01/28 01:44:45 mickey Exp $ */
+/* $OpenBSD: sigprocmask.S,v 1.2 2004/02/09 21:27:21 deraadt Exp $ */
/* $NetBSD: sigprocmask.S,v 1.1 2001/06/19 00:25:06 fvdl Exp $ */
/*-
@@ -53,7 +53,7 @@ SYSENTRY(sigprocmask)
jc err
testq %rdx,%rdx # test if old mask requested
jz out
- movq %rax,(%rdx) # store old mask
+ movl %eax,(%rdx) # store old mask
out:
xorl %eax,%eax
ret
diff --git a/lib/libc/arch/x86_64/sys/sigprocmask.S b/lib/libc/arch/x86_64/sys/sigprocmask.S
index 3718f8de3ae..c5a999582cf 100644
--- a/lib/libc/arch/x86_64/sys/sigprocmask.S
+++ b/lib/libc/arch/x86_64/sys/sigprocmask.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: sigprocmask.S,v 1.1 2004/01/28 01:44:45 mickey Exp $ */
+/* $OpenBSD: sigprocmask.S,v 1.2 2004/02/09 21:27:21 deraadt Exp $ */
/* $NetBSD: sigprocmask.S,v 1.1 2001/06/19 00:25:06 fvdl Exp $ */
/*-
@@ -53,7 +53,7 @@ SYSENTRY(sigprocmask)
jc err
testq %rdx,%rdx # test if old mask requested
jz out
- movq %rax,(%rdx) # store old mask
+ movl %eax,(%rdx) # store old mask
out:
xorl %eax,%eax
ret