Re:PIC, IRQs and IDT?
Posted: Fri Oct 01, 2004 6:12 am
I got help from jokematch on the Foreign Devers forum on osdever.net. It was easier to "talk" on swedish..
the solution was to do it like this:
+ that i "updated" my GDT in the kernel with new selectors for interrupts and video etc.
i don?t know why it didn?t work from the beginning, when i had the orgaddress>>16 stuff.
but my kernel seems to feel better with a fresh GDT. This redused it?s dependece of my crappy bootloader aswell.
PS. when will your source for the 512b contest be up? i need to look on the source to play cd?s.. can?t get mine to work.
/ Christoffer
the solution was to do it like this:
Code: Select all
; 50. Interrupt 0x32.
;---------------------
dw isr32
dw 0x08
db 0
db 0x8E
dw (orgaddress>>16)
i don?t know why it didn?t work from the beginning, when i had the orgaddress>>16 stuff.
but my kernel seems to feel better with a fresh GDT. This redused it?s dependece of my crappy bootloader aswell.
PS. when will your source for the 512b contest be up? i need to look on the source to play cd?s.. can?t get mine to work.
/ Christoffer