![]() |
|
|||
File indexing completed on 2025-05-11 08:23:50
0001 /* clock.s 0002 * 0003 * This file contains the assembly code for the Hurricane BSP 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 0021 #include <iregdef.h> 0022 #include <idtcpu.h> 0023 #include <asm.h> 0024 0025 FRAME(mips_set_timer,sp,0,ra) 0026 .set noreorder 0027 mfc0 t0,C0_COUNT 0028 nop 0029 addu t0,a0,t0 0030 mtc0 t0,C0_COMPARE 0031 j ra 0032 nop 0033 .set reorder 0034 ENDFRAME(mips_set_timer) 0035 0036 FRAME(mips_get_timer,sp,0,ra) 0037 .set noreorder 0038 mfc0 v0,C0_COUNT 0039 j ra 0040 nop 0041 .set reorder 0042 ENDFRAME(mips_get_timer)
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |