repositories
/
mTask.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f10c8c6
)
added debug statements, dynamic allocation is working for tasks
author
Mart Lubbers
<mart@martlubbers.net>
Wed, 5 Apr 2017 10:01:27 +0000
(12:01 +0200)
committer
Mart Lubbers
<mart@martlubbers.net>
Wed, 5 Apr 2017 10:01:27 +0000
(12:01 +0200)
client/task.c
patch
|
blob
|
history
diff --git
a/client/task.c
b/client/task.c
index
b420c19
..
c5fc41d
100644
(file)
--- 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)