This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

A question about __unlock

for F2801, and use CCSV3.1   (TMS320C2000 COFF Linker PC v4.1.0 )                    
in .map,

00008e88   __unlock
00008e8a   __lock


When and where use  __unlock and __lock?

 

Thank you!

  • They are runtime library support variables that store internal library state.  Without them, some features of the RTS library couldn't be implemented.  They are not meant to be accessed by the user.  __lock and __unlock store information needed to implement critical sections in some functions. 

    Edit: Actually __lock and __unlock are better explained in the Compiler Users Guide. Please check section 8.4 of the C28x Compiler Users Guide.