IDT Calling C Code...

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
Tom

IDT Calling C Code...

Post by Tom »

[attachment deleted by admin]
Tom

Re:IDT Calling C Code...

Post by Tom »

[attachment deleted by admin]
Tom

Re:IDT Calling C Code...

Post by Tom »

when I put in a " [section .data] " above my IDT macros the computer reboots :'( why?
PlayOS

Re:IDT Calling C Code...

Post by PlayOS »

I cannot see any problem yet I will keep looking, however IRQ8-15 need to do this

mov al, 0x20
out 0x20, al
out 0xa0, al

you only have

mov al, 0x20
out 0x20, al

if any of these get called the PIC will stop responding.
Tom

Re:IDT Calling C Code...

Post by Tom »

didn't work...and I even tried remaping the pic :'(
gtsphere

Re:IDT Calling C Code...

Post by gtsphere »

I wanna ask if i got this right:

And IDT gives the ability to use interrupts, right? But now, are they your own, or BIOS ?
Tom

Re:IDT Calling C Code...

Post by Tom »

only my own ints I make in my IDT and hardware ints.

Back to topic....
Tom

Re:IDT Calling C Code...

Post by Tom »

Here is more info....

notworking.asm is linked in a elf format with my C kernel....

notworking is loaded first.....then the C kernel...


would the linker cause probs?
Tom

Re:IDT Calling C Code...

Post by Tom »

TY, nu[some numbers that I forgot]!

Your IDT code worked!

I will be releasing code soon...unless I want to have fun making some more stuff....
Post Reply