首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 嵌入开发 > VxWorks >

BSP中sysPhysMemDesc[]跟sysStaticTlbDesc[]的区别

2013-01-07 
BSP中sysPhysMemDesc[]和sysStaticTlbDesc[]的区别boot启动时已经用sysPhysMemDesc[]数组进行了虚拟内存到

BSP中sysPhysMemDesc[]和sysStaticTlbDesc[]的区别
boot启动时已经用sysPhysMemDesc[]数组进行了虚拟内存到物理内存的映射,那为啥还需要sysStaticTlbDesc[]的Effective地址到Real地址的映射啊??
[解决办法]
Tornado supports two cooperating models for memory mapping. The first, the static model, allows mapping of memory blocks ranging from 1 KB to 256 MB in size by dedicating an individual processor TLB entry to each block. The second, the dynamic model, provides the ability to map physical memory in 4 KB pages using the remaining available TLB entries in a round-robin fashion.
[解决办法]
sysStaticTlbDesc is the static model.
Such as flash/prom...will use the mode. 
[解决办法]
TLB的映射优先级高于PTE

热点排行