www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/03/06/11:31:33

Date: Mon, 6 Mar 1995 10:03:38 +0500
From: hvb AT netrix DOT com
To: Matthew Lamari <Matthew DOT Lamari AT jcu DOT edu DOT au>
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Interrupt Handling Issues. ???
References: <memo DOT 834850 AT cix DOT compulink DOT co DOT uk> <Pine DOT 3 DOT 87 DOT 9503050105 DOT B22159-0100000 AT marlin DOT jcu DOT edu DOT au>

Matthew Lamari writes:
 > 
 > Can anyone recommend a solution for either or both of my keyboard and 
 > SoundBlaster dilemma?  Does the user merely have to pray that a 
 > 
 > 

The following functions provide a method in which you can get a real
mode interrupt to call your protected mode code

_go32_dpmi_allocate_real_mode_callback_iret
_go32_dpmi_set_real_mode_interrupt_vector

eg.

  _go32_dpmi_seginfo          rm_si;

  rm_si.pm_offset = (int) <address of protected mode code to call>;

  if (_go32_dpmi_allocate_real_mode_callback_iret (&rm_si, &Rm_regs))
    *** error ***
  else
  { disable ();
    _go32_dpmi_set_real_mode_interrupt_vector(<vector>, &rm_si);
    enable ();
  }

Hope this helps.

==============================================================
Hung Bui                            Internet: h DOT bui AT ieee DOT org
Netrix Corporation                    Phone: +1 703 793 1016
13595 Dulles Technology Drive           Fax: +1 703 713 3805
Herndon Va 22071
==============================================================

- Raw text -


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