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

📄 cache_info.h

📁 日本著名的的嵌入式实时操作系统T-Kernel的源码及用户手册。
💻 H
字号:
/* *---------------------------------------------------------------------- *    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 (SH7760) *	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)		( (VP)((UW)(p) & ~0x20000000) )#define	NoCachingAddr(p)	( (VP)((UW)(p) | 0x20000000) )/* * 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)(((UW)(laddr) & 0x1fffffff) | 0xa0000000)#endif /* _CACHE_INFO_ */

⌨️ 快捷键说明

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