svn commit: r217277 - stable/8/sys/amd64/amd64

Dimitry Andric dim at
Tue Jan 11 19:17:13 UTC 2011

Author: dim
Date: Tue Jan 11 19:17:13 2011
New Revision: 217277

  MFC r215801:
  Change ambiguous (or invalid, depending on how strict you want to be :)
  assembly instruction "movw %rcx,2(%rax)" to "movw %cx,2(%rax)", since
  the intent was to move 16 bits of data, in this case.
  Found by:	clang
  Reviewed by:	kib

Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/amd64/amd64/cpu_switch.S
--- stable/8/sys/amd64/amd64/cpu_switch.S	Tue Jan 11 19:13:29 2011	(r217276)
+++ stable/8/sys/amd64/amd64/cpu_switch.S	Tue Jan 11 19:17:13 2011	(r217277)
@@ -276,7 +276,7 @@ load_dr:
 do_tss:	movq	%rdx,PCPU(TSSP)
 	movq	%rdx,%rcx
 	movq	PCPU(TSS),%rax
-	movw	%rcx,2(%rax)
+	movw	%cx,2(%rax)
 	shrq	$16,%rcx
 	movb	%cl,4(%rax)
 	shrq	$8,%rcx

More information about the svn-src-stable-8 mailing list