home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / os2 / programm / 4631 < prev    next >
Encoding:
Internet Message Format  |  1992-09-01  |  1.9 KB

  1. Path: sparky!uunet!gatech!psuvax1!rutgers!njitgw.njit.edu!hertz.njit.edu!dic5340
  2. From: dic5340@hertz.njit.edu (David Charlap)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: Re: How to crash OS/2 1.2 & 1.3?
  5. Message-ID: <1992Sep1.134936.6800@njitgw.njit.edu>
  6. Date: 1 Sep 92 13:49:36 GMT
  7. References: <1992Aug28.131233.26834@klaava.Helsinki.FI> <1992Aug28.150650.719@ccsvax.sfasu.edu> <1992Aug29.044807.15808@access.digex.com>
  8. Sender: news@njit.edu
  9. Organization: New Jersey Institute of Technology, Newark, N.J.
  10. Lines: 35
  11. Nntp-Posting-Host: hertz.njit.edu
  12.  
  13. In article <1992Aug29.044807.15808@access.digex.com> terryfry@access.digex.com (Terry Fry) writes:
  14. >
  15. >DosPortAccess is part of the API, however it was never implemented.
  16. >
  17. >Run a program that writes to a set of ports in an IOPL segment,
  18. >then call DosPortAcess restricting access to these ports, and write
  19. >again.  Nothing is going to happen, no protection fault.
  20.  
  21. Are you sure?  I thought it works.  I'll have to find some way to test
  22. it.  Note that you can't restrict yourself from a port with
  23. DosPortAccess.  You can only restrict other apps from it.  Your app
  24. will have to lock the port (via DosPortAccess) and go into a loop.
  25. Some other app must then try and access the port.
  26.  
  27. If I read the API specs correctly, DosPortAccess MUST be called before
  28. performing any PORT I/O, in order to secure permission from the OS
  29. before using the ports.  Of course, the ports must be accessed from an
  30. IOPL segment.
  31.  
  32. It may, however, be voluntary locking.  But this runs counter to
  33. OS/2's design philosophy.
  34.  
  35. >I can't remember why IBM never finished its implementation, and
  36. >I havn't remmebered where I read that it doesn't do anything.
  37. >
  38. >Any IBM'ers want to shed some light?
  39.  
  40. Yes, please do.  I'm confused about this now...
  41.  
  42.  
  43. -- 
  44.    |)  David Charlap           "I don't even represent myself
  45.   /|_  dic5340@hertz.njit.edu   sometimes so NJIT is right out!.
  46.  ((|,)
  47.   ~|~  Hi! I am a .signature virus, copy me into your .signature file.
  48.