source: rtems/bsps/mips/hurricane/clock/clock.S @ 7632906

5
Last change on this file since 7632906 was 7632906, checked in by Sebastian Huber <sebastian.huber@…>, on 04/19/18 at 04:35:52

bsps: Move clock drivers to bsps

This patch is a part of the BSP source reorganization.

Update #3285.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*  clock.s
2 *
3 *  This file contains the assembly code for the Hurricane BSP 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#include <iregdef.h>
22#include <idtcpu.h>
23#include <asm.h>
24
25FRAME(mips_set_timer,sp,0,ra)
26        .set noreorder
27        mfc0 t0,C0_COUNT
28        nop
29        addu t0,a0,t0
30        mtc0 t0,C0_COMPARE
31        j ra
32        nop
33        .set reorder
34ENDFRAME(mips_set_timer)
35
36FRAME(mips_get_timer,sp,0,ra)
37        .set noreorder
38        mfc0 v0,C0_COUNT
39        j ra
40        nop
41        .set reorder
42ENDFRAME(mips_get_timer)
Note: See TracBrowser for help on using the repository browser.