📄 sysmipsalib.s
字号:
/* sysMipsALib.s - MIPS system-dependent routines *//* Copyright 2001 Wind River Systems, Inc. */#include "copyright_wrs.h"/* * This file has been developed or significantly modified by the * MIPS Center of Excellence Dedicated Engineering Staff. * This notice is as per the MIPS Center of Excellence Master Partner * Agreement, do not remove this notice without checking first with * WR/Platforms MIPS Center of Excellence engineering management. *//*modification history--------------------01g,05apr05,fhc adopted from pb1500_mips32sf/sysMipsALib.s01f,07jun02,jmt Fix typo with SYS_CONFIG_SET and SYS_PRID_GET macros01e,29nov01,agf fix sysConfigSet to load from a0 instead of v001e,29nov01,pes Correct parameter passed to sysConfigSet()01d,16jul01,tlc Add CofE copyright.01c,27jun01,tlc General cleanup.01b,21jun01,agf fix typos in comments01a,15jun01,tlc Use HAZARD_VR5400 macro.*//*DESCRIPTIONThis library provides board-specific routines that are shared by all MIPS-basedBSPs. MIPS BSPs utilize this file by creating a symbolic link from theirdirectory to target/config/mipsCommon/sysMipsALib.s and include the file at the *bottom* of sysALib.s using #include "sysMipsALib.s" A list of provided routines follows. If a BSP requires a specialized routine,then #define the appropriate MACRO corresponding to the routine to bespecialized in the BSPs sysALib.s file. ROUTINE MACRO ------------------------------------------------------ sysGpInit SYS_GP_INIT sysCompareSet SYS_COMPARE_SET sysCompareGet SYS_COMPARE_GET sysCountSet SYS_COUNT_SET sysCountGet SYS_COUNT_GET sysPridGet SYS_PRID_GET sysConfigGet SYS_CONFIG_GET sysConfigSet SYS_CONFIG_SET*/ .globl sysGpInit .globl sysCompareSet .globl sysCompareGet .globl sysCountSet .globl sysCountGet .globl sysPridGet .globl sysConfigGet .globl sysConfigSet .text#ifndef SYS_GP_INIT/********************************************************************************* sysGpInit - initialize the MIPS global pointer** The purpose of this routine is to initialize the global pointer (gp).* It is required in order support compressed ROMs.** RETURNS: N/A** NOMANUAL*/ .ent sysGpInitsysGpInit: la gp, _gp /* set global pointer from compiler */ j ra .end sysGpInit#endif#ifndef SYS_COMPARE_SET /******************************************************************************** sysCompareSet - set the MIPS timer compare register** RETURNS: N/A* void sysCompareSet* (* int compareValue* )* NOMANUAL*/ .ent sysCompareSetsysCompareSet: HAZARD_VR5400 mtc0 a0,C0_COMPARE j ra .end sysCompareSet#endif#ifndef SYS_COMPARE_GET /******************************************************************************** sysCompareGet - get the MIPS timer compare register** RETURNS: The MIPS timer compare register value* int sysCompareGet (void)* NOMANUAL */ .ent sysCompareGetsysCompareGet: HAZARD_VR5400 mfc0 v0,C0_COMPARE j ra .end sysCompareGet#endif#ifndef SYS_COUNT_SET /******************************************************************************** sysCountSet - set the MIPS timer count register** RETURNS: N/A* void sysCountSet* (* int countValue* )* NOMANUAL */ .ent sysCountSetsysCountSet: HAZARD_VR5400 mtc0 a0,C0_COUNT j ra .end sysCountSet#endif#ifndef SYS_COUNT_GET/******************************************************************************** sysCountGet - get the MIPS timer count register** RETURNS: The MIPS timer count register value** int sysCountGet (void)** NOMANUAL */ .ent sysCountGetsysCountGet: HAZARD_VR5400 mfc0 v0,C0_COUNT j ra .end sysCountGet#endif #ifndef SYS_PRID_GET/******************************************************************************** sysPridGet - get the MIPS processor ID register** RETURNS: N/A* int sysPridGet (void)*/ .ent sysPridGetsysPridGet: HAZARD_VR5400 mfc0 v0,C0_PRID j ra .end sysPridGet#endif#ifndef SYS_CONFIG_GET /******************************************************************************** sysConfigGet - get the MIPS processor CONFIG register** RETURNS: N/A* int sysConfigGet (void)*/ .ent sysConfigGetsysConfigGet: HAZARD_VR5400 mfc0 v0,C0_CONFIG j ra .end sysConfigGet#endif#ifndef SYS_CONFIG_SET/******************************************************************************** sysConfigSet - set the MIPS processor CONFIG register** RETURNS: N/A* int sysConfigSet (void)*/ .ent sysConfigSetsysConfigSet: HAZARD_VR5400 mtc0 a0,C0_CONFIG j ra .end sysConfigSet#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -