home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / os2 / misc / 37152 < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.9 KB  |  44 lines

  1. Newsgroups: comp.os.os2.misc
  2. Path: sparky!uunet!europa.asd.contel.com!emory!swrinde!ringer!mlevis
  3. From: mlevis@ringer.cs.utsa.edu (Mike Levis) (OS/2)
  4. Subject: Re: OS/2 Crashproof? NOT!
  5. Message-ID: <1992Nov20.074033.11741@ringer.cs.utsa.edu>
  6. Organization: University of Texas at San Antonio
  7. References: <1992Nov16.164941.27113@njitgw.njit.edu> <1992Nov18.063745.6394@ringer.cs.utsa.edu> <1992Nov19.203412.23450@njitgw.njit.edu>
  8. Date: Fri, 20 Nov 1992 07:40:33 GMT
  9. Lines: 33
  10.  
  11. In article <1992Nov19.203412.23450@njitgw.njit.edu> dic5340@hertz.njit.edu (David Charlap) writes:
  12. >In article <1992Nov18.063745.6394@ringer.cs.utsa.edu> mlevis@ringer.cs.utsa.edu (Mike Levis) writes:
  13. >>I don't have the SBOS2 driver, but since OS/2 drivers have the same
  14. >>privilege level as the kernel (at ring 0), dangerous drivers (buggy,
  15. >>beta, or badly installed) can knock down OS/2.
  16. >
  17. >Well, device drivers don't run at ring 0, at least they're not
  18. >supposed to.  They run at ring 2 (along with IOPL segments, I
  19. >believe).
  20.  
  21. Actually, device drivers do run at ring 0.  From page 241 of _The Design
  22. of OS/2_ (Deitel and Kogan):
  23.  
  24.     "Device drivers are device dependent modules that provide the
  25.     low-level I/O support for a device.  They are trusted modules--
  26.     they run at privilege level 0 and have access to the kernel."
  27.  
  28. Even the DOS support code run at ring 0.  From page 298 (10.4.4 Virtual
  29. Device Drivers):
  30.  
  31.     "Virtual device drivers virtualize hardware and ROM BIOS services
  32.     on a per-VDM basis.  They provide support for the direct
  33.     manipulation of memory-mapped I/O devices, and the direct programming
  34.     of I/O ports [... deleted ...]
  35.     VDDs are trusted modules that execute in protected mode at ring 0."
  36.  
  37. Kogan was the lead architect of 32-bit OS/2.
  38.  
  39. -- 
  40. ==== Mike Levis   mlevis@ringer.cs.utsa.edu ====
  41. ::   ftp ftp-os2.nmsu.edu (128.123.35.151)    ::  .--.
  42. ::   for OS/2 software & information.  Get    :: (OS/2)
  43. :::: the OS/2 FAQL in dir /pub/os2/all/faq :::::  ~--~
  44.