arch: common: Fix arm_allocateheap.c for BUILD_KERNEL
Summary: - I noticed that the kernel heap area overlaps the PGPOOL - This commit fixes this issue Impact: - None Testing: - Tested with sabre-6quad:netknsh Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
parent
e4e3208180
commit
50177dbae1
@ -131,8 +131,14 @@ void weak_function up_allocate_heap(void **heap_start, size_t *heap_size)
|
||||
|
||||
board_autoled_on(LED_HEAPALLOCATE);
|
||||
*heap_start = (void *)g_idle_topstack;
|
||||
|
||||
#ifdef CONFIG_ARCH_PGPOOL_PBASE
|
||||
*heap_size = CONFIG_ARCH_PGPOOL_PBASE - g_idle_topstack;
|
||||
#else
|
||||
*heap_size = CONFIG_RAM_END - g_idle_topstack;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user