[ECOS] configuration for malloc

Jonathan Larmour jifl@eCosCentric.com
Tue Apr 1 22:40:00 GMT 2003

paape@Hi-Techniques.com wrote:
> hello,
> I'm attempting to use malloc in my i386 configuration.  The call always
> returns zero.
> If I enable 'asserting', I see the following at startup:
> <1>mvarimpl.inl[184]Cyg_Mempool_Variable_Implementation::Cyg_Mempoo
> l_Variable_Implementation() heap too small
> ASSERT FAIL: <1>mvarimpl.inl        [ 184]
> Cyg_Mempool_Variable_Implementation::
> Cyg_Mempool_Variable_Implementation()                           heap too
> small

As per another mail just sent to the list, the fallback value isn't used 
if there is a heap1 section in the linker script. If you have one it will 
be used in preference and if the value it is using is wrong it is because 
the memory layout for your platform is wrong.

eCosCentric    http://www.eCosCentric.com/    The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[  can rejoice because thorns have roses." -Lincoln   ]-- Opinions==mine

Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

More information about the Ecos-discuss mailing list