home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / msdos / programm / 10853 < prev    next >
Encoding:
Internet Message Format  |  1992-11-22  |  1.2 KB

  1. Path: sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!pitt.edu!mchst12
  2. From: mchst12@pitt.edu (Mark Hahn)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Re:  MS-DOS in 386 protected mode
  5. Message-ID: <10060@blue.cis.pitt.edu.UUCP>
  6. Date: 23 Nov 92 02:19:55 GMT
  7. References: <37619@uflorida.cis.ufl.edu> <1992Nov19.170201.18621@ugle.unit.no> <1992Nov20.193105.5699@ucselx.sdsu.edu>
  8. Sender: news+@pitt.edu
  9. Reply-To: mchst12@pitt.edu
  10. Lines: 15
  11.  
  12. It's absolutely impossible to run unmodified msdos in protect mode.
  13. Why?  Because Intel chose to place tag bits in the low-order positions of 
  14. a selector (the protect-mode equivalent of a segment number).  The low
  15. two indicate privilege level (ring 0-3) and 0x04 indicates LDT/GDT.
  16. This means that if you want a series of consecutive selector values,
  17. they will be scattered across rings and between LDT and GDT.  Not only
  18. that, but the different rings are just aliases for the same descriptor.
  19. V86 mode is Intel's response to this, of course.
  20.  
  21. Incidentally, it's amusing that you CAN run real-mode programs in
  22. protect mode: as long as they don't make assumptions about seg
  23. registers.  I have some Turbo C++ code that switches itself into PM,
  24. but it doesn't really do anything past there.
  25.  
  26. regards, Mark.
  27.