Hi,
We're using DSP/BIOS 5.41.03.17 on the OMAP-L138 and had the following code:
TSK_disable() ;
x = malloc( 128 ) ;
...
TSK_enable() ;
free (x) ;
For some reason after calling this code the system would hang in future malloc() calls. Moving malloc() before TSK_disable() made everything work again. Is the above code bad? If so, is placing TSK_disable() around any function listed at "http://processors.wiki.ti.com/index.php/DSP_BIOS_FAQ#Q:_Can_runtime_support_.28RTS.29_functions_be_called_when_using_DSP.2FBIOS.3F" considered bad?
On a related note, is it OK to do things like the following?
1) TSK_disable() ; my_global_flag = 0; SEM_postBinary(...) ; TSK_enable() ;
2) key = _disable_interrupts() ; my_global_flag2 = 0 ; SEM_postBinary(...) ; _restore_interrupts(key) ;
Thanks,
Will