Kernel/LibC: Implement alarm() and setitimer()

This makes vim able to start!
This commit is contained in:
2024-08-01 21:09:31 +03:00
parent da3b30cd94
commit a33b63d066
6 changed files with 139 additions and 0 deletions

View File

@@ -337,6 +337,10 @@ done:
{
ASSERT(InterruptController::get().is_in_service(IRQ_TIMER));
InterruptController::get().eoi(IRQ_TIMER);
if (Processor::current_is_bsb())
Process::update_alarm_queue();
Processor::scheduler().timer_interrupt();
auto& current_thread = Thread::current();