Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 181146
b: refs/heads/master
c: 7013109
h: refs/heads/master
v: v3
  • Loading branch information
Giuseppe CAVALLARO authored and Paul Mundt committed Jan 27, 2010
1 parent 44790a3 commit e674df1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 660e2acad81c19b404f7d7d06e57a6d5e6ce7426
refs/heads/master: 7013109f52ff38ad9ea38952cedc144c8e8b9636
7 changes: 3 additions & 4 deletions trunk/arch/sh/include/asm/cmpxchg-grb.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,10 @@ static inline unsigned long __cmpxchg_u32(volatile int *m, unsigned long old,
" mov.l @%1, %0 \n\t" /* load old value */
" cmp/eq %0, %2 \n\t"
" bf 1f \n\t" /* if not equal */
" mov.l %2, @%1 \n\t" /* store new value */
" mov.l %3, @%1 \n\t" /* store new value */
"1: mov r1, r15 \n\t" /* LOGOUT */
: "=&r" (retval),
"+r" (m)
: "r" (new)
: "=&r" (retval)
: "r" (m), "r" (old), "r" (new)
: "memory" , "r0", "r1", "t");

return retval;
Expand Down

0 comments on commit e674df1

Please sign in to comment.