Mail Archives: djgpp/1999/12/02/06:22:26
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 -