I'm trying to find a reference indicating which DSP/BIOS functions inherently call LCK_pend/LCK_post. I found the following FAQ regarding RTS functions: http://processors.wiki.ti.com/index.php/DSP_BIOS_FAQ , but this doesn't seem to be an exhaustive list.
The reason is that I've downloaded lck.c from http://processors.wiki.ti.com/index.php?title=DSP_BIOS_Debugging_Tips , and I've found that on occasion I'm calling LCK_pend/post from either SWI or HWI context, but I can't quite find where.