libc: newlib: fix RAM config names for ARC
The RAM config symbols need to be updated as they were named by the
commit:
1a1f7fd
arc: make SRAM/DCCM values configurable
Change-Id: Ieeb06de2f77b4c9e10a0bc32d8318834ce150f5e
Signed-off-by: Bogdan Davidoaia <bogdan.m.davidoaia@intel.com>
This commit is contained in:
parent
c3d71b5414
commit
c2216c7088
1 changed files with 1 additions and 4 deletions
|
@ -21,12 +21,9 @@
|
|||
#include <misc/util.h>
|
||||
|
||||
#define USED_RAM_END_ADDR POINTER_TO_UINT(&_end)
|
||||
#if defined(CONFIG_ARM)
|
||||
#if defined(CONFIG_ARM) || defined(CONFIG_ARC)
|
||||
#define USED_RAM_SIZE (USED_RAM_END_ADDR - CONFIG_SRAM_BASE_ADDRESS)
|
||||
#define MAX_HEAP_SIZE ((KB(CONFIG_SRAM_SIZE)) - USED_RAM_SIZE)
|
||||
#elif defined(CONFIG_ARC)
|
||||
#define USED_RAM_SIZE (USED_RAM_END_ADDR - CONFIG_RAM_START)
|
||||
#define MAX_HEAP_SIZE ((KB(CONFIG_RAM_SIZE)) - USED_RAM_SIZE)
|
||||
#else /* X86 */
|
||||
#define USED_RAM_SIZE (USED_RAM_END_ADDR - CONFIG_PHYS_RAM_ADDR)
|
||||
#define MAX_HEAP_SIZE ((KB(CONFIG_RAM_SIZE)) - USED_RAM_SIZE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue