sched: add timer tasks and schedule_timeout()

This commit is contained in:
2023-04-30 21:09:36 +01:00
parent 085c3d2a89
commit 8a0291c9b3
8 changed files with 132 additions and 18 deletions

View File

@@ -242,7 +242,7 @@ void irq_dispatch(struct cpu_context *regs)
}
if (need_resched()) {
schedule();
schedule(SCHED_IRQ);
}
start_charge_period();

View File

@@ -1,8 +1,6 @@
.code64
.extern THREAD_sp
//TASK_threadsp:
//.long 32
.global switch_to
.type switch_to, @function