unable to write into theLocal APIC registers

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
sunr2007
Posts: 1
Joined: Wed Nov 10, 2010 10:19 pm

unable to write into theLocal APIC registers

Post by sunr2007 »

Hi all,
Im using qemu 0.12.3 .I have come to a point where i have developed a small kernel (setting up the IDT, GDT n all)
Im disabling 8259 and enabling Local APIC but im unable to write into Local APIC registers . can anyone tell me is there something which im missing
?
Here is my piece of code

SVR EQU 0FEE000F0H ; define the Spurious interrupt vector
APIC_ENABLE EQU 100H
;disable 8259
MOV AL,0FFH
OUT 0A1H, AL
OUT 021H, AL
;enable local apic and set the spurious interrupt vector
MOV ESI,SVR
MOV EAX,<ESI>
OR EAX,APIC_ENABLE
MOV <ESI>,EAX

Warm regards,
Ravi Kulkarni.
Post Reply