⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cache_info.h

📁 使用广泛的日本著名的开源嵌入式实时操作系统T-Kernel的源码
💻 H
字号:
/* *---------------------------------------------------------------------- *    T-Kernel * *    Copyright (C) 2004-2006 by Ken Sakamura. All rights reserved. *    T-Kernel is distributed under the T-License. *---------------------------------------------------------------------- * *    Version:   1.02.02 *    Released by T-Engine Forum(http://www.t-engine.org) at 2006/8/9. * *---------------------------------------------------------------------- *//* *	cache_info.h (S1C38K) *	Cache Information */#ifndef _CACHE_INFO_#define _CACHE_INFO_/* * Set non-cache area memory *	When using the control table for non-cache area memory  *	by memory manager routines, define the address of non-cache area. *	 *	When not using, specify 0 for UseNoCacheMemoryTable. */#define USE_NOCACHE_MEMTBL	(0)	/* Do not use */#define NoCacheMemoryTop	(0)	/* Top address of non-cache area  */#define NoCacheMemoryEnd	(0)	/* End address of non-cache area  *//* * Conversion between page number and address *	When switching ON/Off of cache by an address,  *	define the conversion formula for the following Macro: */#define CachingAddr(p)		(p)	/* Do not convert */#define NoCachingAddr(p)	(p)/* * Conversion between physical address and logical address of * real memory area (physical space) */#define toLogicalAddress(paddr)		(VP)(paddr)#define toPhysicalAddress(laddr)	(VP)(laddr)/* * Convert logical address into logical address of the cache off area */#define toNoCacheLogicalAddress(laddr)	(VP)(laddr)#endif /* _CACHE_INFO_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -