www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/10/21/13:23:44

Date: Thu, 21 Oct 1993 17:04:13 +0100
Conversion: Prohibited
From: "Life is hard... and then you die!" <rtschalaer AT cvax DOT psi DOT ch>
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: DPMI and gcc

  Hi,

I'm trying to write a library, which can be used by programms compiled with
gcc and which communicates with a scsi-driver. Since I've worked with DPMI
before and it is widely available, I want to use the DPMI-services to
talk to the real-mode scsi driver. But there seems to be a few problems...

I'm using version 2.4.1 of the compiler and QDPMI and Windows for the DPMI-
services. In the readme one finds under 'Supported Wares' both Windows and
QDMPI, so I thought `fine'. I've written the neccessary DPMI-routines in
assembler (btw. has somebody done that already? I've only written those that
I need, but it would be nice to have them all). When I run the stuff using
go32 I get an `unrecoverable exception' from QDPMI. So I used debug32 and
saw that the `int 0x31' didn't get executed (exception 49..., registers 
identical before and after the interrupt), which would well explain the
exception from DPMI.

What is going on? Does the extender take over everything (especially int 31)
when it executes? Is there anything I need to do different to get this to 
work, or am I trying to do the impossible? Or is it just debug32 that can't
handle it, and go32 is crashing because of some bug of mine?

Any hints, comments, answers etc. would be greatly appreciated!

	Ronald

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019