summaryrefslogtreecommitdiffstats
path: root/arch/ppc/lib
diff options
context:
space:
mode:
authorRenaud Barbier <renaud.barbier@ge.com>2014-02-28 12:58:52 +0000
committerSascha Hauer <s.hauer@pengutronix.de>2014-03-03 09:07:20 +0100
commit35c49577dea944f6f8c0546860dd67714e247ffd (patch)
tree4a65742a0b53dee03d3a61ff1745985484425f8e /arch/ppc/lib
parenta7dd756dfc79bf9ffcd614b739e8b347b6252bbc (diff)
downloadbarebox-35c49577dea944f6f8c0546860dd67714e247ffd.tar.gz
barebox-35c49577dea944f6f8c0546860dd67714e247ffd.tar.xz
MPC85xx: fix memory layout to prevent corruption during memtest
Memory regions on MPC85xx boards are incorrectly defined leading to corruption when running memory tests. This patch updates the memory layout of MPC85xx boards so that critical memory regions can be correctly reserved during the memory test. Tested on the P2020RDB and DA923RC. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/ppc/lib')
-rw-r--r--arch/ppc/lib/board.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/ppc/lib/board.c b/arch/ppc/lib/board.c
index 18d2588e2c..3f13db9218 100644
--- a/arch/ppc/lib/board.c
+++ b/arch/ppc/lib/board.c
@@ -46,11 +46,7 @@ void board_init_r (ulong end_of_ram)
_text_base = end_of_ram;
#endif
- /*
- * FIXME: 128k stack size. Is this enough? should
- * it be configurable?
- */
- malloc_end = (_text_base - (128 << 10)) & ~(4095);
+ malloc_end = (_text_base - STACK_SIZE) & ~(4095);
debug("malloc_end: 0x%08lx\n", malloc_end);
debug("TEXT_BASE after relocation: 0x%08lx\n", _text_base);