delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/02/10:10:02

Date: Sun, 2 Apr 2000 09:47:38 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: "Alexei A. Frounze" <alex DOT fru AT mtu-net DOT ru>
cc: djgpp AT delorie DOT com
Subject: Re: keyboard interrupt
In-Reply-To: <38DFE9E5.37B0F318@mtu-net.ru>
Message-ID: <Pine.SUN.3.91.1000402094714.9367R-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 28 Mar 2000, Alexei A. Frounze wrote:

> But what if IRQ comes when segment registers are different than usual
> for a program written in DJGPP (in ASM block/C library or whatever)? It
> won't work.

Yes, it will work: the wrapper code provided by the library function
_go32_dpmi_allocate_iret_wrapper takes care of restoring the segment
registers and switching the stack _before_ it calls the user-defined
handler.

This is all explained in the FAQ (section 18.9) and in the library
docs, which see.

- Raw text -


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