Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Apr 2014 18:54:12 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r265059 - head/lib/libc/arm/gen
Message-ID:  <201404281854.s3SIsCYY086417@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: andrew
Date: Mon Apr 28 18:54:12 2014
New Revision: 265059
URL: http://svnweb.freebsd.org/changeset/base/265059

Log:
  Set the new floating point exception mask correctly
  
  Submitted by:	Keith White <kwhite@site.uottawa.ca>

Modified:
  head/lib/libc/arm/gen/fpsetmask_vfp.c

Modified: head/lib/libc/arm/gen/fpsetmask_vfp.c
==============================================================================
--- head/lib/libc/arm/gen/fpsetmask_vfp.c	Mon Apr 28 18:41:25 2014	(r265058)
+++ head/lib/libc/arm/gen/fpsetmask_vfp.c	Mon Apr 28 18:54:12 2014	(r265059)
@@ -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?201404281854.s3SIsCYY086417>