This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Memory map: User defined section
- To: Fabrice Gautier <Fabrice_Gautier at sdesigns dot com>
- Subject: Re: [ECOS] Memory map: User defined section
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Fri, 01 Sep 2000 20:36:55 +0100
- CC: "Ecos-List \(E-mail\)" <ecos-discuss at sourceware dot cygnus dot com>
- Organization: Red Hat UK Ltd.
- References: <8AE4B526B977D411841F00A0CC334020052C3D@cuz-exchange.sdesigns.net>
Fabrice Gautier wrote:
>
> When I define a new section in the memory map with the config tool, I would
> like to have a symbol at the end of this section. Currently, if I define a
> section FOO, there is a symbol __FOO defined at the beginning, and I would
> like to have a __FOO_END at the end.
>
> How is it possible to had this feature? Does it require a change to the
> config tool itself?
Do you really need it? If you include the appropriate MLT generated .h file
(by using
#include <pkgconf/system.h>
#include CYGHWR_MEMORY_LAYOUT_H
) you can get the end by using (&CYGMEM_SECTION_FOO +
CYGMEM_SECTION_FOO_SIZE).
Other than that, you would need to rebuild the config tool. The sources are
in the CVS repository, but require MSVC++ to build them.
Jifl
--
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow." || These opinions are all my own fault