
On Wed, Oct 27, 2010 at 8:23 PM, Wolfgang Denk wd@denx.de wrote:
Dear Shawn Guo,
In message AANLkTi=7r4mcSFxpSsdU3bUr_CNMyZey3MLUO2t0-MVm@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.
I thought the manual definition of CONFIG_SYS_INIT_SP_ADDR is the near term solution, since it will be replaced by automatic calculation. So I did not put much attention to reflect the layout you want to see.
Anyway, v3 is coming soon.