summaryrefslogtreecommitdiff
path: root/lib/libc/arch/hppa/gen/fpgetmask.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/arch/hppa/gen/fpgetmask.c')
-rw-r--r--lib/libc/arch/hppa/gen/fpgetmask.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/arch/hppa/gen/fpgetmask.c b/lib/libc/arch/hppa/gen/fpgetmask.c
index dc7b6c98133..36c46818159 100644
--- a/lib/libc/arch/hppa/gen/fpgetmask.c
+++ b/lib/libc/arch/hppa/gen/fpgetmask.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fpgetmask.c,v 1.2 2002/05/22 20:05:01 miod Exp $ */
+/* $OpenBSD: fpgetmask.c,v 1.3 2002/10/21 18:41:05 mickey Exp $ */
/*
* Written by Miodrag Vallat. Public domain
@@ -10,8 +10,8 @@
fp_except
fpgetmask()
{
- u_int32_t fpsr;
+ u_int64_t fpsr;
- __asm__ __volatile__("fstw %%fr0,0(%1)" : "=m"(fpsr) : "r"(&fpsr));
- return (fpsr & 0x1f);
+ __asm__ __volatile__("fstd %%fr0,0(%1)" : "=m" (fpsr) : "r" (&fpsr));
+ return ((fpsr >> 32) & 0x1f);
}