mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-02 07:28:21 +00:00
per cpu timer queue
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user