歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> 關於Linux

uclinux-2008R1-RC8(bf561)到VDSP5的移植(52):cache.s的問題

在arch/blackfin/mach-common/cache.s中,有一系列的語法差異:

[Error ea5004] "../../arch/blackfin/mach-common/cache.S":126 Syntax Error in :
cli R3; nop; nop; CSYNC; sti R3;;
syntax error is at or near text ';'.
Attempting error recovery by ignoring text until the ';'

這個錯誤對應的語句是:

CSYNC(R3);

多了個分號。改為:

CSYNC(R3)
[Error ea5007] "../../arch/blackfin/mach-common/cache.S":128 The label "1:" is illegal because it begins with a digit. If this is GNU assembly source, rewrite to a local temporary name of your choosing. If the GNU assembly code was generated from a macro, the VisualDSP++ preprocessing label auto-generation feature ("?") can be used to generate a unique local label.
[Error ea5003] "../../arch/blackfin/mach-common/cache.S":131 Semantic Error in instruction :
IF CC JUMP 1b (bp);
Operands don't fit instruction template 'IF CC JUMP expr'.
Check for an out of range immediate value or an illegal register.
[Error ea5004] "../../arch/blackfin/mach-common/cache.S":131 Syntax Error in :
IF CC JUMP 1b (bp);
syntax error is at or near text 'b'.
Attempting error recovery by ignoring text until the ';'

對應的語句為:

1:

IFLUSH [P0++];
CC = P0 < P1 (iu);
IF CC JUMP 1b (bp);

改為:

_blackfin_icache_flush_range_1:
IFLUSH [P0++];
CC = P0 < P1 (iu);
IF CC JUMP _blackfin_icache_flush_range_1 (bp);
[Error ea5004] "../../arch/blackfin/mach-common/cache.S":133 Syntax Error in :
cli R3; nop; nop; SSYNC; sti R3;;
syntax error is at or near text ';'.
Attempting error recovery by ignoring text until the ';'

對應的語句為:

SSYNC(R3);

改為:

SSYNC(R3)

Copyright © Linux教程網 All Rights Reserved