General Fault when handling interrupt in long mode
Posted: Sun Jan 08, 2023 7:43 am
Hello,
I would like some advice on my code about implementing IDT in long mode. It keeps triggering General Protection Fault when execute iretq. I know it triggers GPF because I have messed up with the stack, but I don't know where did I go wrong. Can anyone help me?
Here is my code https://github.com/NeonLightions/susOS.
The asm file when running QEMU with -d in_asm is in qemu.log. I only show the code after I execute 'sti' in there because all of the file would be very long. Need some helps.
I would like some advice on my code about implementing IDT in long mode. It keeps triggering General Protection Fault when execute iretq. I know it triggers GPF because I have messed up with the stack, but I don't know where did I go wrong. Can anyone help me?
Here is my code https://github.com/NeonLightions/susOS.
The asm file when running QEMU with -d in_asm is in qemu.log. I only show the code after I execute 'sti' in there because all of the file would be very long. Need some helps.