We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
其它模块都编译通过只有下面这个不行,出错 [/tmp/make/src] # make gcc -g -Wall -c -o memory.o memory.c memory.c: In function 'rte_atomic32_cmpset': memory.c:90: error: impossible constraint in 'asm' make: *** [memory.o] Error 1
问题出在: asm volatile( "lock ; " "cmpxchgl %[src], %[dst];" "sete %[res];" : [res] "=a" (res), /* output _/ [dst] "=m" (_dst) : [src] "r" (src), /* input _/ "a" (exp), "m" (_dst) : "memory"); /* no-clobber list */ return res;
请问要怎么修改?
The text was updated successfully, but these errors were encountered:
原子操作在每个平台上都不相同,目前只支持x86的linux平台,像ARM/HPUNIX/MIPS(龙芯Loongson)/win32等暂不支持。
Sorry, something went wrong.
No branches or pull requests
其它模块都编译通过只有下面这个不行,出错
[/tmp/make/src] # make
gcc -g -Wall -c -o memory.o memory.c
memory.c: In function 'rte_atomic32_cmpset':
memory.c:90: error: impossible constraint in 'asm'
make: *** [memory.o] Error 1
问题出在:
asm volatile(
"lock ; "
"cmpxchgl %[src], %[dst];"
"sete %[res];"
: [res] "=a" (res), /* output _/
[dst] "=m" (_dst)
: [src] "r" (src), /* input _/
"a" (exp),
"m" (_dst)
: "memory"); /* no-clobber list */
return res;
请问要怎么修改?
The text was updated successfully, but these errors were encountered: