libc-hooks: Fix include file for arch ARM
This patch adds in the include to get the CONFIG_SRAM definitions on systems which are using device tree generation. Change-Id: Ie61efbcdfc900a2c682a2fb8bbaecb61071a20f8 Signed-off-by: Andy Gross <andy.gross@linaro.org>
This commit is contained in:
parent
ac37e3e2c7
commit
c30b400a16
1 changed files with 5 additions and 0 deletions
|
@ -11,6 +11,11 @@
|
|||
#include <misc/util.h>
|
||||
|
||||
#define USED_RAM_END_ADDR POINTER_TO_UINT(&_end)
|
||||
|
||||
#if CONFIG_ARM
|
||||
#include <soc.h>
|
||||
#endif
|
||||
|
||||
#if CONFIG_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