我试图用uboot源代码编译tsec.c文件。我以前做过,但使用powerpc工具链。现在,我正在尝试使用ARM工具链,这是与android "froyo“配套的。如果没有包含tsec.c,uboot编译得很好,但是当我包含这个驱动程序时,我会得到以下错误:-
//toolchain/arm-marvell-linux-gnueabi/bin/arm-marvell-linux-gnueabi-gcc -g -Os -fno-严格混叠-fno-通用-fno-r8-msoft-msoft- -D_KERNEL_ -DTEXT_BASE=0x0F00000 -I/uboot_sapphire/include -fno-内置-ffreestanding -nostdinc -isystem.2.0/包括-pipe -DCONFIG_ARM -D_ARM_ -march=armv5te -mabi=apcs-wstricd-原型-fno-堆栈-保护-c -o驱动程序/net/tsec.o驱动程序/net/tsec.c
{standard input}: Assembler messages:
{standard input}:31: Error: bad instruction `sync'
{standard input}:73: Error: bad instruction `sync'
{standard input}:79: Error: bad instruction `sync'
{standard input}:402: Error: bad instruction `sync'
{standard input}:2278: Error: bad instruction `sync'
{standard input}:2286: Error: bad instruction `sync'
{standard input}:2293: Error: bad instruction `sync'有人能帮我理解这个错误吗。我试过谷歌搜索,但它对我有很大帮助。
发布于 2011-09-14 11:29:53
我不知道你的tsec.c是从哪里来的,所以我看不见消息来源。我最好的猜测是它有一些特定于体系结构的(MIPS)内联程序集。
您可能会在代码中的某个地方找到asm(“同步”)。
发生此错误是因为“同步”不是arm指令,因此汇编程序无法识别和组装它。
要修复错误,您必须将驱动程序移植到ARM,这可能不是一项简单的任务。
https://stackoverflow.com/questions/7413341
复制相似问题