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

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ucselx!maxc0452
  3. From: maxc0452@ucselx.sdsu.edu (Legene)
  4. Subject: Re:  MS-DOS in 386 protected mode
  5. Message-ID: <1992Nov20.193105.5699@ucselx.sdsu.edu>
  6. Organization: San Diego State University Computing Services
  7. References: <37619@uflorida.cis.ufl.edu> <1992Nov19.170201.18621@ugle.unit.no>
  8. Date: Fri, 20 Nov 1992 19:31:05 GMT
  9. Lines: 28
  10.  
  11. robert@alkymi.unit.no (Robert Schmidt) writes:
  12.  
  13. >In article <37619@uflorida.cis.ufl.edu>, ggh@reef.cis.ufl.edu (Greg Huey - Aymer deGregory) writes:
  14. >> 
  15. >>   Im trying to write a 'bare-bones' multi-processing os for the 386.
  16. >> I dont wont to create my own dos, obviously I want to use MS-DOS...
  17. >> Question is, how do I do this in protected mode?
  18. >>   Presumably, I create the GDT, LDTs, TSSs, IDTs, and the viarious gates...
  19. >> But no matter HOW I map virtual memory with the GDT, LDTs, I cannot make
  20. >> the virtual memory transparent, due to the priv bits and table indicator
  21. >> bit. I need to put the 386 in protected mode, but it has to look the
  22. >> same to MS-DOS, otherwise MS-DOS will fail, wont it? For instance, MS-DOS
  23. >> knows one of its buffer is at seg:offs -- when I put the 386 into protected
  24. >> mode, seg, rather than being a simple address, will now be treated as a
  25. >> selection index into the GDT or LDT.
  26.  
  27. Well, you might set up your GDT and LDT so that they map segments to the
  28. same place they would have been otherwise.  Then maybe you can reserve
  29. a memory space from DOS and then, after you've reserved it, change it
  30. to point to somewhere in extended memory.  You probably couldn't use
  31. it for code, but maybe you could use it to store data in.
  32.     You'd have to remap the segment back where DOS expects it to be
  33. before terminating your program, of course.  And this would't much help
  34. in multi-tasking DOS programs made by others, it might just make your
  35. own programs smaller in DOS memory so you can fit more in.
  36.  
  37.  
  38.  
  39.