From b9ffc10ace6c59c6f8227670d1608be4a3cf4edd Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Tue, 26 Nov 2024 21:09:42 -0500 Subject: [PATCH] atomic: replace operand size with 32-bit %eax --- lib/atomic.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/atomic.S b/lib/atomic.S index 66900b2..6cf4dd9 100644 --- a/lib/atomic.S +++ b/lib/atomic.S @@ -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