Date: Thu, 6 Nov 2008 19:35:36 +0530 From: "chandra reddy" <creddym@gmail.com> To: freebsd-questions@freebsd.org Subject: Assmbler Error: suffix or operands invalid for `mov' Message-ID: <3f95d3db0811060605i652967dbmd22d5239471ca6d5@mail.gmail.com> In-Reply-To: <3f95d3db0811060603lfee9e56g4ddcf348e7213713@mail.gmail.com> References: <3f95d3db0811060603lfee9e56g4ddcf348e7213713@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 "
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3f95d3db0811060605i652967dbmd22d5239471ca6d5>