原创 关于LOCAL_MEM_AUTOSIZE--网友留言

2006-11-30 12:10 4000 10 8 分类: MCU/ 嵌入式

On pcPentium* derived BSPs, I will show you how the implementation(!)<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />


of the LOCAL_MEM_AUTOSIZE is related with the crash depending on


vxWorks location, and thus becomes the major weakness of those BSPs.


Furthermore there is some risk of bootrom/vxWorks overlap, which is


not visible in the build Macro values.


 


Details:


--------


 


LOCAL_MEM_AUTOSIZE


------------------


 


LOCAL_MEM_AUTOSIZE does a binary search for the highest writeable


memory location in the address space.


 


Unfortunately some chipsets are mapping certain hardware into the


address space (e.g. single config registers or the entire graphic card


memory) If by accident the binary search traps into such hardware


register the memory size is computed wrong (vxWorks will crash later)


or an illegal value is in the config register (hardware crashes


immediately).


  what addresses are accessed, depends, because of the


binary search, highly counter-intuitively on slight changes of start


and end addresses of the search.  The search area is between symbol


_end (end of static vxWorks image) and Macro PHYS_MEM_MAX.


 


So the slightest change of vxWorks image location or size can affect


the behaviour pseudo-randomly!


 


Workaround: in sysPhysMemTop() make sure that only the range between


minimum expected RAM size and minimum address of potential memory


mapped hardware is searched (yes, then the BSP is board dependent).


 


Fix: In romInit.s call the appropriate BIOS-function to hardware


independent getting the RAM size, and store this in a hardcoded

location, where VxWorks will later find it.    

文章评论1条评论)

登录后参与讨论

用户73924 2006-12-1 19:53

很详细

相关推荐阅读
shenyandetongxing_551209819 2010-02-25 21:34
MyEclipse 建立第一个工程
1.打开MyEclipse--新建个工程File--New--Project--WebProject 2.在ProjectName中输入hello--Finish 3.然后为工程添加struts框架,...
shenyandetongxing_551209819 2010-02-06 22:42
人力资源管理软件(技术储备)
JAVA的SSH开发框架Struts、Spring、Hibernate在各层的作用1、Struts 负责 web层ActionFormBean 接收网页中表单提交的数据,然后通过Action 进行处理...
shenyandetongxing_551209819 2010-02-06 02:51
个人资源管理软件(需求)
先提提需求吧,这是重中之重,这不是简单就能完成的,需要不断的修改和完善。既然是个人资源管理就要首先搞清楚个人资源包括哪些部分:1  人脉资源,也就是我们常说的关系,人是社会型动物就不可能生活在真空里,...
shenyandetongxing_551209819 2010-02-06 02:33
HR软件设计开始(关注个人资源管理与分析)
最近对HR很感兴趣,上网搜了一下,HR的软件也不少,其中风头正劲的用友公司做的挺多,但是看了看都是针对企业级的。但自己平常的工作和进步帮助不大。想整一个关于人力资源、人际关系进行总结、分析的软件,让自...
shenyandetongxing_551209819 2010-02-06 02:30
对HR和B/S模式的东西感兴趣
最近对HR很感兴趣,上网搜了一下,HR的软件也不少,其中风头正劲的用友公司做的挺多,但是看了看都是针对企业级的。但自己平常的工作和进步帮助不大。想整一个关于人力资源、人际关系进行总结、分析的软件,让自...
shenyandetongxing_551209819 2008-10-01 16:18
由于工作原因,改行!!
已经好久没有上我的博客了,还有很多朋友支持我,很欣慰:)现在由于工作原因很长一段时间内将挥泪告别嵌入式。现在如果有做PKI或PMI的跟我一起交流啊:)...
我要评论
1
10
关闭 站长推荐上一条 /2 下一条