Date: Sat, 13 Jun 2009 14:30:08 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r194115 - head/sys/i386/include Message-ID: <200906131430.n5DEU8bV016557@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906131430.n5DEU8bV016557>