U-boot-1.1.6-2008R1到vdsp5(bf561)的移植记录(3): 汇编空语句

来源:互联网 发布:mac终端进入编辑模式 编辑:程序博客网 时间:2024/05/09 20:21
 
  
在编译start.s的时候,有这样的错误:
[Error ea5004] "../../cpu/blackfin/start.S":76 Syntax Error in :
;
syntax error is at or near text ';'.
Attempting error recovery by ignoring text until the ';'
错误位置的代码是:
       serial_early_puts("Init Registers");
 
查ea5004的解释是:
ea5004
 
Syntax Error
 
Description
 
Parsing of the instruction is halted when an unexpected character is encountered. At this point, the assembler displays the first character that failed the syntax check.
 
Example
 
In this example, the error is reported because the colon precedes the label.
 
[Error ea5004] err_4.asm":1 Syntax Error in :
 
:label r0=1;
 
parse error is at or near text ':'.
 
Attempting error recovery by ignoring text until the ';'
 
How to fix
 
Look for any characters that do not follow the prescribed syntax.
语法错误?查了下serial_early_puts,它已经在u-boot-1.1.6-2008R1/cpu/blackfin/serial.h中定义为:
# define serial_early_puts(str) 
好像也没什么错误呀?
试着将这行语句末尾的分号去掉,马上就pass了。原来在VDSP5下汇编中是不能有空语句的,直接在一行上打一分号是不行的!!
 
原创粉丝点击