home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / linux / 17306 < prev    next >
Encoding:
Text File  |  1992-11-20  |  998 b   |  26 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!newsgate.watson.ibm.com!yktnews!admin!pizol!heeb
  3. From: heeb@watson.ibm.com (Hansruedi Heeb)
  4. Subject: How to use sys_iopl (to change I/O privilege) ?    
  5. Sender: news@watson.ibm.com (NNTP News Poster)
  6. Message-ID: <1992Nov20.145858.119338@watson.ibm.com>
  7. Date: Fri, 20 Nov 1992 14:58:58 GMT
  8. Disclaimer: This posting represents the poster's views, not necessarily those of IBM
  9. Nntp-Posting-Host: pizol.watson.ibm.com
  10. Organization: IBM T.J. Watson Research Center
  11. Lines: 13
  12.  
  13. I have to access I/O ports outside the 0x3ff range. After some
  14. digging in the kernel sources I came accross 'sys_iopl'
  15. (which changes the IO privilege in the flags register on stack).
  16. Unfortunately I could not find any code that actually uses this.
  17.  
  18. So: how do I use sys_iopl ? Or more specific: how do I call
  19. sys_iopl such that the right internal registers are on the stack ?
  20.  
  21. Could some kernel guru provide me with a three line example ?
  22. Thanks!
  23.  
  24. Hansruedi - heeb@watson.ibm.com
  25.  
  26.