X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Don Duttweiler" Newsgroups: comp.os.msdos.djgpp References: <3f5e1d11$0$170$cc7c7865 AT news DOT luth DOT se> Subject: Re: Two real address in __dpmi_int call Lines: 41 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: Date: Wed, 10 Sep 2003 09:45:00 -0700 NNTP-Posting-Host: 68.7.59.216 X-Complaints-To: abuse AT cox DOT net X-Trace: fed1read01 1063212264 68.7.59.216 (Wed, 10 Sep 2003 12:44:24 EDT) NNTP-Posting-Date: Wed, 10 Sep 2003 12:44:24 EDT Organization: Cox Communications To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Martin Str|mberg" wrote in message news:3f5e1d11$0$170$cc7c7865 AT news DOT luth DOT se... > Don Duttweiler wrote: > : My basic approach for this has been to use one region of __tb for > : passing the structure to the real mode interrupt and another region > : of __tb for the disk read buffer. It doesn't work. Whether executing > > You are on the right track. Thanks for responding and for the reassurance. Its good to know I'm not doing something clearly wrong > > : from a DOS box or executing in DOS mode, the program > : hangs on the call to __dpmi_int. > > ... > > : The one titled dpmimode.c is my translation of realmode.c to a protected > : mode program to compile under DJGPP. As noted above it hangs > : on the call to __dpmi_int. I've tried zeroing some of the unused registers > : in __dpmi_regs as suggested in section 18.3 of the FAQ. That doesn't > : seem to make any difference. I've also tried using > > It does make a difference because otherwise you'll be using unknown ss > and (e)sp (IIRC). > > > Right, > Yes it would seem so. I reinserted code to zero the entire dreg structure. Unfortunately the program still hangs. I've pretty much given up for now and have written my desired program (the one in the first post was just a sample program to trigger the problem) in 16-bit real mode. It isn't pretty, but gets the job done..