Back to home page

LXR

 
 

    


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

0001 /*  gettime.s
0002  *
0003  *  This file contains the assembly code for the IDT 4650 timer 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 
0021 /* @(#)gettime.S       08/20/96     1.2 */
0022 
0023 #include <rtems/mips/iregdef.h>
0024 #include <rtems/mips/idtcpu.h>
0025 #include <rtems/asm.h>
0026 
0027 FRAME(mips_read_timer,sp,0,ra)
0028     .set noreorder
0029         mfc0 v0,C0_COUNT
0030         nop
0031         j ra
0032     .set reorder
0033 ENDFRAME(mips_read_timer)