delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2006/03/23/14:12:50

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "Gerrit van Niekerk" <gerritvn AT gpvno DOT co DOT za>
Organization: GPvNO
To: djgpp AT delorie DOT com
Date: Thu, 23 Mar 2006 21:10:29 +0200
MIME-Version: 1.0
Subject: Problem with POPF
Message-ID: <44230EC5.29794.1B0CA569@gerritvn.gpvno.co.za>
X-mailer: Pegasus Mail for Windows (4.31)
Reply-To: djgpp AT delorie DOT com

To protect portions of code from interrupts, I use PUSHF and CLI to be 
certain interrupts are disabled and POPF to re-enable them. This used to 
work without a problem until I started writing a comms port handler. As soon 
as I initialize the comms port, the next POPF causes a SIGTRAP. GDB tells 
me it is a Trace/breakpoint trap.

This probably has more to do with the 80x86 architecture than DJGPP, but 
perhaps somebody can point me in the right direction.


- Raw text -


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