Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299281
b: refs/heads/master
c: c76f39b
h: refs/heads/master
i:
  299279: 7ac1375
v: v3
  • Loading branch information
Luck, Tony authored and Linus Torvalds committed Apr 17, 2012
1 parent 179c952 commit 81f455d
Show file tree
Hide file tree
Showing 2 changed files with 6 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: c06a9ebdb7a4f4823d4225fe789d8c20a1d534eb
refs/heads/master: c76f39bddb84f93f70a5520d9253ec0317bec216
9 changes: 5 additions & 4 deletions trunk/arch/ia64/include/asm/futex.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,16 @@ futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr,
return -EFAULT;

{
register unsigned long r8 __asm ("r8") = 0;
register unsigned long r8 __asm ("r8");
unsigned long prev;
__asm__ __volatile__(
" mf;; \n"
" mov ar.ccv=%3;; \n"
"[1:] cmpxchg4.acq %0=[%1],%2,ar.ccv \n"
" mov %0=r0 \n"
" mov ar.ccv=%4;; \n"
"[1:] cmpxchg4.acq %1=[%2],%3,ar.ccv \n"
" .xdata4 \"__ex_table\", 1b-., 2f-. \n"
"[2:]"
: "=r" (prev)
: "=r" (r8), "=r" (prev)
: "r" (uaddr), "r" (newval),
"rO" ((long) (unsigned) oldval)
: "memory");
Expand Down

0 comments on commit 81f455d

Please sign in to comment.