This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: configuring heap memory
- From: davidw at dedasys dot com (David N. Welton)
- To: "ecos-discuss at sources dot redhat dot com" <ecos-discuss at sources dot redhat dot com>
- Date: 21 May 2002 14:32:03 +0200
- Subject: Re: [ECOS]configuring heap memory
- References: <3CE0FE2C.821B96ED@deis.unibo.it> <3CE9A6D0.B10D198B@redhat.com>
Jonathan Larmour <jlarmour@redhat.com> writes:
> Or you can edit the .ldi and .h files in the include/pkgconf
> directory. Define a heap2 in exactly the same way (other than the
> address) as heap1 was defined. Use the definition of heap1 to guide
> you in how to define heap2.
Here's my stab at an example, at least for i386 floppy (although
presumably the others might be made to work in a similar fashion?), as
this seems to be a FAQ:
In heaps.hxx:
#define CYGMEM_HEAP_COUNT 2
Tacked on to the *end* of mlt_i386_pc_floppy.h:
#ifndef __ASSEMBLER__
extern char CYG_LABEL_NAME (__heap2) [];
#endif
#define CYGMEM_SECTION_heap2 (CYG_LABEL_NAME (__heap2))
#define CYGMEM_SECTION_heap2_SIZE (0xa00000)
^^^^^^^^ insert whatever here
The end of mlt_i386_pc_floppy.ldi:
CYG_LABEL_DEFN(__heap1) = ALIGN (0x8);
CYG_LABEL_DEFN(__heap2) = ALIGN (0x8);
SECTIONS_END
}
Those seemed to do the trick for me!
--
David N. Welton
Consulting: http://www.dedasys.com/
Personal: http://www.dedasys.com/davidw/
Free Software: http://www.dedasys.com/freesoftware/
Apache Tcl: http://tcl.apache.org/
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss