亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? sysalib.s

?? VxWorks下 Mv2100的BSP源碼
?? S
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
/* sysALib.s - Motorola MVME2100 system-dependent assembly routines *//* Copyright 1984-2000 Wind River Systems, Inc. *//* Copyright 1996-2000 Motorola, Inc. All Rights Reserved */        .data	.globl	copyright_wind_river	.long	copyright_wind_river/*modification history--------------------01i,10dec01,mil  Fixed incorrect lbz instructions that use r0 as displacement.01h,08may01,pch  Add assembler abstractions (FUNC_EXPORT, FUNC_BEGIN, etc.)01g,08feb00,rhk  Fixed the sysPciConfig(In/Out) routines for Byte and Word		 access.01f,16apr99,rhk  renamed PCI_xxx defines.01e,12mar99,rhk  removed all 'eieio' instructions, removed 'sync' 		 instructions following reads.01d,18feb99,srr  updated cache invalidation and flushing.01c,09feb99,rhk  updated most routines, added sysPciConfigXxx routines and 		 removed the L2 cache routines.01b,08feb99,rhk  removed legacy HID0 setup.01a,14dec98,srr  created (from mv2603/sysALib.s ver 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 "regs.h"	#include "asm.h"	/* globals */	FUNC_EXPORT(_sysInit)		/* start of system code */	FUNC_EXPORT(sysInByte)	FUNC_EXPORT(sysOutByte)        FUNC_EXPORT(sysPciInByte)        FUNC_EXPORT(sysPciOutByte)        FUNC_EXPORT(sysPciConfigInByte)        FUNC_EXPORT(sysPciConfigOutByte)        FUNC_EXPORT(sysInWord)        FUNC_EXPORT(sysInWordRev)        FUNC_EXPORT(sysOutWord)        FUNC_EXPORT(sysPciInWord)        FUNC_EXPORT(sysPciOutWord)        FUNC_EXPORT(sysPciConfigInWord)        FUNC_EXPORT(sysPciConfigOutWord)        FUNC_EXPORT(sysInLong)        FUNC_EXPORT(sysOutLong)        FUNC_EXPORT(sysPciInLong)        FUNC_EXPORT(sysPciOutLong)        FUNC_EXPORT(sysPciConfigInLong)        FUNC_EXPORT(sysPciConfigOutLong)        FUNC_EXPORT(sysMemProbeSup)        FUNC_EXPORT(sysProbeExc)	FUNC_EXPORT(sysTimeBaseLGet)	FUNC_EXPORT(sysHid1Get)	FUNC_EXPORT(sysHid2Set)	FUNC_EXPORT(sysHid2Get)	/* externals */	.extern usrInit		.text/********************************************************************************* sysInit - start after boot** This is the system start-up entry point for VxWorks in RAM, the* first code executed after booting.  It disables interrupts, sets up* the stack, and jumps to the C routine usrInit() in usrConfig.c.** The initial stack is set to grow down from the address of sysInit().  This* stack is used only by usrInit() and is never used again.  Memory for the* stack must be accounted for when determining the system load address.** NOTE: This routine should not be called by the user.** RETURNS: N/A* sysInit (void)              /@ THIS IS NOT A CALLABLE ROUTINE @/*/_sysInit:	/* disable external interrupts */	xor	p0, p0, p0        mtmsr   p0                      /* clear the MSR register  */        /* return from decrementer exceptions */        addis   p1, r0, 0x4c00        addi    p1, p1, 0x0064          /* load rfi (0x4c000064) to p1      */        stw     p1, 0x900(r0)           /* store rfi at 0x00000900          */	/* initialize the stack pointer */		lis     sp, HIADJ(RAM_LOW_ADRS)	addi    sp, sp, LO(RAM_LOW_ADRS)		/* invalidate the MPU's data/instruction caches */	lis	r3, 0x0	ori	r3, r3, 0xC000		/* r3 has enable and bits set */	or	r4, r4, r3		/* set bits */	sync	isync	mtspr   HID0, r4		/* HID0 = r4 */	andc	r4, r4, r3		/* clear bits */        isync	mtspr	HID0, r4	isync	/* disable instruction and data translations in the MMU */	sync	mfmsr	r3			/* get the value in msr *					/* clear bits IR and DR */		rlwinm	r4, r3, 0, _PPC_MSR_BIT_DR+1, _PPC_MSR_BIT_IR - 1		mtmsr	r4			/* set the msr */	sync				/* SYNC */	/* initialize the BAT register */	li	p3,0	 		/* clear p0 */		isync	mtspr	IBAT0U,p3		/* SPR 528 (IBAT0U) */	isync	mtspr	IBAT0L,p3		/* SPR 529 (IBAT0L) */	isync	mtspr	IBAT1U,p3		/* SPR 530 (IBAT1U) */	isync	mtspr	IBAT1L,p3		/* SPR 531 (IBAT1L) */	isync	mtspr	IBAT2U,p3		/* SPR 532 (IBAT2U) */	isync	mtspr	IBAT2L,p3		/* SPR 533 (IBAT2L) */	isync	mtspr	IBAT3U,p3		/* SPR 534 (IBAT3U) */	isync	mtspr	IBAT3L,p3		/* SPR 535 (IBAT3L) */	isync	mtspr	DBAT0U,p3		/* SPR 536 (DBAT0U) */	isync	mtspr	DBAT0L,p3		/* SPR 537 (DBAT0L) */	isync	mtspr	DBAT1U,p3		/* SPR 538 (DBAT1U) */	isync	mtspr	DBAT1L,p3		/* SPR 539 (DBAT1L) */	isync	mtspr	DBAT2U,p3		/* SPR 540 (DBAT2U) */	isync	mtspr	DBAT2L,p3		/* SPR 541 (DBAT2L) */	isync	mtspr	DBAT3U,p3		/* SPR 542 (DBAT3U) */	isync	mtspr	DBAT3L,p3		/* SPR 543 (DBAT3L) */	isync	/* invalidate entries within both TLBs */	li	p1,128	xor	p0,p0,p0		/* p0 = 0    */	mtctr	p1			/* CTR = 32  */	isync				/* context sync req'd before tlbie */sysALoop:	tlbie	p0	addi	p0,p0,0x1000		/* increment bits 15-19 */	bdnz	sysALoop		/* decrement CTR, branch if CTR != 0 */	sync				/* sync instr req'd after tlbie      */	/* initialize Small Data Area (SDA) start address */#if	FALSE				/* XXX TPR NO SDA for now */	lis     r2, HIADJ(_SDA2_BASE_)	addi    r2, r2, LO(_SDA2_BASE_)	lis     r13, HIADJ(_SDA_BASE_)	addi    r13, r13, LO(_SDA_BASE_)#endif	addi	sp, sp, -FRAMEBASESZ	/* get frame stack */	li      r3, BOOT_WARM_AUTOBOOT	b	usrInit			/* never returns - starts up kernel *//******************************************************************************* sysInByte - reads a byte from an io address.** This function reads a byte from a specified io address or from local memory.* It operates in big-endian mode and does not perform any translation* operations on either the supplied address or the retrieved data.** RETURNS: byte from address.** UINT8 sysInByte (UINT8 * dataPtr)*/sysInByte:        /* Read byte from address */        lbzx    r3,r0,r3        /* Return to caller */        bclr    20,0/******************************************************************************** sysOutByte - writes a byte to an io address.** This function writes a byte to a specified io address or to local memory.* It operates in big-endian mode and does not perform any translation* operations on either the supplied address or data.** RETURNS: N/A** void sysOutByte (UINT8 * dataPtr, UINT8 data)*/sysOutByte:        /* Write a byte to address */        stbx    r4,r0,r3        /* Sync I/O operation */	sync        /* Return to caller */        bclr    20,0/******************************************************************************* sysPciInByte - reads a byte from PCI I/O or Memory space** This function reads a byte from a specified PCI I/O or Memory address* via the PCI bridge chip.  This function should be used for access* to the I/O or Memory mapped registers of a PCI device.  Since this routine* accesses only a single byte of data no address or data manipulation is* required.** RETURNS: byte from address.** UINT8 sysPciInByte (UINT8 * dataPtr)*/sysPciInByte:        /* Read byte from address */        lbzx    r3,r0,r3        /* Return to caller */        bclr    20,0/******************************************************************************* sysPciOutByte - writes a byte to PCI I/O or Memory space** This function writes a byte to a specified PCI I/O or Memory address* via the QSPAN bridge chip.  This function should be used for writing* to the I/O or Memory mapped registers of a PCI device.  Since this routine* writes only a single byte of data no address or data manipulation is* required.** RETURNS: N/A** void sysPciOutByte (UINT8 * dataPtr, UINT8 data)*/sysPciOutByte:        /* Write a byte to address */        stbx    r4,r0,r3        /* Sync I/O operation */	sync        /* Return to caller */        bclr    20,0/******************************************************************************* sysPciConfigInByte - reads a byte from a PCI configuration space address.** This function reads a byte from a specified PCI configuration space* address.  This function uses the indirect PCI configuration space access* method.  It writes the input configuration space address to the CAR and* then reads the data from the CDR.  All reads/writes larger than 8 bits * use byte swapping.** Register Usage* r3 - Configuration space address to read from / returned data* r4 - dummy parameter, used for holding the CAR address* r5 - dummy parameter, used for holding the CDR address** RETURNS: N/A** UINT8 sysPciConfigInByte (UINT8 * dataPtr, UINT dummy1, UINT dummy2)*/sysPciConfigInByte:	andi.   r4,r3,3                 /* save the 2 LSBs of the PCI addr */        addis   r5,r0,HIADJ(PCI_MSTR_PRIMARY_CDR)        ori     r5,r5,LO(PCI_MSTR_PRIMARY_CDR)	or	r5,r5,r4		/* add the LSBs value to the CDR */	andi.   r4,r4,0			/* the config. space address must */	ori     r4,r4,3			/* be 4-byte aligned */	andc	r3,r3,r4		/* mask off the 2 LSBs */        addis   r4,r0,HIADJ(PCI_MSTR_PRIMARY_CAR)        ori     r4,r4,LO(PCI_MSTR_PRIMARY_CAR)        stwbrx  r3,r0,r4                /* write config. space addr. to CAR */        sync                            /* ensure memory access is complete */	andi.	r3,r3,0			        lbz     r3,0(r5)                /* read data out of the CDR */        bclr    20,0                    /* return to caller *//******************************************************************************* sysPciConfigOutByte - writes a byte to a PCI configuration space address.** This function writes a byte to a specified PCI configuration space* address.  This function uses the indirect PCI configuration space access* method.  It writes the input configuration space address to the CAR and* then writes the data to the CDR.  All writes larger than 8 bits use byte* swapping.** Register Usage* r3 - Configuration space address to write to* r4 - data to be written* r5 - dummy parameter, used for holding the CAR address* r6 - dummy parameter, used for holding the CDR address** RETURNS: N/A** void sysPciConfigOutByte (UINT8 * dataPtr, UINT8 data, *			    UINT dummy1, UINT dummy2)*/sysPciConfigOutByte:        andi.   r5,r3,3                 /* save the 2 LSBs of the PCI addr */        addis   r6,r0,HIADJ(PCI_MSTR_PRIMARY_CDR)        ori     r6,r6,LO(PCI_MSTR_PRIMARY_CDR)        or      r6,r6,r5                /* add the LSBs value to the CDR */        andi.   r5,r5,0                 /* the config. space address must */        ori     r5,r5,3                 /* be 4-byte aligned */        andc    r3,r3,r5                /* mask off the 2 LSBs */        addis   r5,r0,HIADJ(PCI_MSTR_PRIMARY_CAR)        ori     r5,r5,LO(PCI_MSTR_PRIMARY_CAR)        stwbrx  r3,r0,r5                /* write config. space addr. to CAR */        sync                            /* ensure memory access is complete */	stb     r4,0(r6)                /* write data to CDR */        sync        bclr    20,0                    /* return to caller *//******************************************************************************* sysInWord - reads a word (16-bit big-endian) from an io address.** This function reads a word from a specified io address or local memory.* It operates in big-endian mode and does not perform any translation* operations on either the supplied address or the retrieved data.** RETURNS: 16-bit word from read from address** UINT16 sysInWord (UINT16 * dataPtr)*/sysInWord:        /* Read word from address */        lhzx    r3,r0,r3        /* Return to caller */        bclr    20,0/******************************************************************************* sysInWordRev - reads a word (16-bit byte reversed) from an io address.** This function reads a word from a specified io address, or memory* and reverses the bytes.** RETURNS: 16 bit word (byte swapped) read from address** UINT16 sysInWordRev (UINT16 * dataPtr)*/sysInWordRev:        /* Read word from address */        lhbrx    r3,r0,r3        /* Return to caller */        bclr    20,0/******************************************************************************** sysOutWord - writes a word (16-bit big-endian) to an io address.

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色综合久久精品| 欧洲人成人精品| 久久久久亚洲蜜桃| 国产精品白丝jk黑袜喷水| 久久婷婷国产综合精品青草| 国产1区2区3区精品美女| 亚洲欧洲精品一区二区三区| 色天天综合色天天久久| 日产国产高清一区二区三区| 精品久久久久久久久久久久久久久久久 | 日韩精品一区二| 成人免费毛片a| 日韩专区一卡二卡| 日本一区二区高清| 欧美写真视频网站| 日韩欧美国产不卡| 97久久精品人人做人人爽| 亚洲综合在线视频| 国产视频视频一区| 欧美乱熟臀69xxxxxx| 盗摄精品av一区二区三区| 日韩中文字幕区一区有砖一区 | 成人国产精品免费观看动漫| 亚洲综合偷拍欧美一区色| 欧美三级日韩三级国产三级| 日韩福利电影在线| 国产精品国产三级国产普通话99 | 色哟哟国产精品免费观看| 免费观看成人av| 亚洲综合激情网| 国产精品对白交换视频| 久久久久久久久久久电影| 欧美电影一区二区| 在线观看日韩毛片| jlzzjlzz亚洲日本少妇| 国产一区二区三区精品欧美日韩一区二区三区 | 粉嫩av一区二区三区在线播放| 亚洲1区2区3区视频| 亚洲精品视频在线| 国产精品日韩成人| 国产女同互慰高潮91漫画| 日韩免费观看高清完整版| 欧美性视频一区二区三区| 91在线播放网址| av福利精品导航| 国产69精品久久99不卡| 欧美成人a∨高清免费观看| 99精品久久只有精品| 国产老妇另类xxxxx| 老司机精品视频导航| 青青草国产精品97视觉盛宴 | 日韩一级黄色片| 欧美日韩高清一区二区三区| 欧美视频一区在线观看| 欧美精品成人一区二区三区四区| 欧美日韩国产电影| 69堂国产成人免费视频| 制服.丝袜.亚洲.中文.综合| 欧美一区二区网站| 久久青草欧美一区二区三区| 国产日韩欧美不卡| 中文字幕巨乱亚洲| 一区二区视频免费在线观看| 午夜视频在线观看一区二区三区| 天堂蜜桃一区二区三区| 精品一区免费av| 国产成人午夜99999| 91精彩视频在线| 91精品国产91久久久久久一区二区 | 国产一区 二区 三区一级| 成人午夜精品在线| 在线视频一区二区免费| 在线观看亚洲专区| 精品久久久久久亚洲综合网| 中文字幕一区在线观看视频| 亚洲一区二区三区三| 黄色日韩网站视频| 色综合久久天天综合网| 欧美精品一区视频| 一区二区三区在线观看网站| 久久精品久久综合| 成人免费在线播放视频| 日韩av不卡一区二区| 91网址在线看| 日韩欧美一区二区免费| 亚洲蜜桃精久久久久久久| 老司机一区二区| 欧美午夜精品一区| 国产精品免费网站在线观看| 奇米在线7777在线精品| 91小宝寻花一区二区三区| 久久久久久一二三区| 午夜欧美在线一二页| 91免费在线视频观看| 中文字幕精品—区二区四季| 另类的小说在线视频另类成人小视频在线| 国产成人精品亚洲日本在线桃色| 欧美日韩精品免费| 亚洲精品va在线观看| 99国内精品久久| 国产精品理伦片| 粉嫩av一区二区三区| 久久精品无码一区二区三区| 日本亚洲免费观看| 91色九色蝌蚪| 中文字幕免费不卡| 国产精品自拍在线| 久久久综合视频| 国产一区二区三区蝌蚪| 久久久综合网站| 国产综合久久久久久鬼色| 精品黑人一区二区三区久久| 黄色成人免费在线| 久久综合狠狠综合久久综合88 | 欧美日韩一级片在线观看| 亚洲国产日韩精品| 欧美日韩在线免费视频| 污片在线观看一区二区| 日韩一区二区电影网| 精品一区二区三区视频在线观看 | av动漫一区二区| 亚洲香肠在线观看| 亚洲一级二级三级| 宅男噜噜噜66一区二区66| 老司机午夜精品| 欧美国产日韩a欧美在线观看| 日本韩国欧美三级| 亚洲国产aⅴ成人精品无吗| 91麻豆精品国产91久久久资源速度| 久久精品国产免费看久久精品| 久久婷婷国产综合国色天香| 色综合色综合色综合| 丝袜美腿亚洲综合| 久久久久亚洲综合| 成人黄色一级视频| 一区二区三区免费在线观看| 91精品中文字幕一区二区三区| 蜜桃视频在线观看一区二区| 中文字幕va一区二区三区| 欧美午夜在线观看| 成人综合婷婷国产精品久久蜜臀 | 国产精品亚洲第一| 一区二区免费看| 久久丝袜美腿综合| 欧美三级乱人伦电影| 国产成人啪午夜精品网站男同| 一个色妞综合视频在线观看| 日韩欧美国产电影| 欧美午夜不卡在线观看免费| 国产一区91精品张津瑜| 视频一区欧美精品| 中文字幕一区二区三| 久久影视一区二区| 欧美丰满一区二区免费视频| www.日韩精品| 国产精品白丝jk白祙喷水网站 | www激情久久| 欧美一区二区啪啪| 欧美视频自拍偷拍| 色综合久久99| 色综合天天综合在线视频| 国内不卡的二区三区中文字幕| 舔着乳尖日韩一区| 亚洲成av人影院在线观看网| 亚洲欧洲综合另类| 国产精品色哟哟| 国产日韩欧美电影| 蜜臀av国产精品久久久久| 一区二区三区中文字幕电影 | 全部av―极品视觉盛宴亚洲| 亚洲激情自拍偷拍| 洋洋av久久久久久久一区| 亚洲男女一区二区三区| 国产精品久久久久久久久免费樱桃| 欧美国产日韩亚洲一区| 国产欧美视频一区二区| 国产精品免费视频观看| 国产精品日产欧美久久久久| 一区在线观看免费| 中文字幕日本不卡| 亚洲欧美日韩国产手机在线| 亚洲午夜免费电影| 日本va欧美va瓶| 丰满放荡岳乱妇91ww| 91视频精品在这里| 欧美三级中文字| 日韩精品一区在线| 国产欧美一区二区三区在线看蜜臀| 国产日韩欧美不卡在线| 一区二区三区在线观看动漫| 五月婷婷综合在线| 韩国在线一区二区| 97久久超碰国产精品电影| 欧美揉bbbbb揉bbbbb| 精品电影一区二区| 亚洲丝袜自拍清纯另类| 91麻豆成人久久精品二区三区| 日本韩国欧美三级| 欧美一区二区视频观看视频| 国产欧美一区二区三区鸳鸯浴|