Andes Workshop

It is currently Tue Sep 24, 2019 3:19 am

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: startup初始化必須要的code
PostPosted: Wed Mar 06, 2013 11:56 am 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
1._SDA_BASE_一般会设在.sdata section的中间某个位置,
(linker自動產生)
2._FP_BASE_一般设0。
3.r0~r31,除了sp,gp,fp其他都不用特别初始化
4.在高级优化层级时,编译器会使用GP作为全局变量的base address,所以不初始化GP的话,会造成全局变量存取错误。
-------------------------

另外,還有C語言必須要先清掉.bss區,
以及將interrupt level從1降到0。
在Andes的design中,一開機的interrupt level為1。


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group