summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorIván Briano <ivan.briano@intel.com>2016-02-17 17:52:56 -0200
committerGerrit Code Review <gerrit@zephyrproject.org>2016-02-20 14:57:53 +0000
commit428d51b5db28b93e8c4ce132ab7db603bae78fdd (patch)
treeef8becab5d7ce30cda9234a85d5fb983367594b7 /lib
parent4c9954d30ba33b2528da2cf7900872ce1c7affde (diff)
libc-hooks: Make newlib's heap size configurable
While we don't have a proper heap that can make use of all the available RAM, make it possible for applications using Newlib to configure the size of the heap exposed via the sbrk() hook. Change-Id: I4e3193c1f2df0ace1dbc5b1f6ceb2cdc61479762 Signed-off-by: Iván Briano <ivan.briano@intel.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/newlib/libc-hooks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/newlib/libc-hooks.c b/lib/libc/newlib/libc-hooks.c
index 5e3f5bd1a..a494e126c 100644
--- a/lib/libc/newlib/libc-hooks.c
+++ b/lib/libc/newlib/libc-hooks.c
@@ -18,7 +18,7 @@
#include <stdio.h>
#include <sys/stat.h>
-#define HEAP_SIZE 4096
+#define HEAP_SIZE CONFIG_NEWLIB_HEAP_SIZE
unsigned char heap[HEAP_SIZE];
unsigned int heap_sz;