From 025ed8530ce92d4a2282af8bba1b9e3e93afbb99 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Wed, 7 Feb 2018 16:31:03 -0500 Subject: need to sync with desktop --- src/task.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/task.c') diff --git a/src/task.c b/src/task.c index 67ff136..1685bb9 100644 --- a/src/task.c +++ b/src/task.c @@ -50,7 +50,7 @@ void task_start(void (*task)(void), uint16_t stackSize) for (int i = 0; i < MAX_TASKS; i++) { if (tasks[i].use == 0) { - tasks[i].stack = hmalloc(stackSize); + tasks[i].stack = malloc(stackSize); tasks[i].sp = tasks[i].stack + stackSize - 16; tasks[i].sp[13] = (uint32_t)task_exit; tasks[i].sp[14] = (uint32_t)task; -- cgit v1.2.3