
Technical discussions about the TI C6000 DSPs (including the c62x, c64x and c67x DSPs).
|
Okay Folks,
I had used SPRU403A for a
long time as my DSP/BIOS reference. I recently downloaded SPRU403C and
noticed a few things.
In SPRU403A it indicates
that Mem_alloc cannot be called from within an ISR. I took that to
mean that the DSP?BIOS Mem_Alloc could not be called from within a Hardware
interrupt Routine.
Subsequently I thought I had read that calls to
malloc and free a replaced by calls using the Mem Functions. This seems
okay as I saw no reason one would malloc and free in HWI's anyway.
Upon downloading SPRU403C I see that they
state the MEM_ functions cannot be called in EITHER SWI's or
HWI's.
Does this mean that I cannot malloc memory from
within an SWI?
Note I have code that does in fact call malloc
and free withing SWI's. It seems to run okay. Are the constraints
they describe in SPRU403C implied constraints meaning that it can work, but it
is not recommended?
-Brad
---------------------------------------------------------
Brad Cadle: b...@bioscrypt.com http://www.biometricid.com |