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

  1. Xref: sparky comp.unix.internals:1959 comp.unix.programmer:5318
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!saimiri.primate.wisc.edu!sdd.hp.com!cs.utexas.edu!zaphod.mps.ohio-state.edu!wupost!darwin.sura.net!sgiblab!munnari.oz.au!uniwa!aldetec!hausler
  3. From: hausler@aldetec.oz.au (Graham Hausler)
  4. Newsgroups: comp.unix.internals,comp.unix.programmer
  5. Subject: device driver address translations
  6. Message-ID: <521@aldetec.oz.au>
  7. Date: 17 Nov 92 11:13:25 GMT
  8. Organization: Aldetec Pty Ltd, Perth West Australia
  9. Lines: 32
  10.  
  11. I'm searching for a couple of particular details on address translations
  12. within the context of a device driver....
  13.  
  14. Firstly, under UNIX System V/88 R32V3 in particular, and UNIX System V in
  15. general, what kernel address space is automatically mapped to physical 
  16. memory? Teixeira, in his device driver text, says the kernel always maps
  17. the upper 2 Mbytes of kernel address space to identical physical addresses.
  18. Is this true for 88k, ie 0xFFE00000 - 0xFFFFFFFF references in kernel space
  19. will try to access these physical addresses? I can't find any V/88
  20. documentation that confirms or denies this (and I am not at device
  21. driver debugging stage yet...) although samples of code I've looked at
  22. definitely assume that this is the case.
  23.  
  24. If so, that covers accessing device registers, but how do I access 
  25. primary memory that has been removed from UNIX via  sysgen configuration? 
  26. For example, memory from 0x01FE0000 - 0x02000000 I want to access via my 
  27. device driver. I've searched the documentation for some routine/method that 
  28. allows me somehow directly access physical memory, but to no avail. 
  29. Do I have to do something special/bypass address translation tables 
  30. (if so, what/how ??!?), or is there simple solution? (ie a copyin/copyout
  31. that works between kernel space and physical space...)
  32.  
  33. Thanks for any assistance
  34. Graham Hausler.
  35.  
  36.  
  37.  
  38.  
  39.  
  40. -- 
  41. Internet:   hausler@aldetec.oz.au      --> GEMCO, Perth, Australia.
  42.  
  43.