|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 1/2] asm/atomic.h: common prototyping (add xen/atomic.h)
Hi Julien, On 7/13/2016 3:14 PM, Julien Grall wrote: Hi Corneliu, On 13/07/2016 12:23, Corneliu ZUZU wrote:Following Andrew Cooper's suggestion, create a common-side <xen/atomic.h> to establish, among others, prototypes of atomic functions called from common-code. Done to avoid introducing inconsistencies between arch-side <asm/atomic.h>headers when we make subtle changes to one of them.Some arm-side macros had to be turned into inline functions in the process.You forgot to mention that you moved the code from asm-arm/arm{32,64}/atomic.h to asm-arm/arm.h.Furthermore, this change should really be a separate patch. Noted, will do. Also includes a minor adjustment asm-x86/atomic.h: reorder atomic_inc_and_test()to follow after atomic_inc(). Signed-off-by: Corneliu ZUZU <czuzu@xxxxxxxxxxxxxxx>[...]diff --git a/xen/include/asm-arm/atomic.h b/xen/include/asm-arm/atomic.h index 29ab265..8e8c5d1 100644 --- a/xen/include/asm-arm/atomic.h +++ b/xen/include/asm-arm/atomic.h @@ -2,6 +2,7 @@ #define __ARCH_ARM_ATOMIC__ #include <xen/config.h> +#include <xen/atomic.h> #include <xen/prefetch.h> #include <asm/system.h> @@ -95,15 +96,6 @@ void __bad_atomic_size(void);default: __bad_atomic_size(); break; \} \ }) - -/*- * NB. I've pushed the volatile qualifier into the operations. This allows - * fast accessors such as _atomic_read() and _atomic_set() which don't give Oh yeah, given that Xen's compiled with -Wall -Werror that's not necessary. Ack.
Thanks, Corneliu. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |