APIC timer
Posted: Wed Oct 18, 2006 9:43 am
Hi
I am trying to configure APIC timer.
But it doesn’t work.
My interruption handler isn't called.
After booting via GRUB I do next steps:
1. fill IDT
2. initialize APIC
- enable APIC in SVR (0x0F0)
- set flat mode in DEST (0x0E0)
3. init timer
- set timer divide (0x3E0) to (old_value | 0xb)
- set periodic mode and vector in timer LVT (0x320)
vector 0x40
- set init count (0x380) to 100
- set IDT entry 0x40 with timer_handler address
and nothing happened.
I do it in QEMU!
Do I miss something?
Al.
I am trying to configure APIC timer.
But it doesn’t work.
My interruption handler isn't called.
After booting via GRUB I do next steps:
1. fill IDT
2. initialize APIC
- enable APIC in SVR (0x0F0)
- set flat mode in DEST (0x0E0)
3. init timer
- set timer divide (0x3E0) to (old_value | 0xb)
- set periodic mode and vector in timer LVT (0x320)
vector 0x40
- set init count (0x380) to 100
- set IDT entry 0x40 with timer_handler address
and nothing happened.
I do it in QEMU!
Do I miss something?
Al.