OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Nov 22, 2019 9:56 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: General protection fault after software interrupt
PostPosted: Mon Nov 04, 2019 2:39 pm 
Offline

Joined: Mon Nov 04, 2019 2:29 pm
Posts: 1
I have uncontrollable 0xD cpu exception after doing a software interrupt. I don't know why is it broken. Maybe something with paging? I need software interrupts for syscalls. It is really important and i don't know why doesn't it work.
src: https://github.com/nergzd723/ethanium


Top
 Profile  
 
 Post subject: Re: General protection fault after software interrupt
PostPosted: Tue Nov 05, 2019 4:48 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 3567
Location: Chichester, UK
In your handler for the general protection exception halt the processor. You can then inspect the saved IP value to see exactly where the fault is occurring.


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: No registered users and 15 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