sched: add idle task entry i forgot to commit
This commit is contained in:
parent
c79fadaf06
commit
1d30394cec
1 changed files with 5 additions and 1 deletions
|
@ -69,7 +69,11 @@ void arch_task_init(struct task *task, void (*entry)(void))
|
||||||
task->tcb.context.pc = _leave;
|
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)
|
int arch_idle_task_init(struct task *task)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue