summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/m68k/mcf5272/timer/timerisr.S
diff options
context:
space:
mode:
authorJay Monkman <jtm@smoothsmoothie.com>2004-08-03 04:59:11 +0000
committerJay Monkman <jtm@smoothsmoothie.com>2004-08-03 04:59:11 +0000
commit3cfd52051fffed2ff9497283e7400480befc6d32 (patch)
tree32f0dd0d021a9b5e46ee46ffbcd991c5ec17f725 /c/src/lib/libcpu/m68k/mcf5272/timer/timerisr.S
parent2004-08-02 Ralf Corsepius <ralf_corsepius@rtems.org> (diff)
downloadrtems-3cfd52051fffed2ff9497283e7400480befc6d32.tar.bz2
2004-08-02 Jay Monkman <jtm@lopingdog.com>
* Makefile.am, configure.ac: Added CSB360 BSP * mcf5272/.cvsignore, mcf5272/ChangeLog, mcf5272/Makefile.am, mcf5272/clock/.cvsignore, mcf5272/clock/ckinit.c, mcf5272/include/.cvsignore, mcf5272/include/mcf5272.h, mcf5272/timer/.cvsignore, mcf5272/timer/timer.c, mcf5272/timer/timerisr.S: New files.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libcpu/m68k/mcf5272/timer/timerisr.S50
1 files changed, 50 insertions, 0 deletions
diff --git a/c/src/lib/libcpu/m68k/mcf5272/timer/timerisr.S b/c/src/lib/libcpu/m68k/mcf5272/timer/timerisr.S
new file mode 100644
index 0000000000..dcc9d439e5
--- /dev/null
+++ b/c/src/lib/libcpu/m68k/mcf5272/timer/timerisr.S
@@ -0,0 +1,50 @@
+/*
+ * Handle MCF5272 TIMER2 interrupts.
+ *
+ * All code in this routine is pure overhead which can perturb the
+ * accuracy of RTEMS' timing test suite.
+ *
+ * See also: Read_timer()
+ *
+ * To reduce overhead this is best to be the "rawest" hardware interupt
+ * handler you can write. This should be the only interrupt which can
+ * occur during the measured time period.
+ *
+ * An external counter, Timer_interrupts, is incremented.
+ *
+ * Copyright (C) 2000 OKTET Ltd., St.-Petersburg, Russia
+ * Author: Victor V. Vengerov <vvv@oktet.ru>
+ *
+ * This file based on work:
+ * Author:
+ * David Fiddes, D.J@fiddes.surfaid.org
+ * http://www.calm.hw.ac.uk/davidf/coldfire/
+ *
+ * COPYRIGHT (c) 1989-1998.
+ * On-Line Applications Research Corporation (OAR).
+ * Copyright assigned to U.S. Government, 1994.
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ *
+ * http://www.OARcorp.com/rtems/license.html.
+ *
+ * timerisr.S,v 1.1 2001/10/26 19:32:40 joel Exp
+ */
+
+#include "asm.h"
+#include "bsp.h"
+/*
+#include "mcf5272/mcf5272.h"
+*/
+
+BEGIN_CODE
+ PUBLIC(timerisr)
+SYM(timerisr):
+ move.l a0, a7@-
+ move.b # (MCF5272_TER_REF + MCF5272_TER_CAP), (a0)
+ addq.l #1,SYM(Timer_interrupts) | increment timer value
+ move.l a7@+, a0
+ rte
+END_CODE
+END