projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ae9ab1
)
Blackfin: fix typo in hweight asm
author
Mike Frysinger
<vapier@gentoo.org>
Mon, 7 Jun 2010 12:22:03 +0000
(12:22 +0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Fri, 6 Aug 2010 16:55:49 +0000
(12:55 -0400)
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>
arch/blackfin/include/asm/bitops.h
patch
|
blob
|
blame
|
history
diff --git
a/arch/blackfin/include/asm/bitops.h
b/arch/blackfin/include/asm/bitops.h
index 605ba8e9b2e4f879a9c0dcfd24267e8e46d648c3..d5872cd967ab3e793fd6f6a55e0f296b138444e3 100644
(file)
--- 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;