--- - branch: MAIN date: Sun Feb 13 13:41:44 UTC 2022 files: - new: '1.17' old: '1.16' path: src/sys/arch/m68k/include/lock.h pathrev: src/sys/arch/m68k/include/lock.h@1.17 type: modified id: 20220213T134144Z.ee0479a43aeaa2bbcb98046a1d9f51751ae1e1ee log: | m68k: __cpu_simple_unlock audit. - Use `cc' clobbers in asm volatile because they touch the condition codes. - Use `memory' clobbers in asm volatile so the compiler doesn't move up loads and stores in the critical section at _other_ addresses than the lock so they happen before __cpu_simple_lock or __cpu_simple_lock_try. - Not sure if we have any (or if there even are any?) multicore m68k systems out there, but __cpu_simple_unlock needs __insn_barrier either way so the compiler doesn't delay loads and stores prior to __cpu_simple_unlock so they happen after it. module: src subject: 'CVS commit: src/sys/arch/m68k/include' unixtime: '1644759704' user: riastradh