delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/27/16:20:44

Date: Wed, 27 Jan 1999 10:07:56 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Wolfy <k6 AT lycosmail DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: How to disable paging and modify GDT ?
In-Reply-To: <78l3ea$8al$1@nslave1.tin.it>
Message-ID: <Pine.SUN.3.91.990127100738.25202R-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Tue, 26 Jan 1999, Wolfy wrote:

> I am trying tto disable paging and access GDT to modify it using DJgpp and
> as.exe; Does anyone know how I can do that ?

On what operating system?  If that's Windows, keep dreaming: Windows
will never let you do that, since it itself messes a lot with GDT and
the page tables (that's how it implements the Virtual Machines thing).

If this is limited to plain DOS, you will have to use CWSDPR0 and hack
it (probably a lot).

As for paging, if by that you mean disabling the virtual memory, then
this is specific to the DPMI server.  For CWSDPMI, either use CWSDPR0
or point the swap file to a non-existent drive (see the documentation
of the CWSPARAM program).  With Windows, I think it's impossible
(unless you disable VM entirely via the Control Panel).

Why do you need it, anyway?

- Raw text -


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