source: rtems/c/src/lib/libbsp/m68k/gen68302/timer/timerisr.S @ 0ccb2bb

4.104.114.95
Last change on this file since 0ccb2bb was 0ccb2bb, checked in by Joel Sherrill <joel.sherrill@…>, on 08/31/08 at 15:54:43

2008-08-31 Joel Sherrill <joel.sherrill@…>

  • timer/timer.c, timer/timerisr.S: Rename timer driver methods to follow RTEMS programming conventions.
  • Property mode set to 100644
File size: 725 bytes
Line 
1/*
2 * Handle 68302 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:    benchmark_timerread()
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 *  $Id$
16 */
17
18#include <rtems/asm.h>
19
20BEGIN_CODE
21        PUBLIC(timerisr)
22SYM(timerisr):
23        move.w  #0x0040,SYM(m302)+2072  | clear interrupt in-service bit
24        move.b  #3,SYM(m302)+2137       | clear timer interrupt event register
25        addq.l  #1,SYM(Timer_interrupts) | increment timer value
26        rte
27END_CODE
28END
Note: See TracBrowser for help on using the repository browser.