delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/04/02:19:26

From: satoh AT asd DOT tnes DOT nec DOT co DOT jp
Message-Id: <199712040721.QAA00925@asd.tnes.nec.co.jp>
MIME-Version: 1.0
Date: Thu, 04 Dec 1997 16:18:14 +0900
To: djgpp AT delorie DOT com
Subject: Physical address of convenstional memory

Hi, all.

I'm writing a PCI device driver using gcc compiler (DJGPP V2).
In this driver, I allocate DOS memory by using
   __dpmi_allocate_dos_memory()
function.

When executing this program under MD-DOS(CWSDPMI.EXE),
linear memory address(segment*16 + offset) is equal to
physical memory address.
But under DOS-BOX of Windows95, linear address is not
equal to physical address.

Does anyone know how to get physical memory address under
DOS-BOX(Windows95)?


Thanks in advance.

--------------------- Masayuki Satoh

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019