Dear Shawn Guo, In message <aanlkti=7r4mcsfxpssdu3bur_cnmyzey3mluo2t0-...@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: w...@denx.de Always leave room to add an explanation if it doesn't work out. _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot