home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / msdos / programm / 10771 < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.6 KB  |  35 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!mcsun!sunic!ugle.unit.no!alkymi.unit.no!robert
  3. From: robert@alkymi.unit.no (Robert Schmidt)
  4. Subject: Re: MS-DOS in 386 protected mode
  5. Message-ID: <1992Nov19.170201.18621@ugle.unit.no>
  6. Sender: news@ugle.unit.no (NetNews Administrator)
  7. Organization: Norwegian Institute of Technology
  8. References:  <37619@uflorida.cis.ufl.edu>
  9. Date: Thu, 19 Nov 92 17:02:01 GMT
  10. Lines: 23
  11.  
  12. In article <37619@uflorida.cis.ufl.edu>, ggh@reef.cis.ufl.edu (Greg Huey - Aymer deGregory) writes:
  13. >   Im trying to write a 'bare-bones' multi-processing os for the 386.
  14. > I dont wont to create my own dos, obviously I want to use MS-DOS...
  15. > Question is, how do I do this in protected mode?
  16. >   Presumably, I create the GDT, LDTs, TSSs, IDTs, and the viarious gates...
  17. > But no matter HOW I map virtual memory with the GDT, LDTs, I cannot make
  18. > the virtual memory transparent, due to the priv bits and table indicator
  19. > bit. I need to put the 386 in protected mode, but it has to look the
  20. > same to MS-DOS, otherwise MS-DOS will fail, wont it? For instance, MS-DOS
  21. > knows one of its buffer is at seg:offs -- when I put the 386 into protected
  22. > mode, seg, rather than being a simple address, will now be treated as a
  23. > selection index into the GDT or LDT.
  24.  
  25. As I understand it, V806 mode was created just to enable running DOS
  26. apps (really 8086 apps) while a supervisor protected mode program 
  27. watches everything.
  28.  
  29. I you try to run DOS in true protected mode, I think you're out of luck.
  30. Notice that all major task-switching or multitasking systems do the same:
  31. they put each DOS session in a separate V8086 session.
  32.  
  33. robert
  34.