DSPRelated.com
Forums

cont... malloc problem

Started by mweb...@acumalabs.com August 25, 2005
woops hit send by accident... damn hotkey. Anyway the LDF segements I have created externally are:

seg_heaq { TYPE(DM RAM) START(0x00210002) END(0x0FFFFFFF) WIDTH(32) }ext_dmda { TYPE(DM RAM) START(0x00200000) END(0x00207fff) WIDTH(32) }
ext_pmco { TYPE(PM RAM) START(0x00204000) END(0x00208000) WIDTH(32) }

This is for the 21161 SHARC. The heaq being the secondary heap. I'm wondering if my modification of seg_init.asm in order to create an external heap might not be working on the 21161. Anyone else ever see anything like this... malloc not working after its already worked once, and plenty of memory is available. Well sorry for appending this to my original email, my bad. Thanks once again to everyone who is on here helping out (especially John and Mike), and if I find out how to cure this I will post the solution. Have a good one.
Cheers,
Matt


On Thu, 25 Aug 2005 mweber@mweb... wrote:

> woops hit send by accident... damn hotkey. Anyway the LDF segements I have created externally are:
>
> seg_heaq { TYPE(DM RAM) START(0x00210002) END(0x0FFFFFFF) WIDTH(32) }ext_dmda { TYPE(DM RAM) START(0x00200000) END(0x00207fff) WIDTH(32) }
> ext_pmco { TYPE(PM RAM) START(0x00204000) END(0x00208000) WIDTH(32) }
>
> This is for the 21161 SHARC. The heaq being the secondary heap. I'm wondering if my modification of seg_init.asm in order to create an external heap might not be working on the 21161. Anyone else ever see anything like this... malloc not working after its already worked once, and plenty of memory is available. Well sorry for appending this to my original email, my bad. Thanks once again to everyone who is on here helping out (especially John and Mike), and if I find out how to cure this I will post the solution. Have a good one.

Howdy Matt,

Do you have access to the malloc source? It may be your mod is outside
the scope of how malloc can work. If you get hold of the source, you may
be able to fix it.

This is part of the reason I stick to assembler - I control everything.
When it screws up, it really is my fault :-\

Patience, persistence, truth,
Dr. mike