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 */
|
/* if ZF is set, the exchange was successful */
|
||||||
jnz nz
|
jnz nz
|
||||||
xorq %rax, %rax
|
xorl %eax, %eax
|
||||||
ret
|
ret
|
||||||
nz:
|
nz:
|
||||||
movq $1, %rax
|
movl $1, %eax
|
||||||
ret
|
ret
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue