
Address conversion to phys.address under DOS
Hi folks, i need some help from DOS "wizards":
Problem:
I need to program a DMA controller with a physical address of
a buffer. This buffer is declared in my C program runnning under
DOS.
The conversion of a virtual address to the physical address is
really simple if the PC is runnning in real mode. But: Todays memory
managers like QEMM or 386MAX and others switch the cpu into the
virtual 86 mode running in an protected mode segment.
Therefor the questions:
1. Does anybody know how to convert an address in my C program to the
real used physical address? Is there existing a system call under
DOS and/or Windows which does this? and how to use it?
2. Is there anywhere existing a library or a TSR or whatever which can
do the conversion?
3. Does the DPMI interface help by this task?
If you have any hint, please send me an email. I will post the results in
the newsgroup.
Thanks.....
Klaus
------------------------------------------------------------------------snip-
(..!unido!atmkn!macher)
_/_/ _/_/_/_/_/ _/_/ _/_/
_/ _/ _/ _/ _/ _/ Voice: +49 7531/807-332
_/ _/ _/ _/ _/ _/ Fax: +49 7531/807-280
_/_/_/_/_/ _/ _/ _/
_/ _/ _/ _/ _/ ATM Computer GmbH
Buecklestrasse 1 -5
78467 Konstanz, Germany
-----------------------------------------------------------------------------