timerisr.s
来自「RTEMS (Real-Time Executive for Multiproc」· S 代码 · 共 29 行
S
29 行
/* * Handle 68302 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. * * $Id: timerisr.S,v 1.1 1998/12/14 23:15:09 joel Exp $ */#include "asm.h"BEGIN_CODE PUBLIC(timerisr)SYM(timerisr): move.w #0x0040,SYM(m302)+2072 | clear interrupt in-service bit move.b #3,SYM(m302)+2137 | clear timer interrupt event register addq.l #1,SYM(Timer_interrupts) | increment timer value rteEND_CODEEND
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?