svn commit: r194115 - head/sys/i386/include

Ed Schouten ed at FreeBSD.org
Sat Jun 13 14:30:09 UTC 2009


Author: ed
Date: Sat Jun 13 14:30:08 2009
New Revision: 194115
URL: http://svn.freebsd.org/changeset/base/194115

Log:
  Clobber "cc" instead of using volatile.
  
  Submitted by:	Christoph Mallon

Modified:
  head/sys/i386/include/cpufunc.h

Modified: head/sys/i386/include/cpufunc.h
==============================================================================
--- head/sys/i386/include/cpufunc.h	Sat Jun 13 14:25:51 2009	(r194114)
+++ head/sys/i386/include/cpufunc.h	Sat Jun 13 14:30:08 2009	(r194115)
@@ -76,7 +76,7 @@ bsfl(u_int mask)
 {
 	u_int	result;
 
-	__asm __volatile("bsfl %1,%0" : "=r" (result) : "rm" (mask));
+	__asm("bsfl %1,%0" : "=r" (result) : "rm" (mask) : "cc");
 	return (result);
 }
 
@@ -85,7 +85,7 @@ bsrl(u_int mask)
 {
 	u_int	result;
 
-	__asm __volatile("bsrl %1,%0" : "=r" (result) : "rm" (mask));
+	__asm("bsrl %1,%0" : "=r" (result) : "rm" (mask) : "cc");
 	return (result);
 }
 


More information about the svn-src-all mailing list