microblaze: Fix futex code

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Wednesday, April 7, 2010 - 9:59 am

Gitweb:     http://git.kernel.org/linus/4bb30baa6d5e7660c06e3b50d8a8a76d402c7170
Commit:     4bb30baa6d5e7660c06e3b50d8a8a76d402c7170
Parent:     d2bf98e6fc2612cbd2fc40f75a1e2c5d60262331
Author:     Michal Simek <monstr@monstr.eu>
AuthorDate: Tue Apr 6 18:51:37 2010 +0200
Committer:  Michal Simek <monstr@monstr.eu>
CommitDate: Wed Apr 7 07:27:25 2010 +0200

    microblaze: Fix futex code
    
    Use logical and NOT for ANDN. It was likely type fault.
    
    Signed-off-by: Michal Simek <monstr@monstr.eu>
---
 arch/microblaze/include/asm/futex.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/microblaze/include/asm/futex.h b/arch/microblaze/include/asm/futex.h
index 8dbb6e7..ad3fd61 100644
--- a/arch/microblaze/include/asm/futex.h
+++ b/arch/microblaze/include/asm/futex.h
@@ -55,7 +55,7 @@ futex_atomic_op_inuser(int encoded_op, int __user *uaddr)
 		__futex_atomic_op("or %1,%0,%4;", ret, oldval, uaddr, oparg);
 		break;
 	case FUTEX_OP_ANDN:
-		__futex_atomic_op("and %1,%0,%4;", ret, oldval, uaddr, oparg);
+		__futex_atomic_op("andn %1,%0,%4;", ret, oldval, uaddr, oparg);
 		break;
 	case FUTEX_OP_XOR:
 		__futex_atomic_op("xor %1,%0,%4;", ret, oldval, uaddr, oparg);
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
microblaze: Fix futex code, Linux Kernel Mailing ..., (Wed Apr 7, 9:59 am)