Skip to content

Commit

Permalink
[S390] Fix __ffs_word_loop/__ffz_word_loop inlnie assembly.
Browse files Browse the repository at this point in the history
The black art of inline assemblies.. The new __ffs_word_loop/
__ffz_word_loop inline assemblies need an early clobber for the
two input/output variables.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Martin Schwidefsky committed Feb 9, 2008
1 parent 1ee92a1 commit 6d88f82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/asm-s390/bitops.h
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ static inline unsigned long __ffz_word_loop(const unsigned long *addr,
" brct %1,0b\n"
"1:\n"
#endif
: "+a" (bytes), "+d" (size)
: "+&a" (bytes), "+&d" (size)
: "d" (-1UL), "a" (addr), "m" (*(addrtype *) addr)
: "cc" );
return bytes;
Expand Down Expand Up @@ -507,7 +507,7 @@ static inline unsigned long __ffs_word_loop(const unsigned long *addr,
" brct %1,0b\n"
"1:\n"
#endif
: "+a" (bytes), "+a" (size)
: "+&a" (bytes), "+&a" (size)
: "d" (0UL), "a" (addr), "m" (*(addrtype *) addr)
: "cc" );
return bytes;
Expand Down

0 comments on commit 6d88f82

Please sign in to comment.