diff options
author | luoqi <luoqi@FreeBSD.org> | 1998-08-31 16:18:45 +0000 |
---|---|---|
committer | luoqi <luoqi@FreeBSD.org> | 1998-08-31 16:18:45 +0000 |
commit | 8b3223d67b24da4264f0ed547ee6f87cb1808fef (patch) | |
tree | 3a2c4d0270459fbf06e5a02ae3df87cb5acbd98f /sys/amd64 | |
parent | 639269dc951f914089f529a5d2d112128b8c35fc (diff) | |
download | FreeBSD-src-8b3223d67b24da4264f0ed547ee6f87cb1808fef.zip FreeBSD-src-8b3223d67b24da4264f0ed547ee6f87cb1808fef.tar.gz |
Use 16bit register in inline asm code to set segment registers.
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/machdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index a04409f..c5e3bfe 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/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)); } /* |