From: Mart Lubbers Date: Wed, 5 Apr 2017 10:01:27 +0000 (+0200) Subject: added debug statements, dynamic allocation is working for tasks X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=09b207a39b7791098daafd7d87c3ad9d3db3e19f;p=mTask.git added debug statements, dynamic allocation is working for tasks --- 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)