此帖出自嵌入式系统论坛
最新回复
void mem_mapping_linear(void)
{
unsigned long descriptor_index, section_base, sdram_base, sdram_size;
sdram_base=0x00000000;
sdram_size=0x04000000;
mmu_vbase = 0x30000000;
for (section _base= mmu_vbase, descriptor_index = section _base>>20;
section _base < mmu_vbase + sdram_size;
descriptor_index+=1, section _base +=0x100000)
{
*(mmu_tlb_base + (descriptor_index)) = (section _base>>20) | MMU_OTHER_SECDESC;
}
}
详情
回复
发表于 2008-10-24 09:36
| ||
|
||
此帖出自嵌入式系统论坛
| ||
|
||
EEWorld Datasheet 技术支持