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

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

?? cachearchlib.c

?? vxworks的源代碼
?? C
?? 第 1 頁 / 共 3 頁
字號:
	return (ERROR);				/* invalid cache */    if (!cacheIsOn (cache))			/* cache already on? */	cacheSet (cache, C_ENABLE, C_ENABLE);	/* turn the cache on */    if (cache == DATA_CACHE)	{	cacheDataEnabled = TRUE;	cacheFuncsSet ();	}    return (OK);    }/********************************************************************************* cacheArchDisable - disable a 68K cache** This routine disables the specified 68K instruction or data cache.** RETURNS: OK, or ERROR if the cache type is invalid or the cache control* is not supported.** NOMANUAL*/STATUS cacheArchDisable    (    CACHE_TYPE	cache		/* cache to disable */    )    {    if (cacheProbe (cache) != OK)	return (ERROR);				/* invalid cache */    if (cacheIsOn (cache))			/* already off? */	{#if ((CPU == MC68020) || (CPU == MC68030))	cacheSet (cache, 0, C_ENABLE);		/* disable the cache */	cacheSet (cache, C_CLR, C_CLR); 	/* invalidate cache entries */#elif ((CPU==MC68040) || (CPU==MC68060) || (CPU==MC68LC040))	switch (cache)	    {	    case DATA_CACHE:		cache040DataDisable ();		/* disable/push/invalidate */		break;#if (CPU==MC68060)	    case BRANCH_CACHE:		cacheSet (cache, 0, C_ENABLE);	/* disable branch cache */		cacheBranchInv ();		/* invalidate B-cache entries */		break;#endif /* (CPU==MC68060) */	    case INSTRUCTION_CACHE:		cacheSet (cache, 0, C_ENABLE);	/* disable instruction cache */		cacheCINV (INSTRUCTION_CACHE, CACHE_ALL, 0x0);	/* inv cache */			break;	    default :		/* cacheProbe returns ERROR */	    }#endif	}    if (cache == DATA_CACHE)	{	cacheDataEnabled = FALSE;		/* data cache is off */	cacheFuncsSet ();			/* update data function ptrs */	}    return (OK);    }/********************************************************************************* cacheArchLock - lock entries in a 68K cache** This routine locks all entries in the specified 68K cache.  Only the 68020, * 68030 and 68060 allow cache locking.  The <bytes> argument must be set * to ENTIRE_CACHE.** The 68060 banch cache can not be locked so if <cache> is BRANCH_CACHE * the function will return ERROR.** RETURNS: OK, or ERROR if the cache type is invalid or the cache control* is not supported.** NOMANUAL*/STATUS cacheArchLock    (    CACHE_TYPE	cache, 		/* cache to lock */    void *	address,	/* address to lock */    size_t	bytes		/* bytes to lock (ENTIRE_CACHE) */    )    {    if (cacheProbe (cache) != OK)	return (ERROR);				/* invalid cache */#if ((CPU == MC68020) || (CPU == MC68030) || (CPU == MC68060))    if (bytes != ENTIRE_CACHE)	return (ERROR);				/* invalid operation */#if (CPU == MC68060)    if (cache == BRANCH_CACHE)	return (ERROR);				/* invalid operation */#endif /* (CPU == MC68060) */    cacheSet (cache, C_FREEZE, C_FREEZE);	/* diddle the CACR bit */    return (OK);#elif (CPU == MC68040 || CPU == MC68LC040)    errno = S_cacheLib_INVALID_CACHE;		/* set errno */    return (ERROR);				/* no cache */#endif    }/********************************************************************************* cacheArchUnlock - unlock a 68K cache** This routine unlocks all entries in the specified 68K cache.  Only the * 68020, 68030 and 68060 allow cache locking.  The <bytes> argument must be * set to ENTIRE_CACHE.** The 68060 banch cache can not be unlocked so if <cache> is BRANCH_CACHE * the function will return ERROR.** RETURNS: OK, or ERROR if the cache type is invalid or the cache control* is not supported.** NOMANUAL*/STATUS cacheArchUnlock    (    CACHE_TYPE	cache, 		/* cache to unlock */    void *	address,	/* address to unlock */    size_t	bytes		/* bytes to unlock (ENTIRE_CACHE) */    )    {    if (cacheProbe (cache) != OK)	return (ERROR);				/* invalid cache */#if ((CPU == MC68020) || (CPU == MC68030) || (CPU == MC68060))    if (bytes != ENTIRE_CACHE)	return (ERROR);				/* invalid operation */#if (CPU == MC68060)    if (cache == BRANCH_CACHE)	return (ERROR);				/* invalid operation */#endif /* (CPU == MC68060) */    cacheSet (cache, 0, C_FREEZE);		/* diddle the CACR bit */    return (OK);#elif (CPU == MC68040 || CPU == MC68LC040)    errno = S_cacheLib_INVALID_CACHE;		/* set errno */    return (ERROR);				/* no cache */#endif    }/********************************************************************************* cacheArchClear - clear all entries from a 68K cache** This routine clears some or all entries from the specified 68K cache.  * * For the MC68060 processor, when the instruction cache is cleared (invalidated)* the branch cache is also invalidated by the hardware. One line in the branch* cache cannot be invalidated so each time the branch cache is entirely* invalidated.** RETURNS: OK, or ERROR if the cache type is invalid or the cache control* is not supported.** NOMANUAL*/STATUS cacheArchClear    (    CACHE_TYPE	cache, 		/* cache to clear */    void *	address,	/* address to clear */    size_t	bytes		/* bytes to clear */    )    {#if (CPU == MC68060)    int cacr;			/* cache control register value */#endif /* (CPU == MC68060) */    if (cacheProbe (cache) != OK)	return (ERROR);				/* invalid cache */#if ((CPU == MC68020) || (CPU == MC68030))    if (bytes == ENTIRE_CACHE)        {	cacheSet (cache, C_CLR, C_CLR);		/* invalidate all cache */	}    else	{	bytes += (size_t) address;	address = (void *) ((UINT) address & ~(4 - 1));	do  {	    cacheCAARSet ((void *) ((UINT) address & C_INDEX_MASK));	    cacheSet (cache, C_CLR_ENTRY, C_CLR_ENTRY);	    address = (void *) ((UINT) address + 4);	    } while ((size_t) address < bytes);	}    return (OK);#elif ((CPU == MC68040) || (CPU == MC68060) || (CPU == MC68LC040))#if (CPU == MC68060)    if (cache == BRANCH_CACHE)	{	cacheBranchInv ();			/* invalidate branch cache */	return (OK);	}    cacr = cacheCACRGet ();			/* get CACR value */    cacheCACRSet (cacr & ~C_CACR_DPI); 		/* enable CPUSH invalidation */#endif /* (CPU == MC68060) */    if (bytes == ENTIRE_CACHE)        {	cacheCPUSH (cache, CACHE_ALL, 0x0);	/* push/invalidate all cache */	}    else	{	bytes += (size_t) address;	address = (void *) ((UINT) address & ~(_CACHE_ALIGN_SIZE - 1));	do  {	    cacheCPUSH (cache, CACHE_LINE, (void *) address);	    address = (void *) ((UINT) address + _CACHE_ALIGN_SIZE);	    } while ((size_t) address < bytes);	}    cache040WriteBufferFlush ();		/* flush write buffer */#if (CPU == MC68060)	cacheCACRSet (cacr);			/* restore CACR value */#endif /* (CPU == MC68060) */    return (OK);#endif    }/********************************************************************************* cacheArchClearEntry - clear an entry from a 68K cache** This routine clears a specified entry from the specified 68K cache.** For 68040 processors, this routine clears the cache line from the cache* in which the cache entry resides.** For the MC68060 processor, when the instruction cache is cleared (invalidated)* the branch cache is also invalidated by the hardware. One line in the branch* cache cannot be invalidated so each time the branch cache is entirely* invalidated.** RETURNS: OK, or ERROR if the cache type is invalid or the cache control* is not supported.*/STATUS cacheArchClearEntry    (    CACHE_TYPE	cache,		/* cache to clear entry for */    void *	address		/* entry to clear */    )    {#if (CPU == MC68060)    int cacr;			/* cache control register value */#endif /* (CPU == MC68060) */    if (cacheProbe (cache) != OK)	return (ERROR);				/* invalid cache */#if (CPU == MC68060)    if (cache == BRANCH_CACHE)	{	cacheBranchInv ();			/* invalidate branch cache */	return (OK);	}    cacr = cacheCACRGet ();			/* get CACR value */    cacheCACRSet (cacr & ~C_CACR_DPI);		/* enable CPUSH invalidation */#endif /* (CPU == MC68060) */#if ((CPU == MC68020) || (CPU == MC68030))    cacheCAARSet (address);			/* address to invalidate */    cacheSet (cache, C_CLR_ENTRY, C_CLR_ENTRY); /* invalidate cache entries */#elif ((CPU == MC68040) || (CPU == MC68060) || (CPU == MC68LC040))    cacheCPUSH (cache, CACHE_LINE, address);	/* push/invalidate entry */    cache040WriteBufferFlush ();		/* flush write buffer */#endif#if (CPU == MC68060)	cacheCACRSet (cacr);			/* restore CACR value */#endif /* (CPU == MC68060) */    return (OK);    }/********************************************************************************* cacheArchDmaMalloc - allocate a cache-safe buffer** This routine attempts to return a pointer to a section of memory* that will not experience cache coherency problems.  This routine* is only called when MMU support is available * for cache control.** INTERNAL* We check if the cache is actually on before allocating the memory.  It* is possible that the user wants Memory Management Unit (MMU)* support but does not need caching.** RETURNS: A pointer to a cache-safe buffer, or NULL.** SEE ALSO: cacheArchDmaFree(), cacheDmaMalloc()** NOMANUAL*/void *cacheArchDmaMalloc     (    size_t      bytes			/* size of cache-safe buffer */    )    {    void *pBuf;    int	  pageSize;    if (!cacheIsOn (DATA_CACHE))	/* cache is off just allocate buffer */	{	pBuf = malloc (bytes);	return (pBuf);	}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线中文字幕不卡| 91久久线看在观草草青青| 午夜a成v人精品| 一区二区三区四区视频精品免费 | 日韩电影免费一区| 日本aⅴ精品一区二区三区| 亚洲第一av色| 日韩黄色片在线观看| 丝袜亚洲另类丝袜在线| 青青青伊人色综合久久| 国产在线日韩欧美| 国产xxx精品视频大全| 99精品1区2区| 色综合天天狠狠| 69堂国产成人免费视频| 日韩欧美国产1| 中文字幕电影一区| 亚洲午夜精品一区二区三区他趣| 亚洲成人精品一区| 激情欧美一区二区三区在线观看| www.亚洲在线| 欧美视频一区二区在线观看| 欧美一级在线免费| 国产精品乱人伦| 亚洲aaa精品| 成人精品小蝌蚪| 欧美日韩免费一区二区三区| 精品成a人在线观看| 国产精品免费网站在线观看| 一区二区三区欧美激情| 久久99国产乱子伦精品免费| 福利视频网站一区二区三区| 色94色欧美sute亚洲线路一久| 日韩三区在线观看| 国产精品久久网站| 美腿丝袜亚洲三区| 色播五月激情综合网| 欧美成人a∨高清免费观看| 亚洲欧美日韩久久| 激情综合一区二区三区| 在线看日韩精品电影| 国产日韩v精品一区二区| 亚洲国产精品欧美一二99| 国产精选一区二区三区| 欧美日韩精品久久久| 国产精品丝袜黑色高跟| 日本欧美一区二区三区乱码| 一本到三区不卡视频| 亚洲国产高清不卡| 国产真实乱偷精品视频免| 欧美日韩国产免费一区二区| 中文字幕亚洲精品在线观看| 韩国在线一区二区| 欧美老年两性高潮| 悠悠色在线精品| 99vv1com这只有精品| 国产网红主播福利一区二区| 免费在线一区观看| 欧美日韩在线免费视频| ...xxx性欧美| 夫妻av一区二区| 久久久噜噜噜久噜久久综合| 久久97超碰国产精品超碰| 欧美一区二视频| 日日欢夜夜爽一区| 在线不卡中文字幕| 亚洲影院理伦片| 欧美在线视频全部完| 亚洲免费观看高清完整版在线观看熊 | 亚洲天堂网中文字| 成人免费视频视频| 中文字幕欧美三区| 国产69精品久久777的优势| 国产视频一区在线播放| 国产精品香蕉一区二区三区| 久久综合国产精品| 国产一区二区在线免费观看| 精品国产乱码久久久久久久久 | 亚洲乱码日产精品bd| 不卡一区二区在线| 亚洲精品福利视频网站| 色婷婷综合久久久中文字幕| 伊人一区二区三区| 91精品国产综合久久小美女| 青青青爽久久午夜综合久久午夜| 日韩欧美一级二级三级| 国产一区二区主播在线| 欧美韩日一区二区三区| 99精品欧美一区二区蜜桃免费| 一区二区三区不卡视频在线观看| 欧美在线观看一区二区| 青青草成人在线观看| 亚洲精品在线观看网站| 国产精品996| 亚洲综合一区在线| 日韩欧美自拍偷拍| 成人免费视频播放| 亚洲3atv精品一区二区三区| 精品国产网站在线观看| 97精品久久久久中文字幕| 午夜久久久久久久久| 久久亚洲二区三区| 欧洲亚洲国产日韩| 国产综合成人久久大片91| 亚洲色图在线播放| 制服丝袜亚洲精品中文字幕| 国产麻豆午夜三级精品| 亚洲综合视频在线| 久久精品网站免费观看| 在线观看亚洲一区| 国产黄色精品视频| 日韩精品亚洲一区| 成人免费小视频| 久久美女高清视频| 欧美网站大全在线观看| 国产很黄免费观看久久| 日韩成人免费在线| 一区二区免费在线| 欧美国产精品专区| 日韩欧美一区电影| 97久久超碰精品国产| 韩国av一区二区三区在线观看| 亚洲图片一区二区| 亚洲青青青在线视频| 精品成人一区二区三区四区| 欧美日韩一区中文字幕| www.亚洲免费av| 国产一区二三区好的| 日韩av在线播放中文字幕| 亚洲精品国产一区二区精华液 | 国产a久久麻豆| 日韩va亚洲va欧美va久久| 亚洲精品久久久蜜桃| 国产精品久久久久久久岛一牛影视 | √…a在线天堂一区| 久久精品亚洲乱码伦伦中文| 欧美一卡2卡3卡4卡| 欧美日韩亚洲丝袜制服| www.日韩在线| 成人免费视频caoporn| 国产露脸91国语对白| 国产一区不卡在线| 国产呦萝稀缺另类资源| 麻豆精品在线观看| 三级欧美韩日大片在线看| 亚洲第一精品在线| 亚洲国产中文字幕| 亚洲国产精品久久久久婷婷884| 一区在线播放视频| 国产精品国产自产拍高清av王其| 久久久久久亚洲综合影院红桃| 91精品国产乱| 日韩欧美的一区| 精品福利在线导航| 久久亚洲影视婷婷| 欧美韩日一区二区三区四区| 国产精品视频看| 国产精品久久久一本精品| 国产精品欧美经典| 亚洲天天做日日做天天谢日日欢| 亚洲同性gay激情无套| 亚洲精品成人a在线观看| 亚洲最大成人综合| 亚洲成人av资源| 美国十次综合导航| 国产69精品久久99不卡| 91在线高清观看| 欧美午夜不卡视频| 欧美成人福利视频| 国产精品久久久久影视| 亚洲夂夂婷婷色拍ww47| 奇米777欧美一区二区| 国产精品99久| 在线看一区二区| 日韩精品一区二区三区老鸭窝| 久久久精品天堂| 亚洲精品国产精华液| 日韩av二区在线播放| 国产精品一级在线| 日本大香伊一区二区三区| 日韩欧美国产三级| 国产精品视频你懂的| 午夜精品视频在线观看| 国产麻豆视频一区| 欧美探花视频资源| 精品成人佐山爱一区二区| 亚洲麻豆国产自偷在线| 秋霞午夜鲁丝一区二区老狼| av在线不卡观看免费观看| 欧美妇女性影城| 国产精品电影一区二区三区| 蜜臀av一区二区在线免费观看| 成人午夜视频网站| 日韩视频永久免费| 亚洲人成网站精品片在线观看| 国产在线国偷精品免费看| 色哟哟一区二区在线观看 | 91福利区一区二区三区| 26uuu国产一区二区三区| 一区二区三区高清|