seL4/include/smp
jonas fe1278326f Repair barriers in clh_lock_acquire
Strengthen the clh_lock_acquire to use release on the atomic_exchange
that makes the node public. Otherwise (on ARM & RISCV), the store to
the node value which sets its state to CLHState_Pending can become
visible some time after the node is visible.
In that window of time, the next thread which attempts to acquire the
lock will still see the old state (CLHState_Granted) and enters the
critical section, leading to a mutual exclusion violation.

Signed-off-by: jonas <s9joober@gmail.com>
2020-06-22 11:53:08 +10:00
..
ipi.h replacing all ifndef with pargma once 2020-03-23 11:04:46 +11:00
lock.h Repair barriers in clh_lock_acquire 2020-06-22 11:53:08 +10:00