Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27161
b: refs/heads/master
c: bafe00c
h: refs/heads/master
i:
  27159: ed96fe2
v: v3
  • Loading branch information
Martin Schwidefsky authored and Linus Torvalds committed Jun 8, 2006
1 parent 4618daa commit 0702b91
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 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: 71601e2b33dad9acb8d7844f7321f90ed9d1bce8
refs/heads/master: bafe00cc9297ca77b66e5c83e5e65e17c0c997c8
15 changes: 8 additions & 7 deletions trunk/include/asm-s390/futex.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,24 @@
#define __futex_atomic_fixup \
".section __ex_table,\"a\"\n" \
" .align 4\n" \
" .long 0b,2b,1b,2b\n" \
" .long 0b,4b,2b,4b,3b,4b\n" \
".previous"
#else /* __s390x__ */
#define __futex_atomic_fixup \
".section __ex_table,\"a\"\n" \
" .align 8\n" \
" .quad 0b,2b,1b,2b\n" \
" .quad 0b,4b,2b,4b,3b,4b\n" \
".previous"
#endif /* __s390x__ */

#define __futex_atomic_op(insn, ret, oldval, newval, uaddr, oparg) \
asm volatile(" l %1,0(%6)\n" \
"0: " insn \
" cs %1,%2,0(%6)\n" \
"1: jl 0b\n" \
asm volatile(" sacf 256\n" \
"0: l %1,0(%6)\n" \
"1: " insn \
"2: cs %1,%2,0(%6)\n" \
"3: jl 1b\n" \
" lhi %0,0\n" \
"2:\n" \
"4: sacf 0\n" \
__futex_atomic_fixup \
: "=d" (ret), "=&d" (oldval), "=&d" (newval), \
"=m" (*uaddr) \
Expand Down

0 comments on commit 0702b91

Please sign in to comment.