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=91c69c4205d13cd303abb92c96f51cea606faa10;p=people%2Fjulieng%2Ffreebsd.git x86/xen: Introduce atomic_readandclear_xen_ulong --- diff --git a/sys/amd64/include/xen/xen-os.h b/sys/amd64/include/xen/xen-os.h index e4f5ad0d5c5a..2688c5424e26 100644 --- a/sys/amd64/include/xen/xen-os.h +++ b/sys/amd64/include/xen/xen-os.h @@ -131,6 +131,8 @@ extern start_info_t *xen_start_info; #define xen_pmap(pa, size) pmap_mapdev((pa), (size)) +#define atomic_readandclear_xen_ulong(p) atomic_readandclear_long(p) + #define cpu_to_vcpu_id(cpu) pcpu_find(cpu)->pc_vcpu_id diff --git a/sys/i386/include/xen/xen-os.h b/sys/i386/include/xen/xen-os.h index 0af67ea8a6da..90f02f38d6f9 100644 --- a/sys/i386/include/xen/xen-os.h +++ b/sys/i386/include/xen/xen-os.h @@ -187,6 +187,8 @@ static __inline__ void atomic_inc(atomic_t *v) #define xen_pmap(pa, size) pmap_mapdev((pa), (size)) +#define atomic_readandclear_xen_ulong(p) atomic_readandclear_long(p) + #define cpu_to_vcpu_id(cpu) pcpu_find(cpu)->pc_vcpu_id #endif /* !__ASSEMBLY__ */