[PATCH 1/1] ARM: atomic64: fix endian-ness in atomic.h

Will Deacon will.deacon at arm.com
Fri Jul 26 13:09:49 EDT 2013


On Fri, Jul 26, 2013 at 05:28:53PM +0100, Victor Kamensky wrote:
> Fix inline asm for atomic64_xxx functions in arm atomic.h. Instead of
> %H operand specifiers code should use %Q for least significant part
> of the value, and %R for the most significant part of the value. %H
> always returns the higher of the two register numbers, and therefore
> it is not endian neutral. %H should be used with ldrexd and strexd
> instructions.
> 
> Signed-off-by: Victor Kamensky <victor.kamensky at linaro.org>
> ---

Acked-by: Will Deacon <will.deacon at arm.com>

Will



More information about the linux-arm-kernel mailing list