4.104.114.84.95
Last change
on this file since 73b5bd5d was
0cd196b7,
checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/03/04 at 00:15:56
|
2004-04-02 Ralf Corsepius <ralf_corsepius@…>
- clock/clock.S, mongoosev/vectorisrs/vectorisrs.c,
shared/interrupts/isr_entries.S,
shared/interrupts/vectorexceptions.c, timer/gettime.S: Include
<rtems/mips/iregdef.h> instead of <iregdef.h>.
- clock/clock.S, mongoosev/vectorisrs/vectorisrs.c,
shared/interrupts/installisrentries.c,
shared/interrupts/isr_entries.S,
shared/interrupts/vectorexceptions.c, timer/gettime.S: Include
<rtems/mips/idtcpu.h> instead of <idtcpu.h>.
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | /* clock.s |
---|
2 | * |
---|
3 | * This file contains the assembly code for the IDT 4650 clock driver. |
---|
4 | * |
---|
5 | * Author: Craig Lebakken <craigl@transition.com> |
---|
6 | * |
---|
7 | * COPYRIGHT (c) 1996 by Transition Networks Inc. |
---|
8 | * |
---|
9 | * To anyone who acknowledges that this file is provided "AS IS" |
---|
10 | * without any express or implied warranty: |
---|
11 | * permission to use, copy, modify, and distribute this file |
---|
12 | * for any purpose is hereby granted without fee, provided that |
---|
13 | * the above copyright notice and this notice appears in all |
---|
14 | * copies, and that the name of Transition Networks not be used in |
---|
15 | * advertising or publicity pertaining to distribution of the |
---|
16 | * software without specific, written prior permission. |
---|
17 | * Transition Networks makes no representations about the suitability |
---|
18 | * of this software for any purpose. |
---|
19 | * |
---|
20 | * $Id$ |
---|
21 | */ |
---|
22 | /* @(#)clock.S 08/20/96 1.2 */ |
---|
23 | |
---|
24 | #include <rtems/mips/iregdef.h> |
---|
25 | #include <rtems/mips/idtcpu.h> |
---|
26 | #include <rtems/asm.h> |
---|
27 | |
---|
28 | FRAME(mips_set_timer,sp,0,ra) |
---|
29 | .set noreorder |
---|
30 | mfc0 t0,C0_COUNT |
---|
31 | nop |
---|
32 | addu t0,a0,t0 |
---|
33 | mtc0 t0,C0_COMPARE |
---|
34 | j ra |
---|
35 | nop |
---|
36 | .set reorder |
---|
37 | ENDFRAME(mips_set_timer) |
---|
38 | |
---|
39 | FRAME(mips_get_timer,sp,0,ra) |
---|
40 | .set noreorder |
---|
41 | mfc0 v0,C0_COUNT |
---|
42 | j ra |
---|
43 | nop |
---|
44 | .set reorder |
---|
45 | ENDFRAME(mips_get_timer) |
---|
Note: See
TracBrowser
for help on using the repository browser.