Page 1 of 1
Interrupts without IDT
Posted: Sat Sep 11, 2021 1:30 pm
by PavelChekov
How would I make an interrupt handler without the 32-bit specific IDT? The tutorial is aimed at 32-bit x86, and uses the IDT, which I believe is 32-bit.
Re: Interrupts without IDT
Posted: Sat Sep 11, 2021 4:08 pm
by Octocontrabass
Re: Interrupts without IDT
Posted: Sat Sep 11, 2021 9:31 pm
by nullplan
I also have absolutely no idea what the OP wants. All interrupts are dispatched through the IDT, and the IDT format is mode dependent. If you want to handle interrupts, you must register your interrupt handler in the IDT, and it has to be in the format valid for your current mode of operation. Handling interrupts without IDT makes no sense. That is like wanting to be washed but not made wet.
Re: Interrupts without IDT
Posted: Sun Sep 12, 2021 1:53 am
by iansjack
How would you know which interrupt handler to call for each interrupt? One solution would be to construct a table linking the two....
Re: Interrupts without IDT
Posted: Sun Sep 12, 2021 1:55 pm
by PavelChekov
OK, I guess this throws me off:
The Interrupt Descriptor Table (IDT) is specific to the IA-32 architecture.
Re: Interrupts without IDT
Posted: Sun Sep 12, 2021 2:45 pm
by bloodline
PavelCheckov wrote:OK, I guess this throws me off:
The Interrupt Descriptor Table (IDT) is specific to the IA-32 architecture.
I think this means you won’t find this horribly complex system on other architectures, like 68k, ARM, PPC, MIPS, or RISC-IV