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
General protection fault after software interrupt
Re: General protection fault after software interrupt
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.