From owner-freebsd-hackers Wed Nov 21 0:19: 0 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.viasoft.com.cn (unknown [61.153.1.177]) by hub.freebsd.org (Postfix) with ESMTP id 744B337B417 for ; Wed, 21 Nov 2001 00:18:56 -0800 (PST) Received: from davidwnt (davidwnt.viasoft.com.cn [192.168.1.239]) by mail.viasoft.com.cn (8.9.3/8.9.3) with SMTP id QAA19287 for ; Wed, 21 Nov 2001 16:25:53 +0800 Message-ID: <00e701c17264$a4617130$ef01a8c0@davidwnt> From: "David Xu" To: Subject: add some constraints in cpufunc.h Date: Wed, 21 Nov 2001 16:15:11 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 4.4-stable, file sys/i386/include/cpufunc.h,=20 --- 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; =20 - __asm __volatile("bsfl %0,%0" : "=3Dr" (result) : "0" (mask)); + __asm __volatile("bsfl %0,%0" : "=3Dr" (result) : "0" (mask) : = "cc"); return (result); } =20 @@ -81,7 +81,7 @@ { u_int result; =20 - __asm __volatile("bsrl %0,%0" : "=3Dr" (result) : "0" (mask)); + __asm __volatile("bsrl %0,%0" : "=3Dr" (result) : "0" (mask) : = "cc"); return (result); } =20 @@ -305,7 +305,7 @@ u_int result; =20 __asm __volatile("xorl %0,%0; xchgl %1,%0" - : "=3D&r" (result) : "m" (*addr)); + : "=3D&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