cache.c
来自「嵌入式操作系统T-Kernel 完整代码」· C语言 代码 · 共 41 行
C
41 行
/* *---------------------------------------------------------------------- * T-Kernel * * Copyright (C) 2004 by Ken Sakamura. All rights reserved. * T-Kernel is distributed under the T-License. *---------------------------------------------------------------------- * * Version: 1.01.00 * Released by T-Engine Forum(http://www.t-engine.org) at 2004/6/28. * *---------------------------------------------------------------------- *//* * cache.c (M32104) * Cache Operation */#include <basic.h>#include <tk/tkernel.h>#include <tk/sysdef.h>/* * Cache flush * Flush cache between 'laddr' and 'len' bytes areas. * Writeback and disable cache */EXPORT void FlushCache( VP laddr, INT len ){ UINT imask; DI(imask); /* Flush the whole cache because only the whole cache can be controlled */ *(_UW*)CC_MCCR |= CC_DCB|CC_DIV|CC_IIV; EI(imask);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?