From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8607 invoked by alias); 10 Dec 2003 20:38:26 -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 8599 invoked from network); 10 Dec 2003 20:38:26 -0000 Received: from unknown (HELO hermes.chez-thomas.org) (63.225.98.241) by sources.redhat.com with SMTP; 10 Dec 2003 20:38:26 -0000 Received: by hermes.chez-thomas.org (Postfix, from userid 2000) id B559350E1C4; Wed, 10 Dec 2003 13:38:25 -0700 (MST) Received: from localhost (localhost.localdomain [127.0.0.1]) by hermes.chez-thomas.org (Postfix) with ESMTP id D50B150D942; Wed, 10 Dec 2003 13:38:24 -0700 (MST) From: Gary Thomas To: vinay@hunolabs.com Cc: eCos Discussion In-Reply-To: References: Content-Type: text/plain Organization: MLB Associates Message-Id: <1071088704.1942.8.camel@hermes> Mime-Version: 1.0 Date: Wed, 10 Dec 2003 20:38:00 -0000 Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-6.7 required=5.0 tests=AWL,BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_XIMIAN autolearn=ham version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) Subject: RE: [ECOS] EB40A: Running one Function from RAM,rest in FLASH X-SW-Source: 2003-12/txt/msg00136.txt.bz2 Please copy the mailing list to your replies - that way everyone benefits :-) On Wed, 2003-12-10 at 13:33, Vinay.S wrote: > hi gary, > Thanks man. > Actually just using the following > __attribute__(SECTION("2ram.dummy")) worked for me. > Can u please tell me what the above statement does? or atleast direct me to > proper resources regarding the same. Look at the linker file .../hal/arm/arch/current/src/arm.ld The attribute tells the linker that the code for this particular function goes in the "2ram.dummy" section, rather than .text.XXX In turn, the linker will arrange that this code is then placed in initialized data (RAM) at runtime. > regards, > Vinay > > -----Original Message----- > From: ecos-discuss-owner@sources.redhat.com > [mailto:ecos-discuss-owner@sources.redhat.com]On Behalf Of Gary Thomas > Sent: Wednesday, December 10, 2003 1:37 AM > To: vinay@hunolabs.com > Cc: Ecos-Discuss > Subject: Re: [ECOS] EB40A: Running one Function from RAM,rest in FLASH > > > On Tue, 2003-12-09 at 13:04, Vinay.S wrote: > > hi! > > Can somebody help me out? > > I have a variant of ATMEL EB40A board,running ECOS.I have a code in which > > some functions need to run from RAM( due to timing constraints)and rest of > > code runs from flash. > > Look at how we run the FLASH drivers (look in devs/flash/...) The low > level drivers live in RAM even if the main code lives in FLASH > -- Gary Thomas MLB Associates -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss