i.MX28: Fix initial stack pointer position
authorMarek Vasut <marex@denx.de>
Sun, 1 Apr 2012 18:21:34 +0000 (18:21 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Mon, 16 Apr 2012 12:53:59 +0000 (14:53 +0200)
commit9ed5dfa852e7b976ba7656713e2de37816cf9fea
tree311f0a6431ae6807acf6fb4104e1b67d40504476
parent0792a36efbde78681faebcbe1326adc4524fbcaa
i.MX28: Fix initial stack pointer position

The patch:

  m28evk: Use GENERATED_GBL_DATA_SIZE
  commit 1084606c972ea5f1d89f69bdbd978b867d0ee521

introduced usage of GENERATED_GBL_DATA_SIZE and calculation of initial stack
pointer position defived from that. Due to a small typo, the SP position moved
to 0x21f80, which is past the SRAM area. This didn't manifest on the real
hardware as the SRAM repeats there (address bits in the CPU being ignored).

Though this was caught in QEMU, where it crashed the emulator.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Tested-by: Fabio Estevam <fabio.estevam@freescale.com>
include/configs/m28evk.h
include/configs/mx28evk.h