Re: Adding a new interrupt handler to the IDT



Martin Feeney wrote:

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.

Are you intending to create a back-door to the kernel via
an int instruction?

Where are the non-irq interrupts coming from, and how do
the get onto the CPU chip?

--

Tauno Voipio
tauno voipio (at) iki fi
.



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. ...
    (comp.os.linux.development.system)
  • Re: IDT: local or global?
    ... Tauno Voipio wrote: ... :> one global IDT for all processes? ... IDT (Interrupt Descriptor Table) is global. ... get its own debugger's handler to work for it, ...
    (comp.os.linux.development.system)
  • Re: IDT: local or global?
    ... :> one global IDT for all processes? ... IDT (Interrupt Descriptor Table) is global. ... tauno voipio @ iki fi ...
    (comp.os.linux.development.system)
  • 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)