This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Multiple non-consecutive RAM regions
- To: Tord dot Andersson at combitechsystems dot com
- Subject: Re: [ECOS] Multiple non-consecutive RAM regions
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Thu, 28 Jun 2001 18:45:46 +0100
- Cc: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat UK Ltd.
- References: <2253171AF143D21185A60000F8FA748BEDA72E@pluto.combitech.se>
Tord.Andersson@combitechsystems.com wrote:
>
> Hi,
>
> I have the following problem. Our ARM7 based target system has two
> non-consecutive RAM areas.
> Is there some way to make the linker utilize these two areas without
> dividing the sections
> manually between these two areas?
> I have tried to make a large RAM area covering the two RAMs with an absolute
> reserved_empty section in
> between, but it doesnt seem to work.
> Any ideas?
You'll have to add a new memory region - right now there is "rom" and
"ram", but you could add "ram2". But the linker still can't split any
individual sections over both regions, nor work out by itself which
sections should go in which regions. If you need that level of control,
then if you have an MMU you should map the region to be contiguous in the
virtual address space. If you don't have an MMU, I don't know :-).
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
Come to the Red Hat TechWorld open source conference in Brussels!
Keynotes, techie talks and exhibitions http://www.redhat-techworld.com/