07-24-2023, 06:29 AM
I am writing a kernel by myself, and after the first page error interrupt handler, when IRET is executed, it causes an interrupt 13(general protection), and error code is 0x18. I don't know what is wrong, the content pushed on the stack comes from the cpu.
Here is the register state when interrupt occurs, and memory where the registers were stored.**In addition, IRET is returned from a page error interrupt handler.**
It is sure that %ESP is the same before IRET executing and interrupt occurring.
![enter image description here][1]
![enter image description here][2]
[1]:
[2]:
Here is the register state when interrupt occurs, and memory where the registers were stored.**In addition, IRET is returned from a page error interrupt handler.**
It is sure that %ESP is the same before IRET executing and interrupt occurring.
![enter image description here][1]
![enter image description here][2]
[1]:
[2]: