delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/06/09/05:51:18

Message-Id: <5.0.2.1.2.20020609104552.009e64e0@pop.gmx.net>
X-Sender: martinSteuer AT gmx DOT de@pop.gmx.net
X-Mailer: QUALCOMM Windows Eudora Version 5.0.2
Date: Sun, 09 Jun 2002 11:05:27 +0200
To: djgpp AT delorie DOT com
From: Martin Steuer <martinSteuer AT gmx DOT de>
Subject: Re: Question about djgpp's int-wrapper
Mime-Version: 1.0
Reply-To: djgpp AT delorie DOT com

Hello,

 >If interrupts were enabled before the interrupt came along, the iret
 >that returns control to the interrupted code should enable them again
 >as the IF is set in the image on the stack.

The problem i mean is that the DPMI Specification says that non-priviledged 
code may not be able to alter the IF via 'popf' or 'iret'.
Therefore the DPMI Spec. suggests to insert a 'sti' before an 'iret' in 
hardware interrupt handlers, because 'sti' is a priviledged instruction it 
will be trapped and the DPMI Host will then execute an 'sti' in Ring0.

- Raw text -


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