diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-06-07 12:22:03 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-08-06 12:55:49 -0400 |
commit | a13265af99c8c10c61b7713d62d8d163fbf30a94 (patch) | |
tree | 3686387fb1168efc2e7987cca0a849843c8c0673 | |
parent | 1ae9ab17e7c951eac55ebe40f6f19e7f2470c305 (diff) | |
download | kernel_goldelico_gta04-a13265af99c8c10c61b7713d62d8d163fbf30a94.zip kernel_goldelico_gta04-a13265af99c8c10c61b7713d62d8d163fbf30a94.tar.gz kernel_goldelico_gta04-a13265af99c8c10c61b7713d62d8d163fbf30a94.tar.bz2 |
Blackfin: fix typo in hweight asm
Run ONES on the incoming value rather than random garbage. This fixes
random crashes with some networking code.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r-- | arch/blackfin/include/asm/bitops.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/blackfin/include/asm/bitops.h b/arch/blackfin/include/asm/bitops.h index 605ba8e..d5872cd 100644 --- a/arch/blackfin/include/asm/bitops.h +++ b/arch/blackfin/include/asm/bitops.h @@ -119,7 +119,7 @@ static inline unsigned int hweight32(unsigned int w) { unsigned int res; - __asm__ ("%0.l = ONES %0;" + __asm__ ("%0.l = ONES %1;" "%0 = %0.l (Z);" : "=d" (res) : "d" (w)); return res; |