GPF or QEMU crash when entering Ring 3
Re: GPF or QEMU crash when entering Ring 3
Debugging is working, but it's just freezes when debugger is connected. Neither nexti or next, nor stepi or step are not working.
Developing U365.
Source:
only testing: http://gitlab.com/bps-projs/U365/tree/testing
OSDev newbies can copy any code from my repositories, just leave a notice that this code was written by U365 development team, not by you.
Source:
only testing: http://gitlab.com/bps-projs/U365/tree/testing
OSDev newbies can copy any code from my repositories, just leave a notice that this code was written by U365 development team, not by you.
Re: GPF or QEMU crash when entering Ring 3
Finally debugging is worked. Using trial&error I find that the code is crashing on iret. But what is causing that?
Developing U365.
Source:
only testing: http://gitlab.com/bps-projs/U365/tree/testing
OSDev newbies can copy any code from my repositories, just leave a notice that this code was written by U365 development team, not by you.
Source:
only testing: http://gitlab.com/bps-projs/U365/tree/testing
OSDev newbies can copy any code from my repositories, just leave a notice that this code was written by U365 development team, not by you.
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: GPF or QEMU crash when entering Ring 3
I've seen a pageful of likely reasons (and less likely reasons that are nonetheless bugs) already. Which ones don't apply?
You can also run the entire set of steps from the Intel manuals by hand and use the actual register/memory values to see what happens exactly.
You can also run the entire set of steps from the Intel manuals by hand and use the actual register/memory values to see what happens exactly.
Re: GPF or QEMU crash when entering Ring 3
Check the items on the stack just before the iret. Are they what you expect them to be? Are they sane? What will iret do with them?
Re: GPF or QEMU crash when entering Ring 3
How I can do it? GDB is freezing QEMU.iansjack wrote:Check the items on the stack just before the iret. Are they what you expect them to be? Are they sane? What will iret do with them?
Developing U365.
Source:
only testing: http://gitlab.com/bps-projs/U365/tree/testing
OSDev newbies can copy any code from my repositories, just leave a notice that this code was written by U365 development team, not by you.
Source:
only testing: http://gitlab.com/bps-projs/U365/tree/testing
OSDev newbies can copy any code from my repositories, just leave a notice that this code was written by U365 development team, not by you.