public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Help on .ldi & h file
@ 2005-07-27 16:47 Harish Kulkarni
  2005-07-27 19:54 ` Andrew Lunn
  0 siblings, 1 reply; 2+ messages in thread
From: Harish Kulkarni @ 2005-07-27 16:47 UTC (permalink / raw)
  To: ecos-discuss

Hello Group,

We are porting eCos onto board with leon processor.

The board has multiple chunks of ram (SRAM, scrachpad
ram etc) spread across 32-bit address space.

How do we represent the same in .ldi and in .h (in
pkgconf dir)?

In most of the ports, we can see ONLY one "ram"
section used.

Could any one please refer us to .ldi/.h memory layout
were multiple chunks of ram are mapped while porting
eCos.

-Thanks
Hari



Send instant messages to your online friends http://uk.messenger.yahoo.com 

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] Help on .ldi & h file
  2005-07-27 16:47 [ECOS] Help on .ldi & h file Harish Kulkarni
@ 2005-07-27 19:54 ` Andrew Lunn
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Lunn @ 2005-07-27 19:54 UTC (permalink / raw)
  To: Harish Kulkarni; +Cc: ecos-discuss

On Wed, Jul 27, 2005 at 05:46:58PM +0100, Harish Kulkarni wrote:
> Hello Group,
> 
> We are porting eCos onto board with leon processor.
> 
> The board has multiple chunks of ram (SRAM, scrachpad
> ram etc) spread across 32-bit address space.
> 
> How do we represent the same in .ldi and in .h (in
> pkgconf dir)?
> 
> In most of the ports, we can see ONLY one "ram"
> section used.
> 
> Could any one please refer us to .ldi/.h memory layout
> were multiple chunks of ram are mapped while porting
> eCos.

I don't think the linker can automatically spread the image over
multiple memory sections. The user has to control this. 

See for example 
packages/hal/arm/gps4020/current/include/pkgconf/mlt_arm_gps4020_rom.ldi

This has both sram and ram, and rom. It puts the fixed vectors in
sram, the data and bss in ram and the rest in rom. 

You could do something similar with your setup. Or you could for
example put the heap in a different memory bank than the rest of the
code.

If you need finer control you then need to make individial
functions/variables with attributes to tell the linker where to put a
symbol. The flash code has examples that does this. 

        Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-07-27 19:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-27 16:47 [ECOS] Help on .ldi & h file Harish Kulkarni
2005-07-27 19:54 ` Andrew Lunn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).