From 3799f797d1c8f440bd83c11db3d76a9fb93b6fdb Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Tue, 20 Mar 2012 02:24:25 +0100 Subject: Make xchgl arch-neutral * i386/i386/xen.h (xchgl): Use xchg instruction instead of xchgl, so the assembler can detect unsigned long size. --- i386/i386/xen.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i386/i386/xen.h b/i386/i386/xen.h index a8d919d2..ba47eb41 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; -- cgit v1.2.3