General protection fault after software interrupt

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
latios
Posts: 2
Joined: Mon Nov 04, 2019 2:29 pm

General protection fault after software interrupt

Post by latios »

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
User avatar
iansjack
Member
Member
Posts: 4704
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: General protection fault after software interrupt

Post by iansjack »

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.
Post Reply