cache_info.h

来自「嵌入式操作系统T-Kernel 完整代码」· C头文件 代码 · 共 56 行

H
56
字号
/* *---------------------------------------------------------------------- *    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_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)#define NoCacheMemoryEnd	(0)/* * 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 + =
减小字号Ctrl + -
显示快捷键?