Having trouble with interrupts
Posted: Wed Nov 01, 2023 10:58 pm
Both IDT and GDT tables have been loaded, and confirmed with . But Whenever I trigger interrupts using or , it throws a triple fault. Now, I'm stuck here.
GDT.cpp: https://pastebin.com/SkJruqzA
GDT.hpp: https://pastebin.com/Nj0CyY06
Interrupts.asm: https://pastebin.com/3T46eLRU
Interrupts.cpp: https://pastebin.com/zSUMCdW4
Interrupts.hpp: https://pastebin.com/6jdVhnZw
Thanks,
Code: Select all
info registers
Code: Select all
div %ah
Code: Select all
int $0x?
GDT.cpp: https://pastebin.com/SkJruqzA
GDT.hpp: https://pastebin.com/Nj0CyY06
Interrupts.asm: https://pastebin.com/3T46eLRU
Interrupts.cpp: https://pastebin.com/zSUMCdW4
Interrupts.hpp: https://pastebin.com/6jdVhnZw
Thanks,