]> www.infradead.org Git - users/dwmw2/linux.git/commit
locking/atomic/x86: Use ALT_OUTPUT_SP() for __arch_{,try_}cmpxchg64_emu()
authorUros Bizjak <ubizjak@gmail.com>
Sun, 3 Nov 2024 16:09:32 +0000 (17:09 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 5 Nov 2024 11:55:34 +0000 (12:55 +0100)
commit25cf4fbb596d730476afcc0fb87a9d708db14078
treec961ad526b4c59d605f9d2594c4226693e7a55cf
parent8b64db9733c2e4d30fd068d0b9dcef7b4424b035
locking/atomic/x86: Use ALT_OUTPUT_SP() for __arch_{,try_}cmpxchg64_emu()

x86_32 __arch_{,try_}cmpxchg64_emu()() macros use CALL instruction
inside asm statement. Use ALT_OUTPUT_SP() macro to add required
dependence on %esp register.

Fixes: 79e1dd05d1a2 ("x86: Provide an alternative() based cmpxchg64()")
Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20241103160954.3329-2-ubizjak@gmail.com
arch/x86/include/asm/cmpxchg_32.h