www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/17/15:28:37

From: Andrew Crabtree <andrewc AT typhoon DOT rose DOT hp DOT com>
Message-Id: <199702171942.AA004628557@typhoon.rose.hp.com>
Subject: Realmode Callbacks
To: djgpp AT delorie DOT com
Date: Mon, 17 Feb 1997 11:42:37 PST

Hi - 

I'm having some difficulty installing a real mode callback to
a Packet Driver.

If anybody has an example of installing a protocol over a 
Packet Driver and just wants to post that that would be fine.


Otherwise - here goes - 

1) From the FAQ I think I should be calling go32_alloc_realmode_retf
and then using __dpmi_int.  The pktdrv call needs a ton of registers
passed and originally I was using int86x but this always crashed.
Are these the "proper" routines to use or should I always use 
the dpmi calls or the go32 calls.  Everything I'm writing will be in C.

2) What is the best way to use 2 bytes of real mode memory.  I know 
that I can either dpmi_conventional_alloc or use the transfer 
buffer.  How does one write into the transfer buffer, I only saw
examples of how to pass it to real mode routines?

Thanks

Andrew

- Raw text -


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