Re: [PATCH V2]sh: cmpxchg: fix a bit shift bug in big_endian os

2016-04-26 Thread Pan Xinhui
On 2016年04月26日 09:39, Rich Felker wrote: > On Wed, Apr 20, 2016 at 02:41:00PM +0800, Pan Xinhui wrote: >> From: Pan Xinhui >> >> Correct bitoff in big endian OS. >> Current code works correctly for 1 byte but not for 2 bytes. >> >> Fixes: 3226aad81aa6 ("sh: support 1 and 2 byte xchg") >> Signed-o

Re: [PATCH V2]sh: cmpxchg: fix a bit shift bug in big_endian os

2016-04-25 Thread Rich Felker
On Wed, Apr 20, 2016 at 02:41:00PM +0800, Pan Xinhui wrote: > From: Pan Xinhui > > Correct bitoff in big endian OS. > Current code works correctly for 1 byte but not for 2 bytes. > > Fixes: 3226aad81aa6 ("sh: support 1 and 2 byte xchg") > Signed-off-by: Pan Xinhui > Acked-by: Michael S. Tsirkin

[PATCH V2]sh: cmpxchg: fix a bit shift bug in big_endian os

2016-04-19 Thread Pan Xinhui
From: Pan Xinhui Correct bitoff in big endian OS. Current code works correctly for 1 byte but not for 2 bytes. Fixes: 3226aad81aa6 ("sh: support 1 and 2 byte xchg") Signed-off-by: Pan Xinhui Acked-by: Michael S. Tsirkin --- changes from V1: just add some patch comments. no code changes