svn commit: r246993 - projects/amd64_xen_pv/sys/amd64/include/xen
Cherry G. Mathew
cherry at FreeBSD.org
Tue Feb 19 15:02:17 UTC 2013
Author: cherry
Date: Tue Feb 19 15:02:17 2013
New Revision: 246993
URL: http://svnweb.freebsd.org/changeset/base/246993
Log:
Add assembler for 64bit locked exchange.
Approved by: gibbs (implicit)
Modified:
projects/amd64_xen_pv/sys/amd64/include/xen/xen-os.h
Modified: projects/amd64_xen_pv/sys/amd64/include/xen/xen-os.h
==============================================================================
--- projects/amd64_xen_pv/sys/amd64/include/xen/xen-os.h Tue Feb 19 14:39:10 2013 (r246992)
+++ projects/amd64_xen_pv/sys/amd64/include/xen/xen-os.h Tue Feb 19 15:02:17 2013 (r246993)
@@ -220,6 +220,11 @@ static __inline unsigned long __xchg(uns
:"=r" (x)
:"m" (*__xg(ptr)), "0" (x)
:"memory");
+ case 8:
+ __asm__ __volatile__("xchgq %0,%1"
+ :"=r" (x)
+ :"m" (*__xg(ptr)), "0" (x)
+ :"memory");
break;
}
return x;
More information about the svn-src-projects
mailing list