Date: Wed, 21 Nov 2001 16:15:11 +0800 From: "David Xu" <davidx@viasoft.com.cn> To: <freebsd-hackers@FreeBSD.ORG> Subject: add some constraints in cpufunc.h Message-ID: <00e701c17264$a4617130$ef01a8c0@davidwnt>
index | next in thread | raw e-mail
4.4-stable, file sys/i386/include/cpufunc.h,
--- cpufunc.h.orig Wed Nov 21 13:35:36 2001
+++ cpufunc.h Wed Nov 21 15:00:12 2001
@@ -72,7 +72,7 @@
{
u_int result;
- __asm __volatile("bsfl %0,%0" : "=r" (result) : "0" (mask));
+ __asm __volatile("bsfl %0,%0" : "=r" (result) : "0" (mask) : "cc");
return (result);
}
@@ -81,7 +81,7 @@
{
u_int result;
- __asm __volatile("bsrl %0,%0" : "=r" (result) : "0" (mask));
+ __asm __volatile("bsrl %0,%0" : "=r" (result) : "0" (mask) : "cc");
return (result);
}
@@ -305,7 +305,7 @@
u_int result;
__asm __volatile("xorl %0,%0; xchgl %1,%0"
- : "=&r" (result) : "m" (*addr));
+ : "=&r" (result) : "m" (*addr) : "cc");
return (result);
}
--
David Xu
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00e701c17264$a4617130$ef01a8c0>
