summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authorluoqi <luoqi@FreeBSD.org>1998-08-31 16:18:45 +0000
committerluoqi <luoqi@FreeBSD.org>1998-08-31 16:18:45 +0000
commit8b3223d67b24da4264f0ed547ee6f87cb1808fef (patch)
tree3a2c4d0270459fbf06e5a02ae3df87cb5acbd98f /sys/i386
parent639269dc951f914089f529a5d2d112128b8c35fc (diff)
downloadFreeBSD-src-8b3223d67b24da4264f0ed547ee6f87cb1808fef.zip
FreeBSD-src-8b3223d67b24da4264f0ed547ee6f87cb1808fef.tar.gz
Use 16bit register in inline asm code to set segment registers.
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/i386/machdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c
index a04409f..c5e3bfe 100644
--- a/sys/i386/i386/machdep.c
+++ b/sys/i386/i386/machdep.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
- * $Id: machdep.c,v 1.304 1998/08/18 07:46:58 msmith Exp $
+ * $Id: machdep.c,v 1.305 1998/08/31 08:41:36 kato Exp $
*/
#include "apm.h"
@@ -835,8 +835,8 @@ setregs(p, entry, stack)
pcb->pcb_fs = _udatasel;
pcb->pcb_gs = _udatasel;
if (pcb == curpcb) {
- __asm("mov %0,%%fs" : : "r" (_udatasel));
- __asm("mov %0,%%gs" : : "r" (_udatasel));
+ __asm("movw %w0,%%fs" : : "r" (_udatasel));
+ __asm("movw %w0,%%gs" : : "r" (_udatasel));
}
/*
OpenPOWER on IntegriCloud