Message-ID: <01BBAE07.B5AC6980@slip00-65.btx.dtag.de> From: Daniel Jungbluth To: "'DJGPP Mailing List'" Subject: RE: How do I disable disable Virtual memory?? Date: Sun, 29 Sep 1996 13:08:45 +-100 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Peter Norlander wrote: >I've just coded a keyboard interrupt in DJGPP 2.0. The problem is that >the handler is written in C (not in asm) so i can't lock the wrapper and >messages like "Page fault" appears on the screen. >I've heard that to solve this problem I could disable Virtual memory so >that my handler wont page. >How can I do this? You can disable virtual memory by setting the _CRT0_LOCK_MEMORY bit in the _ctr0_startup_flags variable: #include int _crt0_startup_flags = _CRT0_LOCK_MEMORY; /* your code */ >If I could disable virtual memory, then how much memory will be left for >my programs, I've got 8Mb physical memory (can I use all of that). All the free physical memory can be used by your program. -Daniel Jungbluth e-mail: danju AT t-online DOT de internet: http://www.t-online.de/home/index.htm -semper fidelis