diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-03-09 16:45:56 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-03-13 08:05:39 +0100 |
commit | b6755affc05466a49e684c316ea6e6f00c21c370 (patch) | |
tree | 25f341de3fb53195fe8341fb9e5779eed63e1db5 /bsps/mips/shared/timer/gettime.S | |
parent | bsps/mips: Remove Mongoose-V README (diff) | |
download | rtems-b6755affc05466a49e684c316ea6e6f00c21c370.tar.bz2 |
bsps/mips: Move libcpu content to bsps
This patch is a part of the BSP source reorganization.
Update #3285.
Diffstat (limited to 'bsps/mips/shared/timer/gettime.S')
-rw-r--r-- | bsps/mips/shared/timer/gettime.S | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/bsps/mips/shared/timer/gettime.S b/bsps/mips/shared/timer/gettime.S new file mode 100644 index 0000000000..2661dfee33 --- /dev/null +++ b/bsps/mips/shared/timer/gettime.S @@ -0,0 +1,33 @@ +/* gettime.s + * + * This file contains the assembly code for the IDT 4650 timer 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. + */ + +/* @(#)gettime.S 08/20/96 1.2 */ + +#include <rtems/mips/iregdef.h> +#include <rtems/mips/idtcpu.h> +#include <rtems/asm.h> + +FRAME(mips_read_timer,sp,0,ra) + .set noreorder + mfc0 v0,C0_COUNT + nop + j ra + .set reorder +ENDFRAME(mips_read_timer) |