www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/18/03:42:42

Date: Thu, 18 Jul 1996 10:35:12 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Arash <ei39594 AT ios DOT chalmers DOT se>
Cc: djgpp AT delorie DOT com
Subject: Re: r-mode handler just crashes!
In-Reply-To: <4sit3r$8eu@nyheter.chalmers.se>
Message-Id: <Pine.SUN.3.91.960718102546.338I-100000@is>
Mime-Version: 1.0

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.

- Raw text -


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