delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/12/21:47:18

Date: Sat, 12 Jul 1997 16:03:50 -0600
From: ismail AT acm DOT org
Subject: Want physical address from linear
Newsgroups: comp.os.msdos.djgpp
Message-ID: <868740382.3721@dejanews.com>
Reply-To: ismail AT acm DOT org
Organization: Deja News Usenet Posting Service
Lines: 22
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I want to find out the physical address of a block of memory allocated
with dpmi services under DJGPP201. I expect that I might need to play
with the LDT using assembly language - has anybody got any hints/code
lying around?

This is my sequence of calls ...
__dpmi_allocate_memory
then ... allocate descriptor, set_base, set_limit
__dpmi_lock_linear_region

 ..... and I want to get the physical address of the block here via the
selector and/or the linear address.


The block is *not* DOS memory - always above 1MB. I am using DJGPP 2.01
and CWSDPMI.

Thanks for any help.
Paul Ismail

-------------------==== Posted via Deja News ====-----------------------
      http://www.dejanews.com/     Search, Read, Post to Usenet

- Raw text -


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