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

 
  
在编译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下汇编中是不能有空语句的, 直接在一行上打一分号是不行的!!
 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

嵌云阁主

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值