www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/13/13:31:36

Date: Thu, 13 Jan 2000 17:38:49 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Groman <groman AT thehelm DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Confused with paging.
In-Reply-To: <Sg8f4.272$s3.3094@nnrp3-w.snfc21.pbi.net>
Message-ID: <Pine.SUN.3.91.1000113173251.12754E-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


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