test and set lock

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Ozguxxx

test and set lock

Post by Ozguxxx »

Hi is there an intel version of the tsl instruction that tanenbaum tells about in his book?
TSL: Test and set lock
----------------------------
Copies value of some memory location to a register and sets a new value to this memory location. All this is done atomically.
DevL

Re:test and set lock

Post by DevL »

Have you lookd in the Intel manuals yet? Volume 2 would be your best bet.
Tim

Re:test and set lock

Post by Tim »

LOCK XCHG, but read the manual.
Ozguxxx

Re:test and set lock

Post by Ozguxxx »

Hey thanx, I read manual ;D.
Post Reply