Mapping a VxWorks image onto RAM (BSP)

痞子三分冷 提交于 2019-12-06 08:13:45

RAM High/Low are somewhat of a misnomer as you have discovered.
It really should be called RAM_VXWORKS_ADDR and RAM_BOOT_ADDR (or some such).
A lot of those names are historical in nature.

In 99% of cases, RAM_HIGH > RAM_LOW. But, depending on architecture, BSP and target, there might be an inversion.

In the end, it's just an address to load software. As long as there is no conflict or overlap, it's ok.

The vxWorks Heap has nothing to do with RAM_LOW/HIGH_ADDR per se.

The vxWorks heap (in a simplified view) runs from above the vxWorks image to the address returned by sysMemTop() - which is defined by the BSP and might run to the top of physical RAM (or not).

In the normal situation, with vxWorks loading bellow the bootrom load address, the bootrom simply gets overwritten. That's not the case in your BSP, so you do loose some RAM space since the bootrom is not "reclaimed".

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!