]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: klib: bitops: fix unpredictable stxr usage
authorMark Rutland <mark.rutland@arm.com>
Tue, 30 Apr 2013 10:11:15 +0000 (11:11 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 30 Apr 2013 14:53:01 +0000 (15:53 +0100)
commitcb1471b40b68bfcc365d13ceaa99d0276689ac43
tree93e33762f824a13ff3a9abdee0fb499db0d1dfc9
parentd27bab1aee778478bb32f9779a8c61927d6bf376
arm64: klib: bitops: fix unpredictable stxr usage

We're currently relying on unpredictable behaviour in our testops
(test_and_*_bit), as stxr is unpredictable when the status register and
the source register are the same

This patch changes reallocates the status register so as to bring us back into
the realm of predictable behaviour. Boot tested on an AEMv8 model.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/lib/bitops.S