mmu.h

来自「英培特ARM教学平台EDUKIT-III」· C头文件 代码 · 共 29 行

H
29
字号
#ifndef MMU_H_#define MMU_H_/*  * MMU Level 1 Page Table Constants * Section descriptor  */ #define MMU_FULL_ACCESS		(3 << 10)	/* access permission bits */#define MMU_DOMAIN		(0 << 5)	/* domain control bits */#define MMU_SPECIAL		(1 << 4)	/* must be 1 */#define MMU_CACHEABLE		(1 << 3)	/* cacheable */#define MMU_BUFFERABLE		(1 << 2)	/* bufferable */#define MMU_SECTION		(2) /* indicates that this is a section descriptor */#define MMU_SECDESC		(MMU_FULL_ACCESS | MMU_DOMAIN | \				 MMU_SPECIAL | MMU_SECTION)#define MMU_SECTION_SIZE	0x00100000void cache_clean_invalidate(void);void tlb_invalidate(void);void mmu_init(void);void mem_map_init(void);#define CONFIG_CPU_D_CACHE_ON#define CONFIG_CPU_I_CACHE_ON//#undef CONFIG_CPU_D_CACHE_ON//#undef CONFIG_CPU_I_CACHE_ON#endif /* MMU_H_ */

⌨️ 快捷键说明

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