[U-Boot] [PATCH v2] mx51evk: support new relocation scheme

Wolfgang Denk wd at denx.de
Wed Oct 27 14:23:02 CEST 2010


Dear Shawn Guo,

In message <AANLkTi=7r4mcSFxpSsdU3bUr_CNMyZey3MLUO2t0-MVm at mail.gmail.com> you wrote:
>
> > Please use something like
> >
> > #define CONFIG_SYS_INIT_SP_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
> > #define CONFIG_SYS_INIT_SP_ADDR  (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
> >
> If the automatic calculation of CONFIG_SYS_INIT_SP_ADDR will not
> happen, I can send another patch to fix it, since it's been applied by
> Stefano already.

Yes, it will.

But the stack pointer will not start at the end of the initial ram
area, but below the global data area which lies at the end.

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
Always leave room to add an explanation if it doesn't work out.


More information about the U-Boot mailing list