diff options
| author | Miguel <m.i@gmx.at> | 2018-09-09 13:21:47 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-09-09 13:21:47 +0200 |
| commit | c2ef64149849fcae608b1c6010303eca86229d22 (patch) | |
| tree | 30d69313b6975a7c1bfc80859117124a6a5a10e7 /kernel/smp.c | |
| parent | e85a68e1536a0f6505300e1cb79f06b9743b00f7 (diff) | |
cleaning logs, docs, interrupts
Diffstat (limited to 'kernel/smp.c')
| -rw-r--r-- | kernel/smp.c | 6 |
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 |
