www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/23/11:51:57

From: nikki AT gameboutique DOT co (nikki)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: real mode calls pmode
Date: 23 Feb 1997 16:02:11 GMT
Organization: GameBoutique Ltd.
Lines: 23
Message-ID: <5eppm3$2iq@flex.uunet.pipex.com>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 970223131544 DOT 1774D-100000 AT is>
NNTP-Posting-Host: www.gameboutique.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

> The FAQ explains in section 18.8 how to set up a real-mode callback,
> which is what you need.  If I understand what you need to do
> correctly, you should call the library function
> `_go32_dpmi_allocate_real_mode_callback_retf', then pass the `segment'
> and `offset' fields it returns to your 16-bit real-mode driver.

well i tried copying the example code from this section and it sort of works.
it doesn't sigsegv all over the place, but after a while (when the code is
called by the hardware) it returns something about a tss error, and something
about rmcb problems and crashes. neither a search for rmcb nor tss showed up
any references in the faq though. this doesn't happen often either, about
90% of the time it calls the function correctly (it's just an empty function
there's nothing in it :) but the other 10% gives that rmcb problem. 
rmcb = real mode call back?

regards,
nik



-- 
Graham Tootell           
nikki AT gameboutique DOT com  

- Raw text -


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