atomic: replace operand size with 32-bit %eax

This commit is contained in:
Michael Shaw 2024-11-26 21:09:42 -05:00
commit b9ffc10ace

View file

@ -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