delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/02/05/11:08:17

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: "Richard" <ts_swe_dpt AT yahoo DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1020204190535 DOT 14403C-100000 AT is>
Subject: Re: go32 wrapped interrupt handler returns register value ?
Date: Tue, 5 Feb 2002 15:27:46 -0000
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
Lines: 20
Message-ID: <3c5ffbbc$0$225$cc9e4d1f@news.dial.pipex.com>
NNTP-Posting-Host: userbh20.uk.uudial.com
X-Trace: 1012923325 news.dial.pipex.com 225 62.188.142.239
X-Complaints-To: abuse AT uk DOT uu DOT net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

> Take a look at the module exceptn.S in the library sources
> (djlsr203.zip): the DJGPP startup code already installs a PM handler for
> Int 24h, and that handler instructs DOS to fail the call.
>
> Note that some DPMI servers (notably, CWDPMI) catch Int 24h themselves
> and fail the call even before your application sees Int 24h.  See section
> 22.13 of the DJGPP FAQ list for more fun.

I found the place in CWSDPMI source module DPMISIM.ASM which returns al = 3,
but I was

I suspect that the only way to return a value from a C++ isr function is to
fiddle with the call stack taking note of what's inside the wrapper_common
structure in go32/gormcb.cpp file.

Either that or writing an isr in asm directly.




- Raw text -


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