1

Initial commit

This commit is contained in:
2023-02-26 21:12:51 +01:00
commit d2ec37332f
69 changed files with 58831 additions and 0 deletions

8
code/pit_trigger.cpp Normal file
View File

@ -0,0 +1,8 @@
// Excerpt from the "Pit" interrupt handler
void Pit::trigger(const InterruptFrame &frame) {
time.addNanoseconds(timerInterval); // Increase system time
if (time.toMilliseconds() % yieldInterval == 0) {
System::getService<SchedulerService>().yield(); // Trigger preemption
}
}