summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcvs2git <rtems-devel@rtems.org>2001-10-16 20:54:31 +0000
committercvs2git <rtems-devel@rtems.org>2001-10-16 20:54:31 +0000
commit7eedcaa5cbac80540388528c264eeacd8fbb794f (patch)
tree1ebc2ff44a6d495c7aff6185b199de3afbfbf66e
parent7f622204285494b8363fee21574deffdeb70a5f8 (diff)
downloadrtems-4.5.1-pre2.tar.bz2
This commit was manufactured by cvs2svn to create tag 'rtems-4-5-1-pre2'.4.5.1-pre2
Sprout from rtems-4-5-branch 2001-10-16 20:54:30 UTC Joel Sherrill <joel.sherrill@OARcorp.com> 'changed version to 4.5.1-pre2' Cherrypick from master 1999-03-31 23:21:19 UTC Joel Sherrill <joel.sherrill@OARcorp.com> 'Fixed paths to include files so this will build.': c/src/lib/libcpu/mips/clock/clock.S
-rw-r--r--c/src/lib/libcpu/mips/clock/clock.S45
1 files changed, 45 insertions, 0 deletions
diff --git a/c/src/lib/libcpu/mips/clock/clock.S b/c/src/lib/libcpu/mips/clock/clock.S
new file mode 100644
index 0000000000..ab3533991a
--- /dev/null
+++ b/c/src/lib/libcpu/mips/clock/clock.S
@@ -0,0 +1,45 @@
+/* clock.s
+ *
+ * This file contains the assembly code for the IDT 4650 clock driver.
+ *
+ * Author: Craig Lebakken <craigl@transition.com>
+ *
+ * COPYRIGHT (c) 1996 by Transition Networks Inc.
+ *
+ * To anyone who acknowledges that this file is provided "AS IS"
+ * without any express or implied warranty:
+ * permission to use, copy, modify, and distribute this file
+ * for any purpose is hereby granted without fee, provided that
+ * the above copyright notice and this notice appears in all
+ * copies, and that the name of Transition Networks not be used in
+ * advertising or publicity pertaining to distribution of the
+ * software without specific, written prior permission.
+ * Transition Networks makes no representations about the suitability
+ * of this software for any purpose.
+ *
+ * $Id$
+ */
+/* @(#)clock.S 08/20/96 1.2 */
+
+#include <iregdef.h>
+#include <idtcpu.h>
+#include <idtmon.h>
+
+FRAME(mips_set_timer,sp,0,ra)
+ .set noreorder
+ mfc0 t0,C0_COUNT
+ nop
+ addu t0,a0,t0
+ mtc0 t0,C0_COMPARE
+ nop
+ j ra
+ .set reorder
+ENDFRAME(mips_set_timer)
+
+FRAME(mips_get_timer,sp,0,ra)
+ .set noreorder
+ mfc0 v0,C0_COUNT
+ nop
+ j ra
+ .set reorder
+ENDFRAME(mips_get_timer)