diff options
author | ian <ian@FreeBSD.org> | 2014-05-17 23:20:29 +0000 |
---|---|---|
committer | ian <ian@FreeBSD.org> | 2014-05-17 23:20:29 +0000 |
commit | 05acb76bb3363da715ef994fdcb59199528dea82 (patch) | |
tree | 65a721c5e0708d828ec428e4ebd33ba784f4a030 | |
parent | 6f3ef9f92994386052134bd9ef0024620c0ef6f2 (diff) | |
download | FreeBSD-src-05acb76bb3363da715ef994fdcb59199528dea82.zip FreeBSD-src-05acb76bb3363da715ef994fdcb59199528dea82.tar.gz |
MFC 265059: Set the new floating point exception mask correctly.
-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); } |