Broken on 386
Broken on 386
Posted Mar 15, 2012 2:00 UTC (Thu) by slashdot (guest, #22014)In reply to: Broken on 386 by slashdot
Parent article: The x86 NMI iret problem
More precisely, the LATCHED -> EXECUTING transition (in addition to the EXECUTING -> NOT_RUNNING one) is what you actually want and is done by the next assignment, so local_dec_and_test allows to remove the assignment and is just conceptually better than the cmpxchg, in addition to working on 386s.
