在编译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改进嵌入汇编的错误提示!