home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / sysv386 / 16546 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.4 KB

  1. Path: sparky!uunet!pipex!warwick!uknet!strath-cs!memex!scott
  2. From: scott@memex.co.uk (Scott Williamson)
  3. Newsgroups: comp.unix.sysv386
  4. Subject: Mapping user virtual addresses to physical addresses
  5. Message-ID: <1992Nov16.131602.14931@memex.co.uk>
  6. Date: 16 Nov 92 13:16:02 GMT
  7. Organization: Memex Information Systems Ltd, East Kilbrde, Scotland
  8. Lines: 22
  9.  
  10. I am currently writing a device driver for a Wyse 9000i running
  11. UNIX System V/386 Release 4.0 Version 3.0.1. The purpose of this
  12. driver is to allow a user program to map part of VME address space
  13. into its virtual address space.
  14.  
  15. The main bus of the system is not VME but there is a VME chassis and
  16. interface board to allow addition of VME boards. With this subsystem
  17. comes software to allow kernel device drivers to map VME physical
  18. addresses to system physical addresses. This part seems to work fine.
  19.  
  20. The next step is to map these physical addresses to user virtual
  21. addresses. In a previous version of the operating system (SVR3.2.1A)
  22. I was able to use the routines freemappages() and mappages() in the
  23. driver to achieve this purpose. Now I can call the the routines but
  24. they appear to have no effect. They return a value of 13 (EPERM?).
  25.  
  26. I don't know how generic or Wyse-specific these routines are. Is there
  27. a standard SysV way of doing this mapping or is everything dependant
  28. on the hardware manufacturer at this level? Any help on this would be
  29. appreciated.
  30.  
  31. Scott Williamson        scott@memex.co.uk
  32.