Andes Workshop http://forum.andestech.com/ |
|
startup初始化必須要的code http://forum.andestech.com/viewtopic.php?f=25&t=681 |
Page 1 of 1 |
Author: | cindy [ Wed Mar 06, 2013 11:56 am ] |
Post subject: | startup初始化必須要的code |
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。 |
Page 1 of 1 | All times are UTC + 8 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |