歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> uclinux-2008R1-RC8(bf561)到VDSP5的移植(53):reboot.c的問題

uclinux-2008R1-RC8(bf561)到VDSP5的移植(53):reboot.c的問題

日期:2017/3/3 16:43:26   编辑:關於Linux

在編譯arch/blackfin/kernel/reboot.c時有兩個語法錯誤:

../../arch/blackfin/kernel/reboot.c
[Error ea5004] "c:/temp/acc0a84d6e7000/acc0a84d6e7001.s":94 Syntax Error in :
.Lfoo: NOP;
syntax error is at or near text '.Lfoo'.
Attempting error recovery by ignoring text until the ';'
[Error ea5004] "c:/temp/acc0a84d6e7000/acc0a84d6e7001.s":118 Syntax Error in :
.LN9:
syntax error is at or near text '.LN9'.
Attempting error recovery by ignoring text until the ';'
Previous errors prevent assembly
Assembler totals: 2 error(s) and 0 warning(s)
cc3089: fatal error: Assembler failed
Tool failed with exit/exception code: 1.
Build was unsuccessful

第一個錯誤發生在:

asm("LSETUP(.Lfoo,.Lfoo) LC0 = %0/n .Lfoo: NOP;/n"
: : "a" (SWRST_DELAY) : "LC0", "LT0", "LB0");

將之修改為:

asm("LSETUP(.Lfoo,.Lfoo) LC0 = %0;/n/r .Lfoo: /n/rNOP;/n"
: : "a" (SWRST_DELAY) : "LC0", "LT0", "LB0");

第二個錯誤發生在:

asm("raise 1");

將之修改為:

asm("raise 1;");

哎,強烈建議VDSP改進嵌入匯編的錯誤提示!

Copyright © Linux教程網 All Rights Reserved