[ac7d5ef0] | 1 | /* timer_isr() |
---|
| 2 | * |
---|
| 3 | * This routine provides the ISR for the Z8036 timer on the MVME136 |
---|
| 4 | * board. The timer is set up to generate an interrupt at maximum |
---|
| 5 | * intervals. |
---|
| 6 | * |
---|
| 7 | * Input parameters: NONE |
---|
| 8 | * |
---|
| 9 | * Output parameters: NONE |
---|
| 10 | * |
---|
| 11 | * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. |
---|
| 12 | * On-Line Applications Research Corporation (OAR). |
---|
| 13 | * All rights assigned to U.S. Government, 1994. |
---|
| 14 | * |
---|
| 15 | * This material may be reproduced by or for the U.S. Government pursuant |
---|
| 16 | * to the copyright license under the clause at DFARS 252.227-7013. This |
---|
| 17 | * notice must appear in all copies of this file and its derivatives. |
---|
| 18 | * |
---|
| 19 | * Modifications of respective RTEMS file: COPYRIGHT (c) 1994. |
---|
| 20 | * EISCAT Scientific Association. M.Savitski |
---|
| 21 | * |
---|
| 22 | * This material is a part of the MVME162 Board Support Package |
---|
| 23 | * for the RTEMS executive. Its licensing policies are those of the |
---|
| 24 | * RTEMS above. |
---|
| 25 | * |
---|
| 26 | * $Id$ |
---|
| 27 | */ |
---|
| 28 | |
---|
| 29 | #include "asm.h" |
---|
| 30 | |
---|
| 31 | BEGIN_CODE |
---|
| 32 | |
---|
| 33 | .set INTR_CLEAR_REG, 0xfff40074 | interrupt clear register |
---|
| 34 | .set RELOAD, 0x01000000 | clear tick 1 interrupt |
---|
| 35 | |
---|
[c6fb8e90] | 36 | PUBLIC (Ttimer_val) |
---|
[ac7d5ef0] | 37 | PUBLIC (timerisr) |
---|
| 38 | SYM (timerisr): |
---|
| 39 | move.l a0, -(a7) | save a0 |
---|
| 40 | movea.l #INTR_CLEAR_REG, a0 | a0 = addr of cmd status reg |
---|
| 41 | ori.l #RELOAD, (a0) | reload countdown |
---|
| 42 | addq.l #1, SYM (Ttimer_val) | increment timer value |
---|
| 43 | move.l (a7)+, a0 | restore a0 |
---|
| 44 | rte |
---|
| 45 | |
---|
| 46 | END_CODE |
---|
| 47 | END |
---|