Fixing scheduler

This commit is contained in:
ssimnb 2026-03-04 07:15:08 +01:00
parent 184f1a60de
commit 3b08a6ce99
12 changed files with 101 additions and 72 deletions

View file

@ -39,13 +39,10 @@ kstatus tsc_init(){
return KERNEL_STATUS_ERROR;
}
kprintf("tsc: Invariant TSC found\n");
/* Get the core crystal clock so we can determine TSC speed */
__get_cpuid(0x15, &unused, &unused, &core_crystal_clock, &unused);
if(core_crystal_clock != 0){
kprintf("cpuid 15h supported!\n");
/* Make it so that it ticks every millisecond */
core_crystal_clock *= 1000;
@ -60,8 +57,6 @@ kstatus tsc_init(){
core_crystal_clock = read2 - read1;
}
kprintf("Core crystal clock: {d}\n", core_crystal_clock);
enable_tsc();
return KERNEL_STATUS_SUCCESS;