From c30b400a16e71b10515c46b9f576c8a67ee0c257 Mon Sep 17 00:00:00 2001 From: Andy Gross Date: Fri, 10 Feb 2017 16:30:21 -0600 Subject: [PATCH] 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 --- lib/libc/newlib/libc-hooks.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/libc/newlib/libc-hooks.c b/lib/libc/newlib/libc-hooks.c index 4de15d58654..9d4f93c6bb6 100644 --- a/lib/libc/newlib/libc-hooks.c +++ b/lib/libc/newlib/libc-hooks.c @@ -11,6 +11,11 @@ #include #define USED_RAM_END_ADDR POINTER_TO_UINT(&_end) + +#if CONFIG_ARM +#include +#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)