嵌入式开发者社区
标题:
关于C6678可缓冲区域配置问题
[打印本页]
作者:
IRONMAN
时间:
2016-11-14 12:01
标题:
关于C6678可缓冲区域配置问题
//配置可缓冲的区域
void Cache_Area_Configuration(void)
{
unsigned int i;
for(i=12; i<16; i++) //make SL2 cacheable1
gpCGEM_regs->MAR[i] = 0;
for(i=16; i<24; i++) //make other cores local memory cacheable and prefetchable 1|(1<<CSL_CGEM_MAR0_PFX_SHIFT)
gpCGEM_regs->MAR[i] = 0;
for(i=24; i<128; i++) //make other space non-cacheable and non-prefetchable
gpCGEM_regs->MAR[i] = 0;
for(i=128; i<256; i++) //make DDR cacheable and prefetchable 1|(1<<CSL_CGEM_MAR0_PFX_SHIFT)
gpCGEM_regs->MAR[i] = 0;
}
复制代码
这是我写的一个配置可缓冲区域的函数,请问一下我现在的这种配置是让所有的区域都不可缓冲吗?
作者:
希望缄默
时间:
2016-11-14 20:06
准确的讲应该叫可预取可缓存区域配置
具体参见下表
[attach]1560[/attach]
[attach]1561[/attach]
欢迎光临 嵌入式开发者社区 (https://www.51ele.net/)
Powered by Discuz! X3.4