delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/02/06:22:26

Date: Thu, 2 Dec 1999 09:50:31 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Gareth Williams <ghw2002tii AT hotmail DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Setting a variable's selector?
In-Reply-To: <38456efc.0@samba>
Message-ID: <Pine.SUN.3.91.991202095012.14519E-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Wed, 1 Dec 1999, Gareth Williams wrote:

> In order to get information from the PnP BIOS I need the data structure to
> reside in the same selector/segment as the BIOS entry point.

Are you sure?  What requirement forces you to do such a strange thing?

AFAIK, how memory is partitioned by selectors is entirely up to the
run-time environment.  Any protected-mode environment can change the
selectors at will, especially if it defines an LDT.  So I don't
understand how come some PnP code might depend on something on which
it doesn't have any control.

> Is there way
> with DJGPP to specify the segment or selector of a variable or structure
> when you are allocating memory for it?

I need more information to answer this question.  Right now, the only
answer I can give is "it depends".  Please describe the problem and
your proposed solution in more detail.

- Raw text -


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