Mail Archives: djgpp/2000/01/13/13:31:36
On Wed, 12 Jan 2000, Groman wrote:
> How does DJGPP work with paging?
DJGPP doesn't know (and doesn't care) about paging. This is left
entirely to the DPMI server. If the DPMI server doesn't support paging,
then you will simply run out of memory faster.
> If I don't use DPMI(it's a small kernel) and have paging enabled...
> how does DJGPP code react to that...
AFAIK, there's nothing in the DJGPP library or in the code produce by GCC
that cares about paging. What happens if paging is enabled is up to your
kernel. In general, if paging is enabled, the OS is supposed to provide
a handler for the Page Fault exception, and service it by paging some of
the memory in and out as needed. If such a handler isn't present, the
Page Fault exception goes straight to the application (and kills it).
> how does it formulate it's linear addresses...
I don't understand the question. DJGPP programs don't manipulate linear
addresses, the addresses you see in a C program are offsets from the base
of the CS or DS segment.
- Raw text -