Mail Archives: djgpp/1996/07/18/03:42:42
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 -