uclinux-2008R1.5-RC3(bf561)到VDSP5的移植(36):.data.init_task

快乐虾

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)

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

经过前述处理,VDSP提示错误:

[Warning li2060] The following input section(s) that contain program code

and/or data have not been placed into the executable for processor 'p0'

as there are no relevant commands specified in the LDF:

arch-kernel.dlb[init_task.doj](.data.init_task)

vmlinux.lds.s中这样定义.data.init_task段:

.data :

{

/* make sure the init_task is aligned to the

* kernel thread size so we can locate the kernel

* stack properly and quickly.

*/

__sdata = .;

. = ALIGN(THREAD_SIZE);

*(.data.init_task)

. = ALIGN(32);

*(.data.cacheline_aligned)

#if !L1_DATA_A_LENGTH

. = ALIGN(32);

*(.data_l1.cacheline_aligned)

#endif

DATA_DATA

*(.data)

CONSTRUCTORS

. = ALIGN(THREAD_SIZE);

__edata = .;

}

由于.data段在之前已经添加,故直接在LDF文件的.data段做修改:

uclinux_data

{

/* make sure the init_task is aligned to the

* kernel thread size so we can locate the kernel

* stack properly and quickly.

*/

__sdata = .;

INPUT_SECTION_ALIGN(8192)

INPUT_SECTIONS($LIBRARIES_CORE_A(.data.init_task))

/*

. = ALIGN(32);

*(.data.cacheline_aligned)

#if !L1_DATA_A_LENGTH

. = ALIGN(32);

*(.data_l1.cacheline_aligned)

#endif

DATA_DATA

*(.data)

CONSTRUCTORS

*/

INPUT_SECTION_ALIGN(8192)

__edata = .;

} > MEM_UCLINUX_DATA

1 参考资料

uclinux-2008R1.5-RC3(bf561)VDSP5的移植(28)CONFIG_HZ(2009-1-15)

uclinux-2008R1.5-RC3(bf561)VDSP5的移植(29)cmdline_init(2009-1-15)

uclinux-2008R1.5-RC3(bf561)VDSP5的移植(30)WARN(2009-1-15)

uclinux-2008R1.5-RC3(bf561)VDSP5的移植(31)NR_CPUS(2009-1-15)

uclinux-2008R1.5-RC3(bf561)VDSP5的移植(32)start_kernel(2009-1-15)

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

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

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值