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

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

?? cachemcf5204lib.c

?? VxWorks BSP框架源代碼包含頭文件和驅動
?? C
字號:
/* cacheMCF5204Lib.c - ColdFire 5204 cache management library *//* Copyright 1984-2000 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history--------------------01c,27jun00,dh   updated to Tornado 2.001b,05may97,mem  fixed off by one error.01a,02jan96,kab  written, based on cacheMCF5202Lib.c*//*DESCRIPTIONThe MCF5204 ColdFire processor uses an instruction cache only design,and is missing many of the cache control instructions common to othermembers of the 68k family.INTERNALThe cache enable and disable processes consist of the followingactions, executed by cacheArchEnable() and cacheArchDisable().  Toenable a disabled cache, first the cache is fully invalidated.  Thenthe cache mode (write-through, copy-back, etc.) is configured.Finally, the cache is turned on.  Enabling an already enabled cacheresults in no operation.To disable an enabled instruction cache requires only that the CENB bitbe set.  Disabling an already disabled cache results in no operation.Control of cache mode is mostly left to the ACR registers which areset by the BSP.  The initial (default) setting of the CACR register iscontrolled by the variable "initialCACR" which must be provided by theBSP.Note: In the Coldfire Core: the movec instruction is unidirectional.Control registers can be read, but not written.For the CPUSH, the only variant supported is the CPUSHL (Ax)instruction.  However, unlike previous members of the 68K family, thecontents of the address register is different. The least 4 significantbits denotes the cache set, beyond the four least signifcant bits isthe cache line pointer.See the MCF5204 Coldfire User's Manual for cache details.For general information about caching, see the manual entry for cacheLib.INCLUDE FILES: cacheLib.hSEE ALSO: cacheLib, vmLib *//* LINTLIBRARY */#include "vxWorks.h"#include "errnoLib.h"#include "cacheLib.h"#include "stdlib.h"#include "private/memPartLibP.h"#include "private/vmLibP.h"#include "private/funcBindP.h"/* defines - MCF5204 specific */#define CACHE_SIZE		512#define CACHE_SETS		1#define CACHE_LENGTH		(CACHE_SIZE/CACHE_SETS)#define CACHE_LINE_SHIFT	4#define CACHE_LINE_SIZE		(1 << CACHE_LINE_SHIFT)#define CACHE_LINE_MASK		0x01f0#define cacheIsOn()	((currentCACR & C_CACR_ENABLE) != 0)#define cacheSet(VALUE, MASK) \	cacheCACRSet (currentCACR = ((currentCACR & ~(MASK)) | (VALUE)))/* forward declarations */IMPORT void	cache5204PushLine (void * address);IMPORT ULONG	initialCACR;/* locals */ULONG currentCACR = 0;		/* current cache control register value *//* forward declarations */LOCAL STATUS cacheProbe (CACHE_TYPE cache);LOCAL STATUS cacheArchEnable (CACHE_TYPE cache);LOCAL STATUS cacheArchDisable (CACHE_TYPE cache);LOCAL STATUS cacheArchInvalidate (CACHE_TYPE cache, 				  void * address, size_t bytes);LOCAL STATUS cacheArchTextUpdate (void * address, size_t bytes);/******************************************************************************** cacheMCF5204LibInit - initialize the MCF5204 cache library* * This routine initializes the cache library for Motorola MCF5204* processor.  It initializes the function pointers and configures the* cache.  The cache mode arguments have no effect.** This function is called before the bss is cleared, so any variables* assigned to must be in the data segment, or their values will be lost.** RETURNS: OK.*/STATUS cacheMCF5204LibInit    (    CACHE_MODE	iMode,	/* instruction cache mode */    CACHE_MODE	dMode	/* data cache mode */    )    {    cacheLib.enableRtn		= cacheArchEnable;    cacheLib.disableRtn		= cacheArchDisable;    cacheLib.lockRtn		= NULL;    cacheLib.unlockRtn		= NULL;    cacheLib.clearRtn		= cacheArchInvalidate;    cacheLib.dmaMallocRtn	= NULL;    cacheLib.dmaFreeRtn		= NULL;    cacheLib.dmaVirtToPhysRtn	= NULL;    cacheLib.dmaPhysToVirtRtn	= NULL;    cacheLib.textUpdateRtn	= cacheArchTextUpdate;    cacheLib.flushRtn		= NULL;    cacheLib.invalidateRtn	= cacheArchInvalidate;    cacheLib.pipeFlushRtn	= NULL;    /* Make sure the cache is off, and invalidate it */    cacheCACRSet (C_CACR_CINVA);    currentCACR = initialCACR & ~C_CACR_ENABLE;    /* Disable CPUSH invalidation */    currentCACR |= C_CACR_DPI;    cacheMmuAvailable	= FALSE;		/* no mmu */    return (OK);    }/******************************************************************************** cacheArchEnable - enable a MCF5204 cache** This routine enables the specified MCF5204 cache.** RETURNS: OK, or ERROR if the cache type is invalid or the cache control* is not supported.** NOMANUAL*/LOCAL STATUS cacheArchEnable    (    CACHE_TYPE	cache		/* cache to enable */    )    {    int lvl;    if (cacheProbe (cache) != OK)	return (ERROR);    if (!cacheIsOn ())	{	/* turn the cache on */	lvl = intLock ();	cacheSet (C_CACR_ENABLE, C_CACR_ENABLE);	cacheFuncsSet ();	intUnlock (lvl);	}    return (OK);    }/******************************************************************************** cacheArchDisable - disable the MCF5204 cache** This routine disables the specified MCF5204 cache.** RETURNS: OK, or ERROR if the cache type is invalid or the cache control* is not supported.** NOMANUAL*/LOCAL STATUS cacheArchDisable    (    CACHE_TYPE	cache		/* cache to disable */    )    {    int lvl;    if (cacheProbe (cache) != OK)	return (ERROR);    if (cacheIsOn ())	{	/* disable/push/invalidate */	lvl = intLock ();	currentCACR &= ~C_CACR_ENABLE;	cacheSet (currentCACR, currentCACR);	cacheFuncsSet ();	intUnlock (lvl);	}    return (OK);    }/******************************************************************************** cacheArchInvalidate - invalidate entries in a MCF5204 cache** This routine invalidates some or all entries.** RETURNS: OK, or ERROR if the cache type is invalid or the cache control* is not supported.** NOMANUAL*/LOCAL STATUS cacheArchInvalidate    (    CACHE_TYPE	cache, 		/* cache to invalidate */    void *	address,	/* virtual address */    size_t	bytes		/* number of bytes to invalidate */    )    {    UINT line, end;    if (bytes == 0)	return (OK);    if (cacheProbe (cache) != OK)	return (ERROR);				/* invalid cache */    line = ((UINT) address) & CACHE_LINE_MASK;    end = (((UINT) address) + bytes - 1) & CACHE_LINE_MASK;    if ((bytes == ENTIRE_CACHE)	|| (bytes >= CACHE_LENGTH)	|| ((line == end) && (bytes > CACHE_LINE_SIZE)))        {	/* Invalidate the entire cache */	cacheCACRSet (currentCACR | C_CACR_CINVA);	}    else	{	cacheSet (0, C_CACR_DPI);		/* enable CPUSH invalidation */	while (1)	    {	    cacheMCF5204PushLine (line);	    if (line == end)		break;	    line = (line + CACHE_LINE_SIZE) & CACHE_LINE_MASK;	    }	cacheSet (C_CACR_DPI, C_CACR_DPI);	}    return (OK);    }/******************************************************************************** cacheProbe - test for the presence of a type of cache** This routine returns status with regard to the prescence of a particular* type of cache.** RETURNS: OK, or ERROR if the cache type is invalid or the cache control* is not supported.** NOMANUAL*/LOCAL STATUS cacheProbe    (    CACHE_TYPE	cache 		/* cache to test */    )    {    if (cache == INSTRUCTION_CACHE)        return (OK);    errno = S_cacheLib_INVALID_CACHE;			/* set errno */    return (ERROR);    }/******************************************************************************** cacheArchTextUpdate - synchronize the MCF5204 instruction cache** RETURNS: OK, or ERROR if the cache type is invalid or the cache control* is not supported.** NOMANUAL*/LOCAL STATUS cacheArchTextUpdate     (    void * address,	/* virtual address */    size_t bytes	/* number of bytes to update */    )    {    return cacheArchInvalidate (INSTRUCTION_CACHE, address, bytes);    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
heyzo一本久久综合| 裸体一区二区三区| 91在线观看一区二区| 国产精品人成在线观看免费| 国产不卡视频一区二区三区| 国产婷婷色一区二区三区 | 色噜噜偷拍精品综合在线| 亚洲日穴在线视频| 欧美在线观看视频一区二区 | 欧美tk—视频vk| 国产精品自拍网站| 一区二区中文字幕在线| 欧美三级韩国三级日本一级| 免费在线观看日韩欧美| 国产偷国产偷精品高清尤物 | 成人免费视频播放| 亚洲精品免费在线观看| 欧美一区二区三区不卡| 国产福利一区二区三区在线视频| 国产精品久久影院| 欧美日韩一级片在线观看| 蜜臂av日日欢夜夜爽一区| 国产精品色噜噜| 在线播放91灌醉迷j高跟美女| 极品销魂美女一区二区三区| 成人欧美一区二区三区| 91精品国产91热久久久做人人| 国产一区二区主播在线| 亚洲精品视频在线观看免费 | 国产伦精品一区二区三区视频青涩| 国产精品日韩精品欧美在线 | 欧美一级专区免费大片| 成人美女在线视频| 日韩电影在线观看电影| 中文欧美字幕免费| 91精品国产色综合久久久蜜香臀| 成人a区在线观看| 美女诱惑一区二区| 亚洲精品视频在线| 亚洲国产精品激情在线观看| 欧美精品九九99久久| 成年人午夜久久久| 韩国视频一区二区| 日韩不卡免费视频| 一区二区免费在线| 国产精品视频看| xnxx国产精品| 在线不卡中文字幕| 在线免费观看不卡av| 丁香桃色午夜亚洲一区二区三区| 日韩va欧美va亚洲va久久| 一区二区三区色| 国产精品国产三级国产普通话蜜臀| 日韩一区二区三区视频在线| 在线精品视频免费观看| 99re热这里只有精品视频| 国产黄色精品视频| 经典三级在线一区| 久久99久久99精品免视看婷婷 | 免播放器亚洲一区| 亚洲图片欧美综合| 亚洲日本中文字幕区| 中文字幕人成不卡一区| 亚洲国产精品成人综合色在线婷婷 | 亚洲欧美一区二区三区国产精品 | 亚洲第一二三四区| 亚洲精品乱码久久久久久黑人| 国产农村妇女精品| 久久久电影一区二区三区| 欧美va日韩va| 久久一区二区三区国产精品| 日韩精品一区二区三区三区免费| 欧美日本一区二区三区四区| 日本高清不卡在线观看| 91在线观看下载| 一本色道久久综合狠狠躁的推荐| av在线一区二区| 9色porny自拍视频一区二区| 国产成人8x视频一区二区| 成人黄色国产精品网站大全在线免费观看| 精品一区二区精品| 国产麻豆精品在线| 成人激情小说网站| 91影院在线免费观看| 91丝袜高跟美女视频| 色婷婷av久久久久久久| 色婷婷av一区二区三区软件| 欧美三级日本三级少妇99| 欧美美女一区二区| 日韩三级中文字幕| 久久久91精品国产一区二区精品| 中文一区二区完整视频在线观看| 国产精品久久久久久久久免费樱桃 | 日本女人一区二区三区| 精品一区二区三区香蕉蜜桃| 国产精品一区一区三区| 色综合欧美在线视频区| 欧美日韩国产另类一区| 精品日韩成人av| 欧美激情综合五月色丁香小说| 中文成人av在线| 亚洲午夜精品久久久久久久久| 欧美a一区二区| 国产成人av影院| 在线观看视频91| www一区二区| 亚洲伦理在线精品| 美女视频一区二区| 成人黄色小视频| 欧美一区二区三区视频免费| 中文字幕巨乱亚洲| 丝瓜av网站精品一区二区| 国产精品自拍一区| 欧美日精品一区视频| 国产亚洲精品超碰| 亚洲成av人片在线| eeuss影院一区二区三区| 4438x成人网最大色成网站| 国产欧美日韩视频在线观看| 一区二区成人在线| 高清视频一区二区| 欧美一区二区黄| 亚洲色图欧美激情| 韩国在线一区二区| 欧美精品三级日韩久久| 中文字幕欧美日本乱码一线二线| 婷婷久久综合九色综合绿巨人| 国产精品综合在线视频| 宅男在线国产精品| 亚洲日韩欧美一区二区在线| 国产一区二区三区四| 欧美日韩大陆在线| 国产精品国产三级国产有无不卡 | 精品1区2区3区| 国产精品久久久久9999吃药| 日韩精品一级二级| 91行情网站电视在线观看高清版| 久久婷婷色综合| 日韩高清在线一区| 欧美日韩久久久久久| 国产精品激情偷乱一区二区∴| 久久精品国产精品亚洲综合| 欧美在线观看一二区| 中文字幕日韩精品一区| 国产成a人亚洲| 久久久久久麻豆| 九九**精品视频免费播放| 欧美一级片在线观看| 亚洲五月六月丁香激情| 色88888久久久久久影院野外 | 在线视频国产一区| 亚洲精品欧美二区三区中文字幕| 不卡的av电影| 国产欧美精品一区二区色综合| 久久精品国产精品青草| 91精品国产福利| 视频一区二区不卡| 69久久99精品久久久久婷婷| 亚洲综合色在线| 91久久国产最好的精华液| 亚洲欧洲av在线| 成人av第一页| 日韩一区欧美小说| 色拍拍在线精品视频8848| 亚洲免费观看视频| 色中色一区二区| 一区二区三区成人| 欧美日韩免费高清一区色橹橹| 一级女性全黄久久生活片免费| 一本大道久久a久久综合| 亚洲六月丁香色婷婷综合久久| 一本大道久久精品懂色aⅴ| 亚洲一区二区三区精品在线| 欧美午夜精品久久久久久孕妇| 亚洲国产精品精华液网站| 在线不卡中文字幕播放| 美日韩一区二区| 国产亚洲欧洲997久久综合| 成人午夜激情视频| 亚洲视频1区2区| 欧美另类z0zxhd电影| 青青草伊人久久| 久久久久久**毛片大全| youjizz久久| 亚洲制服丝袜在线| 91精品欧美久久久久久动漫 | 成人免费毛片高清视频| 国产精品久久一卡二卡| 在线免费观看成人短视频| 日韩影视精彩在线| 国产亚洲精品超碰| 色偷偷88欧美精品久久久| 日本三级亚洲精品| 久久久久99精品一区| 色婷婷亚洲婷婷| 蜜桃一区二区三区在线| 中文字幕制服丝袜一区二区三区 | 欧美一区二区久久久| 国产九色sp调教91| 一区二区久久久|