home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / os2 / programm / 4636 < prev    next >
Encoding:
Text File  |  1992-09-01  |  2.2 KB  |  51 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!newsgate.watson.ibm.com!news.ans.net!ans.net!db3l
  3. From: db3l@ans.net (David Bolen)
  4. Subject: Re: How to crash OS/2 1.2 & 1.3?
  5. Sender: news@ans.net (News Administrator)
  6. Message-ID: <1992Sep01.153604.35238@ans.net>
  7. In-Reply-To: dic5340@hertz.njit.edu's message of 1 Sep 92 13: 49:36 GMT
  8. Date: Tue, 1 Sep 1992 11:37:30 GMT
  9. References: <1992Aug28.131233.26834@klaava.Helsinki.FI>
  10.     <1992Aug28.150650.719@ccsvax.sfasu.edu>
  11.     <1992Aug29.044807.15808@access.digex.com>
  12.     <1992Sep1.134936.6800@njitgw.njit.edu>
  13. Organization: Advanced Network & Services, Inc. - Elmsford, NY
  14. Lines: 35
  15.  
  16. In article <1992Sep1.134936.6800@njitgw.njit.edu> dic5340@hertz.njit.edu (David Charlap) writes:
  17.  
  18. >In article <1992Aug29.044807.15808@access.digex.com> terryfry@access.digex.com (Terry Fry) writes:
  19. >>
  20. >>DosPortAccess is part of the API, however it was never implemented.
  21. >>
  22. >If I read the API specs correctly, DosPortAccess MUST be called before
  23. >performing any PORT I/O, in order to secure permission from the OS
  24. >before using the ports.  Of course, the ports must be accessed from an
  25. >IOPL segment.
  26.  
  27. Exactly - but the documentation and the implementation differ (as Terry
  28. stated).  In other words, the documented functionality was never implemented.
  29.  
  30. I can't say anything about 2.0, but I used to do a lot of data acquisition
  31. under 1.2/1.3 many times (from IOPL segments) using direct I/O without ever
  32. bothering to call the DosPortAccess function, and never had any problems.
  33. (And I did try stuff with and without the call - it seemed to be a NOOP).
  34.  
  35. >>Any IBM'ers want to shed some light?
  36. >
  37. >Yes, please do.  I'm confused about this now...
  38.  
  39. I'm not sure the call is even relevant nowadays.  It doesn't seem to be
  40. documented any longer under OS/2 2.0 (at least not in the 2.0 toolkit docs
  41. or header files), although it still has an entry point in the system dll.
  42.  
  43. --
  44. -- David
  45. --
  46. /-----------------------------------------------------------------------\
  47.  \              David Bolen             \  Internet: db3l@ans.net      /
  48.   |   Advanced Network & Services, Inc.   \   Phone: (914) 789-5327   |
  49.  / 100 Clearbrook Road, Elmsford, NY 10523  \   Fax: (914) 789-5310    \
  50. \-----------------------------------------------------------------------/
  51.