diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-03-20 02:24:25 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-03-20 02:24:25 +0100 |
commit | 3799f797d1c8f440bd83c11db3d76a9fb93b6fdb (patch) | |
tree | 7889990f996db487f53d27abf1860799c2d68b90 /i386 | |
parent | ba54d8a07b20916b84df1d8159fb0b50f8f692b8 (diff) |
Make xchgl arch-neutral
* i386/i386/xen.h (xchgl): Use xchg instruction instead of xchgl, so the
assembler can detect unsigned long size.
Diffstat (limited to 'i386')
-rw-r--r-- | i386/i386/xen.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/i386/i386/xen.h b/i386/i386/xen.h index a8d919d..ba47eb4 100644 --- a/i386/i386/xen.h +++ b/i386/i386/xen.h @@ -38,7 +38,7 @@ #define wmb() mb() MACH_INLINE unsigned long xchgl(volatile unsigned long *ptr, unsigned long x) { - __asm__ __volatile__("xchgl %0, %1" + __asm__ __volatile__("xchg %0, %1" : "=r" (x) : "m" (*(ptr)), "0" (x): "memory"); return x; |