Problem with IRQ, PIC,APIC or I don't know what
Posted: Sat Mar 15, 2014 7:29 am
Hi all!
It's first post in this forum, I'm beginner Os programmers. My English isn't good.
I trying to write my first kernel, and i encountered problem when i try to enable interrupts using sti.
Of course "cli" is first instruction of my kernel.
Then I'm creating GDT & IDT,setting protected mode, reprogram PIC, and "sti".
On Bochs all working fine,emulator hang in never ending loop but on real PC crash and triple fault...
The problem does not occur when:
-without "sti" execute, computer hang in loop
-when i only mask interrupts in PIC, not reprogramming PIC.
Soft generated interrupts ("int $xxx") works good.
Do you have any ideas ?
Maybe I must disable APIC ?
It's first post in this forum, I'm beginner Os programmers. My English isn't good.
I trying to write my first kernel, and i encountered problem when i try to enable interrupts using sti.
Of course "cli" is first instruction of my kernel.
Then I'm creating GDT & IDT,setting protected mode, reprogram PIC, and "sti".
On Bochs all working fine,emulator hang in never ending loop but on real PC crash and triple fault...
The problem does not occur when:
-without "sti" execute, computer hang in loop
-when i only mask interrupts in PIC, not reprogramming PIC.
Soft generated interrupts ("int $xxx") works good.
Do you have any ideas ?
Maybe I must disable APIC ?