Mail Archives: djgpp/1998/11/19/10:30:17
On Thu, 19 Nov 1998 jjed AT hotmail DOT com wrote:
> Actually I need to get the physical address of a buffer (allocated with
> malloc in protected mode) so I can program the PCI card to put data in it.
If that is what you need, then I think that's impossible. The only way to
get at the physical address is to access the GDT and LDT tables. Many
DPMI servers won't allow you to do that, since instructions that access
the descriptor tables are privilegded, i.e. they will cause your program
to GP fault. I think CWSDPR0 is one server which will allow it, but even
then your code will be specific to the server, and CWSDPR0 disables
virtual memory.
- Raw text -