atomic operation
Posted: Thu Nov 10, 2011 12:00 pm
Hi guys,
i have a confusion with automic instruction. In the following code , i have a TSL instruction, which works automic. Thats fine. But, my question is, can i conside that the whole tsl_function works automic. (like , these 4 lines will be executed without being interrupted.)
TSL_enter_region:
tsl reg, lock
cmp reg, #0
jne TSL_enter_region
ret
Thanks for your help.
i have a confusion with automic instruction. In the following code , i have a TSL instruction, which works automic. Thats fine. But, my question is, can i conside that the whole tsl_function works automic. (like , these 4 lines will be executed without being interrupted.)
TSL_enter_region:
tsl reg, lock
cmp reg, #0
jne TSL_enter_region
ret
Thanks for your help.