|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] x86: make spinlock's 16-bit asm operand e
# HG changeset patch
# User Tim Deegan <Tim.Deegan@xxxxxxxxxx>
# Date 1299496871 0
# Node ID 5f68924489f569539fc60e46f866bd75ecc82134
# 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 <Tim.Deegan@xxxxxxxxxx>
Acked-by: Keir Fraser <keir@xxxxxxx>
---
diff -r bbc03993d31f -r 5f68924489f5 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 @@
asm volatile (
"xchgw %w0,%1"
:"=r" (oldval), "=m" (lock->lock)
- :"0" (0) : "memory" );
+ :"0" ((s16)0) : "memory" );
return (oldval > 0);
}
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] x86: make spinlock's 16-bit asm operand explicitly 16-bit.,
Xen patchbot-unstable <=
|
|
|
|
|