sched: add idle task entry i forgot to commit

This commit is contained in:
anna 2021-08-09 22:51:35 +02:00
parent c79fadaf06
commit 1d30394cec
Signed by: fef
GPG key ID: EC22E476DC2D3D84

View file

@ -69,7 +69,11 @@ void arch_task_init(struct task *task, void (*entry)(void))
task->tcb.context.pc = _leave;
}
extern void _idle(void);
__naked __noreturn void _idle(void)
{
/* TODO: put the CPU to sleep */
while (1);
}
int arch_idle_task_init(struct task *task)
{