]> git.baikalelectronics.ru Git - kernel.git/commit
sh: cmpxchg: fix a bit shift bug in big_endian os
authorPan Xinhui <xinhui.pan@linux.vnet.ibm.com>
Wed, 20 Apr 2016 06:41:00 +0000 (14:41 +0800)
committerRich Felker <dalias@libc.org>
Sun, 31 Jul 2016 03:33:32 +0000 (03:33 +0000)
commit90acf723f322af8e36474933c9e9b7f274f0b967
tree4b7fe3f1cf044b116366ccaab61c35a82d18ff80
parentab16c16cba20a541ffd9c2b95bf261eef234f24d
sh: cmpxchg: fix a bit shift bug in big_endian os

Correct bitoff in big endian OS.
Current code works correctly for 1 byte but not for 2 bytes.

Fixes: fb2119f3b204 ("sh: support 1 and 2 byte xchg")
Signed-off-by: Pan Xinhui <xinhui.pan@linux.vnet.ibm.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Rich Felker <dalias@libc.org>
arch/sh/include/asm/cmpxchg-xchg.h