1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <linux/linkage.h>
4 #include <asm/export.h>
10 * %esi : memory location to compare
11 * %eax : low 32 bits of old value
12 * %edx : high 32 bits of old value
13 * %ebx : low 32 bits of new value
14 * %ecx : high 32 bits of new value
16 SYM_FUNC_START(cmpxchg8b_emu)
19 # Emulate 'cmpxchg8b (%esi)' on UP except we don't
20 # set the whole ZF thing (caller will just compare
21 # eax:edx with the expected value)
45 SYM_FUNC_END(cmpxchg8b_emu)
46 EXPORT_SYMBOL(cmpxchg8b_emu)