source: rtems/c/src/lib/libbsp/i386/go32/startup/setvec.c @ b91726f

4.104.114.84.95
Last change on this file since b91726f was 9e738b65, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 20, 1995 at 7:20:31 PM

updating go32 to make timer more accurate

  • Property mode set to 100644
File size: 1.3 KB
Line 
1/*  set_vector
2 *
3 *  This routine installs an interrupt vector under go32.
4 *
5 *  INPUT:
6 *    handler - interrupt handler entry point
7 *    vector  - vector number
8 *    type    - 0 indicates raw hardware connect
9 *              1 indicates RTEMS interrupt connect
10 *
11 *  RETURNS:
12 *    address of previous interrupt handler
13 *
14 *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
15 *  On-Line Applications Research Corporation (OAR).
16 *  All rights assigned to U.S. Government, 1994.
17 *
18 *  This material may be reproduced by or for the U.S. Government pursuant
19 *  to the copyright license under the clause at DFARS 252.227-7013.  This
20 *  notice must appear in all copies of this file and its derivatives.
21 *
22 *  $Id$
23 */
24
25#include <rtems.h>
26#include <bsp.h>
27
28#include <dpmi.h>
29#include <go32.h>
30
31i386_isr_entry set_vector(                      /* returns old vector */
32  rtems_isr_entry     handler,                  /* isr routine        */
33  rtems_vector_number vector,                   /* vector number      */
34  int                 type                      /* RTEMS or RAW intr  */
35)
36{
37  i386_isr_entry   previous_isr;
38
39  if ( type )  {
40     rtems_interrupt_catch( handler, vector, (rtems_isr_entry *) &previous_isr);
41  } else {
42     _CPU_ISR_install_raw_handler( vector, handler, (proc_ptr *)&previous_isr);
43  }
44  return previous_isr;
45}
46
Note: See TracBrowser for help on using the repository browser.