This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Memory layout
- From: Jonathan Larmour <jlarmour at redhat dot com>
- To: "Agarwal, Lomesh" <lomesh dot agarwal at intel dot com>
- Cc: eCos Discuss <ecos-discuss at sources dot redhat dot com>
- Date: Wed, 10 Apr 2002 21:51:01 +0100
- Subject: Re: [ECOS] Memory layout
- Organization: Red Hat UK Ltd.
- References: <01BDB7EEF8D4D3119D95009027AE999512F65F0A@FMSMSX33>
"Agarwal, Lomesh" wrote:
>
> I want to burn RedBoot in a flash. I should use "ROM" start type. Right?
Yes.
> On my platform during boot Flash is aliased at 0 and after unaliasing flash
> my DRAM is at 0 address. I have modified the rom.ldi file as follows:
>
> MEMORY
> {
> ram : ORIGIN = 0xA0000000, LENGTH = 0x2000000
> rom : ORIGIN = 0x00000000, LENGTH = 0x800000
> }
No, the memory layout should reflect the addresses after unaliasing or MMU
mapping. And it's up to the very initial startup code to set up the
unaliasing/remapping without relying on linker defined symbols or
relocations to do it.
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
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss