Date: Thu, 18 Jul 1996 10:35:12 +0200 (IST) From: Eli Zaretskii To: Arash Cc: djgpp AT delorie DOT com Subject: Re: r-mode handler just crashes! In-Reply-To: <4sit3r$8eu@nyheter.chalmers.se> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 17 Jul 1996, Arash wrote: > which is not the best way to do that. In FAQ i found that i had to > install a real-mode handler too That FAQ doesn't say that! If you only hook the protected-mode interrupt, you should be OK. > I think it has something to do with accessing the Keybaord[] buffer which > is not in real-mode memory (???). Everything else is just fine - i copied > everything from FAQ, remember?? The code you posted doesn't lock the interrupt handler code and data, so you must either run it on a machine that's guaranteed not to page (i.e. lots of RAM) or turn on the bit int __crt0_startup_flags that locks all the memory. Your code also didn't call `_go32_dpmi_allocate_iret_wrapper'. (In fact, it did almost nothing of what the FAQ tells you to do, so how can you claim that you ``copied everything from FAQ''??) It will *never* work that way.