OSDev.org
https://forum.osdev.org/

Having trouble with interrupts
https://forum.osdev.org/viewtopic.php?f=1&t=57009
Page 1 of 1

Author:  MyBad2 [ Wed Nov 01, 2023 10:58 pm ]
Post subject:  Having trouble with interrupts

Both IDT and GDT tables have been loaded, and confirmed with
Code:
info registers
. But Whenever I trigger interrupts using
Code:
div %ah
or
Code:
int $0x?
, 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,

Author:  Octocontrabass [ Tue Feb 13, 2024 10:57 am ]
Post subject:  Re: Having trouble with interrupts

If you're still having trouble with this, can you run QEMU with "-d int" and provide the log? The important information should be in the last 100 lines or so. (I also suggest using "-no-reboot" so the log stops when the CPU triple faults! You might also need "-accel tcg" to turn off hardware acceleration.)

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/