delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/23/10:24:58

From: snarfy AT goodnet DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: Lwp memory locking fix
Date: 22 Oct 1996 05:15:18 GMT
Organization: GoodNet
Lines: 18
Message-ID: <54hl96$2kne@news.goodnet.com>
NNTP-Posting-Host: goodnet.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I've added a work-around to the memory locking functions in the LWP
package.  It simply checks to see if windows is running, and if it
is, it doesn't lock any memory.  Also, I've noticed that Windows 
doesn't virtualize the RTC (IRQ8), so if you run multiple dos boxes
with lwp, irq8, they both use the same interrupt (real interrupt as
aposed to a windows, software generated interrupt).  So when one DOS
box turns off the IRQ8 interrupt, the other DOS box stops threading 
as well.  The PIT clock (IRQ0) is virtualized under windows, so you
can have multiple DOS boxes using IRQ0 without problems, or a mixture
of one IRQ8 and multiple IRQ0 lwp DOS boxes.  It's kind of funny.  
You can SEE the difference between the REAL irq8 interrupt and
the virtualized IRQ0 interrupt ;).  


Josh
snarfy AT goodnet DOT com

- Raw text -


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