__clear_lock_up, __clear_lockd_up
Purpose
Clear Lock on Uniprocessor Systems, Clear Lock Doubleword on Uniprocessor Systems
Atomic store of the value into the variable at the address addr.
Prototype
void __clear_lock_up (const int* addr, int value);
void __clear_lockd_up (const long* addr, long value);
Parameters
- addr
- The address of the variable to be updated. Must be aligned on a 4-byte boundary for a single word and on an 8-byte boundary for a doubleword.
- value
- The new value to be assigned to the variable in addr.
Note:
This function generates the hardware instruction but does not act as an instruction movement barrier within the compiler. If that is needed, you must also use the __fence function.


