From: Julien Grall Date: Sun, 20 Apr 2014 13:56:35 +0000 (+0100) Subject: x86/xen: Introduce atomic_readandclear_xen_ulong X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=2a7e3bb127134a9d201e0937c23fc96b9f86e6bf;p=people%2Fjulieng%2Ffreebsd.git x86/xen: Introduce atomic_readandclear_xen_ulong --- diff --git a/sys/x86/include/xen/xen-os.h b/sys/x86/include/xen/xen-os.h index 95f30747d51a..8f42e862c079 100644 --- a/sys/x86/include/xen/xen-os.h +++ b/sys/x86/include/xen/xen-os.h @@ -79,6 +79,8 @@ cpu_to_vcpu_id(u_int cpuid) return (pcpu_find(cpuid)->pc_vcpu_id); } +#define atomic_readandclear_xen_ulong(p) atomic_readandclear_long(p) + #endif /* !__ASSEMBLY__ */ #endif /* _MACHINE_X86_XEN_XEN_OS_H_ */