Interrupt

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
RamboII

Interrupt

Post by RamboII »

This is about hooking itnerrupt in kernel code:
when should i set up my IDT ? after the bootstrap,
dont' I? but how can i point the entries in my
kernel code?
please help me.
RamboII
Chris Giese

RE:Interrupt

Post by Chris Giese »

>On 2001-07-20 18:00:14, RamboII wrote:
>This is about hooking itnerrupt in kernel code:
>when should i set up my IDT ? after the bootstrap,
>dont' I? but how can i point the entries in my
>kernel code?
>please help me.

Hi,
You can make all the interrupts go through one
handler. Here is some sample code:
http://www.execpc.com/~geezer/osd/intr/ ... m#snippets

If you get x86-32.zip, you can see how the IDT
is set up in file startup.asm, and how the
interrupts get passed to the C code in file krnl.c
Guest

RE:Interrupt

Post by Guest »

>On 2001-07-20 18:00:14, RamboII wrote:
>This is about hooking itnerrupt in kernel code:
>when should i set up my IDT ? after the bootstrap,
>dont' I? but how can i point the entries in my
>kernel code?
>please help me.
>RamboII
Post Reply