From c2ef64149849fcae608b1c6010303eca86229d22 Mon Sep 17 00:00:00 2001 From: Miguel Date: Sun, 9 Sep 2018 13:21:47 +0200 Subject: cleaning logs, docs, interrupts --- kernel/smp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kernel/smp.c') diff --git a/kernel/smp.c b/kernel/smp.c index c965b2e..08fe71b 100644 --- a/kernel/smp.c +++ b/kernel/smp.c @@ -153,11 +153,11 @@ void kernel_ap() klog("smp local apic id: 0x%08X",apicID()); apicEnable(); - int_install(); + interrupts_install(); gdt_init(); writeAPIC(APIC_TMRDIV, 0x3); - writeAPIC(APIC_LVT_TMR, 200 | TMR_PERIODIC); + writeAPIC(APIC_LVT_TMR,INTERRUPT_APIC_TIMER | TMR_PERIODIC); writeAPIC(APIC_TMRINITCNT, countdown); x86_sti(); @@ -218,7 +218,7 @@ void smp_start_aps(smp_processors *pros) // setup apic timer countdown=speed/16; // tick once a second writeAPIC(APIC_TMRDIV, 0x3); // divisor 16 - writeAPIC(APIC_LVT_TMR, 200 | TMR_PERIODIC); // on interrupt 200 + writeAPIC(APIC_LVT_TMR, INTERRUPT_APIC_TIMER | TMR_PERIODIC); // on interrupt 200 writeAPIC(APIC_TMRINITCNT, countdown); // setup IO APIC -- cgit v1.2.3