www.delorie.com/djgpp/doc/libc-2.01/libc_362.html   search  
Go to the first, previous, next, last section, table of contents.


_go32_dpmi_allocate_iret_wrapper

Syntax

#include <dpmi.h>

int _go32_dpmi_allocate_iret_wrapper(_go32_dpmi_seginfo *info);

Description

See section DPMI Overview

This function creates a small assembler function that handles the overhead of servicing an interrupt. To use, put the address of your servicing function in the pm_offset field of info and call this function. The pm_field will get replaced with the address of the wrapper function, which you pass to both _go32_dpmi_set_protected_mode_interrupt_vector and _go32_dpmi_free_iret_wrapper.

See section _go32_dpmi_set_protected_mode_interrupt_vector See section _go32_dpmi_free_iret_wrapper

Return Value

Zero on success, nonzero on failure.

Example

_go32_dpmi_seginfo info;
info.pm_offset = my_handler;
_go32_dpmi_allocate_iret_wrapper(&info);
_go32_dpmi_set_protected_mode_interrupt_handler(0x75, &info);
...
_go32_dpmi_free_iret_wrapper(&info);


Go to the first, previous, next, last section, table of contents.

  prev next   webmaster     delorie software   privacy  
  Copyright © 1997     Updated Apr 1997