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

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

?? cachetx79lib.c

?? vxworks的源代碼
?? C
字號:
/* cacheTx79Lib.c - Toshiba Tx79 cache management library *//* Copyright 1984-2002 Wind River Systems, Inc. */#include "copyright_wrs.h"/* * This file has been developed or significantly modified by the * MIPS Center of Excellence Dedicated Engineering Staff. * This notice is as per the MIPS Center of Excellence Master Partner * Agreement, do not remove this notice without checking first with * WR/Platforms MIPS Center of Excellence engineering management. *//*modification history--------------------01b,30sep02,jmt  Modify to resolve code review issues01a,14aug02,jmt  derived from cacheTx49Lib.c (01b,09may02,jmt).*//*DESCRIPTIONThis library contains architecture-specific cache library functions forthe Toshiba Tx79 architecture.  The Tx79 utilizes a fixed-size instructionand data cache that operates in write-back mode.  The cache is two-way setassociative and the library allows the cache and cache line size to vary.For general information about caching, see the manual entry for cacheLib.INCLUDE FILES: cacheLib.hSEE ALSO: cacheLib*//* includes */#include	"vxWorks.h"#include	"cacheLib.h"#include	"memLib.h"#include	"stdlib.h"#include	"errno.h"#include        "errnoLib.h"#ifdef IS_KSEGM#include        "memPartLib.h"#include        "arch/mips/mmuMipsLib.h"#endif /* IS_KSEGM */#include        "private/vmLibP.h"#include        "private/funcBindP.h"/* forward declarations */LOCAL STATUS	cacheTx79Flush (CACHE_TYPE cache, void * pVirtAdrs,			        size_t bytes);LOCAL STATUS	cacheTx79Invalidate (CACHE_TYPE cache, void * pVirtAdrs,                                      size_t bytes);LOCAL STATUS	cacheTx79Clear (CACHE_TYPE cache, void * pVirtAdrs,                                 size_t bytes);LOCAL STATUS 	cacheTx79TextUpdate (void * address, size_t bytes);/* imports */IMPORT void	sysWbFlush (void);/* imports from cacheMipsLib.c */IMPORT void *	cacheMipsMalloc (size_t bytes);IMPORT STATUS	cacheMipsFree (void * pBuf);IMPORT void * 	cacheMipsPhysToVirt (void * address);IMPORT void * 	cacheMipsVirtToPhys (void * address);IMPORT STATUS	cacheMipsPipeFlush (void);/* imports from cacheTx79ALib.s */IMPORT void     cacheTx79DCFlushInvalidate(void * address, size_t byteCount);IMPORT void     cacheTx79DCFlushInvalidateAll(void);IMPORT void     cacheTx79DCInvalidate(void * address, size_t byteCount);IMPORT void     cacheTx79DCInvalidateAll(void);IMPORT void     cacheTx79DCFlush(void * address, size_t byteCount);IMPORT void     cacheTx79DCFlushAll(void);IMPORT void     cacheTx79PTextUpdate(void * address, size_t byteCount);IMPORT void     cacheTx79PTextUpdateAll(void);IMPORT void     cacheTx79ICInvalidate(void * address, size_t byteCount);IMPORT void     cacheTx79ICInvalidateAll(void);#ifdef IS_KSEGMIMPORT void	cacheTx79Sync (void * vAddr, UINT len);IMPORT void	cacheTx79VirtPageFlush (UINT asid, void * vAddr, UINT len);IMPORT VOIDFUNCPTR _func_mipsCacheSync;IMPORT VOIDFUNCPTR _func_mmuMipsVirtPageFlush;#endif /* IS_KSEGM *//* globals */IMPORT UINT32 cacheTx79ICacheSize;      /* Instruction Cache Size */IMPORT UINT32 cacheTx79DCacheSize;      /* Data Cache Size */IMPORT UINT32 cacheTx79ICacheLineSize;  /* Instruction Cache Line Size */IMPORT UINT32 cacheTx79DCacheLineSize;  /* Data Cache Line Size *//**************************************************************************** cacheTx79LibInit - initialize the Tx79 cache library** This routine initializes the function pointers for the Tx79 cache* library.  The board support package can select this cache library * by assigning the function pointer <sysCacheLibInit> to* cacheTx79LibInit().** RETURNS: OK.*/STATUS cacheTx79LibInit    (    CACHE_MODE	instMode,	/* instruction cache mode */    CACHE_MODE	dataMode,	/* data cache mode */    UINT32	iCacheSize,     /* instruction cache size */    UINT32	iCacheLineSize, /* instruction cache line size */    UINT32	dCacheSize,     /* data cache size */    UINT32	dCacheLineSize  /* data cache line size */    )    {    /* save cache sizes.  No secondary cache is supported */    cacheTx79ICacheSize = iCacheSize;    cacheTx79DCacheSize = dCacheSize;    cacheTx79ICacheLineSize = iCacheLineSize;    cacheTx79DCacheLineSize = dCacheLineSize;    /* setup Cache Library functions for this library */    cacheLib.enableRtn = NULL;	/* cacheEnable() */    cacheLib.disableRtn = NULL;	/* cacheDisable() */    cacheLib.lockRtn = NULL;                     /* cacheLock */    cacheLib.unlockRtn = NULL;                   /* cacheUnlock */    cacheLib.flushRtn = cacheTx79Flush;          /* cacheFlush() */    cacheLib.pipeFlushRtn = cacheMipsPipeFlush;	 /* cachePipeFlush() */    cacheLib.textUpdateRtn = cacheTx79TextUpdate;/* cacheTextUpdate() */    cacheLib.invalidateRtn = cacheTx79Invalidate;/* cacheInvalidate() */    cacheLib.clearRtn = cacheTx79Clear;          /* cacheClear() */    cacheLib.dmaMallocRtn = (FUNCPTR) cacheMipsMalloc;  /* cacheDmaMalloc() */    cacheLib.dmaFreeRtn = cacheMipsFree;                /* cacheDmaFree() */#ifdef IS_KSEGM    if (!IS_KSEGM(cacheTx79LibInit))	{	cacheLib.dmaVirtToPhysRtn = (FUNCPTR) cacheMipsVirtToPhys;	cacheLib.dmaPhysToVirtRtn = (FUNCPTR) cacheMipsPhysToVirt;	_func_mipsCacheSync = (VOIDFUNCPTR) cacheTx79Sync;	}    else	{	_func_mipsCacheSync = (VOIDFUNCPTR) KM_TO_K0(cacheTx79Sync);	_func_mmuMipsVirtPageFlush = (VOIDFUNCPTR) cacheTx79VirtPageFlush;	}#else /* IS_KSEGM */    cacheLib.dmaVirtToPhysRtn = (FUNCPTR) cacheMipsVirtToPhys;    cacheLib.dmaPhysToVirtRtn = (FUNCPTR) cacheMipsPhysToVirt;#endif /* IS_KSEGM */    cacheDataMode	= dataMode;		/* save dataMode for enable */    cacheDataEnabled	= TRUE;			/* d-cache is currently on */    cacheMmuAvailable	= TRUE;			/* mmu support is provided */    cacheFuncsSet ();				/* update cache func ptrs */    return (OK);    }/**************************************************************************** cacheTx79Flush - flush all or some entries in a cache** This routine flushes (writes to memory)  all or some of the entries in the* specified cache.** RETURNS: OK, or ERROR if the cache type is invalid or the cache control* is not supported.*/LOCAL STATUS	cacheTx79Flush    (    CACHE_TYPE	cache,			/* Cache to Invalidate */    void *	pVirtAdrs,		/* Virtual Address */    size_t	bytes 			/* Number of Bytes to Invalidate */    )    {    if (IS_KSEG1 (pVirtAdrs))	return (OK);    switch (cache)	{	case DATA_CACHE:	    if (bytes == ENTIRE_CACHE)		cacheTx79DCFlushAll ();	    else		cacheTx79DCFlush (pVirtAdrs, bytes);	    break;	default:	    errno = S_cacheLib_INVALID_CACHE;	    return (ERROR);	    break;        }    return (OK);    }/**************************************************************************** cacheTx79Clear - flush and invalidate all or some entries in a cache** This routine flushes (writes to memory) and invalidates all or some of* the entries in the specified cache.** RETURNS: OK, or ERROR if the cache type is invalid or the cache control* is not supported.*/LOCAL STATUS	cacheTx79Clear    (    CACHE_TYPE	cache,			/* Cache to Invalidate */    void *	pVirtAdrs,		/* Virtual Address */    size_t	bytes 			/* Number of Bytes to Invalidate */    )    {    if (IS_KSEG1 (pVirtAdrs))	return (OK);    switch (cache)	{	case DATA_CACHE:	    if (bytes == ENTIRE_CACHE)		cacheTx79DCFlushInvalidateAll ();	    else		cacheTx79DCFlushInvalidate (pVirtAdrs, bytes);	    break;	default:	    errno = S_cacheLib_INVALID_CACHE;	    return (ERROR);	    break;        }    return (OK);    }/**************************************************************************** cacheTx79Invalidate - invalidate all or some entries in a cache** This routine invalidates all or some of the entries in the* specified cache.** RETURNS: OK, or ERROR if the cache type is invalid or the cache control* is not supported.*/LOCAL STATUS	cacheTx79Invalidate    (    CACHE_TYPE	cache,			/* Cache to Invalidate */    void *	pVirtAdrs,		/* Virtual Address */    size_t	bytes 			/* Number of Bytes to Invalidate */    )    {    void * pSec2;    void * pSec3;    int bytesSec1;    int bytesSec2;    int bytesSec3;        if (IS_KSEG1 (pVirtAdrs))	return (OK);    switch (cache)	{	case DATA_CACHE:	    if (bytes == ENTIRE_CACHE)		cacheTx79DCInvalidateAll ();	    else		{		/* Break up into three sections		 *   1.  partial cache line at beginning		 *   2.  all the full cache lines		 *   3.  partial cache line at end		 */		pSec2 = (void *) CACHE_ROUND_UP(pVirtAdrs);		pSec3 = (void *) CACHE_ROUND_DOWN((int) pVirtAdrs + bytes);		bytesSec1 = ((int) pSec2 - (int) pVirtAdrs);		bytesSec3 = ((int) pVirtAdrs + bytes - (int) pSec3);		bytesSec2 = bytes - bytesSec1 - bytesSec3;		/* if start address is not cache line aligned,		 * flush invalidate partial line		 */		if (bytesSec1 > 0)		    cacheTx79DCFlushInvalidate(pVirtAdrs, bytesSec1);		/* if there are any, Invalidate full cache lines */		if (bytesSec2 > 0)		    cacheTx79DCInvalidate (pSec2, bytesSec2);		/* if end does not completely fill a cache line		 * flush invalidate partial line		 */		if (bytesSec3 > 0)		    cacheTx79DCFlushInvalidate(pSec3, bytesSec3);		}	    break;	case INSTRUCTION_CACHE:	    if (bytes == ENTIRE_CACHE)		cacheTx79ICInvalidateAll ();	    else		cacheTx79ICInvalidate (pVirtAdrs, bytes);	    break;	default:	    errno = S_cacheLib_INVALID_CACHE;	    return (ERROR);	    break;        }    return (OK);    }/**************************************************************************** cacheTx79TextUpdate - flush and invalidate updated text section** This routine flushes and invalidates the specified text section so that* the correct updated text is executed.** NOMANUAL*/LOCAL STATUS cacheTx79TextUpdate    (    void * address,                     /* Physical address */    size_t bytes 			/* bytes to invalidate */    )    {    if ((bytes != ENTIRE_CACHE) &&        ((address == NULL) || (bytes == 0) || IS_KSEG1(address)))        return (OK);    if (bytes == ENTIRE_CACHE)       cacheTx79PTextUpdateAll ();    else       cacheTx79PTextUpdate (address, bytes);    return (OK);    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
看电视剧不卡顿的网站| 中文字幕一区二区三区四区不卡 | 3atv一区二区三区| 一区二区成人在线| 国产精品嫩草99a| 欧美视频三区在线播放| 国产九九视频一区二区三区| 6080午夜不卡| 男人的天堂亚洲一区| 日韩美女视频一区二区| 中文文精品字幕一区二区| 久久亚区不卡日本| 日本欧美韩国一区三区| 91精品国产一区二区三区香蕉| 中文av一区特黄| 久草在线在线精品观看| 国产成人精品影院| 又紧又大又爽精品一区二区| 亚洲欧美一区二区三区久本道91| 亚洲人成精品久久久久久| 亚洲色图清纯唯美| 夜色激情一区二区| 午夜精品视频一区| 国产激情视频一区二区在线观看 | 99久久精品免费看国产免费软件| 美女在线视频一区| 水蜜桃久久夜色精品一区的特点| 一级特黄大欧美久久久| 一区二区三区资源| 亚洲午夜久久久久| 亚洲人成网站影音先锋播放| 伊人婷婷欧美激情| 首页欧美精品中文字幕| 国产一区免费电影| 成人午夜私人影院| 欧美高清视频一二三区| 亚洲欧洲av在线| 美女精品一区二区| 91免费在线播放| 久久综合给合久久狠狠狠97色69| 一区二区三区在线免费视频| 国产综合色精品一区二区三区| 99在线精品一区二区三区| 日韩一级欧美一级| 亚洲最快最全在线视频| 国产丶欧美丶日本不卡视频| 欧美丰满少妇xxxxx高潮对白| 中文字幕乱码亚洲精品一区| 免费在线观看视频一区| 欧美亚洲尤物久久| 中日韩免费视频中文字幕| 麻豆91在线观看| 欧美视频日韩视频| 一区二区在线电影| 成人av高清在线| 国产视频一区二区三区在线观看 | 免费在线欧美视频| 欧美视频在线一区| 亚洲视频网在线直播| 国产成人免费av在线| 久久亚洲综合色一区二区三区| 亚洲h精品动漫在线观看| 99久久精品情趣| 国产精品免费免费| 国产999精品久久久久久绿帽| 欧美成人艳星乳罩| 毛片av中文字幕一区二区| 欧美三级视频在线观看| 亚洲综合精品久久| 在线观看视频一区| 一区二区三区在线观看欧美 | 日本中文字幕一区| 欧美日韩一区二区三区在线看| 欧美高清一级片在线观看| 国产精品一区二区果冻传媒| 欧美精品一区二区久久久| 精品亚洲免费视频| 久久伊99综合婷婷久久伊| 日韩av一区二区三区四区| 91精品国产91久久综合桃花| 奇米在线7777在线精品| 精品少妇一区二区三区在线播放| 玖玖九九国产精品| 精品成人免费观看| 国产99久久久精品| 国产精品色婷婷久久58| 成人妖精视频yjsp地址| 亚洲免费观看高清在线观看| 欧洲精品一区二区| 日日噜噜夜夜狠狠视频欧美人 | 亚洲自拍另类综合| 欧美一区二区私人影院日本| 麻豆精品一区二区综合av| 国产调教视频一区| 在线免费观看一区| 久久精品国产一区二区三区免费看| 欧美成人精精品一区二区频| 国产成人免费在线观看不卡| 亚洲色图制服诱惑 | 欧美国产一区在线| 91亚洲男人天堂| 日本不卡在线视频| 亚洲国产精品二十页| 日本韩国欧美在线| 久久国产乱子精品免费女| 久久女同精品一区二区| 色哟哟国产精品免费观看| 日韩av一区二区在线影视| 国产女同互慰高潮91漫画| 欧美在线观看视频一区二区三区| 久久精品国产在热久久| 亚洲精品免费在线播放| 欧美α欧美αv大片| 色婷婷亚洲婷婷| 韩国三级中文字幕hd久久精品| 成人免费一区二区三区视频| 91精品国产一区二区| 97久久超碰国产精品| 久久精品噜噜噜成人88aⅴ | 丝袜美腿亚洲色图| 久久久久久久久99精品| 欧美视频一区在线| 国产电影一区二区三区| 日韩va欧美va亚洲va久久| 亚洲欧洲日韩在线| 久久影院电视剧免费观看| 欧美精品乱码久久久久久| 91亚洲国产成人精品一区二区三| 狠狠狠色丁香婷婷综合久久五月| 亚洲制服丝袜一区| 国产精品三级av在线播放| 精品奇米国产一区二区三区| 91久久奴性调教| caoporn国产一区二区| 韩国毛片一区二区三区| 视频一区视频二区中文字幕| 亚洲色图一区二区三区| 国产精品私人自拍| 国产日韩视频一区二区三区| 日韩美女主播在线视频一区二区三区| 欧美天天综合网| 在线观看日韩av先锋影音电影院| 成人午夜免费视频| 丁香网亚洲国际| 国产精品一品视频| 国产伦精品一区二区三区视频青涩| 奇米色777欧美一区二区| 午夜精品久久久久久| 亚洲图片自拍偷拍| 亚洲一级二级在线| 亚洲资源在线观看| 亚洲专区一二三| 婷婷久久综合九色国产成人| 亚洲午夜久久久| 午夜欧美电影在线观看| 亚洲国产欧美另类丝袜| 亚洲国产日韩a在线播放| 亚洲一区二区中文在线| 亚洲午夜精品久久久久久久久| 亚洲一二三四区不卡| 天堂一区二区在线| 久久精品国内一区二区三区| 国内精品免费在线观看| 成人一级片在线观看| a级精品国产片在线观看| 99久久99久久综合| 91麻豆.com| 91精品国产综合久久小美女| 日韩欧美国产综合| 国产三级三级三级精品8ⅰ区| 中文字幕在线不卡一区二区三区| 中文字幕日韩一区二区| 一区二区久久久久| 美女视频网站久久| 丁香网亚洲国际| 欧美日韩视频不卡| 26uuu久久天堂性欧美| 亚洲欧洲无码一区二区三区| 亚洲va国产va欧美va观看| 国模套图日韩精品一区二区| 成人三级伦理片| 欧美二区三区的天堂| 国产视频一区在线观看| 亚洲综合一区二区精品导航| 九九精品视频在线看| 93久久精品日日躁夜夜躁欧美| 欧美日韩五月天| 日本一区二区三区高清不卡| 五月天丁香久久| 白白色亚洲国产精品| 日韩一区国产二区欧美三区| 国产精品美女久久久久久久久久久 | 日本aⅴ免费视频一区二区三区| 国产一区二区免费看| 欧美性猛片aaaaaaa做受| 国产亚洲1区2区3区| 日韩成人一级片| 成人av免费网站| 久久久久久久av麻豆果冻| 香蕉av福利精品导航|