4.104.114.84.95
Last change
on this file since 7a53dc9 was
57e9580f,
checked in by Joel Sherrill <joel.sherrill@…>, on 09/04/03 at 18:53:02
|
2003-09-04 Joel Sherrill <joel@…>
- clock/ckinit.c, console/mcfuart.c, include/mcf5206e.h,
include/mcfmbus.h, include/mcfuart.h, mbus/mcfmbus.c, timer/timer.c,
timer/timerisr.S: URL for license changed.
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Rev | Line | |
---|
[00717a3] | 1 | /* |
---|
| 2 | * Handle MCF5206 TIMER2 interrupts. |
---|
| 3 | * |
---|
| 4 | * All code in this routine is pure overhead which can perturb the |
---|
| 5 | * accuracy of RTEMS' timing test suite. |
---|
| 6 | * |
---|
| 7 | * See also: Read_timer() |
---|
| 8 | * |
---|
| 9 | * To reduce overhead this is best to be the "rawest" hardware interupt |
---|
| 10 | * handler you can write. This should be the only interrupt which can |
---|
| 11 | * occur during the measured time period. |
---|
| 12 | * |
---|
| 13 | * An external counter, Timer_interrupts, is incremented. |
---|
| 14 | * |
---|
| 15 | * Copyright (C) 2000 OKTET Ltd., St.-Petersburg, Russia |
---|
| 16 | * Author: Victor V. Vengerov <vvv@oktet.ru> |
---|
| 17 | * |
---|
| 18 | * This file based on work: |
---|
| 19 | * Author: |
---|
| 20 | * David Fiddes, D.J@fiddes.surfaid.org |
---|
| 21 | * http://www.calm.hw.ac.uk/davidf/coldfire/ |
---|
| 22 | * |
---|
| 23 | * COPYRIGHT (c) 1989-1998. |
---|
| 24 | * On-Line Applications Research Corporation (OAR). |
---|
| 25 | * |
---|
| 26 | * The license and distribution terms for this file may be |
---|
| 27 | * found in the file LICENSE in this distribution or at |
---|
| 28 | * |
---|
[57e9580f] | 29 | * http://www.rtems.com/license/LICENSE. |
---|
[00717a3] | 30 | * |
---|
| 31 | * $Id$ |
---|
| 32 | */ |
---|
| 33 | |
---|
| 34 | #include "asm.h" |
---|
| 35 | #include "bsp.h" |
---|
| 36 | #include "mcf5206/mcf5206e.h" |
---|
| 37 | |
---|
| 38 | BEGIN_CODE |
---|
| 39 | PUBLIC(timerisr) |
---|
| 40 | SYM(timerisr): |
---|
| 41 | move.l a0, a7@- |
---|
| 42 | move.l #MCF5206E_TER(BSP_MEM_ADDR_IMM, 2), a0 |
---|
| 43 | move.b # (MCF5206E_TER_REF + MCF5206E_TER_CAP), (a0) |
---|
| 44 | addq.l #1,SYM(Timer_interrupts) | increment timer value |
---|
| 45 | move.l a7@+, a0 |
---|
| 46 | rte |
---|
| 47 | END_CODE |
---|
| 48 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.