www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/03/09/17:33:28

From: Charles Sandmann <sandmann AT praline DOT no DOT NeoSoft DOT com>
Subject: Re: Inhibit system() swapout??
To: jbarrett AT dallas DOT geco-prakla DOT slb DOT com (John Barrett)
Date: Thu, 9 Mar 1995 15:00:21 -0600 (CST)
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

>     I need to inhibit GO32 from swapping out my program when I do a system()
> call. I need to have the protected mode program still in memory to handle
> both software (from the program I am running using system()) and hardware
> (from the device my program is controlling) interrupts. I would be equally
> happy if there were a way to make a protected mode TSR (lotsa luck)....
> 
> The protected mode program is a device driver for a memory mapped device
> located in the 4th gig of memory space with a 4 meg address window, and the
> real mode software is legacy code that would be very difficult to convert to
> protected mode due to large quantities of graphics routines....

I think you can do what you need to do here, but it won't be trivial.
To be able to keep handling interrupts, you will need to run under DPMI.
You will also need to avoid GO32/libc's system() and do the exec through
the go32_dpmi_simulat.... type calls.

I have looked at making PM TSR's with V2, and it looks feasible (no
promises yet).  Send me a message if you want to continue on bleeding-edge
development :-)

- Raw text -


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