`
xiaoer_1982
  • 浏览: 1815331 次
  • 性别: Icon_minigender_2
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

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)

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics