Enabling interrupts

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
-KEN-

Enabling interrupts

Post by -KEN- »

Hey, I'm working on a small video lib, and aside from running into issues in makeing my write() function recognize the \n escape sequence, I have one problem: how on Earth do I enable interrupts in protected mode? I think inportb() and outportb() was mentioned, but I come to a crashing halt when trying to write those functions...any ideas? I've wanted to write an OS for a loooonngg time, and I'm finally going trhrough with it, so any help?
Hillbillie

Re: Enabling interrupts

Post by Hillbillie »

Hey -KEN-.

The reason why I mentioned inportb() and outportb() was because you wanted to move the hardware cursor. To do this, you'll wanna use these functions.

If you wanna enable interrupts, you'll have to build an IDT so when an interrupt does fire, the computer will know what to do.
-KEN-

Re: Enabling interrupts

Post by -KEN- »

wow, can I ever be rid of you!?  :P get on icq so I can pick your brain dry :) hmmm....you just confused me further...plus I have a question on having my write function recognize newlines right.
Post Reply