uclinux-2008R1.5-RC3(bf561)到VDSP5的移植(40):远调用

来源:互联网 发布:淘宝玩乐收藏类目在哪 编辑:程序博客网 时间:2024/05/16 18:52

 

快乐虾

http://blog.csdn.net/lights_joy/

lights@hb165.com

 

本文适用于

ADI bf561 DSP

优视BF561EVB开发板

uclinux-2008r1.5-rc3(smp patch)

Visual DSP++ 5.0(update 5)

 

欢迎转载,但请保留作者信息

 

经过前面的处理,还有一个错误:

[Error li1080] "corea.dlb[head.doj](program):0x18e" address of '_cmdline_init' (=0x30000) is out of range

        Referenced from 0xffa00bfe

        Valid relative range is [-0x1000000,0xfffffe]

看看head.s中对cmdline_init的调用:

       /* pass the uboot arguments to the global value command line */

       R0 = R7;

       call _cmdline_init;

再看看cmdline_init的声明:

void __init cmdline_init(const char *r0)

看看__init的定义:

#define __init         __attribute__ ((__section__ (".init.text")))

也就是说,用__init修饰的代码是放在.init.text段中的,而.init.text段是放在SDRAM中的,但是head.s的代码是放在L1中的,因此就造成了这样的错误。

解决的方法很简单,直接将call改为call.x

       /* pass the uboot arguments to the global value command line */

       R0 = R7;

       call.x _cmdline_init;

 

1       参考资料

uclinux-2008R1.5-RC3(bf561)VDSP5的移植(34).init.text(2009-01-16)

uclinux-2008R1.5-RC3(bf561)VDSP5的移植(35).init.data(2009-01-16)

uclinux-2008R1.5-RC3(bf561)VDSP5的移植(36).data.init_task(2009-01-16)

uclinux-2008R1.5-RC3(bf561)VDSP5的移植(37)segment(2009-01-16)

uclinux-2008R1.5-RC3(bf561)VDSP5的移植(38):未命名union的问题(2009-01-16)

uclinux-2008R1.5-RC3(bf561)VDSP5的移植(39)CONFIG_BASE_SMALL(2009-1-16)

 

 

 

原创粉丝点击