diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2006-03-16 17:18:20 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2006-03-16 17:18:20 +0000 |
commit | 72837683458ae43e7616c5af6764238167c16f2b (patch) | |
tree | 340b1c0116f0deb46e225327d8ca4053548836d5 /c/src/lib/libbsp/mips/hurricane/clock/clock.S | |
parent | 2006-03-16 Ralf Corsepius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-72837683458ae43e7616c5af6764238167c16f2b.tar.bz2 |
New (Submission by Bruce Robinson <brucer@pmccorp.com>).
Diffstat (limited to 'c/src/lib/libbsp/mips/hurricane/clock/clock.S')
-rw-r--r-- | c/src/lib/libbsp/mips/hurricane/clock/clock.S | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/mips/hurricane/clock/clock.S b/c/src/lib/libbsp/mips/hurricane/clock/clock.S new file mode 100644 index 0000000000..30b823f5ba --- /dev/null +++ b/c/src/lib/libbsp/mips/hurricane/clock/clock.S @@ -0,0 +1,45 @@ +/* clock.s + * + * This file contains the assembly code for the Hurricane BSP 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. + * + * clock.S,v 1.5 2001/05/24 13:23:48 joel Exp + */ +/* @(#)clock.S 08/20/96 1.2 */ + +#include <iregdef.h> +#include <idtcpu.h> +#include <asm.h> + +FRAME(mips_set_timer,sp,0,ra) + .set noreorder + mfc0 t0,C0_COUNT + nop + addu t0,a0,t0 + mtc0 t0,C0_COMPARE + j ra + nop + .set reorder +ENDFRAME(mips_set_timer) + +FRAME(mips_get_timer,sp,0,ra) + .set noreorder + mfc0 v0,C0_COUNT + j ra + nop + .set reorder +ENDFRAME(mips_get_timer) |