[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.


  • To: "Akio Takebe" <takebe_akio@xxxxxxxxxxxxxx>
  • From: "Christian Limpach" <christian.limpach@xxxxxxxxx>
  • Date: Wed, 26 Jul 2006 13:41:56 +0100
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, "Zhang, Xiantao" <xiantao.zhang@xxxxxxxxx>, xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 26 Jul 2006 05:42:32 -0700
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MgoTf1rbZQpT515FQoQ6S3yvWgnGHstEVpzszM/K3zrd4uVW+XVYQdDBEPaFWgDiQf/qhi9m4kACutgNfEAQ643Waz7o5Va+8TvOS2fe3p4bIRfqwT4odu7jOZ6hdbwvw/rtt3NxnN4jb+ZpIttSZOrXuS0ijvbP+C95t8H8Pb4=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.