Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:51

0001 /*  clock.s
0002  *
0003  *  This file contains the assembly code for the IDT 4650 clock driver.
0004  *
0005  *  Author:     Craig Lebakken <craigl@transition.com>
0006  *
0007  *  COPYRIGHT (c) 1996 by Transition Networks Inc.
0008  *
0009  *  To anyone who acknowledges that this file is provided "AS IS"
0010  *  without any express or implied warranty:
0011  *      permission to use, copy, modify, and distribute this file
0012  *      for any purpose is hereby granted without fee, provided that
0013  *      the above copyright notice and this notice appears in all
0014  *      copies, and that the name of Transition Networks not be used in
0015  *      advertising or publicity pertaining to distribution of the
0016  *      software without specific, written prior permission.
0017  *      Transition Networks makes no representations about the suitability
0018  *      of this software for any purpose.
0019  */
0020 /* @(#)clock.S       08/20/96     1.2 */
0021 
0022 #include <rtems/mips/iregdef.h>
0023 #include <rtems/mips/idtcpu.h>
0024 #include <rtems/asm.h>
0025 
0026 FRAME(mips_set_timer,sp,0,ra)
0027     .set noreorder
0028         mfc0 t0,C0_COUNT
0029         nop
0030         addu t0,a0,t0
0031         mtc0 t0,C0_COMPARE
0032         j ra
0033     nop
0034     .set reorder
0035 ENDFRAME(mips_set_timer)
0036 
0037 FRAME(mips_get_timer,sp,0,ra)
0038     .set noreorder
0039         mfc0 v0,C0_COUNT
0040         j ra
0041     nop
0042     .set reorder
0043 ENDFRAME(mips_get_timer)