Message ID | 20170316112030.20419-8-andre.przywara@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Hi Andre, On 16/03/17 11:20, Andre Przywara wrote: > 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> Regards,
On Wed, 22 Mar 2017, Julien Grall wrote: > Hi Andre, > > On 16/03/17 11:20, Andre Przywara wrote: > > 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> I committed this patch.
diff --git a/xen/include/asm-arm/atomic.h b/xen/include/asm-arm/atomic.h index 22a5036..df9de6a 100644 --- a/xen/include/asm-arm/atomic.h +++ b/xen/include/asm-arm/atomic.h @@ -53,9 +53,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")
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> --- xen/include/asm-arm/atomic.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)