diff options
author | andrew <andrew@FreeBSD.org> | 2014-04-28 18:54:12 +0000 |
---|---|---|
committer | andrew <andrew@FreeBSD.org> | 2014-04-28 18:54:12 +0000 |
commit | 654570b8ce245261548a53b1fbd13da926c6047f (patch) | |
tree | bfe1125379588469a7830c26c8d6f19226e9877d /lib | |
parent | 165205a04192087fdd51c5b4d5b6470ab372ba06 (diff) | |
download | FreeBSD-src-654570b8ce245261548a53b1fbd13da926c6047f.zip FreeBSD-src-654570b8ce245261548a53b1fbd13da926c6047f.tar.gz |
Set the new floating point exception mask correctly
Submitted by: Keith White <kwhite@site.uottawa.ca>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/arm/gen/fpsetmask_vfp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/arm/gen/fpsetmask_vfp.c b/lib/libc/arm/gen/fpsetmask_vfp.c index 061c033..170e06d 100644 --- a/lib/libc/arm/gen/fpsetmask_vfp.c +++ b/lib/libc/arm/gen/fpsetmask_vfp.c @@ -45,7 +45,7 @@ fpsetmask(fp_except_t mask) __asm __volatile("vmrs %0, fpscr" : "=&r"(old)); mask = (mask & FP_X_MASK) << 8; new = (old & ~(FP_X_MASK << 8)) | mask; - __asm __volatile("vmsr fpscr, %0" : : "r"(old)); + __asm __volatile("vmsr fpscr, %0" : : "r"(new)); return ((old >> 8) & FP_X_MASK); } |