From 09b207a39b7791098daafd7d87c3ad9d3db3e19f Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Wed, 5 Apr 2017 12:01:27 +0200 Subject: [PATCH] added debug statements, dynamic allocation is working for tasks --- client/task.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/task.c b/client/task.c index b420c19..c5fc41d 100644 --- a/client/task.c +++ b/client/task.c @@ -18,6 +18,7 @@ void task_init(void) void task_register(void) { + debug("free memory: %lu\n", ((uint8_t *)taskspace)-spacepointer+TASKSPACE); int i; if(spacepointer+sizeof(struct task) > taskspace+TASKSPACE){ die("Out of memory... Not enough to allocate taskstruct"); @@ -60,6 +61,7 @@ void task_register(void) write_byte('t'); write16(t->taskid); write_byte('\n'); + debug("free memory: %lu\n", ((uint8_t *)taskspace)+TASKSPACE-spacepointer); } bool is_interrupt_task(struct task *t) -- 2.20.1