mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 23:18:21 +00:00
scheduler timer
abstraction of a timer that is local to each cpu and is used for scheduling
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user