summaryrefslogtreecommitdiff
path: root/lib_ppc
diff options
context:
space:
mode:
authorMarian Balakowicz <m8@semihalf.com>2008-05-13 15:53:29 +0200
committerWolfgang Denk <wd@denx.de>2008-06-03 19:34:19 +0200
commit95d449ad4de79dd32b1705b8a4d3550f1e9081e3 (patch)
treed8ba02939606d99918d95581520b6caa1a55f3f7 /lib_ppc
parent6956d53d9934862507f83f0e3255dfd4662e7482 (diff)
downloadu-boot-imx-95d449ad4de79dd32b1705b8a4d3550f1e9081e3.zip
u-boot-imx-95d449ad4de79dd32b1705b8a4d3550f1e9081e3.tar.gz
u-boot-imx-95d449ad4de79dd32b1705b8a4d3550f1e9081e3.tar.bz2
Avoid initrd and logbuffer area overlaps
Add logbuffer to reserved LMB areas to prevent initrd allocation from overlaping with it. Make sure to use correct logbuffer base address. Signed-off-by: Marian Balakowicz <m8@semihalf.com>
Diffstat (limited to 'lib_ppc')
-rw-r--r--lib_ppc/board.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib_ppc/board.c b/lib_ppc/board.c
index 6f7242d..a908831 100644
--- a/lib_ppc/board.c
+++ b/lib_ppc/board.c
@@ -396,6 +396,13 @@ ulong get_effective_memsize(void)
************************************************************************
*/
+#ifdef CONFIG_LOGBUFFER
+unsigned long logbuffer_base(void)
+{
+ return CFG_SDRAM_BASE + get_effective_memsize() - LOGBUFF_LEN;
+}
+#endif
+
void board_init_f (ulong bootflag)
{
bd_t *bd;