Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Possible CWSDPMI design flaw (Developers)

posted by Japheth Homepage, Germany (South), 19.10.2010, 17:59

> However, the cause of the problem is found.

That was only half of the truth. The workaround has been implemented in DEBUGX - it's simply avoiding to call DPMI "save/restore state" when the state size is zero. However, this fixes only 50%, DEBUGX on CWSDPMI is now able to temporarily switch to real-mode and back with raw switches, but the other direction ( RM -> PM -> RM ) still won't work.

CWSDPMI's state size of zero made me suspicious already, and a quick look into its source - DPMISIM.ASM - revealed that the raw switches are only supposed to work if the first switch is initiated from protected-mode. Trying to do it the other way - as DEBUGX may do - will cause a freeze.

---
MS-DOS forever!

 

Complete thread:

Back to the forum
Board view  Mix view
22758 Postings in 2121 Threads, 402 registered users (1 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum