svn commit: r266377 - stable/10/lib/libc/arm/gen
Ian Lepore
ian at FreeBSD.org
Sat May 17 23:20:30 UTC 2014
Author: ian
Date: Sat May 17 23:20:29 2014
New Revision: 266377
URL: http://svnweb.freebsd.org/changeset/base/266377
Log:
MFC 265059: Set the new floating point exception mask correctly.
Modified:
stable/10/lib/libc/arm/gen/fpsetmask_vfp.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/lib/libc/arm/gen/fpsetmask_vfp.c
==============================================================================
--- stable/10/lib/libc/arm/gen/fpsetmask_vfp.c Sat May 17 23:16:18 2014 (r266376)
+++ stable/10/lib/libc/arm/gen/fpsetmask_vfp.c Sat May 17 23:20:29 2014 (r266377)
@@ -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);
}
More information about the svn-src-stable
mailing list