Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191470
b: refs/heads/master
c: f3e8313
h: refs/heads/master
v: v3
  • Loading branch information
Luca Barbieri authored and H. Peter Anvin committed Mar 1, 2010
1 parent 6dc4264 commit 8d390d2
Show file tree
Hide file tree
Showing 3 changed files with 3 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: 25a304f277ad70166eeae25a4958d2049005c33a
refs/heads/master: f3e83131469e29032a700217aa394996107b8fc5
3 changes: 1 addition & 2 deletions trunk/arch/x86/lib/atomic64_386_32.S
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,12 @@ BEGIN inc_not_zero %esi
adcl $0, %edx
movl %eax, ($v)
movl %edx, 4($v)
xorl %eax, %eax
movl $1, %eax
2:
RETURN
3:
testl %edx, %edx
jne 1b
movl $1, %eax
jmp 2b
END_

Expand Down
3 changes: 1 addition & 2 deletions trunk/arch/x86/lib/atomic64_cx8_32.S
Original file line number Diff line number Diff line change
Expand Up @@ -212,14 +212,13 @@ ENTRY(atomic64_inc_not_zero_cx8)
cmpxchg8b (%esi)
jne 1b

xorl %eax, %eax
movl $1, %eax
3:
RESTORE ebx
ret
4:
testl %edx, %edx
jne 2b
movl $1, %eax
jmp 3b
CFI_ENDPROC
ENDPROC(atomic64_inc_not_zero_cx8)

0 comments on commit 8d390d2

Please sign in to comment.