Add a basic scheduler with threads #18

Merged
asleepymoon merged 19 commits from threads into restart 2022-12-07 16:11:59 +00:00
2 changed files with 8 additions and 1 deletions
Showing only changes of commit 56205a4a2f - Show all commits

View File

@ -126,4 +126,9 @@ namespace Timer
boot_timestamp = bootloader_time_to_unix(bootboot.datetime);
arch_init();
}
}
bool should_invoke_scheduler()
{
return (timer_ticks % ARCH_TIMER_FREQ) == 0;
}

View File

@ -34,4 +34,6 @@ namespace Timer
void arch_init();
void init();
}
}
bool should_invoke_scheduler();