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.

OMAPL138 - C6RUN_MEM_malloc()

Other Parts Discussed in Thread: OMAPL138

Hi,

I use an OMAPL138 with 128MB DDR.

I use C6Run and define the following memory map:
C6RUNDSPREGIONBASEADDR_omapl138    = "0xC1C00000" #28MB
C6RUNDSPREGIONCMEMSIZE_omapl138    = "0x04800000" #72MB
C6RUNDSPREGIONCODESIZE_omapl138    = "0x01C00000" #28MB

100MB should be allocated for CMEM and CODE_DSP.

When I do a "C6RUN_MEM_malloc( )" of 80MB, the function returns a pointer not null whereas it should not work.

Does anybody know something about the "C6RUN_MEM_malloc( )" function ?

Does it allocated in the "CMEM" location ?

  • Robert,

    Yes, the C6RUN_MEM_malloc routine does allocate from the CMEM region. But, in order to save the overhead of going in and out of the CMEM kernel module, we allocate the entire region upfront and then manage malloc and free operations from user-space.  I'll double check how those operations would deal with too large allocations - it should return an error and if not, I would consider that a bug.

    Regards, Daniel