This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: configuration for malloc
- From: Jonathan Larmour <jifl at eCosCentric dot com>
- To: paape at Hi-Techniques dot com
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Tue, 01 Apr 2003 23:40:34 +0100
- Subject: Re: [ECOS] configuration for malloc
- References: <F1F0D8BB498ED411A06C00A0CC5C0C42111B71@XSV1>
paape at Hi-Techniques dot 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:
ASSERT FAIL:
<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.
Jifl
--
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