[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Re: [Xen-ia64-devel] [PATCH][QEMU] Add IA64-specific code for new qemu.
On 7/26/06, Akio Takebe <takebe_akio@xxxxxxxxxxxxxx> wrote: Hi, Xiantao Is the following testandset redefine? diff -r bbabdebc54ad tools/ioemu/exec-all.h --- a/tools/ioemu/exec-all.h Wed Jul 19 21:13:36 2006 +0100 +++ b/tools/ioemu/exec-all.h Tue Jul 25 09:30:05 2006 +0800 @@ -391,6 +391,15 @@ static inline int testandset (int *p) } #endif +#ifdef __ia64__ +#include "ia64_intrinsic.h" +static inline int testandset (int *p) +{ + uint32_t o = 0, n = 1; + return (int)cmpxchg_acq(p, o, n); +} +#endif + #ifdef __s390__ static inline int testandset (int *p) { I've merged it with the existing __ia64 case. christian _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |