This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: heap joining & heapgen.tcl
- From: Michael Jastrebtsoff <jam2000 at pisem dot net>
- To: ecos-discuss at sources dot redhat dot com
- Date: Thu, 8 Jul 2004 16:04:08 +0700
- Subject: Re: [ECOS] heap joining & heapgen.tcl
- References: <355676549.20040708153110@pisem.net>
- Reply-to: Michael Jastrebtsoff <jam2000 at pisem dot net>
Hello,
It seems I've found a decision:
.__heap2_section 0x03000000 :
{
CYG_LABEL_DEFN(__heap2) = ALIGN (0x8);
KEEP (*(.__heap2_section))
} > ram2
--
Regards,
Mike
MJ> Hello, All.
MJ> I want to use two memory regions for heap(as knows as "heap joining" )
MJ> I've changed *.ldi file:
MJ> MEMORY
MJ> {
MJ> ...
MJ> ram : ORIGIN = 0x02000000, LENGTH = 0x80000
MJ> ram2 : ORIGIN = 0x03000000, LENGTH = 0x80000
MJ> }
MJ> ...
MJ> SECTIONS
MJ> {
MJ> ...
MJ> CYG_LABEL_DEFN(__heap1) = ALIGN (0x8);
MJ> ._heap2 0x03000000 : { . = .; KEEP (*(._heap2)) } > ram2
MJ> ...
MJ> }
MJ> But the problem is that heapgen.tcl can't find _heap2.
MJ> As a matter of fact memalloc package must "see" the second region of memory for heap.
MJ> For search of memory regions for heaps in heapgen.tcl file
MJ> is used the following:
MJ> if [ regexp {^[ \t]+(CYG_LABEL_DEFN\(|)[ \t]*_*heap} $line ]
MJ> I am not regexp guru, but as far as
MJ> I understand regular expressions mean search of CYG_LABEL_DEFN(...)?
MJ> How can I correctly define section for heap2.? (ram2 memory
MJ> region will be used only for heap2)
MJ> --
MJ> Regards,
MJ> Michael
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss