Adding a new interrupt handler to the IDT




I have a system which will be creating CPU interrupts via a user-supplied IDT value. I have a kernel module which will handle the interrupt - I just need to hook this code into the interrupt handler mechanism. I cannot find any documentation on how to create an entry in the IDT or to identify the linkage protocol (assuming I can create an IDT entry).

Note: These are NOT IRQs and, therefore, the request_irq() services cannot be used. This would be equivalent to creating a handler for the INT instruction.

Any ideas or pointers would be appreciated.

Thanks - Martin
.



Relevant Pages

  • Re: Adding a new interrupt handler to the IDT
    ... I have a kernel module which will handle the interrupt - I just need to hook this code into the interrupt handler mechanism. ... I cannot find any documentation on how to create an entry in the IDT or to identify the linkage protocol. ...
    (comp.os.linux.development.system)
  • Re: Adding a new interrupt handler to the IDT
    ... I have a kernel module which will handle the interrupt - I just need to hook this code into the interrupt handler mechanism. ... I cannot find any documentation on how to create an entry in the IDT or to identify the linkage protocol. ... This would be equivalent to creating a handler for the INT instruction. ... tauno voipio iki fi ...
    (comp.os.linux.development.system)
  • Re: Adding a new interrupt handler to the IDT
    ... I have a kernel module which will handle the interrupt - I just need to hook this code into the interrupt handler mechanism. ... I cannot find any documentation on how to create an entry in the IDT or to identify the linkage protocol. ...
    (comp.os.linux.development.system)
  • Re: Confusion about undefined behaviour
    ...  It might be that traps are disabled, ... writing through a null pointer would corrupt the IDT, ... that interrupt fired, the CPU would wander off and start executing ... only in real mode is there an IDT in a fixed location. ...
    (comp.lang.c)
  • Re: Installing a C function into the IDT
    ... neat thing to use interrupts for program-wide exception handling. ... "IDT" at all and the operating system lets you get at something ... of registerable interrupt handlers). ...
    (comp.lang.c)