[7150f00f] | 1 | /*-------------------------------------------------------------------------+ |
---|
| 2 | | timerisr.s v1.1 - PC386 BSP - 1997/08/07 |
---|
| 3 | +--------------------------------------------------------------------------+ |
---|
| 4 | | This file contains the PC386 timer interrupt handler. |
---|
| 5 | +--------------------------------------------------------------------------+ |
---|
| 6 | | (C) Copyright 1997 - |
---|
| 7 | | - NavIST Group - Real-Time Distributed Systems and Industrial Automation |
---|
| 8 | | |
---|
| 9 | | http://pandora.ist.utl.pt |
---|
| 10 | | |
---|
| 11 | | Instituto Superior Tecnico * Lisboa * PORTUGAL |
---|
| 12 | +--------------------------------------------------------------------------+ |
---|
| 13 | | Disclaimer: |
---|
| 14 | | |
---|
| 15 | | This file is provided "AS IS" without warranty of any kind, either |
---|
| 16 | | expressed or implied. |
---|
| 17 | +--------------------------------------------------------------------------+ |
---|
| 18 | | This code is base on: |
---|
| 19 | | timerisr.s,v 1.5 1995/12/19 20:07:45 joel Exp - go32 BSP |
---|
| 20 | | With the following copyright notice: |
---|
| 21 | | ************************************************************************** |
---|
| 22 | | * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. * |
---|
| 23 | | * On-Line Applications Research Corporation (OAR). * |
---|
| 24 | | * All rights assigned to U.S. Government, 1994. * |
---|
| 25 | | * * |
---|
| 26 | | * This material may be reproduced by or for the U.S. Government pursuant * |
---|
| 27 | | * to the copyright license under the clause at DFARS 252.227-7013. This * |
---|
| 28 | | * notice must appear in all copies of this file and its derivatives. * |
---|
| 29 | | ************************************************************************** |
---|
| 30 | +--------------------------------------------------------------------------*/ |
---|
| 31 | |
---|
| 32 | |
---|
| 33 | #include "asm.h" |
---|
| 34 | |
---|
| 35 | BEGIN_CODE |
---|
| 36 | |
---|
| 37 | EXTERN(Ttimer_val) |
---|
| 38 | |
---|
| 39 | /*-------------------------------------------------------------------------+ |
---|
| 40 | | Function: rtems_isr timerisr(rtems_vector_number); |
---|
| 41 | | Description: ISR for the timer. The timer is set up to generate an |
---|
| 42 | | interrupt at maximum intervals. |
---|
| 43 | | Global Variables: None. |
---|
| 44 | | Arguments: standard - see RTEMS documentation. |
---|
| 45 | | Returns: standard return value - see RTEMS documentation. |
---|
| 46 | +--------------------------------------------------------------------------*/ |
---|
| 47 | PUBLIC(timerisr) |
---|
| 48 | SYM (timerisr): |
---|
| 49 | incl Ttimer_val # another tick |
---|
| 50 | pushl eax |
---|
| 51 | movb $0x20, al |
---|
| 52 | outb al, $0x20 # signal generic End Of Interrupt (EOI) to PIC |
---|
| 53 | popl eax |
---|
| 54 | iret |
---|
| 55 | |
---|
| 56 | END_CODE |
---|
| 57 | |
---|
| 58 | END |
---|
| 59 | |
---|