cache.c
来自「完整的Bell实验室的嵌入式文件系统TFS」· C语言 代码 · 共 48 行
C
48 行
/* cache.c: * General notice: * This code is part of a boot-monitor package developed as a generic base * platform for embedded system designs. As such, it is likely to be * distributed to various projects beyond the control of the original * author. Please notify the author of any enhancements made or bugs found * so that all may benefit from the changes. In addition, notification back * to the author will allow the new user to pick up changes that may have * been made by other users after this version of the code was distributed. * * Note1: the majority of this code was edited with 4-space tabs. * Note2: as more and more contributions are accepted, the term "author" * is becoming a mis-representation of credit. * * Original author: Ed Sutter * Email: esutter@lucent.com * Phone: 908-582-2351 */#include "genlib.h"int (*dcacheFlush)(), (*icacheInvalidate)();intflushDcache(char *addr, int size){ if (dcacheFlush) return(dcacheFlush(addr,size)); return(0);}intinvalidateIcache(char *addr, int size){ if (icacheInvalidate) return(icacheInvalidate(addr,size)); return(0);}intcacheInit(){ dcacheFlush = (int(*)())0; icacheInvalidate = (int(*)())0; cacheInitForTarget(); /* Target-specific initialization. */ return(0);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?