From: Tim Deegan Subject: [PATCH 1 of 8] x86: make spinlock's 16-bit asm operand explicitly 16-bit Date: Mon, 7 Mar 2011 11:26:18 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6988000600436259979==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============6988000600436259979== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit This is needed to compile xen with clang. Signed-off-by: Tim Deegan --===============6988000600436259979== Content-Type: text/x-patch; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen-llvm.hg-1.patch" # HG changeset patch # User Tim Deegan # Date 1299496871 0 # Node ID c574ec6f7c8633397804aee7c96f428779688ce9 # Parent bbc03993d31f5b9c56c44b068cdd00f08971c21c x86: make spinlock's 16-bit asm operand explicitly 16-bit. This is needed to compile xen with clang. Signed-off-by: Tim Deegan diff -r bbc03993d31f -r c574ec6f7c86 xen/include/asm-x86/spinlock.h --- a/xen/include/asm-x86/spinlock.h Sat Mar 05 16:02:33 2011 +0000 +++ b/xen/include/asm-x86/spinlock.h Mon Mar 07 11:21:11 2011 +0000 @@ -27,7 +27,7 @@ static always_inline int _raw_spin_trylo asm volatile ( "xchgw %w0,%1" :"=r" (oldval), "=m" (lock->lock) - :"0" (0) : "memory" ); + :"0" ((s16)0) : "memory" ); return (oldval > 0); } --===============6988000600436259979== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============6988000600436259979==--