home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!usc!sdd.hp.com!saimiri.primate.wisc.edu!ames!agate!linus!philabs!acheron!scifi!watson!yktnews!admin!shravani!rajat
- From: rajat@watson.ibm.com (Rajat Datta)
- Subject: Re: DOS emulation
- Sender: news@watson.ibm.com (NNTP News Poster)
- Message-ID: <1993Jan07.221850.37109@watson.ibm.com>
- Date: Thu, 07 Jan 1993 22:18:50 GMT
- Disclaimer: This posting represents the poster's views, not necessarily those of IBM
- References: <79132@hydra.gatech.EDU> <1993Jan5.174435.3669@wam.umd.edu> <1993Jan7.184329.8050@bernina.ethz.ch>
- Nntp-Posting-Host: shravani.watson.ibm.com
- Organization: IBM T.J. Watson Research Center
- Lines: 32
-
- In article <1993Jan7.184329.8050@bernina.ethz.ch> almesber@nessie.cs.id.ethz.ch (Werner Almesberger) writes:
- >
- >If you mean "switching to a different VC", why not ? The display memory
- >could be mapped to the physical frame buffer while the respective VC is
- >in the "foreground" which is copied to a buffer in user space when
- >switching to a different VC. Now, that buffer memory could be mapped to
- >the display memory and the DOS program could happily continue to
- >scribble to what it thinks is its screen. It would even run faster ;-)
- >
- >- Werner
-
-
- Yikes! It's nowhere near this simple if the DOS program is doing
- graphics, especially in 16 color modes. What's being written by the
- program and what actually gets put in display memory is quite
- different and governed by the settings of the VGA registers. In fact,
- writing a 8 bit byte can actually result in setting 32 bits in the
- graphics memory. So, if you were running a DOS graphics session under
- a non-displayed VC, you would actually have to simulate the operation
- of the VGA card in writing to graphics memory.
-
- And, come to think of it, it's not just the graphics memory either.
- It's also the VGA card registers that the DOS program could be
- modifying. That's in I/O space. Presumably, the non-console VC DOS
- process cannot be allowed to muck around with the current VGA regs.
- So those have to be trapped and their function simulated.
-
- All in all, I suspect doing full software VGA (and SVGA) emulation is
- not very attractive.
-
- --
- rajat (rajat@watson.ibm.com)
-