Date: Wed, 27 Jan 1999 10:07:56 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Wolfy 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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?