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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? cache440alib.s

?? vxworks的源代碼
?? S
字號:
/* cache440ALib.s - assembly language cache handling routines *//* Copyright 2001-2003 Wind River Systems, Inc. */	.data	.globl  copyright_wind_river	.long   copyright_wind_river/*modification history--------------------01b,23jan03,jtp  SPR 83907 disable CE as well as EE in cache440Disable01a,17apr02,jtp  created based on cache405ALib.s*//*DESCRIPTIONThis library contains routines to manipulate the 440 PowerPC family caches.The 440 supports two 32KB caches, an instruction cache and a data cache.The instruction cache is physically indexed, virtually tagged and henceis at potential risk of cache synonyms. The data cache is physicallyindexed and physically tagged, so its management is relatively simple.The cacheability of an individual page of memory is determined solely bythe TLB entry associated with the virtual address used to access it.There are globally enable or disable bits for the instruction cachedifferently from the data cache.  Therefore, this library depends on MMUdata structures to enable the desired cacheability state of individualregions of memory, and directly modifies the TLB Entry registers on theprocessor to implement cache enable/disable. It can only perform thisfunction after the MMU library has been initialized. As a result,application programmers must configure the MMU in order to use the cachelibrary.  Furthermore, the virtual memory library should be to changethe cacheability of individual regions of their program space.SEE ALSO: cacheLib*/#define _ASMLANGUAGE/* includes */#include "vxWorks.h"#include "asm.h"#include "arch/ppc/archPpc.h"#include "arch/ppc/mmu440Lib.h"/* defines */#define TLB_W_BIT	20#define TLB_I_BIT	21#define TLB_V_BIT	22#define _CACHE_SIZE	32768/* externals */	DATA_IMPORT(cache440Enabled)	DATA_IMPORT(cache440ToEnable)	DATA_IMPORT(cachePpcReadOrigin)	DATA_IMPORT(mmuPpcTlbMin)	DATA_IMPORT(mmu440StaticTlbArray)/* globals */	FUNC_EXPORT(cache440ICReset)	FUNC_EXPORT(cache440DCReset)	FUNC_EXPORT(cache440Enable)	FUNC_EXPORT(cache440Disable)	_WRS_TEXT_SEG_START	/********************************************************************************* cache440ICReset - reset the instruction cache** After reset, it is necessary to invalidate all instructions in the cache* before regions can be designed as cacheable via MMU page table entries.  This* routine should be called once at boot time.* RETURNS: N/A* void cache440ICReset ()*/FUNC_BEGIN(cache440ICReset)	iccci   r0, r0	blrFUNC_END(cache440ICReset)/********************************************************************************* cache440DCReset - reset the data cache** After reset, it is necessary to invalidate all data in the cache before* regions can be designed as cacheable via MMU page table entries.  This* routine should be called once at boot time.* RETURNS: N/A* void cache440DCReset ()*/FUNC_BEGIN(cache440DCReset)	dccci	r0, r0	blrFUNC_END(cache440DCReset)/************************************************************************* cache440Enable - enable caching for all static & dynamic mapping** First, go through the list of static TLB entries provided to* mmuLibInit() and activate caching in any of them for which caching* was desired.  Second, instruct the miss handler that caching is* turned on, and invalidate all dynamic TLB entries in the CPU.* When dynamic MMU entries are reloaded, they will be cache-enabled.** Note that the PPC440 does not allow different global cache enable* control of the Data and Instruction caches. It is centered around a* memory model of selecting cache attributes by program address only.** The cache440Enable function assumes that mmu440StaticTlbEntry array* accurately describes the present configuration of the TLB entries,* with the exception that the cache state of each entry is presently* W=0 I=1 (Caching Inhibited). The cache states from the array* are used to enable the desired W, I settings.** STATUS cache440Enable*     (*     CACHE_TYPE cache			/@ ignored @/*     )*/FUNC_BEGIN(cache440Enable)	/*	 * if cache is already enabled, don't enable it again	 */	lis	r3, HI(cache440Enabled)	ori	r3, r3, LO(cache440Enabled)	lwz	r3, 0(r3)	li	r4, TRUE	cmpw	r3, r4	beq	enableOK	/*	 * if we haven't called mmu440LibInit yet, simply remember the	 * cache needs to be enabled later after we call it.	 */	lis	r3, HI(mmuPpcTlbMin)	ori	r3, r3, LO(mmuPpcTlbMin)	lwz	r3, 0(r3)	cmpwi	r3, 0	bne	enableStart	lis	r5, HI(cache440ToEnable)	ori	r5, r5, LO(cache440ToEnable)	lis	r4, 0	ori	r4, r4, TRUE	stw	r4, 0(r5)	b	enableOKenableStart:	/*	 * r3 = mmuPpcTlbMin	 * r4 = TLB entry index	 * r5 = mmuStaticTlbArray entry address	 * r8 = TLB entry word 2 value	 * r7 = desiredWord2 from mmu440StaticTlbArray	 */	li	r4, 0	lis	r5, HI(mmu440StaticTlbArray)	ori	r5, r5, LO(mmu440StaticTlbArray)	lwz	r5, 0(r5)enableLoop:	cmpw	r4, r3			/* TLB entry index >= mmuPpcTlbMin? */	beq	enableLoopDone		/* if so, we're done, skip ahead */	/*	 * word2 = readTlbEntryWord2 & ~(W|I)	 * word2 |= (attr & (W|I))	 */	tlbre	r8, r4, 2		/* load current TLB entry word 2 */	rlwinm	r8, r8, 0, TLB_I_BIT+1, TLB_W_BIT-1 /* reset the W and I bits */	lwz	r7, 12(r5)		/* load desired attribute info */	rlwinm	r7, r7, 0, TLB_W_BIT, TLB_I_BIT /* reset all but W and I bits */	or	r8, r8, r7		/* combine word 2 with desired W,I */	tlbwe	r8, r4, 2		/* save to hw TLB entry word 2 */	/*	 * loop bottom	 */	addi	r4, r4, 1		/* increment TLB entry index */	addi	r5, r5, 16		/* advance to next static entry */	b	enableLoopenableLoopDone:	isync				/* flush new static TLB entries to hw */	/*	 * inform the miss routine that cache is enabled	 */	lis	r3, HI(cache440Enabled)	ori	r3, r3, LO(cache440Enabled)	li	r5, TRUE	stw	r5, 0(r3)	/*	 * invalidate all dynamic (miss-allocated) TLB entries	 */	li	r3, N_TLB_ENTRIESenableInvLoop:	cmpw	r4, r3			/* TLB entry index >= N_TLB_ENTRIES */	beq	enableInvDone		/* if so, we're done, skip ahead */	/*	 * word0 = readTlbEntryWord0 & ~(V)	 */	tlbre	r5, r4, 0		/* load current TLB entry word 0 */	rlwinm	r5, r5, 0, TLB_V_BIT+1, TLB_V_BIT-1 /* reset the V bit */	tlbwe	r5, r4, 0		/* save to register TLB entry word 0 */	/*	 * loop bottom	 */	addi	r4, r4, 1		/* increment TLB entry index */	b	enableInvLoopenableInvDone:	isync				/* flush new dynamic TLB entries to hw */enableOK:	li	r3, OK	blrFUNC_END(cache440Enable)/************************************************************************* cache440Disable - disable caching for all static & dynamic mapping** First, go through the list of static TLB entries provided to* mmuLibInit() and deactivate caching in any of them for which caching* was enabled.  Second, instruct the miss handler that caching is* turned off, and invalidate all dynamic TLB entries in the CPU.* When dynamic MMU entries are reloaded, they will be cache-disabled.** Note that the PPC440 does not allow different global cache enable* control of the Data and Instruction caches. It is centered around a* memory model of selecting cache attributes by program address only.* STATUS cache440Disable*     (*     CACHE_TYPE cache			/@ ignored @/*     )*/FUNC_BEGIN(cache440Disable)	/*	 * if cache is already disabled, don't disable it again	 */	lis	r3, HI(cache440Enabled)	ori	r3, r3, LO(cache440Enabled)	lwz	r3, 0(r3)	li	r4, FALSE	cmpw	r3, r4	beq	disableOK	/*	 * if data MMU 'enabled', the cache may only be disabled via MMU	 */	mfmsr	r4	andi.	r4, r4, _PPC_MSR_DS	beq	disableStartdisableError:	li	r3, ERROR	/* it's set, so do nothing, return error */	blrdisableStart:	mfmsr	r6		/* save msr for restoration later */	INT_MASK(r6,r3)	mtmsr	r3		/* lock external interrupts */	isync			/* synchronize instruction context */	/*	 * inform the miss routine that cache is disabled	 */	lis	r3, HI(cache440Enabled)	ori	r3, r3, LO(cache440Enabled)	li	r5, FALSE	stw	r5, 0(r3)	/*	 * retrieve the count of static TLB entries	 */	lis	r3, HI(mmuPpcTlbMin)	ori	r3, r3, LO(mmuPpcTlbMin)	lwz	r3, 0(r3)	/*	 * Flush entire data cache. Use the memory region from	 * cachePpcReadOrigin to cachePpcReadOrigin + cache_size as	 * the source of address locations.  Note that the PPC	 * data cache is physically index and physically tagged,	 * so doing a load from memory of a cache's worth of data will	 * correctly flush out the cache contents.	 */	lis	r4, HI(cachePpcReadOrigin)	ori	r4, r4, LO(cachePpcReadOrigin)	lwz	r4, 0(r4)	lis	r5, HI(_CACHE_SIZE)	ori	r5, r5, LO(_CACHE_SIZE)	add	r5, r4, r5disableFlushLoop:	cmpw	r4, r5			/* addr >= origin + cache size?  */	beq	disableFlushDone	/* yes, skip forward, done w/loop */	lwz	r0, 0(r4)		/* flush cache line data */	/* loop bottom */	addi	r4, r4, _CACHE_ALIGN_SIZE	b	disableFlushLoopdisableFlushDone:	/*	 * r3 = mmuPpcTlbMin	 * r4 = TLB entry index	 * r5 = word 2 value	 */	li	r4, 0disableLoop:	cmpw	r4, r3	beq	disableLoopDone	tlbre	r5, r4, 2		/* read TLB entry word 2 */	rlwinm	r5, r5, 0, TLB_W_BIT+1, TLB_W_BIT-1	/* turn off W */	ori	r5, r5, MMU_STATE_CACHEABLE_NOT	tlbwe	r5, r4, 2		/* write TLB entry word 2 */	addi	r4, r4, 1	b	disableLoopdisableLoopDone:    	isync				/* flush new static TLB entries to hw */	/*	 * invalidate all dynamic (miss-allocated) TLB entries	 */	li	r3, N_TLB_ENTRIESdisableInvLoop:	cmpw	r4, r3			/* TLB entry index >= N_TLB_ENTRIES */	beq	disableInvDone		/* if so, we're done, skip ahead */	/*	 * word0 = readTlbEntryWord0 & ~(V)	 */	tlbre	r5, r4, 0		/* load current TLB entry word 0 */	rlwinm	r5, r5, 0, TLB_V_BIT+1, TLB_V_BIT-1 /* reset the V bit */	tlbwe	r5, r4, 0		/* save to register TLB entry word 0 */	/*	 * loop bottom	 */	addi	r4, r4, 1		/* increment TLB entry index */	b	disableInvLoopdisableInvDone:	isync				/* flush new dynamic TLB entries to hw */	dccci	0,0			/* invalidate D-cache */	iccci	0,0			/* invalidate I-cache too */	mtmsr	r6			/* restore external interrupts */disableOK:	li	r3, OK	blrFUNC_END(cache440Disable)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区在线看| 日韩欧美国产综合在线一区二区三区| 日韩国产欧美在线视频| 最新国产成人在线观看| 国产欧美一区二区精品性 | 欧美va亚洲va| 日韩精品影音先锋| 精品久久久久久最新网址| 日韩欧美精品三级| 精品福利一二区| 久久综合九色综合97婷婷女人| 日韩三级在线观看| 精品国产髙清在线看国产毛片| 欧美蜜桃一区二区三区| 欧美剧情片在线观看| 91精品婷婷国产综合久久性色 | 欧美少妇bbb| 欧美日韩精品一区视频| 91精品国产综合久久久久| 日韩你懂的在线播放| 国产三级精品三级| 亚洲女同女同女同女同女同69| 一区二区三区四区高清精品免费观看| 亚洲宅男天堂在线观看无病毒| 午夜精品在线视频一区| 国产露脸91国语对白| av在线这里只有精品| 欧美日韩三级在线| 26uuu成人网一区二区三区| 国产欧美一区在线| 午夜精品一区二区三区电影天堂 | 91亚洲精品久久久蜜桃网站 | 美女诱惑一区二区| 国产精品66部| 欧美日韩国产综合一区二区 | 天天综合色天天综合| 国产一区二区三区久久久| 一本色道久久加勒比精品| 91精品国产高清一区二区三区| 国产色产综合产在线视频| 一区二区三区**美女毛片| 激情成人综合网| 在线看一区二区| 国产午夜精品一区二区| 亚洲电影在线免费观看| 大白屁股一区二区视频| 欧美一级片在线看| 1区2区3区欧美| 亚洲免费在线电影| 日本不卡在线视频| 色老汉av一区二区三区| 精品对白一区国产伦| 亚洲福利视频一区二区| 成人av免费在线| 久久久久久久网| 日韩国产欧美视频| 欧美午夜电影一区| 国产欧美综合在线| 精品中文av资源站在线观看| 精品视频在线视频| 亚洲精品日日夜夜| 99视频有精品| 国产欧美va欧美不卡在线 | 精品国产乱码久久久久久老虎| 亚洲精品免费在线观看| 不卡一区中文字幕| 国产三级精品三级| 国产成人午夜高潮毛片| 精品国产伦理网| 久久精品噜噜噜成人av农村| 欧美精品在线观看一区二区| 亚洲最快最全在线视频| 色网站国产精品| 亚洲乱码中文字幕综合| 色婷婷综合久久久| 成人免费一区二区三区视频| 99久久精品国产一区| 国产精品久久久久影视| 成人午夜伦理影院| 亚洲欧美在线aaa| 色综合天天在线| 欧洲日韩一区二区三区| 最新国产成人在线观看| 一本到高清视频免费精品| 亚洲精品成人悠悠色影视| 在线精品视频免费播放| 午夜精品aaa| 日韩亚洲国产中文字幕欧美| 毛片av中文字幕一区二区| 日韩欧美中文字幕一区| 久久精品999| 欧美极品aⅴ影院| 99久久er热在这里只有精品66| 日韩一区在线播放| 欧美麻豆精品久久久久久| 热久久国产精品| 久久综合九色综合97婷婷| 成人激情小说乱人伦| 一区二区三区四区亚洲| 欧美精品xxxxbbbb| 久久精品国产亚洲高清剧情介绍 | 亚洲一级二级三级在线免费观看| 欧美在线看片a免费观看| 亚洲成av人片www| 精品美女一区二区| 97久久久精品综合88久久| 视频一区二区欧美| 国产亚洲一本大道中文在线| 99热这里都是精品| 日韩电影网1区2区| 国产精品黄色在线观看| 欧美精品亚洲一区二区在线播放| 九九热在线视频观看这里只有精品| 国产精品乱码一区二区三区软件| 在线影院国内精品| 国产精品一区三区| 婷婷综合在线观看| 国产精品久久三| 4438亚洲最大| 色老汉一区二区三区| 国产美女一区二区| 亚洲国产cao| 国产精品二三区| 久久亚洲二区三区| 欧美人伦禁忌dvd放荡欲情| 国产成人在线影院| 久久成人精品无人区| 亚洲综合精品久久| 国产精品久久久久桃色tv| 日韩三级视频在线观看| 在线观看视频一区二区| 不卡av免费在线观看| 精品亚洲porn| 蜜臀av性久久久久av蜜臀妖精| 亚洲在线视频免费观看| 自拍偷在线精品自拍偷无码专区| 日韩欧美色综合网站| 欧美日韩aaaaa| 欧美中文字幕不卡| 99久久精品情趣| 国产一区二区女| 国产一区二区三区在线观看精品 | 日韩视频在线永久播放| 日本韩国一区二区三区| 成人18视频在线播放| 国产福利一区二区三区在线视频| 视频精品一区二区| 五月婷婷久久丁香| 亚洲va韩国va欧美va| 亚洲香肠在线观看| 亚洲国产视频一区| 亚洲在线视频网站| 亚洲成av人影院在线观看网| 亚洲午夜在线视频| 亚洲va欧美va国产va天堂影院| 亚洲午夜精品在线| 天堂在线一区二区| 麻豆91免费观看| 国产一区欧美二区| 国产成人亚洲综合a∨猫咪| 国产麻豆精品theporn| 高清不卡在线观看| 99久久99久久精品国产片果冻| a4yy欧美一区二区三区| 91在线精品一区二区| 91精品91久久久中77777| 欧美在线三级电影| 日韩一级片在线播放| 久久久精品天堂| 亚洲视频免费在线| 日韩电影免费一区| 国产美女在线精品| 色综合中文字幕| 91精品欧美综合在线观看最新| 精品成人一区二区| 国产精品久久久久天堂| 亚洲电影你懂得| 久久国产精品区| 成人av资源站| 欧美人狂配大交3d怪物一区| 欧美精品一区二区在线观看| 国产欧美日韩亚州综合| 一区二区三区日韩| 麻豆一区二区三| av在线不卡电影| 日韩欧美亚洲一区二区| 亚洲日本中文字幕区| 日韩和欧美一区二区三区| 国产激情偷乱视频一区二区三区 | 日本不卡的三区四区五区| 国产mv日韩mv欧美| 在线播放日韩导航| 国产偷国产偷精品高清尤物| 亚洲大片在线观看| 成人丝袜高跟foot| 日韩亚洲欧美在线| 一区二区三区在线观看欧美| 国产毛片精品一区| 欧美一级精品大片| 亚洲国产美女搞黄色|