嵌入式开发者社区

标题: 关于C6678可缓冲区域配置问题 [打印本页]

作者: IRONMAN    时间: 2016-11-14 12:01
标题: 关于C6678可缓冲区域配置问题
  1. //配置可缓冲的区域
  2. void Cache_Area_Configuration(void)
  3. {
  4.         unsigned int i;

  5.         for(i=12; i<16; i++)                              //make SL2 cacheable1
  6.                 gpCGEM_regs->MAR[i] = 0;
  7.         for(i=16; i<24; i++)                             //make other cores local memory cacheable and prefetchable    1|(1<<CSL_CGEM_MAR0_PFX_SHIFT)
  8.                 gpCGEM_regs->MAR[i] = 0;
  9.         for(i=24; i<128; i++)                          //make other space non-cacheable and non-prefetchable
  10.                 gpCGEM_regs->MAR[i] = 0;
  11.         for(i=128; i<256; i++)                       //make DDR cacheable and prefetchable   1|(1<<CSL_CGEM_MAR0_PFX_SHIFT)
  12.                 gpCGEM_regs->MAR[i] = 0;
  13. }
复制代码
这是我写的一个配置可缓冲区域的函数,请问一下我现在的这种配置是让所有的区域都不可缓冲吗?

作者: 希望缄默    时间: 2016-11-14 20:06
准确的讲应该叫可预取可缓存区域配置
具体参见下表
[attach]1560[/attach]
[attach]1561[/attach]





欢迎光临 嵌入式开发者社区 (https://51ele.net/) Powered by Discuz! X3.4