Open Sonicadvance1 opened 2 years ago
Currently we convert all lock RMW ops to acquire-release semantics.
Couple weird things to investigate here
lock cmpxchg
nop cmpxchg
Citation needed.
LOCK_PREFIX is defined here
https://github.com/torvalds/linux/blob/8291eaafed36f575f23951f3ce18407f480e9ecf/arch/x86/include/asm/alternative.h#L16-L50
and the patching mechanism is
https://github.com/torvalds/linux/blob/8291eaafed36f575f23951f3ce18407f480e9ecf/arch/x86/kernel/alternative.c#L872-L886
Currently we convert all lock RMW ops to acquire-release semantics.
Couple weird things to investigate here
lock cmpxchg
in tonop cmpxchg
on uniprocessors? Citation needed.