summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2002-03-18 16:04:25 +0000
committerMarc Espie <espie@cvs.openbsd.org>2002-03-18 16:04:25 +0000
commita570bfc913ee8d15bbe2833c54233ae0177003be (patch)
treef958e19dd980569eeca37cad3aba0fb36c7cf64a /sys/arch
parentb901fedb04d32e8d7cf572b6ecc32ad8c9e0671e (diff)
pedantic assembly opcodes, to please new gas/new gcc.
okay mickey@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/i386/i386/machdep.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c
index 4b5087a449d..58fe8caa682 100644
--- a/sys/arch/i386/i386/machdep.c
+++ b/sys/arch/i386/i386/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.200 2002/03/14 20:31:31 mickey Exp $ */
+/* $OpenBSD: machdep.c,v 1.201 2002/03/18 16:04:24 espie Exp $ */
/* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */
/*-
@@ -1439,8 +1439,8 @@ sendsig(catcher, sig, mask, code, type, val)
} else
#endif
{
- __asm("movl %%gs,%w0" : "=r" (frame.sf_sc.sc_gs));
- __asm("movl %%fs,%w0" : "=r" (frame.sf_sc.sc_fs));
+ __asm("movw %%gs,%w0" : "=r" (frame.sf_sc.sc_gs));
+ __asm("movw %%fs,%w0" : "=r" (frame.sf_sc.sc_fs));
frame.sf_sc.sc_es = tf->tf_es;
frame.sf_sc.sc_ds = tf->tf_ds;
frame.sf_sc.sc_eflags = tf->tf_eflags;
@@ -1479,8 +1479,8 @@ sendsig(catcher, sig, mask, code, type, val)
/*
* Build context to run handler in.
*/
- __asm("movl %w0,%%gs" : : "r" (GSEL(GUDATA_SEL, SEL_UPL)));
- __asm("movl %w0,%%fs" : : "r" (GSEL(GUDATA_SEL, SEL_UPL)));
+ __asm("movw %w0,%%gs" : : "r" (GSEL(GUDATA_SEL, SEL_UPL)));
+ __asm("movw %w0,%%fs" : : "r" (GSEL(GUDATA_SEL, SEL_UPL)));
tf->tf_es = GSEL(GUDATA_SEL, SEL_UPL);
tf->tf_ds = GSEL(GUDATA_SEL, SEL_UPL);
tf->tf_eip = (int)(((char *)PS_STRINGS) - (esigcode - sigcode));
@@ -1881,8 +1881,8 @@ setregs(p, pack, stack, retval)
pcb->pcb_flags = 0;
tf = p->p_md.md_regs;
- __asm("movl %w0,%%gs" : : "r" (LSEL(LUDATA_SEL, SEL_UPL)));
- __asm("movl %w0,%%fs" : : "r" (LSEL(LUDATA_SEL, SEL_UPL)));
+ __asm("movw %w0,%%gs" : : "r" (LSEL(LUDATA_SEL, SEL_UPL)));
+ __asm("movw %w0,%%fs" : : "r" (LSEL(LUDATA_SEL, SEL_UPL)));
tf->tf_es = LSEL(LUDATA_SEL, SEL_UPL);
tf->tf_ds = LSEL(LUDATA_SEL, SEL_UPL);
tf->tf_ebp = 0;