4.104.114.84.95
Last change
on this file since 0162910 was
0162910,
checked in by Joel Sherrill <joel.sherrill@…>, on 12/14/98 at 23:15:38
|
Patch from Ralf Corsepius <corsepiu@…> to rename all
.s files to .S in conformance with GNU conventions. This is a
minor step along the way to supporting automake.
|
-
Property mode set to
100644
|
File size:
890 bytes
|
Line | |
---|
1 | /* timer_isr() |
---|
2 | * |
---|
3 | * This routine provides the ISR for the timer. The timer is set up |
---|
4 | * to generate an interrupt at maximum intervals. |
---|
5 | * |
---|
6 | * Input parameters: NONE |
---|
7 | * |
---|
8 | * Output parameters: NONE |
---|
9 | * |
---|
10 | * COPYRIGHT (c) 1989-1998. |
---|
11 | * On-Line Applications Research Corporation (OAR). |
---|
12 | * Copyright assigned to U.S. Government, 1994. |
---|
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.OARcorp.com/rtems/license.html. |
---|
17 | * |
---|
18 | * $Id$ |
---|
19 | */ |
---|
20 | |
---|
21 | #include "asm.h" |
---|
22 | |
---|
23 | BEGIN_CODE |
---|
24 | |
---|
25 | EXTERN(_Ttimer_val) |
---|
26 | |
---|
27 | PUBLIC(timerisr) |
---|
28 | |
---|
29 | SYM (timerisr): |
---|
30 | addl $1,_Ttimer_val # another tick |
---|
31 | push edx |
---|
32 | push eax |
---|
33 | movw $0x20,dx |
---|
34 | mov edx,eax |
---|
35 | outb al,(dx) # touch interrupt controller |
---|
36 | pop eax |
---|
37 | pop edx |
---|
38 | iret |
---|
39 | |
---|
40 | END_CODE |
---|
41 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.