summaryrefslogtreecommitdiff
path: root/kernel/smp.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/smp.c')
-rw-r--r--kernel/smp.c6
1 files changed, 3 insertions, 3 deletions
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