This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

heap joining & heapgen.tcl


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]