Dos App hangs with DPMI / PIC problem
Hi Ryan,
I have uploaded a complete log here:
http://sourceforge.net/tracker/index.php?func=detail&aid=1027805&group_id=49784&atid=457447
Quoted 4 lines
The other thing is that you can try patching the conditional jump immediately after that comparison that never succeeds:
c316:9036 F64408FF test [si+0x8],0xff c316:903a 7408 je 9044
how do i "patch" this jump?
Quoted 38 lines
From: Ryan Underwood <[email protected]>
To: anon permutation <[email protected]>
CC: [email protected]
Subject: Re: Dos App hangs with DPMI / PIC problem
Date: Fri, 10 Sep 2004 11:16:25 -0500Quoted 1 line
Ryan, the dos app was designed for running on a MS-DOS machine that has
no
Quoted 1 line
Windows on it. Since it is not meant for Linux, the vendor is not
willing
Quoted 1 line
to support me in any way...
Maybe you should make some noise to his competitors...
Quoted 2 lines
I also tried to attach dosdebug to dosemu before I start the Dos App. I was told that dosdebug will give a lot more information on the problem
this
Quoted 1 line
way. However, dosdebug did not give me any extra info when the Dosemu
hang.
Quoted 2 lines
Thank you for helping me. What else can I try?
Well, the first thing I'm wondering is what int you are inside of in that trace. Eventually it does iret, but there was never an int that I can see. Was part of the trace omitted?
The other thing is that you can try patching the conditional jump immediately after that comparison that never succeeds:
c316:9036 F64408FF test [si+0x8],0xff c316:903a 7408 je 9044The op code for jmp 9044 is EB08. This will at least get you past this while (foo != -1) situation, but it might just loop again or crash afterwards. You could also try printing the value at the memory location
si+0x8when you arrive at that instruction to see if it ever changes.
Quoted 6 lines
--
Ryan Underwood, <[email protected]>
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
_________________________________________________________________
Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/
Quoted 7 lines · anon permutation
Quoted 5 lines
The other thing is that you can try patching the conditional jump immediately after that comparison that never succeeds:
c316:9036 F64408FF test [si+0x8],0xff c316:903a 7408 je 9044how do i "patch" this jump?
in dosdebug type:
e c316:903a 75
that will change the "je" to jne. I had to do something similar for command keen 4, it was hanging in a very similar way.
Bart
Quoted 8 lines · Bart Oldeman
Quoted 6 lines · anon permutation
Quoted 5 lines
The other thing is that you can try patching the conditional jump immediately after that comparison that never succeeds:
c316:9036 F64408FF test [si+0x8],0xff c316:903a 7408 je 9044
Quoted 8 lines
Quoted 1 line
how do i "patch" this jump?
in dosdebug type:
e c316:903a 75
that will change the "je" to jne. I had to do something similar for command keen 4, it was hanging in a very similar way.
Are you speaking about during the system features detection (the first screen)? I have a hang there too, and in fact any similar ID/Apogee game which has a screen like that. I haven't any idea what it's sitting there waiting on....
Signature · 1 line
Ryan Underwood, <[email protected]>
Quoted 13 lines · Ryan Underwood
Quoted 12 lines · Bart Oldeman
Quoted 7 lines · anon permutation
Quoted 5 lines
The other thing is that you can try patching the conditional jump immediately after that comparison that never succeeds:
c316:9036 F64408FF test [si+0x8],0xff c316:903a 7408 je 9044how do i "patch" this jump?
in dosdebug type:
Quoted 7 lines
Quoted 4 lines
e c316:903a 75
that will change the "je" to jne. I had to do something similar for command keen 4, it was hanging in a very similar way.
Are you speaking about during the system features detection (the first screen)?
Yes.
Quoted 3 lines
I have a hang there too, and in fact any similar ID/Apogee game which has a screen like that. I haven't any idea what it's sitting there waiting on....
The timer interrupt generator is reprogrammed, and the loop is waiting until the timer interrupt has a counter set to a specific value. dosemu can't keep up (>100 Hz), and has to catch up. So the program sees the value increasing by amounts > 1. This means that the counter never reaches *exactly* the value the program wants to see, it steps over it.
Your /dev/rtc patch may help, but I haven't checked that.
Bart
Quoted 5 lines · Bart Oldeman
Quoted 4 lines
I have a hang there too, and in fact any similar ID/Apogee game which has a screen like that. I haven't any idea what it's sitting there waiting on....
Quoted 7 lines
The timer interrupt generator is reprogrammed, and the loop is waiting until the timer interrupt has a counter set to a specific value. dosemu can't keep up (>100 Hz), and has to catch up. So the program sees the value increasing by amounts > 1. This means that the counter never reaches *exactly* the value the program wants to see, it steps over it.
Your
/dev/rtcpatch may help, but I haven't checked that.
I haven't checked it with those programs either. I'll give it a try and see what happens.
Signature · 1 line
Ryan Underwood, <[email protected]>