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

4.104.114.84.95
Last change on this file since 0162910 was 0162910, checked in by Joel Sherrill <joel.sherrill@…>, on 12/14/98 at 23:15:38

Patch from Ralf Corsepius <corsepiu@…> to rename all
.s files to .S in conformance with GNU conventions. This is a
minor step along the way to supporting automake.

  • Property mode set to 100644
File size: 1.4 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-1998.
12 *  On-Line Applications Research Corporation (OAR).
13 *  Copyright assigned to U.S. Government, 1994.
14 *
15 *  The license and distribution terms for this file may be
16 *  found in the file LICENSE in this distribution or at
17 *  http://www.OARcorp.com/rtems/license.html.
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
31BEGIN_CODE
32
33.set INTR_CLEAR_REG,      0xfff40074      | interrupt clear register
34.set RELOAD,              0x01000000      | clear tick 1 interrupt
35
36        PUBLIC (Ttimer_val)
37        PUBLIC (timerisr)
38SYM (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
46END_CODE
47END
Note: See TracBrowser for help on using the repository browser.