# 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); }