OSDev.org

The Place to Start for Operating System Developers
It is currently Sat Apr 27, 2024 3:00 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Having trouble with interrupts
PostPosted: Wed Nov 01, 2023 10:58 pm 
Offline

Joined: Wed Nov 01, 2023 10:50 pm
Posts: 1
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,


Top
 Profile  
 
 Post subject: Re: Having trouble with interrupts
PostPosted: Tue Feb 13, 2024 10:57 am 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5146
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.)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Google [Bot] and 28 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group