Mail Archives: djgpp/2001/09/26/09:06:13
[On Wed, 26 Sep 2001, Eli Zaretskii wrote:]
> > From: Kovacs Viktor Peter <vps AT winnie DOT obuda DOT kando DOT hu>
> > Newsgroups: comp.os.msdos.djgpp
> > Date: Wed, 26 Sep 2001 11:26:27 +0200
> > Under the windows dpmi all segments have a limit of 4Gb. Dos based
> > dpmi servers limit the segments to the allocated ram.
> That's not true: at least with CWSDPMI and other DOS DPMI servers, the
> data segment can be much larger than the installed RAM.
It can be, but you have to set it expicitly... (by enabling near pointer
support), so you can use 'negative' offsets to access memory before the
data segment's base address.
> The Windows DPMI host, on the other hand, is, indeed, known to limit
> the available DPMI memory to the installed RAM or to 64MB, whichever
> is larger.
Yes, the allocatable memory can be limited, but windows uses a page based
protection and virtualizes the low memory. This is why you don't have
to use any segment based protection.
Viktor
ps:
Check the segment descriptor dump on your dos screen, and compare them
with the windows version. (divide with zero, to get the same error
screen)
- Raw text -