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