4.104.114.84.95
Last change
on this file since b944007b was
f198c63,
checked in by Joel Sherrill <joel.sherrill@…>, on 09/06/96 at 18:11:41
|
new file for MIPS port by Craig Lebakken (lebakken@…) and
Derrick Ostertag (ostertag@…).
|
-
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 | */ |
---|
21 | /* @(#)clock.S 08/20/96 1.2 */ |
---|
22 | |
---|
23 | #include <rtems/score/iregdef.h> |
---|
24 | #include <rtems/score/idtcpu.h> |
---|
25 | #include <rtems/score/idtmon.h> |
---|
26 | |
---|
27 | FRAME(mips_set_timer,sp,0,ra) |
---|
28 | .set noreorder |
---|
29 | mfc0 t0,C0_COUNT |
---|
30 | nop |
---|
31 | addu t0,a0,t0 |
---|
32 | mtc0 t0,C0_COMPARE |
---|
33 | nop |
---|
34 | j ra |
---|
35 | .set reorder |
---|
36 | ENDFRAME(mips_set_timer) |
---|
37 | |
---|
38 | FRAME(mips_get_timer,sp,0,ra) |
---|
39 | .set noreorder |
---|
40 | mfc0 v0,C0_COUNT |
---|
41 | nop |
---|
42 | j ra |
---|
43 | .set reorder |
---|
44 | ENDFRAME(mips_get_timer) |
---|
Note: See
TracBrowser
for help on using the repository browser.