summaryrefslogtreecommitdiffstats
path: root/arch/ppc
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2008-06-04 11:43:10 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2008-06-04 11:54:03 +0200
commit596c8450727ff2c9e2a8053e83280682d813c82f (patch)
treeb1623de1d69f75765cffd8db50083a6faa64c8b4 /arch/ppc
parent9e6ee5e79516f5af5366bd95fab801a692728373 (diff)
downloadbarebox-596c8450727ff2c9e2a8053e83280682d813c82f.tar.gz
barebox-596c8450727ff2c9e2a8053e83280682d813c82f.tar.xz
[memory layout]: streamline memory layout
Memory layout can now be specified via kconfig options. Two possibilities exist: default layout means the layout is stack / malloc heap / U-Boot. The user can also specify fixed addresses for each TEXT_BASE / stack / malloc heap.
Diffstat (limited to 'arch/ppc')
-rw-r--r--arch/ppc/lib/board.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/ppc/lib/board.c b/arch/ppc/lib/board.c
index 44522007d8..bd82a73f51 100644
--- a/arch/ppc/lib/board.c
+++ b/arch/ppc/lib/board.c
@@ -30,6 +30,7 @@
#include <init.h>
#include <net.h>
#include <reloc.h>
+#include <asm-generic/memory_layout.h>
char *strmhz (char *buf, long hz)
{
@@ -71,7 +72,7 @@ void board_init_r (ulong end_of_ram)
debug("malloc_end: 0x%08x\n", malloc_end);
debug("TEXT_BASE after relocation: 0x%08x\n", _text_base);
- mem_malloc_init((void *)(malloc_end - CFG_MALLOC_LEN), (void *)malloc_end);
+ mem_malloc_init((void *)(malloc_end - MALLOC_SIZE), (void *)malloc_end);
/*
* Setup trap handlers