Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: current build error: Error: suffix or operands invalid for `mov'
In message <20090920072037.GD10468%britannica.bec.de@localhost>
on Sun, 20 Sep 2009 09:20:37 +0200,
Joerg Sonnenberger <joerg%britannica.bec.de@localhost> wrote:
> On Sun, Sep 20, 2009 at 01:54:20PM +0900, Takahiro Kambe wrote:
>> #ifdef LINUX_NPTL
>> static __inline void
>> load_gs(u_int sel)
>> {
>> __asm __volatile("movl %0,%%gs" : : "rm" (sel));
>> }
>
> Should be movw.
Thanks, it should be fixed.
--
Takahiro Kambe <taca%back-street.net@localhost>
Index: sys/compat/linux/arch/i386/linux_exec_machdep.c
===================================================================
RCS file: /cvs/src/sys/compat/linux/arch/i386/linux_exec_machdep.c,v
retrieving revision 1.1.1.1.2.1
diff -u -r1.1.1.1.2.1 linux_exec_machdep.c
--- sys/compat/linux/arch/i386/linux_exec_machdep.c 29 Mar 2009 23:32:59
-0000 1.1.1.1.2.1
+++ sys/compat/linux/arch/i386/linux_exec_machdep.c 20 Sep 2009 07:39:40
-0000
@@ -137,7 +137,7 @@
static __inline void
load_gs(u_int sel)
{
- __asm __volatile("movl %0,%%gs" : : "rm" (sel));
+ __asm __volatile("movw %0,%%gs" : : "rm" (sel));
}
Home |
Main Index |
Thread Index |
Old Index