Skip to content

Commit

Permalink
asm: btc -> btcl
Browse files Browse the repository at this point in the history
To work with clang.
  • Loading branch information
edwintorok committed Apr 13, 2011
1 parent 198c34a commit f60c3b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86/include/asm/bitops.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ static inline void __clear_bit_unlock(unsigned nr, volatile unsigned long *addr)
*/
static inline void __change_bit(int nr, volatile unsigned long *addr)
{
asm volatile("btc %1,%0" : ADDR : "Ir" (nr));
asm volatile("btcl %1,%0" : ADDR : "Ir" (nr));
}

/**
Expand All @@ -178,7 +178,7 @@ static inline void change_bit(int nr, volatile unsigned long *addr)
: CONST_MASK_ADDR(nr, addr)
: "iq" ((u8)CONST_MASK(nr)));
} else {
asm volatile(LOCK_PREFIX "btc %1,%0"
asm volatile(LOCK_PREFIX "btcl %1,%0"
: BITOP_ADDR(addr)
: "Ir" (nr));
}
Expand Down

0 comments on commit f60c3b2

Please sign in to comment.