per cpu timer queue

This commit is contained in:
Matheus
2022-08-12 22:11:59 -03:00
parent ab2bd69481
commit ac5339453b
11 changed files with 174 additions and 13 deletions
+4
View File
@@ -28,6 +28,8 @@ static void apstartup(struct limine_smp_info *info){
arch_mmu_apinit();
apic_lapicinit();
timer_init();
printf("CPU %lu ready!\n", info->lapic_id);
@@ -62,6 +64,8 @@ void smp_init(){
apcls = pmm_hhdmalloc(sizeof(cls_t)*cpucount/PAGE_SIZE+1);
memset(apcls, 0, sizeof(cls_t)*cpucount/PAGE_SIZE+1);
printf("System has %lu CPUs\n", cpucount);
sem = sem_init(-cpucount + 2, 0);