Switching Segments Causes Page Fault

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Switching Segments Causes Page Fault

Post by Pype.Clicker »

what about the following:
- make sure your bochs has debugging symbols integrated and the debugger support
- make sure your system has "ddd" installed
- run bochs in the DDD debugger
- locate the 'IRET' causing the issue in your code, set a bochs breakpoint there and run the code
- you'll get back a bochs prompt. Now interrupt bochs
- set a breakpoint on iret_protected (in source file cpu/ctrl_xfer32.cc or something)
- step through the code: that should show you what's being popped off, in what order and why it's (or it's not) what's expected.
Post Reply