Skip to content

Commit

Permalink
Fix i386 build broken by the merge of e76373d
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Matuska <mm@FreeBSD.org>
Closes openzfs#12244
  • Loading branch information
amotin authored and mmatuska committed Jun 18, 2021
1 parent 3de7aeb commit 5d5de66
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/libspl/asm-i386/atomic.S
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,7 @@
SET_SIZE(atomic_swap_32)

ENTRY(atomic_swap_64)
ALTENTRY(atomic_store_64)
pushl %esi
pushl %ebx
movl 12(%esp), %esi
Expand All @@ -776,8 +777,20 @@
popl %ebx
popl %esi
ret
SET_SIZE(atomic_store_64)
SET_SIZE(atomic_swap_64)

ENTRY(atomic_load_64)
pushl %esi
movl 8(%esp), %esi
movl %ebx, %eax
movl %ecx, %edx
lock
cmpxchg8b (%esi)
popl %esi
ret
SET_SIZE(atomic_load_64)

ENTRY(atomic_set_long_excl)
movl 4(%esp), %edx
movl 8(%esp), %ecx
Expand Down

0 comments on commit 5d5de66

Please sign in to comment.