Sign in

username:

password:



Not a member?

Search c6x



Search tips

Subscribe to c6x



c6x by Keywords

AD535 | BIOS | Booting | Bootloader | C621 | C6211 | C6415 | C671 | C6711 | C6711DSK | C6713 | CCS | Chassaing | COFF | DAT | DM64 | DM642 | DMA | DSK671 | DSK6711 | EDM | EDMA | EMIF | Emulator | EVM | EVM620 | FFT | FIR | GPIO | Halting | HPI | HWI | IDK | JTAG | LDB | LDH | LDW | Linker | LMS | LOG_printf | Matlab | McBSP | MEM_alloc | MIPS | PCI | PCM3003 | Pipeline | Profiling | QDM | Reset | ROM | RTDX | Sampling | SDRAM | Stack | TEB | THS1206 | TMS320C621 | TMS320C6416 | TMS320C6711 | TMS320C6713 | UART | Vector Table | XBUS | XDS560


Discussion Groups

See Also

Embedded SystemsFPGAElectronics

Discussion Groups | TMS320C6x | malloc, free and SWI's


Technical discussions about the TI C6000 DSPs (including the c62x, c64x and c67x DSPs).

  

Post a new Thread

malloc, free and SWI's - Brad Cadle - Aug 3 23:13:00 2001

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


______________________________
Start your Android Ice Cream Sandwich development on TI's AM35x Sitara ARM Cortex-A8 processor today.



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )