]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
ARM: arm64: activate atomic 64-bit accessors
authorAndre Przywara <andre.przywara@arm.com>
Thu, 16 Mar 2017 11:20:10 +0000 (11:20 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 22 Mar 2017 22:49:48 +0000 (15:49 -0700)
For some reason (probably because there was no user before) the 64-bit
atomic access wrappers were commented out so far.
As we will need them in the next patch, active (and fix) them now.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/include/asm-arm/atomic.h

index e76b7678d7758d34f23b86d6b8fe77b11d207183..50f2835e355dc5760b22ea5be50e34cbdebb537b 100644 (file)
@@ -52,9 +52,9 @@ build_atomic_write(write_u16_atomic, "h", WORD, uint16_t, "r")
 build_atomic_write(write_u32_atomic, "",  WORD, uint32_t, "r")
 build_atomic_write(write_int_atomic, "",  WORD, int, "r")
 
-#if 0 /* defined (CONFIG_ARM_64) */
-build_atomic_read(read_u64_atomic, "x", uint64_t, "=r")
-build_atomic_write(write_u64_atomic, "x", uint64_t, "r")
+#if defined (CONFIG_ARM_64)
+build_atomic_read(read_u64_atomic, "", "", uint64_t, "=r")
+build_atomic_write(write_u64_atomic, "", "", uint64_t, "r")
 #endif
 
 build_add_sized(add_u8_sized, "b", BYTE, uint8_t, "ri")