summaryrefslogtreecommitdiffstats
path: root/arch/nios2
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-12-01 22:24:04 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2011-12-03 10:09:29 +0100
commit70f7691d4110c4384e058ae3e64003ca9ad963a6 (patch)
tree883b96df18765d37563a03f3b8a2e3dcfefbf759 /arch/nios2
parente88417b5ef9de74944bf3d8fa86f184abbac68ea (diff)
downloadbarebox-70f7691d4110c4384e058ae3e64003ca9ad963a6.tar.gz
barebox-70f7691d4110c4384e058ae3e64003ca9ad963a6.tar.xz
fix malloc space sizes
end is start + size - 1, not start + size. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/nios2')
-rw-r--r--arch/nios2/lib/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/nios2/lib/board.c b/arch/nios2/lib/board.c
index d50f05adee..ed3af49a86 100644
--- a/arch/nios2/lib/board.c
+++ b/arch/nios2/lib/board.c
@@ -31,7 +31,7 @@ int altera_mem_malloc_init(void)
{
mem_malloc_init((void *)(NIOS_SOPC_TEXT_BASE - MALLOC_SIZE),
- (void *)(NIOS_SOPC_TEXT_BASE));
+ (void *)(NIOS_SOPC_TEXT_BASE - 1));
return 0;
}