Page 1 of 1

General protection fault after software interrupt

Posted: Mon Nov 04, 2019 2:39 pm
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

Re: General protection fault after software interrupt

Posted: Tue Nov 05, 2019 4:48 am
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.