From: Wolfgang Denk Date: Tue, 26 Oct 2010 11:36:00 +0200 Subject: [U-Boot] [PATCH 1/2] mx51evk: support new relocation scheme In-Reply-To: References: <1288019681-18496-1-git-send-email-shawn.gsc@gmail.com> <1288019681-18496-2-git-send-email-shawn.gsc@gmail.com> <4CC68A6B.1030302@denx.de> Message-ID: <20101026093600.A7540135DE3@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Shawn Guo, In message you wrote: > Hi Stefano, > > On Tue, Oct 26, 2010 at 3:59 PM, Stefano Babic wrote: > > On 10/25/2010 05:14 PM, Shawn Guo wrote: > > > >> +#define CONFIG_SYS_SDRAM_BASE =A0 =A0 =A0 =A0PHYS_SDRAM_1 > >> +#define CONFIG_SYS_INIT_SP_ADDR =A0 =A0 =A0(IRAM_BASE_ADDR + 0x1000) > > > > What is the meaning of the offset at 0x1000 ? Is there something at > > IRAM_BASE_ADDR ? > > > I thought CONFIG_SYS_INIT_SP_ADDR is assigned to stack pointer (sp) > which decrease the address. Is it not the case? Boards should define CONFIG_SYS_INIT_RAM_ADDR (the start address) and CONFIG_SYS_INIT_RAM_END (actually the size of the initial RAM). I'm working on patches that will auto-calculate CONFIG_SYS_INIT_SP* from that. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de In the strict scientific sense we all feed on death -- even vegetarians. -- Spock, "Wolf in the Fold", stardate 3615.4