From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Mon, 24 Dec 2012 02:27:53 +0100 Subject: [U-Boot] [PATCH 3/4] fix memory corruption on versatile In-Reply-To: <1356312106-23337-3-git-send-email-morpheus.ibis@gmail.com> References: <1356312106-23337-1-git-send-email-morpheus.ibis@gmail.com> <1356312106-23337-3-git-send-email-morpheus.ibis@gmail.com> Message-ID: <201212240227.54481.marex@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 Pavel Herrmann, > ARM board.c doesnt respect CONFIG_SYS_GBL_DATA_OFFSET, nor do all boards > set it, so reorganize the memory a bit to avoid overlaps. > > Signed-off-by: Pavel Herrmann Ccing Albert > --- > include/configs/versatile.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/configs/versatile.h b/include/configs/versatile.h > index c9aed72..27ffffe 100644 > --- a/include/configs/versatile.h > +++ b/include/configs/versatile.h > @@ -35,7 +35,7 @@ > #define CONFIG_DM_BLOCK > #define CONFIG_SYS_EARLY_MALLOC > #define CONFIG_SYS_EARLY_HEAP_ADDR (CONFIG_SYS_INIT_RAM_ADDR + \ > - CONFIG_SYS_GBL_DATA_OFFSET - \ > + CONFIG_SYS_INIT_RAM_SIZE - \ > CONFIG_SYS_EARLY_HEAP_SIZE - 64) > #define CONFIG_SYS_EARLY_HEAP_SIZE 1024 Best regards, Marek Vasut