atomic: replace operand size with 32-bit %eax
This commit is contained in:
parent
922a51d36f
commit
b9ffc10ace
1 changed files with 2 additions and 2 deletions
|
|
@ -10,8 +10,8 @@ atomic_cmpxchg:
|
|||
|
||||
/* if ZF is set, the exchange was successful */
|
||||
jnz nz
|
||||
xorq %rax, %rax
|
||||
xorl %eax, %eax
|
||||
ret
|
||||
nz:
|
||||
movq $1, %rax
|
||||
movl $1, %eax
|
||||
ret
|
||||
|
|
|
|||
Loading…
Reference in a new issue