1 C LB+unlocklockonceonce+poacquireonce
6 * If two locked critical sections execute on the same CPU, all accesses
7 * in the first must execute before any accesses in the second, even if the
8 * critical sections are protected by different locks. Note: Even when a
9 * write executes before a read, their memory effects can be reordered from
10 * the viewpoint of another CPU (the kind of reordering allowed by TSO).
15 P0(spinlock_t *s, spinlock_t *t, int *x, int *y)
31 r2 = smp_load_acquire(y);
35 exists (0:r1=1 /\ 1:r2=1)