From: Mikael Pettersson Date: Wed, 30 Jul 2008 22:40:50 +0000 (-0700) Subject: sparc64: FUTEX_OP_ANDN fix X-Git-Tag: v2.6.27-rc2~74^2~8 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d72609e17fd93bb2f7e0f7e1bdc70b6d20e43843;p=pandora-kernel.git sparc64: FUTEX_OP_ANDN fix Correct sparc64's implementation of FUTEX_OP_ANDN to do a bitwise negate of the oparg parameter before applying the AND operation. All other archs that support FUTEX_OP_ANDN either negate oparg explicitly (frv, ia64, mips, sh, x86), or do so indirectly by using an and-not instruction (powerpc). Since sparc64 has and-not, I chose to use that solution. I've not found any use of FUTEX_OP_ANDN in glibc so the impact of this bug is probably minor. But other user-space components may try to use it so it should still get fixed. Signed-off-by: Mikael Pettersson Signed-off-by: David S. Miller --- Reading git-diff-tree failed