Date: Thu, 9 Mar 1995 18:15:03 -0500 (EST) From: Long Doan To: Charles Sandmann Cc: John Barrett , djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: Inhibit system() swapout?? On Thu, 9 Mar 1995, Charles Sandmann wrote: > > 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 :-) How about: set temp=z:\ (or some bogus directory) go32 will not be able to swap anything out, and you should be OK... Long. +--------------------------------------------------------+ | Long Doan ldoan1 AT osf1 DOT gmu DOT edu | | ld AT netrix DOT com | +--------------------------------------------------------+