Date: Thu, 2 Dec 1999 09:50:31 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Gareth Williams cc: djgpp AT delorie DOT com Subject: Re: Setting a variable's selector? In-Reply-To: <38456efc.0@samba> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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.