diff options
author | Pixel <pixel@nobis-crew.org> | 2011-02-02 08:35:38 -0800 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2011-02-02 08:35:38 -0800 |
commit | 3ca9b28c5b04220565c206bd73d9ebb48b64db3b (patch) | |
tree | 86ffbb085f2c255de44321c858780c77dc7583d8 /os/src/malloc.c | |
parent | 29dc401e5ba2c3f5676d426c4c1b10f1fc475fcd (diff) |
Making a sample code for the 'romfs' thingy.
Diffstat (limited to 'os/src/malloc.c')
-rw-r--r-- | os/src/malloc.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 <malloc.h> #include <FreeRTOS.h> #include <semphr.h> +#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); |