From 3ca9b28c5b04220565c206bd73d9ebb48b64db3b Mon Sep 17 00:00:00 2001 From: Pixel Date: Wed, 2 Feb 2011 08:35:38 -0800 Subject: Making a sample code for the 'romfs' thingy. --- os/src/malloc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'os/src/malloc.c') diff --git a/os/src/malloc.c b/os/src/malloc.c index 281a75b..3d867d0 100644 --- a/os/src/malloc.c +++ b/os/src/malloc.c @@ -2,6 +2,7 @@ #include #include #include +#include "osdebug.h" static xSemaphoreHandle malloc_sem = NULL; @@ -11,6 +12,7 @@ __attribute__((constructor)) static void malloc_init() { void * malloc(size_t size) { void * ptr; +// DBGOUT("malloc(%i)\r\n", size); if (malloc_sem) xSemaphoreTake(malloc_sem, portMAX_DELAY); -- cgit v1.2.3