Mail Archives: djgpp/1999/02/05/06:53:17
In <79as03$cda$1 AT nnrp1 DOT dejanews DOT com> russell DOT thamm AT dsto DOT defence DOT gov DOT au writes:
>I have a program that needs to run at ring0 (cwsdpr0) because
>it executes one privileged instruction:
>movl %cr3,%eax
>Is there any simple way that I can get the Page Table address
>from Ring3?
>I am doing an address translation to find a physical address
>for DMA. I know I should be using VDS but the FAQ tells me
>that CWSDPMI doesn't support it.
>thanks
>Russell Thamm
>-----------== Posted via Deja News, The Discussion Network ==----------
>http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
Well, you don't need to! DJGPP's startup code identity-maps all
memory below the 1MB mark, so you just need to allocate DOS memory and
use it (the FAQ describes how to do this). It's all done with dpmi
0.9 calls, so pretty much any dpmi server will work.
Hope that helps
Fabian
--
Fabian Nunez, MSc student Collaborative Visual Computing Laboratory,
fabian AT cs DOT uct DOT ac DOT za University of Cape Town
"Ram Disk" is NOT an installation procedure!
- Raw text -