OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libcpu/] [mips64orion/] [clock/] [clock.S] - Blame information for rev 228

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  clock.s
2
 *
3
 *  This file contains the assembly code for the IDT 4650 clock driver.
4
 *
5
 *  Author:     Craig Lebakken 
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
 *  $Id: clock.S,v 1.2 2001-09-27 12:01:22 chris Exp $
21
 */
22
/* @(#)clock.S       08/20/96     1.2 */
23
 
24
#include 
25
#include 
26
#include 
27
 
28
FRAME(mips_set_timer,sp,0,ra)
29
        .set noreorder
30
        mfc0 t0,C0_COUNT
31
        nop
32
        addu t0,a0,t0
33
        mtc0 t0,C0_COMPARE
34
        nop
35
        j ra
36
        .set reorder
37
ENDFRAME(mips_set_timer)
38
 
39
FRAME(mips_get_timer,sp,0,ra)
40
        .set noreorder
41
        mfc0 v0,C0_COUNT
42
        nop
43
        j ra
44
        .set reorder
45
ENDFRAME(mips_get_timer)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.