scheduler timer

abstraction of a timer that is local to each cpu and is used for scheduling
This commit is contained in:
Matheus
2022-08-07 12:50:17 -03:00
parent 50243cc540
commit 1a2486cadd
12 changed files with 107 additions and 11 deletions
+2 -5
View File
@@ -18,8 +18,6 @@ static size_t cpucount = 1;
static void apstartup(struct limine_smp_info *info){
spinlock_acquire(&lock);
arch_setcls(&apcls[info->processor_id]);
gdt_init();
@@ -29,12 +27,11 @@ static void apstartup(struct limine_smp_info *info){
arch_mmu_apinit();
apic_lapicinit();
arch_schedtimer_calibrate();
printf("CPU %lu ready!\n", info->lapic_id);
spinlock_release(&lock);
asm("cli;hlt");