首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >错误:使用tsec.c驱动程序编译uboot源代码时指令“同步”错误

错误:使用tsec.c驱动程序编译uboot源代码时指令“同步”错误
EN

Stack Overflow用户
提问于 2011-09-14 08:25:39
回答 1查看 1.7K关注 0票数 0

我试图用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

代码语言:javascript
复制
{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'

有人能帮我理解这个错误吗。我试过谷歌搜索,但它对我有很大帮助。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-09-14 11:29:53

我不知道你的tsec.c是从哪里来的,所以我看不见消息来源。我最好的猜测是它有一些特定于体系结构的(MIPS)内联程序集。

您可能会在代码中的某个地方找到asm(“同步”)。

发生此错误是因为“同步”不是arm指令,因此汇编程序无法识别和组装它。

要修复错误,您必须将驱动程序移植到ARM,这可能不是一项简单的任务。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/7413341

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档