Assmbler Error: suffix or operands invalid for `mov'
chandra reddy
creddym at gmail.com
Thu Nov 6 06:32:16 PST 2008
Hi,
I am building FreeBSD kernel with gcc 4.1.1. I can see the foloowing
assembler error: My assemler version is GNU assembler 2.17
../../../../../src/bsd/sys/i386/i386/locore.s: Assembler messages:
../../../../../src/bsd/sys/i386/i386/locore.s:362: Error: suffix or
operands invalid for `mov'
../../../../../src/bsd/sys/i386/i386/locore.s:379: Error: suffix or
operands invalid for `mov'
../../../../../src/bsd/sys/i386/i386/locore.s:397: Error: suffix or
operands invalid for `mov'
*** Error code 1 (continuing)
The code in lcore.s is :
movl UC_GS(%eax),%gs /* restore %gs */
movl UC4_GS(%eax),%gs /* restore %gs */
movl SC_GS(%eax),%gs /* restore %gs */
What is the patch for this problem? what should I use mov/movw?
The same errors for
bsd/sys/i386/i386/swtch.s
movl %gs,PCB_GS(%edx)
movl PCB_GS(%edx),%gs
movl %gs,PCB_GS(%ecx)
bsd/sys/i386/include/cpufunc.h
__asm __volatile("movl %%gs,%0" : "=rm" (sel));
__asm __volatile("mov %0,%%fs" : : "rm" (sel));
__asm __volatile("movl %0,%%gs" : : "rm" (sel));
Thanks
Chandra
--
"debugging a buggy debugger with a cross buggy debugger leads to a buggy
life "
More information about the freebsd-questions
mailing list