Page 4 of 4

Re:Switching Segments Causes Page Fault

Posted: Fri Dec 23, 2005 7:58 am
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.