⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sysdcr.s

📁 WINDRIVER SBC405 BSP
💻 S
📖 第 1 页 / 共 5 页
字号:
/* sysDcr.s - DCR routines *//*******************************************************************************   This source and object code has been made available to you by IBM on an   AS-IS basis.   IT IS PROVIDED WITHOUT WARRANTY OF ANY KIND, INCLUDING THE WARRANTIES OF   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR OF   NONINFRINGEMENT OF THIRD PARTY RIGHTS.  IN NO EVENT SHALL IBM OR ITS   LICENSORS BE LIABLE FOR INCIDENTAL, CONSEQUENTIAL OR PUNITIVE DAMAGES.   IBM'S OR ITS LICENSOR'S DAMAGES FOR ANY CAUSE OF ACTION, WHETHER IN   CONTRACT OR IN TORT, AT LAW OR AT EQUITY, SHALL BE LIMITED TO A MAXIMUM   OF $1,000 PER LICENSE.  Anyone receiving this source or object code is   licensed under IBM copyrights to use it in any way he or she deems fit,   including copying it, modifying it, compiling it, and redistributing it   either with or without modifications.  No license under IBM patents or   patent applications is to be implied by the copyright license.   Any user of this software should understand that neither IBM nor its   licensors will be responsible for any consequences resulting from the   use of this software.   Any person who transfers this source code or any derivative work must   include the IBM copyright notice, this paragraph, and the preceding two   paragraphs in the transferred software.   Any person who transfers this object code or any derivative work must   include the IBM copyright notice in the transferred software.   COPYRIGHT   I B M   CORPORATION 1999   LICENSED MATERIAL  -  PROGRAM PROPERTY OF  I B MNOMANUAL*******************************************************************************//* Copyright 1984-2000 Wind River Systems, Inc. *//* .globl       _copyright_wind_river *//*modification history--------------------01d,30nov01,kab  Update for T2.2: asm macros, doc gen macros01c,01mar01,ajm  now only two functions to read/write any DCR in any chip                 sysDcrInLong() and sysDcrOutLong()01b,28mar00,mcg  change register init to reflect changes to romInit                 added cache initialization01a,31aug99,mcg  created from evb403 version 01r.*//*DESCRIPTIONThis module contains system-dependent routines written in assemblylanguage.This module must be the first specified in the \f3ld\f1 command used tobuild the system.  The sysInit() routine is the system start-up code.*/#define _ASMLANGUAGE#include "vxWorks.h"#include "sysLib.h"#include "config.h"#include "asm.h"#include "regs.h"#include "sysDcr.h"	FUNC_EXPORT(sysDcrInLong)	FUNC_EXPORT(sysDcrOutLong)		_WRS_TEXT_SEG_START/******************************************************************************* sysDcrInLong - read value of a dcr*** SYNOPSIS* \ss* UINT32 sysDcrInLong(UINT32 dcr)* \se*# RETURNS: 32-bit value of dcr*/FUNC_BEGIN(sysDcrInLong)/*  * mfdcr requires hard constant for dcr... mfdcr rt, dcrn  * need to compare input addresses here and basically construct  * a jump table.  */        rlwinm  r3,r3,3,19,29        addi    r3,r3,0x0010        mflr    r6        bl      ..ppcMfdcr_get_lr..ppcMfdcr_get_lr:        mflr    r5        add     r5,r5,r3        mtlr    r5        blr        mfdcr   r3,0x000        b       ppcMfdcr_any_end        mfdcr   r3,0x001        b       ppcMfdcr_any_end        mfdcr   r3,0x002        b       ppcMfdcr_any_end        mfdcr   r3,0x003        b       ppcMfdcr_any_end        mfdcr   r3,0x004        b       ppcMfdcr_any_end        mfdcr   r3,0x005        b       ppcMfdcr_any_end        mfdcr   r3,0x006        b       ppcMfdcr_any_end        mfdcr   r3,0x007        b       ppcMfdcr_any_end        mfdcr   r3,0x008        b       ppcMfdcr_any_end        mfdcr   r3,0x009        b       ppcMfdcr_any_end        mfdcr   r3,0x00a        b       ppcMfdcr_any_end        mfdcr   r3,0x00b        b       ppcMfdcr_any_end        mfdcr   r3,0x00c        b       ppcMfdcr_any_end        mfdcr   r3,0x00d        b       ppcMfdcr_any_end        mfdcr   r3,0x00e        b       ppcMfdcr_any_end        mfdcr   r3,0x00f        b       ppcMfdcr_any_end        mfdcr   r3,0x010        b       ppcMfdcr_any_end        mfdcr   r3,0x011        b       ppcMfdcr_any_end        mfdcr   r3,0x012        b       ppcMfdcr_any_end        mfdcr   r3,0x013        b       ppcMfdcr_any_end        mfdcr   r3,0x014        b       ppcMfdcr_any_end        mfdcr   r3,0x015        b       ppcMfdcr_any_end        mfdcr   r3,0x016        b       ppcMfdcr_any_end        mfdcr   r3,0x017        b       ppcMfdcr_any_end        mfdcr   r3,0x018        b       ppcMfdcr_any_end        mfdcr   r3,0x019        b       ppcMfdcr_any_end        mfdcr   r3,0x01a        b       ppcMfdcr_any_end        mfdcr   r3,0x01b        b       ppcMfdcr_any_end        mfdcr   r3,0x01c        b       ppcMfdcr_any_end        mfdcr   r3,0x01d        b       ppcMfdcr_any_end        mfdcr   r3,0x01e        b       ppcMfdcr_any_end        mfdcr   r3,0x01f        b       ppcMfdcr_any_end        mfdcr   r3,0x020        b       ppcMfdcr_any_end        mfdcr   r3,0x021        b       ppcMfdcr_any_end        mfdcr   r3,0x022        b       ppcMfdcr_any_end        mfdcr   r3,0x023        b       ppcMfdcr_any_end        mfdcr   r3,0x024        b       ppcMfdcr_any_end        mfdcr   r3,0x025        b       ppcMfdcr_any_end        mfdcr   r3,0x026        b       ppcMfdcr_any_end        mfdcr   r3,0x027        b       ppcMfdcr_any_end        mfdcr   r3,0x028        b       ppcMfdcr_any_end        mfdcr   r3,0x029        b       ppcMfdcr_any_end        mfdcr   r3,0x02a        b       ppcMfdcr_any_end        mfdcr   r3,0x02b        b       ppcMfdcr_any_end        mfdcr   r3,0x02c        b       ppcMfdcr_any_end        mfdcr   r3,0x02d        b       ppcMfdcr_any_end        mfdcr   r3,0x02e        b       ppcMfdcr_any_end        mfdcr   r3,0x02f        b       ppcMfdcr_any_end        mfdcr   r3,0x030        b       ppcMfdcr_any_end        mfdcr   r3,0x031        b       ppcMfdcr_any_end        mfdcr   r3,0x032        b       ppcMfdcr_any_end        mfdcr   r3,0x033        b       ppcMfdcr_any_end        mfdcr   r3,0x034        b       ppcMfdcr_any_end        mfdcr   r3,0x035        b       ppcMfdcr_any_end        mfdcr   r3,0x036        b       ppcMfdcr_any_end        mfdcr   r3,0x037        b       ppcMfdcr_any_end        mfdcr   r3,0x038        b       ppcMfdcr_any_end        mfdcr   r3,0x039        b       ppcMfdcr_any_end        mfdcr   r3,0x03a        b       ppcMfdcr_any_end        mfdcr   r3,0x03b        b       ppcMfdcr_any_end        mfdcr   r3,0x03c        b       ppcMfdcr_any_end        mfdcr   r3,0x03d        b       ppcMfdcr_any_end        mfdcr   r3,0x03e        b       ppcMfdcr_any_end        mfdcr   r3,0x03f        b       ppcMfdcr_any_end        mfdcr   r3,0x040        b       ppcMfdcr_any_end        mfdcr   r3,0x041        b       ppcMfdcr_any_end        mfdcr   r3,0x042        b       ppcMfdcr_any_end        mfdcr   r3,0x043        b       ppcMfdcr_any_end        mfdcr   r3,0x044        b       ppcMfdcr_any_end        mfdcr   r3,0x045        b       ppcMfdcr_any_end        mfdcr   r3,0x046        b       ppcMfdcr_any_end        mfdcr   r3,0x047        b       ppcMfdcr_any_end        mfdcr   r3,0x048        b       ppcMfdcr_any_end        mfdcr   r3,0x049        b       ppcMfdcr_any_end        mfdcr   r3,0x04a        b       ppcMfdcr_any_end        mfdcr   r3,0x04b        b       ppcMfdcr_any_end        mfdcr   r3,0x04c        b       ppcMfdcr_any_end        mfdcr   r3,0x04d        b       ppcMfdcr_any_end        mfdcr   r3,0x04e        b       ppcMfdcr_any_end        mfdcr   r3,0x04f        b       ppcMfdcr_any_end        mfdcr   r3,0x050        b       ppcMfdcr_any_end        mfdcr   r3,0x051        b       ppcMfdcr_any_end        mfdcr   r3,0x052        b       ppcMfdcr_any_end        mfdcr   r3,0x053        b       ppcMfdcr_any_end        mfdcr   r3,0x054        b       ppcMfdcr_any_end        mfdcr   r3,0x055        b       ppcMfdcr_any_end        mfdcr   r3,0x056        b       ppcMfdcr_any_end        mfdcr   r3,0x057        b       ppcMfdcr_any_end        mfdcr   r3,0x058        b       ppcMfdcr_any_end        mfdcr   r3,0x059        b       ppcMfdcr_any_end        mfdcr   r3,0x05a        b       ppcMfdcr_any_end        mfdcr   r3,0x05b        b       ppcMfdcr_any_end        mfdcr   r3,0x05c        b       ppcMfdcr_any_end        mfdcr   r3,0x05d        b       ppcMfdcr_any_end        mfdcr   r3,0x05e        b       ppcMfdcr_any_end        mfdcr   r3,0x05f        b       ppcMfdcr_any_end        mfdcr   r3,0x060        b       ppcMfdcr_any_end        mfdcr   r3,0x061        b       ppcMfdcr_any_end        mfdcr   r3,0x062        b       ppcMfdcr_any_end        mfdcr   r3,0x063        b       ppcMfdcr_any_end        mfdcr   r3,0x064        b       ppcMfdcr_any_end        mfdcr   r3,0x065        b       ppcMfdcr_any_end        mfdcr   r3,0x066        b       ppcMfdcr_any_end        mfdcr   r3,0x067        b       ppcMfdcr_any_end        mfdcr   r3,0x068        b       ppcMfdcr_any_end        mfdcr   r3,0x069        b       ppcMfdcr_any_end        mfdcr   r3,0x06a        b       ppcMfdcr_any_end        mfdcr   r3,0x06b        b       ppcMfdcr_any_end        mfdcr   r3,0x06c        b       ppcMfdcr_any_end        mfdcr   r3,0x06d        b       ppcMfdcr_any_end        mfdcr   r3,0x06e        b       ppcMfdcr_any_end        mfdcr   r3,0x06f        b       ppcMfdcr_any_end        mfdcr   r3,0x070        b       ppcMfdcr_any_end        mfdcr   r3,0x071        b       ppcMfdcr_any_end        mfdcr   r3,0x072        b       ppcMfdcr_any_end        mfdcr   r3,0x073        b       ppcMfdcr_any_end        mfdcr   r3,0x074        b       ppcMfdcr_any_end        mfdcr   r3,0x075        b       ppcMfdcr_any_end        mfdcr   r3,0x076        b       ppcMfdcr_any_end        mfdcr   r3,0x077        b       ppcMfdcr_any_end        mfdcr   r3,0x078        b       ppcMfdcr_any_end        mfdcr   r3,0x079        b       ppcMfdcr_any_end        mfdcr   r3,0x07a        b       ppcMfdcr_any_end        mfdcr   r3,0x07b        b       ppcMfdcr_any_end        mfdcr   r3,0x07c        b       ppcMfdcr_any_end        mfdcr   r3,0x07d        b       ppcMfdcr_any_end        mfdcr   r3,0x07e        b       ppcMfdcr_any_end        mfdcr   r3,0x07f        b       ppcMfdcr_any_end        mfdcr   r3,0x080        b       ppcMfdcr_any_end        mfdcr   r3,0x081        b       ppcMfdcr_any_end        mfdcr   r3,0x082        b       ppcMfdcr_any_end        mfdcr   r3,0x083        b       ppcMfdcr_any_end        mfdcr   r3,0x084        b       ppcMfdcr_any_end        mfdcr   r3,0x085        b       ppcMfdcr_any_end        mfdcr   r3,0x086        b       ppcMfdcr_any_end        mfdcr   r3,0x087        b       ppcMfdcr_any_end        mfdcr   r3,0x088        b       ppcMfdcr_any_end        mfdcr   r3,0x089        b       ppcMfdcr_any_end        mfdcr   r3,0x08a        b       ppcMfdcr_any_end        mfdcr   r3,0x08b        b       ppcMfdcr_any_end        mfdcr   r3,0x08c        b       ppcMfdcr_any_end        mfdcr   r3,0x08d        b       ppcMfdcr_any_end        mfdcr   r3,0x08e        b       ppcMfdcr_any_end        mfdcr   r3,0x08f        b       ppcMfdcr_any_end        mfdcr   r3,0x090        b       ppcMfdcr_any_end        mfdcr   r3,0x091        b       ppcMfdcr_any_end        mfdcr   r3,0x092        b       ppcMfdcr_any_end        mfdcr   r3,0x093        b       ppcMfdcr_any_end        mfdcr   r3,0x094        b       ppcMfdcr_any_end        mfdcr   r3,0x095        b       ppcMfdcr_any_end        mfdcr   r3,0x096        b       ppcMfdcr_any_end        mfdcr   r3,0x097        b       ppcMfdcr_any_end        mfdcr   r3,0x098        b       ppcMfdcr_any_end        mfdcr   r3,0x099        b       ppcMfdcr_any_end        mfdcr   r3,0x09a        b       ppcMfdcr_any_end        mfdcr   r3,0x09b        b       ppcMfdcr_any_end        mfdcr   r3,0x09c        b       ppcMfdcr_any_end        mfdcr   r3,0x09d        b       ppcMfdcr_any_end        mfdcr   r3,0x09e        b       ppcMfdcr_any_end        mfdcr   r3,0x09f        b       ppcMfdcr_any_end        mfdcr   r3,0x0a0        b       ppcMfdcr_any_end        mfdcr   r3,0x0a1        b       ppcMfdcr_any_end        mfdcr   r3,0x0a2        b       ppcMfdcr_any_end        mfdcr   r3,0x0a3        b       ppcMfdcr_any_end        mfdcr   r3,0x0a4        b       ppcMfdcr_any_end        mfdcr   r3,0x0a5        b       ppcMfdcr_any_end        mfdcr   r3,0x0a6        b       ppcMfdcr_any_end        mfdcr   r3,0x0a7        b       ppcMfdcr_any_end        mfdcr   r3,0x0a8        b       ppcMfdcr_any_end        mfdcr   r3,0x0a9        b       ppcMfdcr_any_end        mfdcr   r3,0x0aa        b       ppcMfdcr_any_end        mfdcr   r3,0x0ab        b       ppcMfdcr_any_end        mfdcr   r3,0x0ac        b       ppcMfdcr_any_end        mfdcr   r3,0x0ad        b       ppcMfdcr_any_end        mfdcr   r3,0x0ae        b       ppcMfdcr_any_end        mfdcr   r3,0x0af        b       ppcMfdcr_any_end        mfdcr   r3,0x0b0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -