71ba65e7c0
原始提交PR:https://gitee.com/rtthread/rt-thread/pulls/372 提交者:https://gitee.com/wei-handong ---------------------- 在TI公司C6000 DSP处理器上成功移植rt-thread操作系统;主要在libcpu/ti-dsp/c6x添加keystone架构底层代码,在bsp/ti-c6678添加bsp工程,该工程已在本人的开发板上成功运行 * 添加TMS320C6678处理器,keystone架构底层代码 * 添加支持中断栈部分代码,修改格式 * 修改汇编rt_hw_context_switch_to处关于时间槽的使用;修改格式 * 修改使用C语言构建任务栈帧,清除fls和ffs对<c6x.h>文件的依赖 * 修改bsp tms320c6678工程,并测试 * 删除依赖TI的KeyStone_common.c文件 * 添加编译说明 * update bsp/ti-tms320c6678/README.md. * format code Co-authored-by: Huang bo <hb265419@126.com> Co-authored-by: hdwei <1147479335@qq.com> Co-authored-by: bernard <bernard.xiong@gmail.com> Co-authored-by: rtthread-bot <48120998+rtthread-bot@users.noreply.github.com> Co-authored-by: Meco Man <920369182@qq.com>
48 lines
1.8 KiB
Batchfile
48 lines
1.8 KiB
Batchfile
/****************************************************************************/
|
|
/* */
|
|
/* M6678.cmd */
|
|
/* Copyright (c): NUDT */
|
|
/* */
|
|
/* */
|
|
/* Description: This file is a sample linker command file that can be */
|
|
/* used for linking programs built with the C compiler and */
|
|
/* running the resulting .out file on an M6678 */
|
|
/* device. Use it as a guideline. You will want to */
|
|
/* change the memory layout to match your specific C6xxx */
|
|
/* target system. You may want to change the allocation */
|
|
/* scheme according to the size of your program. */
|
|
/* */
|
|
/* */
|
|
/****************************************************************************/
|
|
|
|
-heap 0x800
|
|
-stack 0x1000
|
|
|
|
MEMORY
|
|
{
|
|
VECTORS: o = 0x00800000 l = 0x00000200
|
|
LL2_CODE: o = 0x00800200 l = 0x0001FE00
|
|
LL2_RW_DATA: o = 0x00820000 l = 0x00020000 /*set memory protection attribitue as read/write*/
|
|
}
|
|
|
|
SECTIONS
|
|
{
|
|
.vecs > VECTORS
|
|
|
|
.text > LL2_CODE
|
|
.cinit > LL2_CODE
|
|
.const > LL2_CODE
|
|
.switch > LL2_CODE
|
|
.stack > LL2_RW_DATA
|
|
GROUP
|
|
{
|
|
.neardata
|
|
.rodata
|
|
.bss
|
|
} > LL2_RW_DATA
|
|
.far > LL2_RW_DATA
|
|
.fardata > LL2_RW_DATA
|
|
.cio > LL2_RW_DATA
|
|
.sysmem > LL2_RW_DATA
|
|
}
|