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

📄 mmu.c

📁 OMAP1030 处理器的ARM 侧硬件测试代码 OMAP1030 是TI的双核处理器
💻 C
字号:


/****************MMU file for HW testcode*************/
MMU_Section(inAddr, inVal, inCount)
 {
  int lvCounter;

  for (lvCounter = 0; lvCounter < inCount; lvCounter++)
    {
       ((int *)inAddr)[lvCounter] = inVal | (0x100000 * lvCounter);
    }
 }


Initial_MMU()
   {
      
      
      MMU_Section(0x10110000,0x10000c0e,16);  // VA=0x00000000, PA=0x10000000,  system 0x0 address is mapped into SDRAM to access exception vector
      
      MMU_Section(0x10110100,0x04000c02,64);  // VA=0x04000000, PA=0x04000000,  system 0x04000000 address is mapped into cs1 address space
      
      MMU_Section(0x10110200,0x08000c02,64);  // VA=0x08000000, PA=0x08000000,  system 0x08000000 address is mapped into cs2 address space
      
      MMU_Section(0x10110300,0x0c000c02,64);  // VA=0x0c000000, PA=0x0c000000,  system 0x0c000000 address is mapped into cs3 address space
      
      MMU_Section(0x10110400,0x10000c0e,64);  // VA=0x10000000, PA=0x10000000,  system 0x10000000 address is mapped into SDRAM address space
      
      MMU_Section(0x10110800,0x20000c02,1);  // VA=0x20000000, PA=0x20000000,  system 0x20000000 address is mapped into L3 T1 address space
      
      MMU_Section(0x10110d40,0x35000c02,8);  // VA=0x35000000, PA=0x35000000,  system 0x35000000 address is mapped into L3 T2(camera and lcd) address space
      
      MMU_Section(0x10113800,0xe0000c02,64);  // VA=0xe0000000, PA=0xe0000000,  system 0xe0000000 address is mapped into DSP MPUI address space
      
      MMU_Section(0x10113ffc,0xfff00c02,1);  // VA=0xfff00000, PA=0xfff00000,  system 0xfff00000 address is mapped into MPU&DSP peripherals address space

     	(*(unsigned short*)0x10600000) = 0xa5a5;  
      }

⌨️ 快捷键说明

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