Date: Sat, 17 May 2014 23:20:29 +0000 (UTC) From: Ian Lepore <ian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r266377 - stable/10/lib/libc/arm/gen Message-ID: <201405172320.s4HNKTjS079117@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405172320.s4HNKTjS079117>