projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e63aa7c
)
x86: make spinlock's 16-bit asm operand explicitly 16-bit.
author
Tim Deegan
<Tim.Deegan@citrix.com>
Mon, 7 Mar 2011 11:21:11 +0000
(11:21 +0000)
committer
Tim Deegan
<Tim.Deegan@citrix.com>
Mon, 7 Mar 2011 11:21:11 +0000
(11:21 +0000)
This is needed to compile xen with clang.
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/include/asm-x86/spinlock.h
patch
|
blob
|
history
diff --git
a/xen/include/asm-x86/spinlock.h
b/xen/include/asm-x86/spinlock.h
index 35ed9759e73c32127b1df6f83c94855618ce7999..b7cd9455842c3c5b820d69965af35322790d1bb3 100644
(file)
--- a/
xen/include/asm-x86/spinlock.h
+++ b/
xen/include/asm-x86/spinlock.h
@@
-27,7
+27,7
@@
static always_inline int _raw_spin_trylock(raw_spinlock_t *lock)
asm volatile (
"xchgw %w0,%1"
:"=r" (oldval), "=m" (lock->lock)
- :"0" (0) : "memory" );
+ :"0" (
(s16)
0) : "memory" );
return (oldval > 0);
}