diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-07-18 14:14:07 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-07-21 15:51:04 +0200 |
commit | e2d5ee9e7b96126eaa6d7d2068be19e9a1612dcc (patch) | |
tree | 8f19540bbbbcd6db7dee6aa0a654206183f102fc /arch | |
parent | d985d2276345b6627b8887d0f81cd932beed62cb (diff) | |
download | barebox-e2d5ee9e7b96126eaa6d7d2068be19e9a1612dcc.tar.gz barebox-e2d5ee9e7b96126eaa6d7d2068be19e9a1612dcc.tar.xz |
ARM: Increase automatic malloc area space
This increases the malloc to half of the available memory in a
bank. This helps with some usecases requiring a lot of memory.
The other half is still available as scratch area and for
putting the kernel binary.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/cpu/start.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/cpu/start.c b/arch/arm/cpu/start.c index 961873d6bb..264420d084 100644 --- a/arch/arm/cpu/start.c +++ b/arch/arm/cpu/start.c @@ -103,7 +103,7 @@ static noinline __noreturn void __start(unsigned long membase, /* * Maximum malloc space is the Kconfig value if given - * or 64MB. + * or 1GB. */ if (MALLOC_SIZE > 0) { malloc_start = malloc_end - MALLOC_SIZE; @@ -111,8 +111,8 @@ static noinline __noreturn void __start(unsigned long membase, malloc_start = membase; } else { malloc_start = malloc_end - (malloc_end - membase) / 2; - if (malloc_end - malloc_start > SZ_64M) - malloc_start = malloc_end - SZ_64M; + if (malloc_end - malloc_start > SZ_1G) + malloc_start = malloc_end - SZ_1G; } mem_malloc_init((void *)malloc_start, (void *)malloc_end - 1); |