source: rtems/c/src/lib/libbsp/m68k/mvme162/timer/timerisr.S @ e4c07444

4.104.114.84.95
Last change on this file since e4c07444 was 08311cc3, checked in by Joel Sherrill <joel.sherrill@…>, on Nov 17, 1999 at 5:51:34 PM

Updated copyright notice.

  • Property mode set to 100644
File size: 1.3 KB
Line 
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-1999.
12 *  On-Line Applications Research Corporation (OAR).
13 *
14 *  The license and distribution terms for this file may be
15 *  found in the file LICENSE in this distribution or at
16 *  http://www.OARcorp.com/rtems/license.html.
17 *
18 *  Modifications of respective RTEMS file: COPYRIGHT (c) 1994.
19 *  EISCAT Scientific Association. M.Savitski
20 *
21 *  This material is a part of the MVME162 Board Support Package
22 *  for the RTEMS executive. Its licensing policies are those of the
23 *  RTEMS above.
24 *
25 *  $Id$
26 */
27
28#include "asm.h"
29
30BEGIN_CODE
31
32.set INTR_CLEAR_REG,      0xfff40074      | interrupt clear register
33.set RELOAD,              0x01000000      | clear tick 1 interrupt
34
35        PUBLIC (Ttimer_val)
36        PUBLIC (timerisr)
37SYM (timerisr):
38        move.l  a0, -(a7)                 | save a0
39        movea.l #INTR_CLEAR_REG, a0       | a0 = addr of cmd status reg
40        ori.l   #RELOAD, (a0)             | reload countdown
41        addq.l  #1, SYM (Ttimer_val)      | increment timer value
42        move.l  (a7)+, a0                 | restore a0
43        rte
44
45END_CODE
46END
Note: See TracBrowser for help on using the repository browser.