home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / os2 / programm / 4224 < prev    next >
Encoding:
Internet Message Format  |  1992-08-14  |  1.9 KB

  1. Path: sparky!uunet!news.univie.ac.at!alijku11!k390670
  2. Organization: Johannes Kepler University Linz - Computing Center
  3. Date: Friday, 14 Aug 1992 18:26:31 CDT
  4. From: <K390670@ALIJKU11.BITNET>
  5. Message-ID: <92227.182631K390670@ALIJKU11.BITNET>
  6. Newsgroups: comp.os.os2.programmer
  7. Subject: Need kernel data structures
  8. Lines: 33
  9.  
  10. I am porting an ABIOS extension from OS/2 1.3 (where it works fine) to OS/2
  11. 2.0. The extension basically hooks into the disk ABIOS, learns the *PHYSICAL*
  12. address of data being read/written from the ABIOS request block, does some-
  13. thing with the data, then passes the data on. Fine under 1.3, but under 2.0
  14. PAGING gets in my way. As I'm running at ring 0, I can do everything I want
  15. if I know *where* to do it. Enter my problem: I have to get a virtual
  16. address for the physical address, which means I'd like to look it
  17. up in some internal data structure. (You would not want to scan all page
  18. tables sequentially...)
  19.  
  20. In the kernel debugger, it just takes 4 commands to do that.
  21.  
  22. Question: How to do it while executing in ring 0 ? (Kernel data structures)
  23. Question 2: Is there any docu about field acronyms which the kernel debugger
  24.             prints quite generously ?
  25. Question 3: As the page directory is at different physical and virtual
  26.             addresses on different machines, is there something like a
  27.             master master pointer, that is the key to all kernel data
  28.             structures ?
  29.             Funnily enough, the page directory itself is *not* referred
  30.             to by a page table entry (as it is suggested in Intel's
  31.             operating system writer's guide) ...
  32.  
  33. I'd appreciate help from any OS/2 2.0 gurus, especially from some IBM
  34. guys.
  35.  
  36.  
  37. o_O   Gregor 'Greg' Glawitsch
  38.  J    Research Institute for Microprocessor Applications
  39.  o    Johannes Kepler University Linz/AUSTRIA
  40.       K390670@ALIJKU11.EDVZ.UNI-LINZ.AC.AT
  41.  
  42. "Everybody should believe in something, I believe I should have another beer!"
  43.