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

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

?? cachemcf5204lib.c

?? vxworks5.5.1源代碼。完整源代碼
?? 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一区二区三区免费野_久草精品视频
一区二区不卡在线播放| 国产午夜精品在线观看| 成人激情小说网站| 国产盗摄一区二区| 成人午夜视频免费看| 国产精品一区在线| 高清不卡在线观看av| 国产v综合v亚洲欧| 91丝袜呻吟高潮美腿白嫩在线观看| 粉嫩av一区二区三区在线播放 | 亚洲精品一区二区三区在线观看 | 欧美成人免费网站| 久久人人爽爽爽人久久久| 国产日韩精品久久久| 国产精品免费视频一区| ㊣最新国产の精品bt伙计久久| 亚洲视频免费看| 亚洲成在线观看| 麻豆一区二区在线| 国产不卡视频在线播放| 色综合色综合色综合色综合色综合 | 国产伦精一区二区三区| 成人av小说网| 欧美日韩久久不卡| 国产午夜精品一区二区三区视频 | 精品日韩99亚洲| 欧美激情一区二区三区全黄| 亚洲欧美日韩人成在线播放| 日本中文在线一区| 成人丝袜视频网| 欧美日韩一区在线观看| 欧美精品一区二区久久婷婷| 国产精品二区一区二区aⅴ污介绍| 亚洲va国产va欧美va观看| 国产精品自产自拍| 在线视频中文字幕一区二区| 欧美成人伊人久久综合网| 亚洲欧美区自拍先锋| 久久97超碰国产精品超碰| av午夜精品一区二区三区| 91精品国产色综合久久ai换脸 | 亚洲激情男女视频| 激情综合网av| 欧美人成免费网站| 国产精品热久久久久夜色精品三区| 亚洲18色成人| 91在线免费看| 国产欧美一区二区精品久导航| 亚洲第一成年网| 99精品视频在线观看| 久久久久久97三级| 免费观看在线综合| 欧美三级中文字幕在线观看| 国产精品久久久久精k8| 激情综合五月婷婷| 制服丝袜成人动漫| 亚洲欧美日韩系列| 99re视频精品| 国产精品家庭影院| 成人一区二区视频| 久久久国产精品麻豆| 视频在线观看91| 欧美日精品一区视频| 亚洲欧美日韩小说| 色综合激情久久| 亚洲精品网站在线观看| 91农村精品一区二区在线| 国产欧美日韩在线看| 国产成人无遮挡在线视频| 久久亚洲免费视频| 韩日av一区二区| 欧美变态tickling挠脚心| 日本不卡的三区四区五区| 欧美一区二区在线看| 日本不卡不码高清免费观看| 日韩一区二区三区免费看| 蜜桃精品视频在线| 2022国产精品视频| 成人黄色一级视频| 亚洲日本va在线观看| 一本到不卡免费一区二区| 亚洲制服欧美中文字幕中文字幕| 欧美综合久久久| 日韩成人午夜精品| 久久综合五月天婷婷伊人| 国产一区二区三区免费观看| 久久综合久久综合九色| 成人午夜精品一区二区三区| 亚洲婷婷在线视频| 这里只有精品电影| 久久精品国产精品亚洲红杏| 国产日韩欧美高清| 91久久一区二区| 麻豆精品久久久| 国产欧美日韩精品a在线观看| av激情成人网| 日韩专区在线视频| 久久先锋影音av| 94-欧美-setu| 日韩黄色片在线观看| 日本一区二区三区国色天香 | 国产午夜一区二区三区| 波多野结衣亚洲一区| 亚洲一区视频在线| 日韩免费观看高清完整版| 成人激情免费电影网址| 亚洲精品国产a久久久久久| 日韩视频一区在线观看| 国产99精品国产| 亚洲国产成人高清精品| 精品国产青草久久久久福利| 91亚洲男人天堂| 国产在线视频精品一区| 亚洲宅男天堂在线观看无病毒| 精品国产髙清在线看国产毛片| 91在线视频网址| 国产精品99久久久久久似苏梦涵| 亚洲资源中文字幕| 国产精品拍天天在线| 欧美一级片在线观看| 一本久久综合亚洲鲁鲁五月天 | www国产精品av| 欧美视频精品在线| 成人国产精品免费观看视频| 欧美96一区二区免费视频| 亚洲视频精选在线| 国产亚洲综合在线| 日韩欧美黄色影院| 欧美日韩免费一区二区三区 | 精品噜噜噜噜久久久久久久久试看| 91网站在线播放| 国产精品亚洲专一区二区三区| 日本怡春院一区二区| 亚洲一区二区三区自拍| 亚洲品质自拍视频| ㊣最新国产の精品bt伙计久久| 国产免费久久精品| 久久久一区二区三区捆绑**| 91精品国产综合久久久久久漫画| 色综合天天综合狠狠| 国产成人精品一区二| 午夜欧美视频在线观看| 亚洲精品免费播放| 最近日韩中文字幕| 亚洲精品美国一| 亚洲免费伊人电影| 亚洲精品成人悠悠色影视| 日韩一区在线播放| 亚洲人快播电影网| 自拍偷拍亚洲综合| 一区二区三区四区蜜桃| 一区二区三区精品在线| 亚洲男女一区二区三区| 一区二区国产视频| 亚洲h精品动漫在线观看| 午夜日韩在线观看| 日韩av网站在线观看| 久久电影国产免费久久电影| 精品综合免费视频观看| 日本中文字幕一区| 国产做a爰片久久毛片| 国产成人亚洲综合色影视| 国产98色在线|日韩| 日本高清不卡视频| 欧美精品黑人性xxxx| 日韩一区二区精品葵司在线 | 国产精品天干天干在线综合| 国产精品乱人伦一区二区| 中文字幕制服丝袜一区二区三区| ●精品国产综合乱码久久久久| 亚洲乱码国产乱码精品精小说| 亚洲一卡二卡三卡四卡| 蜜臀久久久99精品久久久久久| 精品一区二区三区在线播放视频 | 久久婷婷综合激情| 国产嫩草影院久久久久| 亚洲女子a中天字幕| 亚洲1区2区3区4区| 国产成人免费视频精品含羞草妖精| jlzzjlzz欧美大全| 这里只有精品视频在线观看| 久久久www成人免费无遮挡大片| 国产精品乱子久久久久| 日日摸夜夜添夜夜添精品视频| 国产福利一区二区三区视频在线 | 精品视频一区二区三区免费| 欧美一级精品在线| 亚洲色图在线视频| 麻豆免费精品视频| 99久久精品99国产精品 | 国产1区2区3区精品美女| 欧美亚洲另类激情小说| 久久先锋资源网| 亚洲国产aⅴ天堂久久| 成人永久aaa| 欧美成人国产一区二区| 亚洲在线视频一区| 成人99免费视频| 久久久无码精品亚洲日韩按摩| 一区二区在线观看免费|