Xtensa port: Fixed defintion of MAX_HEAP_SIZE, thus, compilation of new_lib.
Xtensa linker script defines _heap_sentry which helps computing the heap size. Change-Id: Ic35db3c98aaaebe575370fb5479de1a58e6e441e Signed-off-by: Mazen NEIFER <mazen@nestwave.com>
This commit is contained in:
parent
a95d524328
commit
44a98fb5fd
1 changed files with 3 additions and 0 deletions
|
@ -28,6 +28,9 @@
|
|||
#include <soc.h>
|
||||
#define USED_RAM_SIZE (USED_RAM_END_ADDR - CONFIG_SRAM_BASE_ADDRESS)
|
||||
#define MAX_HEAP_SIZE ((KB(CONFIG_SRAM_SIZE)) - USED_RAM_SIZE)
|
||||
#elif CONFIG_XTENSA
|
||||
extern void *__heap_sentry;
|
||||
#define MAX_HEAP_SIZE (POINTER_TO_UINT(&__heap_sentry) - USED_RAM_END_ADDR)
|
||||
#else
|
||||
#define USED_RAM_SIZE (USED_RAM_END_ADDR - CONFIG_SRAM_BASE_ADDRESS)
|
||||
#define MAX_HEAP_SIZE ((KB(CONFIG_SRAM_SIZE)) - USED_RAM_SIZE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue