My next question is how does the Memory_contigAlloc function work in the
simulator? My understanding is that normally (on linux) it works by
accessing the CMEMK module and having that allocate a region that I define. 

 

However since I'm running this local to the DSP (for testing purposes). I
would have thought that it would have just been a wrapper for malloc(). The
problem is that it is allocating memory in the DDR2 section I have defined
in my .tcf file. Even though I have 

 

prog.module("MEM").MALLOCSEG  = bios.DDRALGHEAP;

 

So when I try to allocate a 4 Meg continous buffer it fails becauses its
trying to allocate in the DD2 which is a lot smaller than my DDRALGHEAP.

 

For the time being I can probably just replace it with malloc but I would
like to know if anybody has ideas.

 

Thanks,

 

Josh

 

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to