This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
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 15:31:10 +0700
- Subject: [ECOS] heap joining & heapgen.tcl
- Reply-to: Michael Jastrebtsoff <jam2000 at pisem dot net>
Hello, All.
I want to use two memory regions for heap(as knows as "heap joining" )
I've changed *.ldi file:
MEMORY
{
...
ram : ORIGIN = 0x02000000, LENGTH = 0x80000
ram2 : ORIGIN = 0x03000000, LENGTH = 0x80000
}
...
SECTIONS
{
...
CYG_LABEL_DEFN(__heap1) = ALIGN (0x8);
._heap2 0x03000000 : { . = .; KEEP (*(._heap2)) } > ram2
...
}
But the problem is that heapgen.tcl can't find _heap2.
As a matter of fact memalloc package must "see" the second region of memory for heap.
For search of memory regions for heaps in heapgen.tcl file
is used the following:
if [ regexp {^[ \t]+(CYG_LABEL_DEFN\(|)[ \t]*_*heap} $line ]
I am not regexp guru, but as far as
I understand regular expressions mean search of CYG_LABEL_DEFN(...)?
How can I correctly define section for heap2.? (ram2 memory region will be used only for heap2)
--
Regards,
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