source: rtems/c/src/lib/libbsp/m68k/mvme136/timer/timerisr.S @ c499856

4.115
Last change on this file since c499856 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 1012 bytes
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.rtems.org/license/LICENSE.
17 */
18
19#include <rtems/asm.h>
20
21BEGIN_CODE
22
23.set CT1_CMD_STATUS,  0xfffb000a         | port A
24.set RELOAD,          0x24               | clr IP & IUS,allow countdown
25
26        PUBLIC (timerisr)
27SYM (timerisr):
28        movl    a0,a7@-                  | save a0
29        movl    #CT1_CMD_STATUS,a0       | a0 = addr of cmd status reg
30        movb    #RELOAD,a0@              | reload countdown
31        addql   #1, SYM (Ttimer_val)     | increment timer value
32        movl    a7@+,a0                  | save a0
33        rte
34
35END_CODE
36END
Note: See TracBrowser for help on using the repository browser.