Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/linux/arch/i386 Trying to fix build problem. Tha...



details:   https://anonhg.NetBSD.org/src/rev/f04645ff6e4a
branches:  trunk
changeset: 747554:f04645ff6e4a
user:      taca <taca%NetBSD.org@localhost>
date:      Sun Sep 20 10:29:30 2009 +0000

description:
Trying to fix build problem.  Thanks to joerg's advise.

diffstat:

 sys/compat/linux/arch/i386/linux_exec_machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r f3a9fbb07e4d -r f04645ff6e4a sys/compat/linux/arch/i386/linux_exec_machdep.c
--- a/sys/compat/linux/arch/i386/linux_exec_machdep.c   Sun Sep 20 08:24:04 2009 +0000
+++ b/sys/compat/linux/arch/i386/linux_exec_machdep.c   Sun Sep 20 10:29:30 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_exec_machdep.c,v 1.12 2009/03/29 01:02:50 mrg Exp $      */
+/*     $NetBSD: linux_exec_machdep.c,v 1.13 2009/09/20 10:29:30 taca Exp $     */
 
 /*-
  * Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_exec_machdep.c,v 1.12 2009/03/29 01:02:50 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_exec_machdep.c,v 1.13 2009/09/20 10:29:30 taca Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_vm86.h"
@@ -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" ((unsigned short)sel)); 
 }
 
 



Home | Main Index | Thread Index | Old Index