Merged in masayuki2009/nuttx.nuttx/fix_allocheap_for_lc823450 (pull request #724)
arch/arm/src/lc823450: Fix up_allocate_heap() in lc823450_allocateheap2.c For lc823450, heap area in flat build mode must start just after _eronly. Because bss/data area is allocated in lower address than text area in SRAM. See ld.scripts for details. Also, this change removes unsed up_allocateheap.c Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com> Approved-by: GregoryN <gnutt@nuttx.org>
This commit is contained in:
parent
b823fd83bd
commit
9a71fdc8c1
@ -50,7 +50,7 @@ CMN_CSRCS += up_memfault.c up_modifyreg8.c up_modifyreg16.c up_modifyreg32.c
|
||||
CMN_CSRCS += up_releasepending.c up_releasestack.c up_reprioritizertr.c
|
||||
CMN_CSRCS += up_schedulesigaction.c up_sigdeliver.c up_systemreset.c
|
||||
CMN_CSRCS += up_unblocktask.c up_usestack.c up_doirq.c up_hardfault.c
|
||||
CMN_CSRCS += up_svcall.c up_vfork.c up_trigger_irq.c up_allocateheap.c
|
||||
CMN_CSRCS += up_svcall.c up_vfork.c up_trigger_irq.c
|
||||
|
||||
# CMN_CSRCS += up_dwt.c
|
||||
|
||||
|
@ -165,8 +165,8 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
|
||||
|
||||
/* Return the heap settings */
|
||||
|
||||
*heap_start = (FAR void *)g_idle_topstack;
|
||||
*heap_size = SRAM1_END - g_idle_topstack;
|
||||
*heap_start = (uintptr_t *)&_eronly; /* please see ld.script */
|
||||
*heap_size = SRAM1_END - (int)heap_start;
|
||||
|
||||
/* Colorize the heap for debug */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user