From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10666 invoked by alias); 11 Apr 2002 00:39:37 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 10659 invoked from network); 11 Apr 2002 00:39:36 -0000 Received: from unknown (HELO executor.cambridge.redhat.com) (195.224.55.237) by sources.redhat.com with SMTP; 11 Apr 2002 00:39:36 -0000 Received: from localhost.localdomain (dell-paw-2.cambridge.redhat.com [195.224.55.226]) by executor.cambridge.redhat.com (Postfix) with ESMTP id 75F84ABB0A for ; Thu, 11 Apr 2002 01:39:35 +0100 (BST) Received: from redhat.com (IDENT:jlarmour@localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.11.6/8.11.6) with ESMTP id g3B0dU226030; Thu, 11 Apr 2002 01:39:33 +0100 Message-ID: <3CB4DB3C.2E7EC35F@redhat.com> Date: Wed, 10 Apr 2002 17:39:00 -0000 From: Jonathan Larmour X-Accept-Language: en MIME-Version: 1.0 To: "Agarwal, Lomesh" Cc: eCos Discuss References: <01BDB7EEF8D4D3119D95009027AE999512F65F2E@FMSMSX33> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [ECOS] Memory layout X-SW-Source: 2002-04/txt/msg00206.txt.bz2 "Agarwal, Lomesh" wrote: > > During startup my flash is at 0 then I unalias it. After unaliasing flash > sits at 0xc4000000 and RAM sits at 0. > What about this: > MEMORY > { > ram : ORIGIN = 0x00000000, LENGTH = 0x10000000 > rom : ORIGIN = 0xc4000000, LENGTH = 0x01000000 > } This now looks right. > SECTIONS > { > SECTIONS_BEGIN > SECTION_rom_vectors (ram, 0x00000000, LMA_EQ_VMA) // vector page gets > remapped from ROM to RAM It still has to be loaded into ROM, and the way eCos works, it copies the vectors "manually" in vectors.S into the start of RAM - look at everything about __exception_handlers in vectors.S. So actually this should be: SECTION_rom_vectors (rom, 0xc4000000, LMA_EQ_VMA) > SECTION_text (ram, 0x00002000, LMA_EQ_VMA) Should be SECTION_text (rom, ALIGN(0x4), LMA_EQ_VMA) > SECTION_fini (rom, ALIGN (0x4), LMA_EQ_VMA) > SECTION_rodata (rom, ALIGN (0x4), LMA_EQ_VMA) > SECTION_rodata1 (rom, ALIGN (0x4), LMA_EQ_VMA) > SECTION_fixup (rom, ALIGN (0x4), LMA_EQ_VMA) > SECTION_gcc_except_table (rom, ALIGN (0x4), LMA_EQ_VMA) > SECTION_fixed_vectors (rom, 0x20, LMA_EQ_VMA) Should be ram 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