local apic of aplication processor
Posted: Wed Dec 07, 2016 10:36 am
Hi all , I apologize if this topic has already been, my English is not very good.
I am interested in the following questions:
- Do I need a separate IDT for each processor or i can use one?
- Can I use one vector for processing LVT Timer interrupt all CPUs?
-How properly initialize LOCAL APIC processors, I'm doing this so
I am interested in the following questions:
- Do I need a separate IDT for each processor or i can use one?
- Can I use one vector for processing LVT Timer interrupt all CPUs?
-How properly initialize LOCAL APIC processors, I'm doing this so
Code: Select all
mov ecx, IA32_APIC_BASE
mov eax,LOCAL_APIC_REG
bts eax, 11
wrmsr
mov dword [LOCAL_APIC_REG + APIC_LVT_Timer_REG], ((1 shl 17) or 20h)
mov dword [LOCAL_APIC_REG + Divide_Configuration_REG], APIC_TIMER_DIVIDE_BY_4
mov dword [LOCAL_APIC_REG + Initial_Count_REG], 2083333