Date: Thu, 13 Jan 2000 17:38:49 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Groman cc: djgpp AT delorie DOT com Subject: Re: Confused with paging. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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.